Skip to content

Evidence report: purchaser-facing levels and numbers per program and estate (no binary "proven") #4601

Closed

Description

@squid-protocol

Why. A purchaser deciding on a COBOL->Java migration asks "how sure are you, and of what?" Today the answer is spread over cics_census.py, proof_blockers.py, evidence.py records, the crucible baseline/coverage, oracle_assumptions.md, the spec status page and the pin manifest. And the word we reach for, "proven", is wrong: the oracle is GnuCOBOL plus our C CICS stub, not z/OS, so every result carries caveats. Owner decision (2026-10-07): use the stricter definition internally, but report levels and numbers, never a binary "proven".

What. One generated report (Markdown + JSON beside it), per estate with a row per program, filled only from tool outputs. No hand-maintained numbers. Sections:

  1. Translation -- statements, translated, holes (by name), whole yes/no; named refusals (source defects, oracle-refused features). Source: cics_census.py survey / blockers.
  2. Executed equivalence -- has a case; scenarios run; scenarios equal / differing (first diff kind) / java failed; Db2 cases proven locally vs in CI. Source: evidence records (evidence.py status --json, never a stale record shown as current), det-sweep baseline, crucible baseline.json.
  3. Coverage -- paragraph % and branch % that the scenarios execute, with the live paragraphs / branch outcomes no scenario runs listed. Source: proof_blockers.py --branches --json, cobol_coverage.
  4. Oracle backing -- for each CICS command the program uses: spec entry full / name-only; hand-traced cics-crucible case for it yes/no; both runtimes agree with the case. Source: cics_spec_status.json, crucible coverage.
  5. Assumptions relied on -- the oracle_assumptions.md entries (C/X/M numbers) the program reaches, each with its status (MATCHED / ASSUMED / DIFFERS / REFUSED); stated runtime facts (EIBTASKN, seeds, clock fields).
  6. Residual risk -- everything not measured, stated plainly: holes, unrun paragraphs/branches, unstated facts, ASSUMED/DIFFERS assumptions reached, and the migration dimensions not measured at all (Epic: whole-migration harness: data, job streams, interfaces, performance, security, cutover #4514: data, JCL streams, interfaces, performance, security, cutover).
  7. Reproducibility -- engine SHA, crucible pins (crucible_pins.py), corpus pins, oracle image digest, the exact commands to regenerate the report and re-run every proof.

Levels, not a verdict. Each program gets the highest level whose conditions hold, plus the metrics; levels are cumulative:

  • L0 inventoried · L1 translated whole · L2 executed-equivalent (a current, non-stale record; every scenario equal) · L3 L2 + paragraph coverage >= bar · L4 L3 + branch coverage >= bar · L5 L4 + every CICS command it uses oracle-backed by a hand-traced crucible case and no DIFFERS assumption reached.
    The bars are parameters printed in the report. A level never hides the numbers under it. The estate summary is a level histogram plus totals, burned and non-burned apart (a burned estate is labelled as one, since its ports were developed against it).

Wording rules (tested). The generated text never says "proven", "verified" or "guaranteed" about a program or estate; it says "executed equivalent on N scenarios against GnuCOBOL + the gitgalaxy CICS stub" and names the assumptions. A test greps the rendered report for the forbidden words.

Overlap.

Done when.

  1. tests/tools/evidence_report.py ESTATE|--all [--out DIR] writes report.md + report.json from the tools above; a schema for the JSON (gitgalaxy-evidence-report/1).
  2. Committed for the burned estates under docs/language_status/evidence_report/, with a staleness test like evidence.py render --check.
  3. The forbidden-words test, and a test that every number in the Markdown comes from the JSON.
  4. A short purchaser-facing preface (what the oracle is, what a level means, what is not measured) generated from one template.

Part of #4270. Related: #4048, #4493, #4514, #3804, #3806.

Activity

  1. added
    enhancement
    legacy-modernization
    on Oct 7, 2026
  2. squid-protocol commented on Oct 7, 2026

    @squid-protocol
    OwnerAuthor

    Owner decisions (2026-10-07) for PR #4603: L2 = det-sweep verdict (CI ratchet, or a local sweep for Db2) + coverage from the det-sweep coverage ledger (#4606); the #4048 evidence record (which covers the committed hand/model port, not the det port) becomes a reported column, not a gate. Coverage bars: strict, 100% paragraphs (L3) and 100% branches (L4), net of the reviewed infeasible outcomes from #4602 once that lands. CI runs --check (stored status), not --check --live.

  3. squid-protocol commented on Oct 7, 2026

    @squid-protocol
    OwnerAuthor

    Owner decision (2026-10-07): L5 = L4 + every surviving mutant accounted for (#4047 mutation testing on the DET port: each survivor killed by a strengthened scenario, or listed and reviewed as equivalent / unreachable, the #4602 reviewed-list pattern). The raw mutation score is always printed beside the level. Oracle backing (spec entry + hand-traced crucible case + no DIFFERS assumption reached) leaves the ladder and becomes a separate reported column; it measures trust in the oracle, not test strength. Implementation: new issue (det-port mutation), then #4603 reads it.

  4. squid-protocol commented on Oct 8, 2026

    @squid-protocol
    OwnerAuthor

    Owner decision (2026-10-08) revises "CI runs --check" for pull requests: the rendered evidence report is regenerated on main by the evidence-refresh bot (auto-merged), the per-PR report check becomes advisory (level deltas in the job summary), and a release/tag gate requires --check --live clean. Record staleness (Q1) and the det-sweep baseline stay blocking. Tracked in #4703.

    🤖 Generated with Claude Code

  5. added
    scope:core
    on Oct 16, 2026
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

    enhancementlegacy-modernizationscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions