Skip to content

det/CICS: windowed Storage, ADDRESS OF a subordinate or WORKING-STORAGE item (Part of #4771) - #5678

Merged
squid-protocol merged 2 commits into
mainfrom
churn/4771-20261019T1905Z
Oct 19, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/4771-20261019T1905Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Slice 1 of #4771 item [c:c25c63af]: a record can now be a window onto an item inside a larger storage.

  • Storage.base (window start); Field.at() / offset() = base + off, so every reader honours the window. The mechanical x.off -> x.at() in Cobol, Codec, Zoned, Hfp is needed because those read off directly; it must be atomic with the Field change.
  • DetCics.setAddressOfItem / setPointerToItem; CicsTask handles carry a block offset (addressOf(bytes, off), offsetAt).
  • gen.py address_item: ADDRESS OF a subordinate item or WORKING-STORAGE record translates (ZECS001 ZF-DATA, lines 1098 and 1195 no longer holes). A table element or another section is still refused by name. LINKAGE 01 records keep their emitted calls.
  • Register X47 and cobolrt_rules.json updated.

Checklist: partial [c:c25c63af] -- pointer arithmetic (REDEFINES numeric view), 4- vs 8-byte POINTER, CALL ZUIDSTCK (stays refused); ZECS001 pointer holes are not yet 0

Evidence

  • test_pointer_lane_4771.py + test_cobolrt_rules.py: 76 pass; new Java test runs every field kind through a window over a real CicsTask.
  • tests/cobol_mainframe + tests/cics_crucible: 6460 passed, 623 skipped (one failure, the rules catalogue, fixed here).
  • pr_gates --fast 6/6, --ratchets 8/8.
  • det_port.py check: all 138 ports list CHANGED, but only the shared runtime text (Cobol/Field/Storage/DetCics/CicsTask/Hfp); no generated file moved. Re-proved zecs-zecs000, carddemo-menu, cbsa-getscode PROVED. zecs-zecs003 and mortgage-mpmt are JAVA FAILED on existing run-time Hole guards (ZC##FILE name, C6 exponentiation), not this change. The other 133 ports were not re-proved here.
  • Over the 5 hand-written file limit by one (forge, DetCics, Field, Storage, gen.py, test): the window must land atomically across them.

Sibling gaps

  • Pointer arithmetic via a REDEFINES numeric view (ZECS001 1110/1111/1115/1134/1147/1198/1400/1487/1519/1850): needs the 4 vs 8 byte decision; slice 2.
  • CALL ZUIDSTCK (1244): source not in the corpus; refused by name.
  • ADDRESS OF a table element: not needed by a burned program; refused.

Remaining slices

Pointer arithmetic + the 4/8-byte POINTER decision (C9, owner); then recount ZECS001 holes.

Lessons for agents

  • A new DetCics method must be added to a rule's methods in docs/language_status/cobolrt_rules.json, or test_the_catalogue_matches_the_runtime fails.
  • Any edit to the shared cobolrt text makes det_port.py check list every port CHANGED; look at which files differ, not the count.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 19, 2026 15:34
…GE item (Part of #4771)

Storage.base is the start of a record in its bytes; Field.at() / offset() are base + off, so a record set onto an
item (ZECS001's ZF-DATA) reads and writes through the window. CicsTask handles carry a block offset. LINKAGE 01
records keep their emitted calls: no generated port changes.

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 19, 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 19, 2026 19:42
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 19:45
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit c055d2d into main Oct 19, 2026
90 checks passed
@squid-protocol
squid-protocol deleted the churn/4771-20261019T1905Z branch October 19, 2026 20:29
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