Skip to content

det/CICS: ZECS001 GET scenarios, V-record lengths, SET ADDRESS alias undone per task (Part of #4767) - #7255

Merged
squid-shepherd[bot] merged 8 commits into
mainfrom
churn/4767-20261031T0416Z
Oct 31, 2026
Merged

squid-shepherd[bot] merged 8 commits into
mainfrom
churn/4767-20261031T0416Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4767 (det/CICS EXEC CICS WEB family; part of #4270, burned estate zECS).

What changed

ZECS001 (cache GET/POST/PUT/DELETE over VSAM) now proves on 72 scenarios, 117/119 paragraphs, 194/208 branches (was 66 scenarios, 107/119, 175/208). ZECS000, ZECS003 and ECS001 stay PROVED.

  • V-record lengths (Siblings of #6072: code gaps holding the ladder tail (zECS ZECS001, GenApp lgsetup): harness, det runtime, oracle #6839 row D): the C stub keeps a RECORDFORMAT(V) record's own length (<file>.len), the Java runtime mirrors it (CicsTask.RECORD_LENGTHS, DetCics.Store.withLengths/cut), the harness states "lengths": "lines" datasets.
  • Plan was wrong in one place: the six new GET scenarios first differed on the second successful GET (Java 204, COBOL 200). Cause: the generated Spring service is a singleton, and SET ADDRESS OF CACHE-MESSAGE TO ADDRESS OF ZF-DATA left CACHE-MESSAGE aliased onto ZF-RECORD across tasks; the next task's initialState() copied the CACHE-MESSAGE image (spaces) over ZF-RECORD, wiping its key suffix, so READ gave NOTFND. Fix: Storage.alias/unalias; initialState() un-aliases first, emitted only for programs that use SET ADDRESS (no other port's text moves).
  • One scenario (get-segmented, send > 32000 bytes) is dropped: X38 refuses it.

Design decision

Un-alias at task start rather than make the image copy alias-aware: a task's addresses are its own, so a new task must start from the storage's own bytes.

Over-5-files reason

File-cap exception: atomic: stub, Java runtime and harness must change together (the case, ledger and test files are data/derived).

Class / Sibling gaps

Class: state a task leaves in a singleton generated service that the COBOL run unit would not keep (SET ADDRESS aliases; also lengthsIn registry maps held by a Store). Members fixed here: SET ADDRESS OF item / record / pointer. Siblings still open: a segmented GET whose send exceeds 32000 bytes (X38, refused); row J 704:false (family U, owner ruling C11); ZECS002 LINK remainder (#5859, #7011); WEB commands have no crucible hand-trace backing (CLOSE/CONVERSE/OPEN/PARSE).

Remaining slices

Evidence

det_port.py run zecs-zecs001: PROVED, 1072/1072 translated. det coverage ledger refreshed (derived_check.py current). Register X37 already carries the 2026-10-28 X'00'-MEDIATYPE ruling. Translator extras installed (det tests ran). New test: test_a_set_address_alias_does_not_outlive_its_task.

Cross-repo: none.

Checklist: partial [c:e120cf84] -- ZECS001 still short of L3/L4; row J (704:false, owner ruling C11), ZECS002 LINK (#5859/#7011), segmented-GET send >32000 (X38) remain

Lessons for agents

  • A generated service is a singleton: anything a task sets on a Storage (SET ADDRESS alias) survives into the next task unless initialState() undoes it. No earlier case reached a successful GET, so it never showed.
  • Duplicate a scenario under a new name to expose cross-task state leaks.
  • The harness lengthsIn must reuse one map object: a DetCics.Store holds it.

🤖 Generated with Claude Code

squid-protocol and others added 7 commits October 31, 2026 00:50
… per task; ZECS001 GET scenarios (Part of #4767)

The stub and Java runtime keep a V record's own length (#6839 row D). A generated service is a
singleton: SET ADDRESS OF CACHE-MESSAGE onto ZF-DATA persisted into the next task, and
initialState() then copied the CACHE-MESSAGE image over ZF-RECORD (its key suffix), so a second
successful GET read NOTFND. Storage.alias/unalias undo it; emitted only for programs using SET ADDRESS.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…94/208 branches (Part of #4767)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…efixes, test_zuidstck_model_5945) (Part of #4767)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…pers are plumbing (Part of #4767)

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 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 31, 2026 05:26
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 05:27
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #7255 @ 1f5c358: 1 failed check(s)

== db2 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41172584809/job/124457238342
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --db2-only --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
log tail:
(log unavailable: gh: HTTP 404)

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 31, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 06:21
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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