Skip to content

equivalence: ZECS000 expired-record scenarios, stub resolves ZC@ID@FILE (Part of #5089) - #5983

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5089-20261022T0809Z
Oct 22, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5089-20261022T0809Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

What

[c:e64f078b] ZECS000 / ZECS003 dynamic ZC##FILE / ZC##KEY file names (Part of #5089). The plan said case-only; it was not: a harness fix was needed.

  • Harness (tests/tools/equivalence_cics.py): stub_files now resolves install symbols in the CICS file name. The CSD name ZC@ID@FILE was written to the stub's files.cfg literally, so every READ of ZC01FILE was FILENOTFOUND on both legs and the two compared equal (det-port: ZECS000 run-time ZC##FILE / ZC##KEY names bind; resume scenarios (Part of #5089) #5972's "names bind" covered engine lineage only).
  • Case (zecs-zecs000): TRUNC(BIN) declared; reclen 32700; new urimaps entry; three scenarios on a new seed zcfile-expired.bin (peer 201 -> REWRITE + SYNCPOINT, peer 404 -> per-segment DELETE, single-segment record).
  • Test: test_a_file_name_written_with_an_install_symbol_is_the_resolved_name_the_stub_serves.
  • Ledger: det_sweep_coverage/zecs-zecs000.json (11/38 -> 30/38 paragraphs, 10/46 -> 35/46 branches, 5 -> 8 scenarios), zecs-zecs003.json (harness fingerprint only).

Assumption needing the owner

TRUNC(BIN) in the case. ZF-LENGTH is S9(4) COMP and the program does MOVE LENGTH OF ZF-RECORD (32700) to it: under TRUNC(STD) that stores 2700 and every full-size record is LENGERR, so the program only works as shipped under BIN. ASMZECS.jcl (DFHYITVL) states no TRUNC option, so this is recorded as the case's compiler_options (the evidence report shows it as "assumed: owner decision").

Class table

Class Status
CSD file name with install symbol, stub files.cfg fixed (all cases using it)
ZECS000 expired-record DEPLICATE (201 / non-201 / no doctemplate) proven
ZECS003 re-proved, unchanged scenarios

Gates

pr_gates --fast 7/7, --ratchets 9/9, audit_check clear, det_port check (zecs000 CHANGED 2 lines -> re-proved PROVED; zecs003 unchanged), new test + evidence tests pass. No engine change, golden masters not expected to move.

Rescue fix: committed ports compile (red after merging main)

The red check was not this PR's change. #5982 committed the first det CICS equivalence port (carddemo-copaua0c). The facade check port_surface.py equivalence --check compared it with the generator's text and reported its two handleTransaction overloads as different: they lack the generator's Javadoc, its log.info line and one import. Main had no Ports Compile run after #5982, so every PR merged against main inherited this failure.

Resurfacing the port is wrong. I tried it and the Java side failed to build, because the det port declares no log field. On top of that, the det translator rebuilds its facades on purpose (det/program.py facades(): the COMMAREA-bytes and codec answers). port_surface.py exists to bring a model's leftover facades up to the generator's (#4343). A det port has no model leftovers, and det_port.py check already re-proves it when the translation moves.

  • tests/tools/port_surface.py: equivalence now skips a port whose provenance says translator: det, and says so in its output.
  • tests/cics_crucible/test_port_surface.py: test_a_det_port_is_left_to_the_translator.

Hand-written files in this PR: 5 (equivalence_cics.py, its test, zecs-zecs000/case.json, port_surface.py, its test).

Cross-repo

none

Lessons for agents

  • port_surface.py is for model ports; a det port (translator: det) keeps the translator's facades. Resurfacing one pulls in log.info lines it has no logger for.
  • A PROVED with both legs hitting FILENOTFOUND is equal by accident: read events.txt resp and the coverage numbers, not only the verdict.
  • MOVE LENGTH OF <32700 record> TO <S9(4) COMP> is 2700 under TRUNC(STD): READ ... LENGTH then gives LENGERR on a full-size record.
  • A seed .bin is line-sequential text (one record per line, harness pads to reclen): padding the file yourself makes blank extra records.
  • WEB-PATH built with STRING ... DELIMITED BY '*' keeps a double slash when the key starts with /.

Checklist: partial [c:e64f078b] -- ZECS000 file-name binding and the expired-record DEPLICATE paths are proven; ZECS003's dynamic-name paths were already bound but its seeds stay empty (19/21 paragraphs), and the TRUNC(BIN) assumption awaits the owner.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 22, 2026 04:36
…solved ZC01FILE name (Part of #5089)

The stub's files.cfg kept the literal CSD name ZC@ID@FILE, so every READ of ZC01FILE was FILENOTFOUND on both legs and the
two compared equal (11/38 paragraphs). stub_files now resolves install symbols in the file name. The case declares
TRUNC(BIN) (ZF-LENGTH is S9(4) COMP, MOVE 32700 stores 2700 under STD: every full record LENGERR) and gains three
expired-record scenarios: peer 201 (REWRITE + SYNCPOINT), peer 404 (per-segment DELETE) and a single-segment record.
Coverage 11/38 -> 30/38 paragraphs, 10/46 -> 35/46 branches.

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 22, 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 22, 2026 08:44
@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 08:45
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5983 @ 653cf19: 1 failed check(s)

== committed ports compile (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39750069289/job/119728121318
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ports
errors:
fail-on-cache-miss: false
##[error]Process completed with exit code 1.
grep -E '^(ok|FAIL|all |[0-9]+ of| - )' "$RUNNER_TEMP/ports_compile.txt" 2>/dev/null || echo "(no output)"
log tail:
##[error]Process completed with exit code 1.
##[group]Run {
{
echo "## Committed ports vs the generator at HEAD"
echo '' grep -E '^(ok|FAIL|all |[0-9]+ of| - )' "$RUNNER_TEMP/ports_compile.txt" 2>/dev/null || echo "(no output)" echo ''
} >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
PYTHONUTF8: 1
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
##[endgroup]
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/d2d3ec43-fce2-4cae-97d9-d53ee6086bb0' 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/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-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 22, 2026
@squid-protocol
squid-protocol merged commit bc788fb into main Oct 22, 2026
70 of 71 checks passed
@squid-protocol
squid-protocol deleted the churn/5089-20261022T0809Z branch October 22, 2026 09:06
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