Skip to content

Epic: the product is the proof -- Java plus the evidence that it does what the COBOL did #4055

Closed

Description

@squid-protocol

Follows epic #3755 (logic porting under customer control). That epic ports the business logic with the customer's own model and proves every port against the COBOL. Its first unattended run (#4040) proved five CardDemo programs, four on attempt 1; mutation testing (#4047) then showed what those proofs do and do not pin down.

Principle: the product is the proof, not only the Java. A plausible Java port is becoming cheap -- any model writes one, and others sell exactly that: "use LLMs and claim". What a customer cannot get elsewhere is evidence that the Java does what the COBOL did, and a measure of how strong that evidence is. So each ported program is delivered as:

  1. the Java port;
  2. its proof case (inputs, CICS scenarios, CALLs, fault plans) and the harness to re-run it, byte for byte;
  3. a claim with numbers: runs, COBOL coverage (CICS crucible: COBOL paragraph/branch coverage per program, so a proven port says how much it proves #4023), mutation score, survivors triaged;
  4. its provenance and a person's approval, in one evidence record that goes stale when anything under it changes;
  5. after the mainframe is gone, the same cases as the Java's regression suite.

Two correction loops. The port loop (#3753: proof failure -> findings -> a new port) and a test-strengthening loop (mutation survivors -> model-proposed inputs -> the COBOL decides the expected result). The second is safe to automate: the model never writes an expectation.

Limits built in, not hidden: the oracle is named on every claim (GnuCOBOL + stub runtime + documented IBM behaviour, or captured mainframe runs); differences from byte-for-byte are declared and approved, never silent; the harness runs where the customer's data lives; a person approves every port.

Order:

  1. Mutation testing of every proven port: measure what "proven" means #4047 Mutation testing of every proven port (tool + fast mode; validating fast vs full now).
  2. CICS equivalence ignores screen field attributes (a wrong-colour error message is still proven) #4053 CICS screen attributes are not compared (found by Mutation testing of every proven port: measure what "proven" means #4047).
    2b. Batch equivalence ignores DISPLAY / SYSOUT: a port that writes the wrong job-log message is still proven #4056 Batch DISPLAY / SYSOUT is not compared (found by Mutation testing of every proven port: measure what "proven" means #4047).
  3. An evidence record per ported program: the claim, the oracle, provenance, approval, staleness #4048 An evidence record per program.
  4. The test-strengthening loop: mutation survivors -> model-proposed inputs, the COBOL as oracle #4049 The test-strengthening loop (first: CSUTLDTC, COMEN01C).
  5. Declared differences: equivalence except where a person approved a difference #4051 Declared differences.
  6. Captured mainframe outputs as the equivalence oracle (beside GnuCOBOL) #4050 Captured mainframe outputs as the oracle.
  7. After the mainframe: the proof cases become the Java regression suite #4052 The proof cases as the post-migration regression suite.
  8. An estate-level evidence report: proven, coverage, mutation score, differences, approvals #4054 The estate-level evidence report.

🤖 Generated with Claude Code

Remaining slices (as of 2026-10-18)

Epic; children closed so far: #4053, #4056.
Child issues still open:

Drafted 2026-10-18 by a Sonnet triage pass from this issue, its comments and the bodies of its "Part of" PRs; (verify) items were not checked against main. Tick boxes as slices merge; edit freely.

Activity

  1. added
    epic
    roadmap
    legacy-modernization
    on Sep 30, 2026
  2. added
    scope:core
    on Oct 16, 2026
  3. added
    priority: high
    on Oct 28, 2026
  4. squid-protocol commented on Nov 2, 2026

    @squid-protocol
    OwnerAuthor

    #7545 merged: a partial slice of [c:4b726470] "#4052 Proof cases as the Java regression suite: golden outputs + a JUnit class per case (no merged PR yet)"; left: field-level comparison with declared differences (#4051), the generated JUnit class per case, the Java-side dump into the check's layout, CICS / CALL / job / Db2 case kinds, and "fails on a mutant the proof kills". (promoter-bot)

  5. squid-protocol commented on Nov 2, 2026

    @squid-protocol
    OwnerAuthor

    #7549 merged: a partial slice of [c:85f05782] "#4047 Mutation testing of every proven port (scores still missing for several ports; fast vs --full agreement)"; left: about 80 burned L4 programs still have no det-port score, and the survivors of these three are not yet triaged. (promoter-bot)

  6. squid-protocol commented on Nov 2, 2026

    @squid-protocol
    OwnerAuthor

    #7553 merged: a partial slice of [c:4b726470] "#4052 Proof cases as the Java regression suite: golden outputs + a JUnit class per case (no merged PR yet)"; left: wiring into the project, mutant-kill proof, field-level comparison, non-batch kinds (promoter-bot)

  7. squid-protocol commented on Nov 2, 2026

    @squid-protocol
    OwnerAuthor

    #7566 merged: a partial slice of [c:85f05782] "#4047 Mutation testing of every proven port (scores still missing for several ports; fast vs --full agreement)"; left: about 75 burned L4 programs still unmeasured; survivors untriaged (promoter-bot)

  8. squid-protocol commented on Nov 2, 2026

    @squid-protocol
    OwnerAuthor

    #7572 merged: a partial slice of [c:85f05782] "#4047 Mutation testing of every proven port (scores still missing for several ports; fast vs --full agreement)"; left: about 72 burned L4 programs still unmeasured; survivors untriaged (promoter-bot)

  9. squid-protocol commented on Nov 3, 2026

    @squid-protocol
    OwnerAuthor

    #7575 merged: a partial slice of [c:85f05782] "#4047 Mutation testing of every proven port (scores still missing for several ports; fast vs --full agreement)"; left: about 70 burned L4 programs still unmeasured; survivors untriaged; COBTUPDT run errors (promoter-bot)

  10. squid-protocol commented on Nov 3, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4055-20261103T0007Z (host nyx) ended without a PR. limit; requeued

  11. squid-protocol commented on Nov 3, 2026

    @squid-protocol
    OwnerAuthor

    #7582 merged: a partial slice of [c:85f05782] "#4047 Mutation testing of every proven port (scores still missing for several ports; fast vs --full agreement)"; left: about 65 burned L4 programs still unmeasured; survivors untriaged; COBTUPDT run errors (promoter-bot)

  12. squid-protocol commented on Nov 3, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4055-20261103T0210Z (host nyx) ended without a PR. limit hit, no PR; requeued at front

  13. squid-protocol commented on Nov 16, 2026

    @squid-protocol
    OwnerAuthor

    Closing the epic: the product is delivered as Java plus its evidence; one frontier child stays open on its own

    The "delivered as" bundle, with the PRs

    1. Java port: the porting loop (Logic porting loop: bring-your-own LLM, human approval, proven by the equivalence harness #3753) and the det port, with L5 mutation on det ports (Evidence L5: mutation testing on det ports, survivors accounted for (#4601) #4628).
    2. Proof case and harness: the equivalence harness and cases. The two comparison gaps are closed in Proofs compare DISPLAY / SYSOUT (#4056) and SEND MAP attributes (#4053) #4061 (DISPLAY / SYSOUT, Batch equivalence ignores DISPLAY / SYSOUT: a port that writes the wrong job-log message is still proven #4056; SEND MAP attributes, CICS equivalence ignores screen field attributes (a wrong-colour error message is still proven) #4053).
    3. Claim with numbers:
    4. Evidence record with provenance, approval and staleness: An evidence record per ported program: the claim, the oracle, provenance, approval, staleness #4048 (Evidence record per ported program: claim, oracle, provenance, approval, staleness (#4048) #4316, test: evidence records for the four Db2 equivalence cases (#4048) #4416, evidence: mutation scores and triaged survivors for 9 burned-estate ports (Part of #4048) #5326, evidence: mutation score and triaged survivors for carddemo-readcard (Part of #4048) #5402, evidence: mutation section for carddemo-tranview-generated (Part of #4048) #5494, evidence: a test fails when a record's mutation section is null (Part of #4048) #5507, mutation runs record themselves: --record on mutation.py / mutation_crucible.py (Part of #4048) #5517), plus the recurring "refresh stale records" PRs (evidence: refresh stale records and the evidence report #8512, evidence: refresh stale records and the evidence report #8502, evidence: refresh stale records and the evidence report #8169).
    5. Regression suite after the mainframe: After the mainframe: the proof cases become the Java regression suite #4052, closed today (golden_export: a batch case's COBOL outputs as golden files, byte-exact Java check (Part of #4052) #7545, golden_export junit: the byte check as generated Java, GoldenCheck + a JUnit class (Part of #4052) #7553, golden_export check: record-level comparison, FILLER-only differences counted (Part of #4052) #8259, golden_export: Java GoldenCheck mirrors diff_records (Part of #4052, slice 16) #8262, golden_export: project and prove-mutant carry the record layouts, posttran judged (Part of #4052) #8283, golden-verify sweep: posttran GoldenRegressionTest passes under mvn (Part of #4052) #8284, golden_export project: write a pom.xml from the project (Part of #4052) #8285).
    6. Declared differences: Declared differences: equivalence except where a person approved a difference #4051, closed today.
    7. Estate-level report: An estate-level evidence report: proven, coverage, mutation score, differences, approvals #4054 (Estate evidence report from the per-program evidence records (Part of #4054) #5231, Estate evidence report: lines per evidence level, from the corpora (Part of #4054) #5333, Estate evidence roll-up published on the generated branch (Part of #4054) #5397, plus the GenApp records genapp-lgstsq: commit the LGSTSQ port and evidence record, GenApp moves off E1 (Part of #4054) #5744, genapp-lgapdb01: commit the LGAPDB01 port and evidence record (Part of #4054) #5753, genapp-lgupvs01: port, evidence record and mutation score; re-run LGAPVS01 (Part of #4054) #5756).

    Closed children: #4047, #4048, #4049, #4051, #4052, #4053, #4054, #4056.

    Deliberate deviation from the epic's done-when ("every child closed"): #4050 (captured mainframe outputs as the oracle) is left open as its own scope:frontier, priority: low issue. What exists is the HFP capture kit and its z/OS runbook under #4271 (#5674, #5702, #5752, #5760, #6019, #6027). No "recorded oracle" mode exists in the harness. That is a scope decision for the owner, not something this epic's closure should settle silently.

    A program can today be delivered with Java, case, claim with numbers, evidence record, declared differences and a generated regression suite. The oracle is named on every claim: GnuCOBOL plus models, not z/OS.

    Closing as completed.

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

    epiclegacy-modernizationpriority: highroadmapscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions