Repository navigation
Mutation scores for the proven ports: CardDemo + CICS crucible, every survivor triaged (#4047, #4024) - #4241
Merged
Merged
Conversation
…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
…d) (#4047) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8
…d) (#4047) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8
Contributor
…it concatenation in a list) The rendered table is byte-identical. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
tests/tools/mutation.py runin 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 main416fb6420.tests/tools/mutation_crucible.py): the same mutants and seeded sample (mutation.all_mutants/sample), each proven bycics_crucible.py --sides java-ported --overlay <mutant> --program Pagainst 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.populateHeaderInfobefore every SEND; COACTVWC'sdispatchCdemoToProgramL349has 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.docs/language_status/mutation_scores.jsonholds, per port, the commit, the seed, per-operator killed / survived / stillborn counts, and each survivor's verdict with its reason. The generator istests/tools/mutation_scores.py build|table.buildalso accepts an earlier results file as triage input, so a re-run keeps the verdicts it already has. The table indocs/language_status/mutation_testing.mdis 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.
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.
executeX,handleLink,bridgeX,onAbendLnn, and generated TS helpers that the models kept besiderunTask. Filed as Model-written ports keep entry points no proof calls (37 mutation survivors, #4047) #4255.pad(x,26)on an X(25) field), a rounding mode on a value already at scale, and initial values that are overwritten.Case-gap candidates for #4049 (proposed inputs only; the COBOL decides the expected result)
*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.1!; a fault plan on the XCTL.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.CA02(ca-xctl-versions).Cost
On a box at load 20-70, shared with other agents:
--jobs 4(CSUTLDTC 1,639 s for 201 proofs; COMEN01C 723 s for 136; COACTVWC 1,196 s for 129);--jobs 4(2,283 s for 408); about 18 s per proof (median);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..gitignoreexception for the results file.mutation.pyalready 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_resourceslinear-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 undergitgalaxy/. The golden gate first failed on a staleLANGUAGE_CRUCIBLE_PATHin my environment; I re-ran it with pr_gates' own paths and it passes (346 s).What's left
🤖 Generated with Claude Code
https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8