Repository navigation
strengthen.input_layout resolves an @case/ program source (Part of #8885) - #9092
Merged
Merged
Conversation
) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
3 tasks done
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 #8885 (Part of #8878). Slice 2b:
strengthen.input_layoutresolves an@case/program source.What changed
input_layoutreadcorpus / case["program_source"]. A case that carries its own program (program_source: "@case/DFSORTST.cbl", a JCL SORT step lowered to COBOL,common.program_file) has no such corpus file, so the lookup raised FileNotFoundError andsurvivor_attack trycould not aim a dataset input at it. It now reads the source throughcommon.program_fileand passes the absolute@case/path tolayout_fieldsas the first candidate (corpus / <absolute>is that path).tests/tools/strengthen.py: the fix (5 lines).tests/tools/test_survivor_attack.py: a case with an@case/program gets its READ ... INTO layout; a dataset with no SELECT gives None.Not done: the creastmt a73c67716b attack
equivalence_env.py --check: "mainframe corpora" fails), so no oracle run was possible.DFSORTST.cblhas noREAD ... INTO(it usesSORT ... USING I1-FILE), soinput_layoutreturns None for SORTIN even after this fix. Aiming at it needs SORTIN to nameCVTRA05Y/TRAN-RECORDincase.json, which touches the proven case; left for its own slice.Facts checked:
pytest tests/tools/test_survivor_attack.py86 passed, 1 skipped;audit_check.pywas queued behind the heavy slot at the time of writing (see the PR comments for the result).Checklist: partial [c:69f0e953] -- this slice is tooling only; no job or step proof changed.
Class / Sibling gaps
Class: strengthen readers that resolve the case's program or dataset input through the corpus instead of the case directory. Members:
input_layoutprogram read (fixed here);records/batch_inputsalready usecommon._input_path(handled). Sibling gaps: a lowered SORT program has no READ INTO, so its SORTIN layout still needs acopybookon the dataset (needs case.json change, not here); the creastmt attack itself (needs corpora and the owner's EQUALS ruling).Remaining slices
copybookfor carddemo-sort-creastmt (re-prove the case), then the a73c67716b attack on a box with the corpora.Doc-refs fixes: none.
🤖 Generated with Claude Code