Skip to content

Mutation testing of every proven port: measure what "proven" means #4047

Closed

Description

@squid-protocol

What. Mutation testing of every proven port, so a proof's strength is a measured number, not an assumption. tests/tools/mutation.py (branch feat/mutation-proofs, fast mode on feat/mutation-fast) breaks a proven port one small change at a time (flipped comparison, + for -, constant off by one, deleted statement, changed literal) and proves each mutant with the equivalence harness. A mutant the proof still calls proven survived: an equivalent mutant (noise) or a place the case never looks.

First numbers (2026-09-30, partial, CardDemo):

  • CSUTLDTC (call): 129 caught / 59 survived of 188 judged (~69%). The survivors cluster in the error-feedback branches: the proof covers only 4/10 COBOL branches.
  • COMEN01C (CICS): 75 / 60 of 135 (~56%). Menu options and user types no scenario picks; screen attributes not compared (see the attribute child issue).
  • NEG (a whole condition negated) is caught almost always (26/27, 18/18): the main logic is pinned; the edges are not.

Fast mode (a proof per mutant was ~150-280 s on TRNRPT):

  • equivalence.py run --reuse EARLIER: the earlier run's COBOL outputs (per step, only when its run.sh is byte-identical) and its generated project, re-overlaid with the port and compiling only the port's files with the pom's javac options.
  • --first-difference: a batch proof stops at the first differing run (same verdict).
  • The test runs in a plain JVM through the JUnit Platform launcher when the build is current; otherwise Maven.
  • TRNRPT under load: killed mutant ~282 s -> 9-15 s; survivor (all 25 runs) ~282 s -> ~190 s.

Done when:

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    testing
    legacy-modernization
    on Sep 30, 2026
  2. 38 remaining items

  3. squid-protocol commented on Oct 21, 2026

    @squid-protocol
    OwnerAuthor

    #5821 merged: a partial slice of [c:0f9790f1] "survivors cheaper: all runs of one proof in one JVM, only if it still agrees with --full."; left: entry runs (no burned port has any) and crucible samples above 24 / the other 14 ports (promoter-bot)

  4. squid-protocol commented on Oct 21, 2026

    @squid-protocol
    OwnerAuthor

    #5835 merged: a partial slice of [c:0f9790f1] "survivors cheaper: all runs of one proof in one JVM, only if it still agrees with --full."; left: entry runs (no burned port has any), crucible samples above 24, the four PCIMM ports (promoter-bot)

  5. squid-protocol commented on Oct 21, 2026

    @squid-protocol
    OwnerAuthor

    #5846 merged: a partial slice of [c:0f9790f1] "survivors cheaper: all runs of one proof in one JVM, only if it still agrees with --full."; left: entry runs (no burned port has any), samples above 80. (promoter-bot)

  6. squid-protocol commented on Oct 21, 2026

    @squid-protocol
    OwnerAuthor

    All four acceptance boxes are now met (fast-mode agreement #4057, per-operator scores #5524, survivor triage #5548, one-JVM survivors #5860). Closing.

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

    claim:melekenhancementera:2legacy-modernizationneeds:crucibleneeds:dockerscope:coretestingtier:score

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions