Skip to content

carddemo-intcalc-generated proves: generated indexed inputs load in IBM's key order (Fixes #4876) - #4878

Merged
squid-protocol merged 2 commits into
mainfrom
test/4876-intcalc-ebcdic-load-order
Oct 11, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
test/4876-intcalc-ebcdic-load-order

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4876.

carddemo-intcalc-generated differed on 11 of 37 TRANSACT records (TRAN-CARD-NUM): XREFFILE's alternate key (account) has duplicates, CBACT04C takes the first, and the oracle returns duplicates in load order (ASCII-sorted input: digits first) while the det runtime orders the primary key as VSAM does (cp037: letters first). IBM is the reference, so both sides now give IBM's pick: equivalence_inputs.generate_dataset writes an indexed input in cp037 order of its primary key (cobc 3.1.2 has no way to sort a BDB key in EBCDIC: measured, no flag or PROGRAM COLLATING SEQUENCE changes it).

  • Proof: det_port.py run and proof_sweep.py --det-only --cases over all five @generate cases: 5/5 proven (intcalc-generated TRANSACT 37/37, ACCTFILE 30/30, SYSOUT 58/58). Baseline entry removed; coverage ledger refreshed (3 entries' harness fingerprint; intcalc/posttran have no scenario coverage line, as before).
  • Not settled on z/OS (Captured mainframe outputs as the equivalence oracle (beside GnuCOBOL) #4050): that IBM's pointer order for a prime-key-loaded base cluster is prime-key order. A primary-key browse of mixed letter/digit keys is still ASCII in the oracle (D1; no case does it).
  • Gates: pr_gates --fast 5/5, --ratchets 7/7, none skipped. No change to gitgalaxy/standards/cics or det/cics.py.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX

…BM's key order (Fixes #4876)

GnuCOBOL's BDB keeps an alternate key's duplicates in load order and orders the primary key by bytes whatever the
collating sequence; VSAM returns them in prime-key (EBCDIC) order, as the det runtime does. The harness now writes a
generated indexed input in cp037 order of its primary key, so both sides pick IBM's first duplicate. Re-proved the five
@generate cases; drops the baseline entry; D1 documents it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
@squid-protocol squid-protocol added bug Unintended behavior or logic failure in the engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: medium testing Unit, integration, and E2E pipeline verification labels Oct 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 11, 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 11, 2026 04:06
@squid-protocol
squid-protocol enabled auto-merge (squash) October 11, 2026 04:06
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #4878 @ 9ed50ed: 1 failed check(s)

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38109797112/job/114382806533
repro: python -m pytest -q tests/test_source_reads.py::test_no_source_read_loses_a_byte
failing tests: tests/test_source_reads.py::test_no_source_read_loses_a_byte
errors:
fail-on-cache-miss: false
E AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an estate file:
tests/test_source_reads.py:137: AssertionError
FAILED tests/test_source_reads.py::test_no_source_read_loses_a_byte - AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an e
##[error]Process completed with exit code 1.
log tail:
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
##[endgroup]
##[group]Run {
{
echo "## CICS spec status page (advisory)"
if python tests/tools/cics_spec_status.py render --check 2>&1; then :; else
echo "The evidence-refresh bot re-renders docs/language_status/cics_spec_status.md on main after merge; do not commit it here."
fi
} >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
EVIDENCE_REPORT_ADVISORY: 1
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
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/5fe4ea37-a60e-4594-9d3c-aea80cb38c6b' 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-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 11, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 11, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (7cf9290) 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-protocol squid-protocol 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 11, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 11, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit dd6602c into main Oct 11, 2026
47 checks passed
@squid-protocol squid-protocol removed the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Oct 11, 2026
@squid-protocol
squid-protocol deleted the test/4876-intcalc-ebcdic-load-order branch October 11, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unintended behavior or logic failure in the engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: medium shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md testing Unit, integration, and E2E pipeline verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

carddemo-intcalc-generated: duplicate alternate-key pick differs (ASCII load order vs IBM's EBCDIC prime-key order)

1 participant