Skip to content

equivalence: IMS diff_db / diff_gsam take the declared COMP-5 reversal (Part of #7646, stacked on #7733) - #7734

Merged
squid-shepherd[bot] merged 7 commits into
mainfrom
churn/7646-20261104T2018Z
Nov 4, 2026
Merged

squid-shepherd[bot] merged 7 commits into
mainfrom
churn/7646-20261104T2018Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7646, slice 6. Stacked on #7733 (branch churn/7646-slice5-cics-files; retarget/merge after it).

What

diff_db and diff_gsam (IMS, tests/tools/equivalence_ims.py) take the declared comp5_byte_order reversal, same pattern as #7725, #7729 and #7733. When the case declares it and the segment (or GSAM record) has a copybook layout, the oracle's record is reversed per COMP-5 field (comp5_zos_record) before the raw-equality shortcut, and diff_records(..., oracle_comp5_reversed=True) reports the field diffs. Raw equality no longer passes under the declaration: a port keeping the oracle's little-endian image differs. Undeclared cases are byte-for-byte as before. Nothing is loosened.

Class / Sibling gaps

Class: every comparator that reads an oracle record holding COMP-5 fields must read it as z/OS holds it under a declared comp5_byte_order. Handled: diff_records (#7725), diff_varseq, CALL compare_item / compare_dto (#7729), compare_files (#7733), diff_db, diff_gsam (this PR, both with a test). Sibling gaps: _compare_tables (not wired; needs its own table layout, own slice), CALL run_case text-item compare (needs layout), a real proof run under the switch, HFP byte view for COMP-1/2, census re-run. A segment with no copybook layout is still compared by bytes (no field map to reverse by); the declaration does not apply there.

Remaining slices: _compare_tables, CALL text-item compare, real proof under the switch, HFP view, census.

File-cap exception: stacked on #7733, so the diff against main carries the base PRs files; this slice itself adds 2 hand-written files (equivalence_ims.py and its test).

Facts checked: #7733 was open at start (merged its head into this branch); tests test_diff_db_and_diff_gsam_reverse_the_oracle_records_only_when_declared (both comparators) and test_det_dli.py pass; pr_gates --fast 9/9 and --ratchets 9/9 (after sync-pins.sh); pinned ruff 0.17.2 format clean. Two hand-written files; no golden / engine change.

🤖 Generated with Claude Code

squid-protocol and others added 5 commits November 4, 2026 14:57
…olds them under a declared comp5_byte_order (Part of #7646)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…/OS holds them under a declared comp5_byte_order (Part of #7646)

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

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 20:37
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 20:38
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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 disabled auto-merge November 4, 2026 20:39
@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 Nov 4, 2026
…018Z

# Conflicts:
#	tests/tools/test_equivalence_declared_differences.py
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (c4ce04c) 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). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 4, 2026 21:11
@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 Nov 4, 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 Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 21:18
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 21:38
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

PR #7734 @ c4ce04c: 2 failed check(s)

== measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/41913781804/job/126868140784
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/41913781895/job/126868107471
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)
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 disabled auto-merge November 4, 2026 22:09
@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 Nov 4, 2026
@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 Nov 4, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (6407fbb) 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). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 4, 2026 22:13
@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 shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 4, 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 Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 22:19
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 22:19
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

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