You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
While reviewing src/reframe/design/package.py on develop, three issues directly affect engineers and coding agents forward-engineering from the generated package:
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.
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.
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.
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.
Activity
sknampally commentedon Nov 27, 2026
Done: delivered in #427, and part of release 1.0.0 (https://github.com/CodeStrata/reframe/releases/tag/v1.0.0).
sknampally commentedon Nov 28, 2026
Forward-Engineering Review Feedback (on
develop)While reviewing
src/reframe/design/package.pyondevelop, three issues directly affect engineers and coding agents forward-engineering from the generated package:Capabilities with
screensand notechnicalrules lose theirapi/ job task (package.py:180)tasks()creates theapitask with:add("api", f"Build {shape}", by_class["design note"] or (reqs if s["runs_as"] != "online" and not s["screens"] else []), ...)by_class["design note"]is empty ands["screens"]is non-empty,add("api", ...)receives[]and silently skips creating anyapitask — even ifs["runs_as"] == "online and scheduled job"(so the scheduled job is never tasked) or"service", or an"online"capability that exposes backend service logic.copy_out()(reframe design --package) mutates synthetic test data and can abort export (package.py:711-739,publish.py:25-89)copy_out()appliesreport.publish.Cleaneracross every file in the package (specs/,golden/*.json,ui-reference/index.html).Cleaner.clean()replaces any email (EMAILregex, e.g.user@example.comin validation rules or golden test inputs/literals) with<email>and any UUID withid-<hash>(and aborts withwritten: 0ifCleaner.left()flags any unreplaced identifier). This silently corrupts synthetic test fixtures and literal assertions.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", butpackage.pychecksb["role"] == "file record". As a result,datatasks label SQL tables/ORM entities as"Working records"andcontracts_md()omits their field/column tables from capabilitydesign.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-generationvsui-modernizationrole guardrails inpackage.py:59-75.)Suggested changes
apitask whenruns_asincludes"scheduled job"or"service", and for"online"capabilities that implement backend rules/data access (falling back toreqsrather than[]whenby_class["design note"]is empty).copy_out(), do not runEMAILorUUIDredaction 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).b["role"] in ("file record", "table", "entity")as persistent data records in bothtasks()andcontracts_md()."online and scheduled job"task generation,copy_out()preserving synthetic emails/UUIDs ingolden/*.jsonand specs, and"table"/"entity"rendering indesign.md/spec.md.sknampally commentedon Nov 29, 2026
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.
sknampally commentedon Nov 29, 2026
Done: the review's fixes merged in #499.