Skip to content

cics-crucible: seed the cobol-stub's files from the case data (Part of #4443) - #6240

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4443-20261023T1235Z
Oct 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4443-20261023T1235Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Checklist: partial [c:8004bd43] -- cobol-stub fix and LENGERR read-short done; Java, port legs and stub REWRITE/UNLOCK events remain.

What changed

run_task wrote an empty files.cfg, so every stub file READ was FILENOTFOUND. seed_files now copies each DEFINE FILE seed (data/<FILE>.dat) to runs/<scenario>/files/<FILE> as fixed-length records and writes the cfg line (keylen from the expected READ events' RIDFLD). parse_csd exposes file names only when present.

  • hc-file-unlock/read-short (GenApp HCUNLK, READ INTO LENGTH -> LENGERR): cobol-stub fail -> pass.
  • unlock-rewrite, update-rewrite: FILENOTFOUND fail -> unsupported (stub UNLOCK / REWRITE event).
  • cobol-stub: 126/9/36 -> 127/6/38 (pass/fail/unsupported) of 171. Ledgers and the doc regenerated with --update-baseline.

Cross-repo

None needed: the crucible case (cics-crucible #45) is merged and pinned at v0.10.0 (#6230). Touches no file of #5898, #5900, #6234; merge of origin/main was a no-op.

Evidence

  • Mutation: forcing the stub's short read to NORMAL (ggcics_filecontrol.c 88-89, 290) turns read-short from pass to fail; reverted.
  • Gates: audit_check.py clear, pr_gates --fast 7/7, ruff format --check, tests/cics_crucible runner + new test 76 passed (plain pytest from /tmp).
  • Not run: the full suite, golden_master (tests/tools only, no parsing change).

Facts checked: pin v0.10.0 at 01e11fe; read-short passes on cobol-stub in the full run; the port step does not apply (no port of HCUNLK exists).

Lessons for agents

  • The stub's files.cfg format is NAME path reclen keyoff keylen, with records unseparated; the runner mounts the work dir at /work.
  • A full cics_crucible.py --update-baseline takes ~10+ minutes; use --cases X --sides cobol-stub for the inner loop.

🤖 Generated with Claude Code

Class / Sibling gaps

Copied from the worker's report by promoter-bot's precheck.

Sibling gaps (each needs the burned-estate program named)

  • Java, java-ported and java-facade legs of hc-file-unlock: they fail with "RECEIVE expected" or "no port". HCUNLK in GenApp needs them.
  • Stub REWRITE and UNLOCK events: unlock-rewrite and update-rewrite are unsupported until the stub models them. HCUNLK needs both.
  • READNEXT / READPREV on the stub: hc-file-read-set is unsupported on them. I haven't named a burned program for it.

….dat (Part of #4443)

run_task wrote an empty files.cfg for every stub task, so every file READ was
FILENOTFOUND. Each scenario now gets its DEFINE FILE records copied to
runs/<scenario>/files/<FILE> (fixed-length, keylen from the expected READ
RIDFLD) and a files.cfg line per file. hc-file-unlock/read-short (GenApp
HCUNLK, READ INTO LENGTH -> LENGERR) now passes on cobol-stub; unlock-rewrite
and update-rewrite move from FILENOTFOUND to the honest REWRITE / UNLOCK
event unsupported.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 23, 2026 13:04
@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 13:12
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 12ba4bf into main Oct 23, 2026
60 checks passed
@squid-protocol
squid-protocol deleted the churn/4443-20261023T1235Z branch October 23, 2026 13:32
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