Skip to content

Model-written ports keep entry points no proof calls (37 mutation survivors, #4047) #4255

Closed

Description

@squid-protocol

Found by the mutation scores of #4047 (PR #4241).

What. 37 of the 94 survivors triaged as unreachable are not unreachable in the COBOL. They sit in port code that the proof never calls. Examples are controller-style entry points (executeCasub, executeHcmain, executeGtwork, executeCsutldtc()), handleLink / handleTransaction, bridgeHcsub, onAbendL26 / onConditionQiderrL25, dispatchCdemoToProgramL349, and generated TS helpers such as writeqTsCatraceL22 / readqTsHcnoneL37. The models kept them beside runTask. The equivalence harness and the crucible's java-ported side drive only runTask (or handleCall), so a mutant there always survives.

Why it matters. This code ships in the Java, and a caller (a Spring controller, a LINK through handleLink) would run it, but no proof covers it. A "proven" port is proven only through its runTask path.

Options.

  1. The ticket and rules tell the model to put all behaviour behind runTask and to keep no second entry point. A check flags any public method that the proof never reaches.
  2. The harness also drives the extra entry points (for example, a LINK through handleLink).
  3. The evidence record (An evidence record per ported program: the claim, the oracle, provenance, approval, staleness #4048) states it: "proven through runTask only; N methods unproven".

Survivors with this reason, per port, are in docs/language_status/mutation_scores.json (verdict unreachable, reason "no caller" / "never called by the harness").

🤖 Generated with Claude Code

Activity

  1. added
    testing
    legacy-modernization
    on Oct 3, 2026
  2. squid-protocol commented on Oct 5, 2026

    @squid-protocol
    OwnerAuthor

    Closing: resolved by #4342 (PR #4349, the generator no longer writes entry points or handlers with no COBOL behind them), #4343 (PR #4425, the crucible ports regenerated and proven through their façades, a java-facade side) and #4439 (PR #4439, the mutation runner now proves mutants on java-ported and java-facade). Of the 37 survivors, 3 remain flagged, and all are genuinely dead helpers that nothing calls (CASUB writeqTsCatraceL22, HCQREAD writeqTsHcworkL37 / readqTsHcworkL57). tests/cobol_mainframe/test_proof_reach.py pins them exactly, with no harness gaps and no case gaps allowed. The 14 CardDemo equivalence façades were regenerated in #4441; their façade-side proofs are #4449.

  3. added
    scope:core
    era:2
    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

    era:2legacy-modernizationscope:coretesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions