Skip to content

strengthen.input_layout resolves an @case/ program source (Part of #8885) - #9092

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8885-20261123T0749Z
Nov 23, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8885-20261123T0749Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8885 (Part of #8878). Slice 2b: strengthen.input_layout resolves an @case/ program source.

What changed

input_layout read corpus / 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 and survivor_attack try could not aim a dataset input at it. It now reads the source through common.program_file and passes the absolute @case/ path to layout_fields as 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

  • The mainframe corpora are not on this box (equivalence_env.py --check: "mainframe corpora" fails), so no oracle run was possible.
  • The lowered DFSORTST.cbl has no READ ... INTO (it uses SORT ... USING I1-FILE), so input_layout returns None for SORTIN even after this fix. Aiming at it needs SORTIN to name CVTRA05Y / TRAN-RECORD in case.json, which touches the proven case; left for its own slice.
  • The EQUALS ruling for duplicate keys (what IBM does with equal keys without EQUALS) is an owner ruling; no ruling is on record in the repo, so nothing was assumed.

Facts checked: pytest tests/tools/test_survivor_attack.py 86 passed, 1 skipped; audit_check.py was 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_layout program read (fixed here); records / batch_inputs already use common._input_path (handled). Sibling gaps: a lowered SORT program has no READ INTO, so its SORTIN layout still needs a copybook on the dataset (needs case.json change, not here); the creastmt attack itself (needs corpora and the owner's EQUALS ruling).

Remaining slices

  1. case.json SORTIN copybook for 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

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 23, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 23, 2026 08:23
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 23, 2026 08:25
@squid-shepherd
squid-shepherd Bot merged commit b1d992d into main Nov 23, 2026
80 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8885-20261123T0749Z branch November 23, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant