Skip to content

CICS crucible: mutation testing of proven Java ports (does the harness catch a broken port?) #4024

Closed

Description

@squid-protocol

Part of #3989. The crucible harness proves LLM-written Java ports (the java-ported side). A mutation check measures how sensitive that proof is.

Scope

  • Mutation tool: for each proven port, generate small semantic mutants of the Java, for example:

    • negate or swap a condition
    • remove a field MOVE or assignment
    • off-by-one on a length or offset
    • swap two COMMAREA fields
    • change a RESP comparison
    • drop a handler registration
    • change a START interval
    • send a different attribute byte
    • skip a TS write

    Run the crucible's java-ported cells against each mutant.

  • Report: the mutation score per program and per trap (killed / total, surviving mutants listed) in the crucible report.

  • Surviving mutants are gaps in the scenarios, or equivalent mutants (note them). Real gaps become new scenarios in cics-crucible, each with a hand-written, doc-cited expected log.

  • Deterministic: seeded mutant selection, so CI can run a sample on every change and the full set on demand.

Done when

Every proven port reports a mutation score, and surviving non-equivalent mutants are either killed by new scenarios or explained.

🤖 Generated with Claude Code

Activity

  1. added
    testing
    legacy-modernization
    on Sep 29, 2026
  2. squid-protocol commented on Sep 30, 2026

    @squid-protocol
    OwnerAuthor

    Tooling for this now exists: #4047 (tests/tools/mutation.py, fast mode with --reuse / --first-difference). This issue is the same measurement applied to the 17 CICS crucible ports; both sit in the Run Verified milestone under epic #4055.

    🤖 Generated with Claude Code

  3. squid-protocol commented on Oct 5, 2026

    @squid-protocol
    OwnerAuthor

    Closing as superseded by #4443, which carries this issue's remaining done when in the active milestone. Status: mutation_crucible.py measures the crucible ports and now proves mutants on both the java-ported and java-facade sides (#4439). 13 of 17 ports are scored: 205 killed, 86 survived, 21 stillborn, 0 harness gaps, every survivor triaged. Left for #4443: score the 4 PC* ports (now final after #4427) and close the 34 case gaps (19 need a fault plan).

  4. added
    scope:core
    era:4
    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:4legacy-modernizationscope:coretesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions