Skip to content

Equivalence harness: self-report coverage, run status and actionable blockers as a generated .md page #4493

Closed

Description

@squid-protocol

Why. With inputs generated from record layouts (#3804, PR #4492), the equivalence harness is close to working on any estate. On a fresh estate, the first question is how much of it we can test, and what stops the rest. Today you find that out by reading sweep logs. The harness should answer it itself.

What. For each run, whether over one case or a whole estate, write a generated Markdown page (and JSON next to it) that reports:

  • Coverage: programs in the estate, programs with a runnable case, and programs proven, as counts and percentages. Also the share of paragraphs and branches exercised by the generated inputs (from cobol_coverage).
  • Run status per program: proven / differs / couldn't run / not attempted, with the reason for each.
  • Input generation: which records got generated inputs, and which fell back to shipped data or were skipped.
  • Blockers, stated as fixes. Each "couldn't run" is grouped by cause and phrased as the action that unblocks it, with how many tests that would unlock. Sort blockers by tests unlocked, so the top line is always the highest-value next step. Examples:

Starting blocker categories (from the generator's known limits, as reported on PR #4492):

  1. Layout: REDEFINES alternatives selected by another field (e.g. GenApp CA-REQUEST-SPECIFIC); RENAMES/SYNC/qualified names (COBOL engine: SYNC, JUSTIFIED, BLANK WHEN ZERO, RENAMES (66) and qualified names missing from the layout model #4266); formats a PICTURE can't express (needs a hand rule, e.g. digits).
  2. Non-VSAM inputs: DB2 rows, IMS segments, MQ/TS/TD queues, GDGs, variable-length (RECFM V) files.
  3. Cross-record business rules: balances that sum, status transitions, multi-step conversations; from joins are single-field only.
  4. Unresolved links: COPY/CALL/LINK targets the engine couldn't resolve (e.g. the CopyUnresolved refusals from det translator: take COPY resolution from the engine (ownership per #4273), replacing the first-hit directory search #4468).
  5. Environment: the program doesn't compile under GnuCOBOL, or needs a CICS/DB2 stub that doesn't exist; façade stubs (det translator: CICS facades are stubs (handleLink throws, void handleTransaction does nothing), not the region-run facade #4465).

Moderately dynamic: the page is regenerated on every run. A blocker disappears when it's fixed, and the percentages update. There is no hand-maintained list.

Done when:

  1. A sweep over one estate writes the page.
  2. Each non-run program appears under exactly one blocker, and the blocker names the files and symbols involved.
  3. The unlock counts are checked by one test: fix a blocker, re-run, and the count of newly runnable tests matches the prediction.
  4. The page for a fresh estate is published as part of the trial protocol (Run two or three fresh public batch estates through the trial protocol #3806).

Note: before starting, check what existing generated pages (evidence pages, docs/language_status/fresh_estate_trials.md, the det-sweep baseline) already cover. This should extend them, not duplicate them.

Related: #3803 (epic), #3804, #3806, #4266, #4465, #4468.

Remaining slices (as of 2026-10-18)

Done so far: 2 merged PRs (#5309, #5391).

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
    enhancement
    testing
    legacy-modernization
    on Oct 5, 2026
  2. added
    scope:core
    on Oct 16, 2026
  3. added
    needs:corpus
    needs:docker
    on Oct 18, 2026
  4. 157 remaining items

  5. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4493-20261104T2101Z (host melek) ended without a PR. No PR: needs owner draw/trial start (#3806); do not relaunch until trial starts

  6. squid-protocol commented on Nov 5, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4493-20261105T1352Z (host melek) ended without a PR. No PR: #4493 only waits on owner starting #3806 trial; do not relaunch until then

  7. squid-protocol commented on Nov 5, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4493-20261105T1411Z (host melek) ended without a PR. no PR: every code slice merged; done-when 4 waits on #3806 trial (owner draw)

  8. squid-protocol commented on Nov 11, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 4493-20261111T0725Z (host melek) ended without a PR. No PR: trial-001 page exists (example-health-apis, 0 proven/28 not attempted); done-when 4 met in form; checklist c:4e3383b1 tick is for whoever confirms first-contact page counts

  9. squid-protocol commented on Nov 16, 2026

    @squid-protocol
    OwnerAuthor

    Closing: every slice and all four done-when items are delivered

    Done-when, with the PRs

    1. A sweep writes the page: Equivalence harness: generated coverage / run-status / input / blocker page (Part of #4493) #5309 (generated coverage / run-status / input / blocker page).
    2. Every non-run program sits under exactly one blocker, naming files and symbols:
    3. Unlock counts are tested (fix a blocker, re-run, count matches the prediction): Equivalence harness: generated coverage / run-status / input / blocker page (Part of #4493) #5309.
    4. A fresh estate's page is published through the trial protocol (Run two or three fresh public batch estates through the trial protocol #3806 / Epic: first-try proof rate on fresh estates -- trials, input generation, the attempts-to-proof histogram #3803):

    Closing as completed. Further harness-page changes should be filed as new issues against the trial pages.

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-modernizationneeds:corpusneeds:dockerpriority: highscope:coretesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions