Repository navigation
The test-strengthening loop for call and CICS cases (#4049) - #4071
Merged
Merged
Conversation
…survivors -> new inputs tests/tools/strengthen.py asks a model for new INPUTS only (CALL arguments, CICS scenarios) aimed at the case's uncovered COBOL branches, with the surviving mutants as hints. Each proposal is proven alone: the COBOL decides the expected result (an IBM service model may refuse it, and the reason is kept), the port is equal on it or not -- a port that differs is reported and kept. Useful proposals go to candidate_case.json for a person to review; the survivors are re-judged against the case plus the new inputs the port is equal on. The harness and the mutation tool take --case-file for that. First runs: CSUTLDTC and COMEN01C gain no branch, for a good reason -- the model showed, and this was verified, that their gaps are unreachable (CardDemo's fixed menu table; CEEDAYS behaviour IBM does not document; a fixed 10-byte string). On CSUTLDTC it found three blank-padded dates where the port and our CEEDAYS model disagree (2507 vs 2520): open, a z/OS run settles it (#4050). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
Comment on lines
+139
to
+142
| "Propose at most 8 inputs, each aimed at one or more of the branches above. If you conclude that a branch " | ||
| "cannot be reached through this program (for example because the program always passes a fixed length), " | ||
| 'say so instead of proposing an input for it: {"name": "unreachable", "targets": [...], "why": ' | ||
| '"..."}. Answer with one JSON array in a ```json block and nothing else.', |
Comment on lines
+386
to
+387
| lines += ["", "## Still unreached", "", "Each is unreachable through the program, behind an oracle that " | ||
| "refuses (only a z/OS run settles it, #4050), or a case for another round.", "", |
Contributor
squid-protocol
added a commit
that referenced
this pull request
Oct 1, 2026
…tle 2507 vs 2520 (#4049) (#4076) The test-strengthening loop (#4071) found three blank-padded dates ('2022-07-1 ', '2022-07 ', all blanks) where the model-written CSUTLDTC port answers 2507 (insufficient data: blanks ignored, the date shorter than the picture) and this model 2520 (a blank in a numeric position). IBM's documentation does not say which, so -- as for a month outside 1-12 -- the model now refuses: "not modelled", exit 98, and no proof rests on a guess. A z/OS run settles it (#4050). No committed case uses such a date; CSUTLDTC's 11 calls are proven unchanged. Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ Co-authored-by: Claude Opus 5.5 <[email protected]>
Closed
5 of 8 tasks
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 #4049 (call and CICS cases; batch cases next).
tests/tools/strengthen.py run <case> --work DIR --mutation MDIRgives a model the case's uncovered COBOL branches, with the source around each one, and the surviving mutants as hints. It asks for new inputs only (CALL arguments, CICS scenarios), never an expected result.Each proposal is proven on its own:
The useful proposals go into
candidate_case.jsonfor a person to review. The survivors are then judged again against the case plus the new inputs the port is equal on. To support this, the harness andmutation.pygain--case-file.First runs (claude-sonnet-5-5, 2 rounds each)
CSUTLDTC: 4/10 branches, unchanged. The model concluded, correctly, that none of the 6 missing outcomes can be reached:
It also found three blank-padded dates where the model-written port and our CEEDAYS model disagree (2507 vs 2520). Either the port or the model is wrong, and only a z/OS run settles it (#4050). Those inputs are not in any committed case; there is a decision pending.
COMEN01C: 28/33 branches, unchanged. The model concluded that the 5 gaps cannot be reached through CardDemo's fixed menu table. I verified this in
COMEN02Y: all 11 options have user typeU, none is aDUMMYprogram, and the count is a constant 11.So on these two cases the survivors in uncovered branches sit in code that no input reaches, and the raw mutation scores (57%, 69%) understate the proofs. The batch cases' survivors are boundaries that input records can reach, which is the next kind the loop will handle.
Tests:
tests/cobol_mainframe/test_strengthen_loop.pycovers parsing the answer, refusing malformed proposals, keeping inputs but never expected results, the prompt's gaps, inputs and oracle limits, and naming failing inputs.audit_checkis clear. A section is added todocs/language_status/mutation_testing.md.🤖 Generated with Claude Code
https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ