Skip to content

P4-07 Final specifications #393

Done

Description

@sknampally

Part of #386.

Specification: docs/pipeline-4.md, section 4 D6 and D8.

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

Delivered in: #426.

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 #426, 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 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:

    1. 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.
    2. example_criteria() + when_of() produce contradictory GIVEN/WHEN criteria (src/reframe/design/specs.py)

      • 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
    3. Unrelated 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-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.
  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