Skip to content

HLASM slice 5: ZECSNC's 7 scenarios through the POPS interpreter, register X74 (Part of #5859) - #6938

Merged
squid-shepherd[bot] merged 5 commits into
mainfrom
churn/5859-20261028T1939Z
Oct 28, 2026
Merged

squid-shepherd[bot] merged 5 commits into
mainfrom
churn/5859-20261028T1939Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Slice 5 of #5859: ZECSNC's 7 zecs-zecsnc scenarios now run through the independent POPS interpreter (tests/tools/hlasm_interp.py) and are compared event by event with the GnuCOBOL oracle run of the lowering. Register entry X74 records assumption 1 of the design doc. Result: all 7 agree (events, payload text, counters created; ABEND ZNCD for EIBCALEN 1, 4, 9; WRITE OPERATOR ROUTECODES X'0111' / NUMROUTES 2 pinned from the source, since the stub logs only the length).

Checklist: partial [c:e14a97c1] -- ZECSNC cross-checked by the interpreter; a per-instruction differential under cobc and a general assembler path remain frontier.

Cross-repo / stack

Stacked on #6934 (slice 4): this branch carries its commits and touches the same three files (hlasm_interp.py, test_hlasm_interp_5859.py, hlasm_cics_design.md). #6934 merges first; after it lands this diff shrinks to slice 5 only. No companion PR in another repo; nothing re-runs after.

Class / Sibling gaps

Class: every scenario of the ZECSNC case (EIBCALEN 0, 8, 1, 4, 9; terminal-new, bad-input, duplicate-counter), all compared, none sampled. Interpreter bugs the cross-check found, both fixed: slice 4's FORMATTIME wrote into a copy of storage, and the SS length parser ignored D(L) (MVC Z_EXP+2(2),... copied 4 bytes, START carried _Z01). Sibling gaps: terminal-bad-input's case.json why names ER_0010 but the oracle takes ER_0020; the stub's counters.cfg shows doublewords byte-swapped (COMP-5); equivalence.py run zecs-zecsnc crashes on the Java side (StopIteration, equivalence_cics.py:4300, no ZECSNC.java under the work dir), so the oracle logs were taken from the COBOL side only; lowering stores =C'..' as ASCII (known, assumption 3).

Evidence

  • test_hlasm_interp_5859.py: 72 passed; with test_source_reads.py, test_generated_docs.py: 95 passed.
  • pr_gates --fast: 9/9. --ratchets: 7 pass, 2 fail for environment reasons, not this diff (no engine change): the sibling estate-crucible checkout is off its v0.5.0 pin, which fails estate and fact-crosscheck.
  • No golden bless (no engine change).

Lessons for agents

  • D(L) in an SS first operand (Z_EXP+2(2)) is a length, not a base register; a parser looking only for (L,B) silently uses the symbol's length attribute.
  • A local equivalence.py run of an assembler-lowered case can crash on the Java side; the COBOL oracle logs under <work>/cobol/scenarios/<name>/out/ are enough to pin events.

🤖 Generated with Claude Code

squid-protocol and others added 4 commits October 28, 2026 15:33
… (Part of #5859)

tests/tools/hlasm_interp.py interprets the lowering's subset from the Principles of
Operation alone (EBCDIC storage, 32-bit registers, real condition code, EXEC CICS as
events). The test compares CH branch conditions of the lowering with it, pins the
instruction semantics the Base64 decoder uses, and checks ZECS002's end COMMAREA and
event sequence for all 11 scenarios against the GnuCOBOL run of the lowering. One
difference surfaced: CA_RC is ASCII text in the lowering, EBCDIC on z/OS.

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 28, 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 28, 2026 20:03
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 20:04
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 28, 2026 20:09
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6938 @ 5010e77: 1 failed check(s)

== shepherd (label event) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40759021282/job/123065588438
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
##[error]Process completed with exit code 1.
log tail:
Cache restored successfully
Cache restored from key: flake-history-40692939546
##[warning]Input 'app-id' has been deprecated with message: Use 'client-id' instead.
##[group]Run actions/create-github-app-token@bcd2ba4
with:
app-id: ***
private-key: ***
skip-token-revoke: false
github-api-url: https://api.github.com
##[endgroup]
Inputs 'owner' and 'repositories' are not set. Creating token for this repository (squid-protocol/gitgalaxy).
##[group]Run python3 tests/tools/shepherd_gh.py event --event-path "$GITHUB_EVENT_PATH" --flake-cache flake-cache/flake_history.json
python3 tests/tools/shepherd_gh.py event --event-path "$GITHUB_EVENT_PATH" --flake-cache flake-cache/flake_history.json
shell: /usr/bin/bash -e {0}
env:
GH_TOKEN: ***
SHEPHERD_TRUSTED_BOTS: squid-shepherd[bot],squid-protocol
##[endgroup]
#6938 approval marker for 5010e77: ok
#6938 ci-gate pending: waiting on: Pre-gate (Vault Sentinel, X-Ray, Supply Chain), detmut, durations key, evidence report level deltas (advisory), groun...: FAILED: gh: Resource not accessible by integration (HTTP 403)
##[error]Process completed with exit code 1.
##[warning]Input 'app-id' has been deprecated with message: Use 'client-id' instead.
Post job cleanup.
Token revoked
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/52853061-6588-4586-b0fc-ade69f182ba4' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@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 28, 2026
… squash; slice 5 re-applied on it)

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

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (26bb837) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 28, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 20:19
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6938 @ 26bb837: 1 failed check(s)

== shepherd (label event) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40762549408/job/123078013264
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
##[error]Process completed with exit code 1.
log tail:
Cache restored successfully
Cache restored from key: flake-history-40692939546
##[warning]Input 'app-id' has been deprecated with message: Use 'client-id' instead.
##[group]Run actions/create-github-app-token@bcd2ba4
with:
app-id: ***
private-key: ***
skip-token-revoke: false
github-api-url: https://api.github.com
##[endgroup]
Inputs 'owner' and 'repositories' are not set. Creating token for this repository (squid-protocol/gitgalaxy).
##[group]Run python3 tests/tools/shepherd_gh.py event --event-path "$GITHUB_EVENT_PATH" --flake-cache flake-cache/flake_history.json
python3 tests/tools/shepherd_gh.py event --event-path "$GITHUB_EVENT_PATH" --flake-cache flake-cache/flake_history.json
shell: /usr/bin/bash -e {0}
env:
GH_TOKEN: ***
SHEPHERD_TRUSTED_BOTS: squid-shepherd[bot],squid-protocol
##[endgroup]
#6938 approval marker for 26bb837: ok
#6938 ci-gate pending: waiting on: Small audits, full-suite, full-suite part 1/2, full-suite part 2/2, ground-truth, ground-truth part 1/4, ground-truth...: FAILED: gh: Resource not accessible by integration (HTTP 403)
##[error]Process completed with exit code 1.
##[warning]Input 'app-id' has been deprecated with message: Use 'client-id' instead.
Post job cleanup.
Token revoked
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/8a0d30a8-fc1e-42e8-bccf-9de8001543c9' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 28, 2026
@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 28, 2026
@squid-shepherd
squid-shepherd Bot merged commit 47f7da1 into main Oct 28, 2026
37 of 51 checks passed
@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 28, 2026
@squid-shepherd
squid-shepherd Bot deleted the churn/5859-20261028T1939Z branch October 28, 2026 20:31
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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant