Repository navigation
Test-strengthening loop: batch cases (#4049) - #4077
Merged
Merged
Conversation
…sting one and its layout (#4049) The model names an existing record of an input dataset and the DISPLAY fields to change; the record is encoded from the dataset's layout, found from the program (SELECT ... ASSIGN TO, READ ... INTO, the record's 01 in a copybook or the program). Each round targets the surviving mutants and re-judges them; a record that makes the step abend where the original data does not is rejected (one shared run: it would hide the rest), a value with more decimals than its PICTURE is refused rather than rounded, a duplicate key in a keyed file is refused. The harness takes an absolute input path for the candidate's data. POSTTRAN 94 -> 95/96 branches, 2 of 7 survivors killed; INTCALC 82 -> 85/86; TRNRPT unchanged. The survivors left are mostly equivalent, some need a fault plan (non-numeric 9x status display), two are open. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
Comment on lines
+554
to
+556
| "Each is a small change to the program's Java port that still gives the same output on today's data. A " | ||
| "record that makes the original and the changed code behave differently exposes it (a boundary value, an " | ||
| "equal date, a digit 9, a record that takes another path).", |
Comment on lines
+568
to
+573
| 'Each proposal is one new record: {"name": "kebab-case-name", "dataset": DD, "based_on": the number ' | ||
| 'of an existing record of that dataset to copy, "set": {FIELD: new value, ...}, "targets": [mutant ids ' | ||
| 'or branches], "why": "one sentence"}. Change only DISPLAY fields; in a keyed dataset give the record a ' | ||
| "key no other record has. Every record goes into the same run: a record that makes the program ABEND ends " | ||
| "the run for all the others and is rejected -- aim at paths the run continues through. At most 8 " | ||
| "proposals, in one JSON array in a ```json block, nothing else.", |
Contributor
Closed
5 of 8 tasks
Closed
10 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, adding batch cases to the loop from #4071.
A batch input is a fixed-width record, and the model never writes one. It names an existing record of an input dataset (
based_on) and the DISPLAY fields to change (set). The record is encoded from the dataset's layout, which the tool finds from the program itself:SELECT ... ASSIGN TOgives the file,READ ... INTOgives the record, and the record's01is in a copybook or the program. It found layouts for all 13 input datasets of the three batch cases.Each round targets the surviving mutants (the boundaries a batch proof misses) and judges them again afterwards.
Guards, all with the reason recorded:
To support this, the harness accepts an absolute input path for a candidate's data.
Results (claude-sonnet-5-5, 2 rounds each)
Every strengthened case is proven, fault runs included. The survivors left are mostly equivalent:
Some sit in the status display of non-numeric 9x file statuses, which only a fault plan reaches (the loop's next kind of proposal). Two are open: TRNRPT's account-total add/subtract and its line counter.
The strengthened data is not committed. Each run leaves a
candidate_case.jsonand its input files for a person to review.Tests:
test_strengthen_loop.pyhas 8 tests, including record building, refusals, and over-precise values.audit_checkis clear.🤖 Generated with Claude Code
https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ