Skip to content

Mutation re-run of the 13 non-PC crucible ports after #4343 (#4047) - #4439

Merged
squid-protocol merged 2 commits into
mainfrom
test/mutation-crucible-13
Oct 5, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
test/mutation-crucible-13

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Fresh mutation run for the crucible ports #4425 regenerated, except PCCONF / PCWIZ / PCMENU / PCDETL (changing under #4427; re-run after it merges). mutation_crucible.py run --sample 24 --seed 0, cics-crucible v0.2.0, on d69a634. The tripwire in test_proof_reach.py changed as expected (below).

Tooling fix (harness gap closed at its source)

mutation_crucible.prove ran the runner with --sides java-ported only, which never runs a facade body, so 4 mutants inside handleLink / handleTransaction survived. It now passes --sides java-ported java-facade. CASUB, CAXB, GTSTART, GTWORK were re-run (seed 0, 24, same mutants); each gained exactly one kill, the four. The other 9 ports were run on java-ported alone: their mutants sit outside facade bodies (the only facade-body survivors were those four), so the second side adds nothing for them.

Per port

port mutants (all) killed survived stillborn kill rate case gap / harness gap / equivalent / unreachable
CALINK 165 19 3 2 19/22 (86%) 3 / 0 / 0 / 0
CASUB 40 15 9 0 15/24 (62%) 1 / 0 / 7 / 1
CAXA 75 17 4 3 17/21 (80%) 2 / 0 / 2 / 0
CAXB 139 15 8 1 15/23 (65%) 4 / 0 / 3 / 1
GTSTART 88 15 7 2 15/22 (68%) 4 / 0 / 3 / 0
GTWORK 84 19 2 3 19/21 (90%) 2 / 0 / 0 / 0
GTSHOW 66 19 5 0 19/24 (79%) 1 / 0 / 4 / 0
GTTERM 85 13 8 3 13/21 (61%) 7 / 0 / 1 / 0
HCMAIN 173 10 13 1 10/23 (43%) 1 / 0 / 4 / 8
HCSUB 85 18 6 0 18/24 (75%) 1 / 0 / 3 / 2
HCQREAD 201 10 11 3 10/21 (47%) 2 / 0 / 6 / 3
HXATTR 140 21 2 1 21/23 (91%) 1 / 0 / 1 / 0
HXEXT 105 14 8 2 14/22 (63%) 5 / 0 / 1 / 2
13 ports 205 86 21 205/291 (70%) 34 / 0 / 35 / 17

Survivor triage (all 86, reasons in docs/language_status/mutation_scores.json)

  • Case gap (34): 19 need a fault plan (failing START / WRITEQ TS / XCTL / RECEIVE; the crucible cannot inject faults); the rest are inputs no scenario has (10+ TS records, non-digit or 9 in an account, a negative balance, a zero-length COMMAREA, nonzero visits in a short COMMAREA).
  • Unreachable (17): 3 are dead helpers no code calls (CASUB writeqTsCatraceL22, HCQREAD writeqTsHcworkL37, readqTsHcworkL57); the rest are the never-existing HCNONE queue's success path, defensive no-task checks, impossible guards.
  • Equivalent (35): PIC-width padding, dead stores, initial values overwritten before use, <= / < on zero.
  • Harness gap (0).
  • Verdicts are judgements from reading the port, COBOL and harness; equivalent / unreachable are not hand-verified beyond that.

Tripwire, before to after

Before: assert "case_gap" not in verdicts and "harness_gap" not in verdicts; assert crucible and not any(_mutated_port_is_current(...)) (all 17 stale); assert verdicts.count("unreachable") == len(verdicts).
After: the first assertion is unchanged; stale-ness is assert crucible and stale == {"PCCONF", "PCWIZ", "PCMENU", "PCDETL"}; assert len(flagged) == 3 and verdicts.count("unreachable") == 3. New test_the_re_run_crucible_ports_keep_their_measured_floor: exact killed / survived per port (table above), 0 untriaged, 0 harness gaps, 205 / 86 in total, record current. Nothing loosened.

How the files were produced

mutation_scores.json: by mutation_scores.py build --runs <the 13 ports' run dirs> --triage <triage> --commit d69a63419 --keep-others. build rewrote every port from the runs given, so I added a minimal --keep-others flag (keeps the existing entries of ports the runs do not cover: the 4 PC* and the 3 equivalence-case ports). No hand-merge. Then mutation_scores.py table and evidence.py mutation for the doc table and the 13 evidence records / pages. Generator, ports, harness, det/, pyproject untouched.

Tests

test_proof_reach.py, test_mutation_scores.py, test_evidence.py: 53 passed. Full pr_gates.py earlier: 5/7, golden and suite failing only on the 11 test_security_auditor failures (pandas / xgboost missing from the shared venv); CI has them.

🤖 Generated with Claude Code

#4425 regenerated the crucible ports' facades, so their recorded mutation
results judged old code. Re-run mutation_crucible.py (seed 0, 24 mutants per
port, cics-crucible v0.2.0) for CALINK, CASUB, CAXA, CAXB, GTSTART, GTWORK,
GTSHOW, GTTERM, HCMAIN, HCSUB, HCQREAD, HXATTR, HXEXT: 201 killed, 90
survived, every survivor triaged (34 case gap, 4 harness gap, 35 equivalent,
17 unreachable). The four PC* ports wait for #4427.

The 4 harness gaps: mutation_crucible.py runs the java-ported side only, so
facade-body mutants are never run; the java-facade side kills all four.

test_proof_reach: the stale-ness assertion now covers only the PC* ports;
re-run ports get exact flagged-survivor counts, the four harness gaps pinned
by id, and an exact killed / survived floor per port.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

A facade-body mutant is never run by the java-ported side, so four survived
for that reason. Prove on both sides; re-run CASUB, CAXB, GTSTART, GTWORK
(seed 0, 24): 205 killed / 86 survived over the 13 ports, 0 harness gaps.
mutation_scores.py build gets --keep-others so the file is written by the
tool. test_proof_reach: original harness_gap assertion restored, floor updated.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant