Skip to content

Oracle stub: task-storage blocks in the low 2 GiB; ZECS001 AA replicate scenario (Part of #6839) - #7008

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/6839-20261029T1317Z
Oct 29, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/6839-20261029T1317Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6839 (Row G, oracle). Draft; no labels.

What

ZECS001 4600-REPLICATE ended in SIGSEGV at WEB CONVERSE FROM(CACHE-MESSAGE) on the GnuCOBOL oracle. Cause: a GnuCOBOL x86-64 POINTER is 8 bytes (IBM's is 4). 4200 copies CACHE-ADDRESS through its PIC S9(08) COMP view (MOVE view TO view), which keeps only the low 4 bytes, and the stub's GETMAIN / WEB RECEIVE SET blocks were calloc heap above 4 GiB, so SET ADDRESS OF CACHE-MESSAGE aimed at an unmapped address.

Fix (instrument side, IBM stays the reference): blk_new in tests/equivalence/cics/ggcics.c now takes blocks from the low 2 GiB (mmap MAP_32BIT, Linux; calloc elsewhere), so the 4-byte copy loses nothing.

Evidence

  • Reproduced first: rc 11, PROGRAM.cbl:2113 attempt to reference unallocated memory. After the fix rc 0 through WEB-CLOSE / WEB-SEND / RETURN.
  • New scenario post-replicate-aa (AA data centre, one http_peers exchange): det_port.py run zecs-zecs001 PROVED, 561/561 translated. After merging main: 545 pin/ledger tests pass, paragraphs 83.2% (99/119), net branches 63.5% (132/208).
  • test_task_storage_survives_a_four_byte_pointer_copy fails on the parent of the fix and passes with it.
  • pr_gates --fast 9/9, --ratchets 9/9. No gitgalaxy/ parsing change, so no golden re-bless.
  • Hand-written files (5): ggcics.c, test_cics_runtimes.py, register/X47.md, zecs-zecs001/case.json, port_blockers.json (P117). Regenerated: the port_blockers page, the zecs-zecs001 det sweep ledger.

Class / Sibling gaps

Class: the oracle's 8-byte POINTER passed through a 4-byte numeric view (IBM 31-bit habit).

  • MOVE view TO view: fixed here (low-memory blocks). Non-Linux (calloc fallback) can still lose the high half.
  • ADD|SUBTRACT n on a view (segmented bodies of 32000+, row E): still not an address on the oracle; stays unproven, X47 restated.
  • COMPUTE / IF on a view: refused by the translator, unchanged.
  • A pointer in a COMMAREA: refused (C9), unchanged.
  • 5400-REPLICATE (the PUT/DELETE-side twin of 4600): same copy path, no scenario yet.

Remaining slices

  • A 5400-REPLICATE scenario; the row E ADD arm. Row H (LINK ZECS002) belongs to another worker.

Cross-repo

None; engine repo only. tests/equivalence/zecs-zecs001/case.json overlaps with worker 6839-20261029T1305Z: merged main and kept both scenario entries.

Lessons for agents

  • git stash push -- <committed file> stashes nothing, and a following git stash pop then pops another session's top entry into your worktree. Use git show <rev>:<path> > <path> and git checkout HEAD -- <path> to toggle a fix for a negative check.
  • A scenario tod must differ in its first 6 bytes from every other zecs-zecs001 scenario (test_the_zecs001_case_states_two_tods_that_differ_in_the_kept_prefix).

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 29, 2026 09:23
… ladder refresh (Part of #6839)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…tries (Part of #6839)

main moved the ZECS001 case, P117 and the sweep ledger; both scenario sets are kept and the ladder re-refreshed.

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 29, 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 29, 2026 13:45
@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