Skip to content

The test-strengthening loop for call and CICS cases (#4049) - #4071

Merged
squid-protocol merged 1 commit into
mainfrom
feat/strengthen-loop-4049
Oct 1, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
feat/strengthen-loop-4049

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4049 (call and CICS cases; batch cases next).

tests/tools/strengthen.py run <case> --work DIR --mutation MDIR gives 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 COBOL decides the result;
  • an IBM service model may refuse the proposal, and the reason is recorded;
  • the port is equal on it or not. A port that differs on a new input is a port gap: it is reported and the input is kept.

The useful proposals go into candidate_case.json for 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 and mutation.py gain --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:

  • five need CEEDAYS behaviour IBM does not document (eras, other pictures, month 13). Our model refuses those, and it refused the proposals that tried;
  • "insufficient data" cannot happen, because CSUTLDTC always passes 10-byte strings.

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 type U, none is a DUMMY program, 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.py covers 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_check is clear. A section is added to docs/language_status/mutation_testing.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ

…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
@squid-protocol
squid-protocol merged commit 290887b into main Oct 1, 2026
26 checks passed
@squid-protocol
squid-protocol deleted the feat/strengthen-loop-4049 branch October 1, 2026 09:59
Comment thread tests/tools/strengthen.py
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 thread tests/tools/strengthen.py
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.", "",
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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]>
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