Skip to content

Mutation scores for the proven ports: CardDemo + CICS crucible, every survivor triaged (#4047, #4024) - #4241

Merged
squid-protocol merged 6 commits into
mainfrom
feat/4047-mutation-scores
Oct 3, 2026
Merged

squid-protocol merged 6 commits into
mainfrom
feat/4047-mutation-scores

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #4047. Also covers #4024's ask: every one of the 17 CICS-crucible ports now has a per-operator mutation score, and every survivor is listed with its verdict. A sample of 24 per port; the full sets are still to run.

Method

  • CardDemo equivalence cases: tests/tools/mutation.py run in fast mode (validated 386/386 against --full), --jobs 4. CSUTLDTC ran all 217 mutants. COMEN01C and COACTVWC ran 150 each (seed 0). All ran on main 416fb6420.
  • Crucible ports (new tests/tools/mutation_crucible.py): the same mutants and seeded sample (mutation.all_mutants / sample), each proven by cics_crucible.py --sides java-ported --overlay <mutant> --program P against the hand-written expected event logs. Parallel --jobs. A project that does not compile counts as stillborn. 24 mutants per port, seed 0, cics-crucible v0.2.0.
  • Triage: Sonnet helpers each took one port's survivors with the port, the COBOL, the case and the harness, and returned a verdict per survivor as JSON. I spot-checked the equivalent and unreachable verdicts by hand. Confirmed: COMEN01C's header fields are rewritten by populateHeaderInfo before every SEND; COACTVWC's dispatchCdemoToProgramL349 has no caller; the CEEDAYS model never returns 0x09CD; the HXATTR/HCQREAD equivalents I sampled hold. One correction: helpers had marked survivors "unreachable" because the crucible injects no CICS condition. Those are reachable on real CICS, so I reclassified them as case gaps that need a fault plan.
  • Results: docs/language_status/mutation_scores.json holds, per port, the commit, the seed, per-operator killed / survived / stillborn counts, and each survivor's verdict with its reason. The generator is tests/tools/mutation_scores.py build|table. build also accepts an earlier results file as triage input, so a re-run keeps the verdicts it already has. The table in docs/language_status/mutation_testing.md is rendered from that file, and a test checks that the two agree.

Scores

Raw = caught / (caught + survived). The adjusted score leaves out equivalent and unreachable survivors only; case gaps and harness gaps stay in.

port harness mutants run / all raw score without equivalent + unreachable survivors: case gap / harness gap / equivalent / unreachable / untriaged
COACTVWC (carddemo-acctview) equivalence 150/329 87/129 (67%) 87/116 (75%) 29 / 0 / 12 / 1 / 0
CSUTLDTC (carddemo-dateutil) equivalence 217/217 135/201 (67%) 135/145 (93%) 10 / 0 / 12 / 44 / 0
COMEN01C (carddemo-menu) equivalence 150/359 72/136 (53%) 72/84 (86%) 12 / 0 / 36 / 16 / 0
CALINK (ca-link-lengths) crucible 24/165 19/22 (86%) 19/21 (90%) 2 / 0 / 1 / 0 / 0
CASUB (ca-link-lengths) crucible 24/43 12/24 (50%) 12/14 (86%) 2 / 0 / 6 / 4 / 0
CAXA (ca-xctl-versions) crucible 24/74 18/21 (86%) 18/20 (90%) 2 / 0 / 1 / 0 / 0
CAXB (ca-xctl-versions) crucible 24/153 15/24 (62%) 15/19 (79%) 4 / 0 / 2 / 3 / 0
GTSTART (gt-start-retrieve) crucible 24/87 14/22 (64%) 14/18 (78%) 4 / 0 / 4 / 0 / 0
GTWORK (gt-start-retrieve) crucible 24/87 17/21 (81%) 17/19 (89%) 2 / 0 / 1 / 1 / 0
GTSHOW (gt-terminal-coalesce) crucible 24/65 20/24 (83%) 20/21 (95%) 1 / 0 / 3 / 0 / 0
GTTERM (gt-terminal-coalesce) crucible 24/84 13/21 (62%) 13/19 (68%) 6 / 0 / 1 / 1 / 0
HCMAIN (hc-abend-link) crucible 24/196 12/24 (50%) 12/14 (86%) 2 / 0 / 4 / 6 / 0
HCSUB (hc-abend-link) crucible 24/83 13/24 (54%) 13/14 (93%) 1 / 0 / 5 / 5 / 0
HCQREAD (hc-perform-range) crucible 24/201 12/21 (57%) 12/12 (100%) 0 / 0 / 4 / 5 / 0
HXATTR (hx-attr-bytes) crucible 24/152 10/20 (50%) 10/10 (100%) 0 / 0 / 7 / 3 / 0
HXEXT (hx-extended-cursor) crucible 24/105 14/22 (64%) 14/19 (74%) 5 / 0 / 3 / 0 / 0
PCDETL (pc-aid-menu) crucible 24/60 14/24 (58%) 14/14 (100%) 0 / 0 / 9 / 1 / 0
PCMENU (pc-aid-menu) crucible 24/147 14/22 (64%) 14/15 (93%) 1 / 0 / 5 / 2 / 0
PCCONF (pc-wizard) crucible 24/247 14/23 (61%) 14/17 (82%) 3 / 0 / 6 / 0 / 0
PCWIZ (pc-wizard) crucible 24/177 11/21 (52%) 11/16 (69%) 5 / 0 / 3 / 2 / 0
all crucible 408 run 242/380 (64%) 242/282 (86%) 40 / 0 / 65 / 33 / 0
all equivalence 517 run 294/466 (63%) 294/345 (85%) 51 / 0 / 60 / 61 / 0
all estate 925 run 536/846 (63%) 536/627 (85%) 91 / 0 / 125 / 94 / 0
operator caught / judged without equivalent + unreachable
AOR 52/65 (80%) 52/57 (91%)
BDM 1/9 (11%) 1/2 (50%)
CON 80/167 (48%) 80/94 (85%)
COR 26/51 (51%) 26/37 (70%)
DEL 67/117 (57%) 67/93 (72%)
LIT 97/142 (68%) 97/106 (92%)
NEG 112/133 (84%) 112/116 (97%)
RET 8/17 (47%) 8/13 (62%)
ROR 93/145 (64%) 93/109 (85%)

Headline: estate raw 536/846 (63%); without equivalent and unreachable mutants, 536/627 (85%). CardDemo is 294/466 raw and 294/345 (85%) adjusted; the crucible is 242/380 raw and 242/282 (86%) adjusted. CSUTLDTC goes from 67% raw to 93% once its unreachable CEEDAYS branches are left out, which confirms the earlier reading.

Triage

Of 310 survivors: 91 case gaps, 0 harness gaps, 125 equivalent, 94 unreachable.

Case-gap candidates for #4049 (proposed inputs only; the COBOL decides the expected result)

  • COACTVWC: a blank or * account id; a commarea with a non-blank program part, LAST-MAP(SET) or names; EIBCALEN=0; PF3 from a caller other than the menu; an account with a group id, a blank SSN, or a balance of 1,000,000 or more.
  • COMEN01C: options 9 and 10; OPTIONI 1!; a fault plan on the XCTL.
  • CSUTLDTC: 2022-01-15, 2022-07-00, 0000-01-01, 0001-02-30, 2022-07-1X. These are valid-format inputs. So not all of CSUTLDTC's survivors are behind undocumented CEEDAYS behaviour.
  • Crucible: 15 survivors across the estate need a fault plan (a WRITEQ TS or XCTL that fails, a callee abend), and the crucible has no fault injection. There are also scenario gaps: an empty NAME (pc-wizard), a 6-character account with a non-digit (hx-extended-cursor), and a bare CA02 (ca-xctl-versions).

Cost

On a box at load 20-70, shared with other agents:

  • equivalence: 5-9 s of wall time per proof at --jobs 4 (CSUTLDTC 1,639 s for 201 proofs; COMEN01C 723 s for 136; COACTVWC 1,196 s for 129);
  • crucible: 5.6 s of wall time per mutant at --jobs 4 (2,283 s for 408); about 18 s per proof (median);
  • triage: 6 Sonnet helpers, about 70-130k tokens each, 2-6 minutes each.

Tooling

  • tests/tools/mutation_crucible.py: crucible-port mutants, parallel.
  • tests/tools/mutation_scores.py: the results file and the doc table.
  • tests/cobol_mainframe/test_mutation_scores.py: verdicts, scores, rendering, and the committed table matching the committed file.
  • A .gitignore exception for the results file.

mutation.py already had --jobs, so no change was needed there.

Gates

pr_gates.py: lint, audits, secrets, xray and gauntlet pass. The suite had 14,139 passed and 4 failed, all wall-clock tests under heavy load (test_cics_resources linear-time ×2, the zig ReDoS sweep, identifier_astral_fill). Re-run alone, 3 of the 4 pass; the 4th is 3.0 s against a 2.0 s limit at load ~50. This PR changes nothing under gitgalaxy/. The golden gate first failed on a stale LANGUAGE_CRUCIBLE_PATH in my environment; I re-ran it with pr_gates' own paths and it passes (346 s).

What's left

  • The batch cases (CBACT04C, CBTRN02C, CBTRN03C) were not re-run: the box's slots were taken. Their seed-1 raw scores from 2026-10-01 are in the doc.
  • The full mutant sets: COMEN01C (359), COACTVWC (329), and the crucible (2,126). Every run here is a seeded sample.
  • The 22 later CardDemo, CBSA and GenApp model ports, and the det ports (scope 3), have not been scored.
  • Running all of a proof's runs in one JVM (the 4th checkbox).
  • Model-written ports keep entry points no proof calls (37 mutation survivors, #4047) #4255.

🤖 Generated with Claude Code

https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8

squid-protocol and others added 4 commits October 3, 2026 14:34
…4024)

tests/tools/mutation_crucible.py proves mutation.py's mutants of the 17 CICS-crucible
ports with the crucible runner's java-ported side (parallel --jobs, seeded --sample;
a project that does not compile is stillborn). tests/tools/mutation_scores.py builds
the compact results file from run dirs plus a survivor triage file and renders the
table in docs/language_status/mutation_testing.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8
Comment thread tests/tools/mutation_scores.py Fixed
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

CardDemo CSUTLDTC (all 217), COMEN01C and COACTVWC (150 each, seed 0) and the
17 CICS-crucible ports (24 each, seed 0), on 416fb64. Raw 536/846 (63%);
without equivalent and unreachable mutants 536/627 (85%). No harness gap; 91
case gaps for #4049; 37 'unreachable' survivors are port entry points no proof
calls (#4255).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8
@squid-protocol
squid-protocol merged commit be6734e into main Oct 3, 2026
29 checks passed
@squid-protocol
squid-protocol deleted the feat/4047-mutation-scores branch October 3, 2026 19:47
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.

2 participants