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: Per capability: the final requirements and business rules, screen specifications, data contracts from the copybooks, acceptance criteria, decision tables with their gaps, and the questions still open, each citing its sources; each rule and requirement classed as business rule, formatting, error handling, side effect or historical artifact
While reviewing the generated specifications on develop (and CardDemo outputs under reports/carddemo/design/package/claude-code/specs/), three issues in P4-07 directly hurt forward-engineering quality:
Legacy 3270/CICS mechanics contradict the modern UI design
Modern screen designs explicitly replace 3270 habits (e.g. in oatm-19-request-a-bill-payment.md, S-BILL-PAY specifies: "the payment is confirmed in a dialog, not by typing Y or N").
However, specs.py still emits 3270/CICS-bound rules (PF3, PF4, 'Invalid value. Valid values are (Y/N)...', 'Invalid key pressed...', EIBCALEN: 0, cursor placement) as mandatory requirements and Acceptance criteria (business rule / formatting). Forward-engineering agents then get conflicting instructions between the UI design and the acceptance tests.
when_of(rule) extracts the rule's single WHEN ... trigger and stamps it verbatim onto every worked example of that rule, including negative/else examples.
Observed in CardDemo:
USPM-C01-AC-15 (uspm-01-sign-on-to-carddemo.md): GIVEN User Type: A WHEN a user whose type is anything other than 'A' signs on THEN After correct password the user goes to the admin menu (COADM01C)
OATM-C19-AC-12 (oatm-19-request-a-bill-payment.md): GIVEN Account ID: 00000000011; ACCT-CURR-BAL: 150.00 WHEN no error has been flagged, WHEN the account balance (ACCT-CURR-BAL) is zero or less ... THEN No error; the payment can proceed to confirmation
screens_for() (specs.py:188) includes any screen sharing a journey with the capability even when zero of its components cite the capability's rules or requirements (e.g. S-ACCOUNT-VIEW in oatm-19-request-a-bill-payment.md renders an empty | Component | Type | ... | table).
Suggested changes
Separate legacy channel/terminal mechanics (function keys, cursor focus, typed Y/N prompts, EIBCALEN) from modern domain/validation rules so they become UI-migration notes or legacy-mapping references rather than conflicting modern acceptance criteria.
Derive or store the specific when condition per worked example (or synthesize it from the example's given + action) instead of applying when_of(rule) blindly to counter-examples, and avoid double WHEN clauses.
In screens_for(), do not attach screens with zero matching components unless explicitly marked as read-only journey context without an empty component table.
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 #426, 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 the generated specifications on
develop(and CardDemo outputs underreports/carddemo/design/package/claude-code/specs/), three issues inP4-07directly hurt forward-engineering quality:Legacy 3270/CICS mechanics contradict the modern UI design
oatm-19-request-a-bill-payment.md,S-BILL-PAYspecifies: "the payment is confirmed in a dialog, not by typing Y or N").specs.pystill emits 3270/CICS-bound rules (PF3,PF4,'Invalid value. Valid values are (Y/N)...','Invalid key pressed...',EIBCALEN: 0, cursor placement) as mandatory requirements andAcceptance criteria(business rule/formatting). Forward-engineering agents then get conflicting instructions between the UI design and the acceptance tests.example_criteria()+when_of()produce contradictoryGIVEN/WHENcriteria (src/reframe/design/specs.py)when_of(rule)extracts the rule's singleWHEN ...trigger and stamps it verbatim onto every worked example of that rule, including negative/else examples.USPM-C01-AC-15(uspm-01-sign-on-to-carddemo.md):GIVEN User Type: A WHEN a user whose type is anything other than 'A' signs on THEN After correct password the user goes to the admin menu (COADM01C)OATM-C19-AC-12(oatm-19-request-a-bill-payment.md):GIVEN Account ID: 00000000011; ACCT-CURR-BAL: 150.00 WHEN no error has been flagged, WHEN the account balance (ACCT-CURR-BAL) is zero or less ... THEN No error; the payment can proceed to confirmationUnrelated journey screens appear with empty component tables (
src/reframe/design/specs.py)screens_for()(specs.py:188) includes any screen sharing a journey with the capability even when zero of its components cite the capability's rules or requirements (e.g.S-ACCOUNT-VIEWinoatm-19-request-a-bill-payment.mdrenders an empty| Component | Type | ... |table).Suggested changes
EIBCALEN) from modern domain/validation rules so they become UI-migration notes or legacy-mapping references rather than conflicting modern acceptance criteria.whencondition per worked example (or synthesize it from the example'sgiven+ action) instead of applyingwhen_of(rule)blindly to counter-examples, and avoid doubleWHENclauses.screens_for(), do not attach screens with zero matching components unless explicitly marked as read-only journey context without an empty component table.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.