Skip to content

P4-08 The AI-DLC package #394

Done
Done

Description

@sknampally

Part of #386.

Specification: docs/pipeline-4.md, section 4 D7.

Done when: One package in three forms: Kiro (.kiro/specs/<capability>/ with requirements.md, design.md and tasks.md, and steering files), Claude Code (CLAUDE.md, the specifications, the prototype as the UI reference and the tasks) and Spec Kit (a constitution, specs/<capability>/ and role files under .claude/agents/, each task naming its role), every item keeping its requirement and rule IDs. Checked by loading it into Claude Code and building one journey

Delivered in: #427.

Prepared with AI assistance.

Activity

  1. added
    type:story
    on Nov 25, 2026
  2. sknampally commented on Nov 27, 2026

    @sknampally
    CollaboratorAuthor

    Done: delivered in #427, and part of release 1.0.0 (https://github.com/CodeStrata/reframe/releases/tag/v1.0.0).

  3. sknampally commented on Nov 28, 2026

    @sknampally
    CollaboratorAuthor

    Forward-Engineering Review Feedback (on develop)

    While reviewing src/reframe/design/package.py on develop, three issues directly affect engineers and coding agents forward-engineering from the generated package:

    1. Capabilities with screens and no technical rules lose their api / job task (package.py:180)

      • tasks() creates the api task with:
        add("api", f"Build {shape}", by_class["design note"] or (reqs if s["runs_as"] != "online" and not s["screens"] else []), ...)
      • When by_class["design note"] is empty and s["screens"] is non-empty, add("api", ...) receives [] and silently skips creating any api task — even if s["runs_as"] == "online and scheduled job" (so the scheduled job is never tasked) or "service", or an "online" capability that exposes backend service logic.
    2. copy_out() (reframe design --package) mutates synthetic test data and can abort export (package.py:711-739, publish.py:25-89)

      • copy_out() applies report.publish.Cleaner across every file in the package (specs/, golden/*.json, ui-reference/index.html).
      • Cleaner.clean() replaces any email (EMAIL regex, e.g. user@example.com in validation rules or golden test inputs/literals) with <email> and any UUID with id-<hash> (and aborts with written: 0 if Cleaner.left() flags any unreplaced identifier). This silently corrupts synthetic test fixtures and literal assertions.
    3. Non-mainframe contracts (role = "table" / "entity") are misclassified as "working storage" (package.py:163-168,253-256)

      • schema.uses() sets non-mainframe contract roles to "table" or "entity", but package.py checks b["role"] == "file record". As a result, data tasks label SQL tables/ORM entities as "Working records" and contracts_md() omits their field/column tables from capability design.md/plan.md. (Cross-referenced on L1-06 Data contracts from any stack #478.)

    (Note also the UI-vs-acceptance-criteria contradiction flagged in #393 affects the test-generation vs ui-modernization role guardrails in package.py:59-75.)

    Suggested changes

    • Always generate the api task when runs_as includes "scheduled job" or "service", and for "online" capabilities that implement backend rules/data access (falling back to reqs rather than [] when by_class["design note"] is empty).
    • In copy_out(), do not run EMAIL or UUID redaction over forward-engineering package files (specs/, golden/, ui-reference/): restrict cleaning to run/environment secrets and identifiers (AWS account IDs, ARNs, S3 URIs, AWS profiles, run resource names, local workspace/home paths, and API keys).
    • Treat b["role"] in ("file record", "table", "entity") as persistent data records in both tasks() and contracts_md().
    • Add unit tests for mixed "online and scheduled job" task generation, copy_out() preserving synthetic emails/UUIDs in golden/*.json and specs, and "table"/"entity" rendering in design.md/spec.md.
  4. sknampally commented on Nov 29, 2026

    @sknampally
    CollaboratorAuthor

    Every point in the review is fixed in #499, which is waiting for your review: see its table for each point and the fix. CardDemo's example output will show the changes after its next design round. Prepared with AI assistance.

  5. sknampally commented on Nov 29, 2026

    @sknampally
    CollaboratorAuthor

    Done: the review's fixes merged in #499.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:story

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions