Skip to content

equivalence: generated-input cases for the CBACT02C / CBACT03C / CBCUS01C readers (Part of #3806) - #5658

Merged
squid-protocol merged 4 commits into
mainfrom
churn/3806-20261019T1537Z
Oct 19, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/3806-20261019T1537Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #3806. Checklist: partial [c:42765682] -- CBACT01C (no port exists), CBIMPORT (500-byte blob input), CBTRN01C / CBTRN03C generated variants (multi-file joins)

What

#5551 made an inline FD record a layout for trial eligibility (CardDemo preview eligible 3 -> 12). This PR checks the harness side of that item: can the inputs of those programs actually be generated and proven?

  • Probe (all 9 unlocked programs): layout_fields reads every inline FD record from the program source and generate_dataset fills it at its width. Pinned by test_an_inline_fd_record_lays_out_and_generates_at_its_width.
  • But an inline FD record is only KEY PIC 9(n). DATA PIC X(m): generated bytes land in a text blob. The meaningful layout is the copybook the record is read INTO, as carddemo-posttran-generated does. New cases carddemo-{readcard,readxref,readcust}-generated (CBACT02C, CBACT03C, CBCUS01C) do that, port_from the shipped cases.
  • Trap found: an alphanumeric key (CARD-NUM X(16)) generated with random letters sorts differently in COBOL (ASCII) and Java (EBCDIC order): the first run differed on 30 of 32 SYSOUT lines. Card numbers are digits ("digits": true), as in real data.

Evidence

equivalence.py run on each new case: CBACT02C SYSOUT 32/32 equal, CBACT03C 62/62, CBCUS01C 62/62, RETURN-CODE 0/0, proven. Via EQUIVALENCE_E2E=1 pytest -k hand_written 3 passed. Coverage per run: 3/5 paragraphs, 13/22 branches (the end-of-file / error paragraphs; generated data has no I/O fault, the shipped cases carry the faults).

Class

member status
CBACT04C, CBTRN02C already have -generated cases
CBACT02C, CBACT03C, CBCUS01C fixed here, proven
CBACT01C no port exists (shipped carddemo-readacct has none): a generated case would prove nothing
CBIMPORT input FD is one X(500) blob; its real layouts are in the COPY'd output records / export copybook
CBTRN01C, CBTRN03C shipped cases take several files; generated variants need joins between 4-6 files

Gates: pr_gates --fast 6/6, --ratchets 8/8, test_equivalence_inputs + test_trials + test_source_reads pass. No engine change, no golden bless.

Lessons for agents

  • A generated alphanumeric KSDS key diverges between GnuCOBOL (ASCII order) and the Java side (EBCDIC order): generate key fields as "digits": true unless the point is collation.

Cross-repo: none.

🤖 Generated with Claude Code

…, and the inline-FD layouts pinned (Part of #3806)

The three readers declare their record inline (a key and a blob), so each case lays the
input out from the copybook it reads INTO. Card numbers are digits so the key order
matches across COBOL (ASCII) and Java.

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 15:56
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 16:05
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5658 @ 41b1533: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39281639654/job/118163933303
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
##[error]Process completed with exit code 1.
log tail:
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
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]
With the provided path, there will be 130 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-ledger.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 104194
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 4c48d6c49694109181a582a88ac006244d563e6dd9e2b9ab51bd357fad8b2f07
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12202595768
Artifact det-sweep-ledger has been successfully uploaded! Final size is 104194 bytes. Artifact ID is 12202595768
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39281639654/artifacts/12202595768
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/aa62a843-9a25-45e3-881f-3d2dca8eb1eb' 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 19, 2026
@squid-protocol squid-protocol removed 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 added shepherd:merge Maintainer: merge when green (auto-merge, squash). 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 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5658 @ 8d3a42c: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39287712166/job/118184627493
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
##[error]Process completed with exit code 1.
log tail:
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
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]
With the provided path, there will be 130 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-ledger.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 104194
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 7d899b4826c7c03ea2723a2b1666455ff17c6a232833eb7a3b457c8c82e058b0
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12204689026
Artifact det-sweep-ledger has been successfully uploaded! Final size is 104194 bytes. Artifact ID is 12204689026
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39287712166/artifacts/12204689026
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/004a8dee-a2a9-4aec-a560-4a24edcb7240' 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 19, 2026
@squid-protocol squid-protocol removed 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

CI shepherd: the head of this PR (1b0b0b3) 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 shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 17:07
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit f8df0c4 into main Oct 19, 2026
35 checks passed
@squid-protocol
squid-protocol deleted the churn/3806-20261019T1537Z branch October 19, 2026 17:21
squid-protocol added a commit that referenced this pull request Oct 26, 2026
…h stales (#6731) (#6734)

tests/tools/derived_check.py applies CI's BLOCKING rules with fingerprints only (~5 s, no sweep): evidence records whose
port / case / corpus / differences / options changed (test_every_committed_record_is_current), non-Db2 det-sweep
ledger entries whose case / corpus changed, and non-Db2 cases with no entry that det_sweep_baseline.json does not list
(a new case), each with its refresh command. The gate also runs change_classifier.py --check (docs_read_by_tests.txt).
In --fast, so churn's precheck catches these before review. 28% of churn fix runs 2026-10-18..26 were derived records
like these; replayed on #5658 (3 new cases) and #5836 (genapp-lgdpvs01) it fails on the pre-fix heads and passes after.

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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