Skip to content

det: translate() defaults to the z/OS COMP-5 order (Part of #7646, #7709) - #7829

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/7709-20261105T2225Z
Nov 6, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/7709-20261105T2225Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7646, #7709 (slice 5: translate() defaults to the z/OS COMP-5 order). Does not close either.

What changed

  • det/program.py: translate(..., zos_comp5=None). None (the default) holds COMP-5 big-endian as z/OS does, but acts only on a program that holds a COMP-5 item of 2+ bytes outside the SQLCA, so every other port stays byte-identical. If such a program also meets a zos_comp5 refusal (SQL, foreign CALL, LINK/XCTL COMMAREA), the default retries it in the oracle's order as before. An explicit True acts on every program and refuses those; False is the native what-if.
  • tests/tools/det_port.py, equivalence_java.py: dropped the per-case zos_comp5= argument, so the default applies.
  • tests/tools/test_det_port_zos_comp5_7646.py: default, fallback, untouched-program and explicit-True tests.
  • tests/cobol_mainframe/test_det_programs.py: _pcs_holes passes zos_comp5=False, since its oracle-order refusals are the native what-if.
  • docs/language_status/register/C7.md: the default, the fallback, the follow-through.

Evidence

  • det_port.py check (fresh work dir): 265/270 ports unchanged. Changed: asynccc-asyncpnt, asynccc-seqpnt, zecs-zecs001, zecs-zecs002, zecs-zecsnc.
  • Re-proved those five: all PROVED (89/89, 84/84, 1072/1072, 511/511, 54/54 translated).
  • CardDemo PAUDBLOD, PAUDBUNL, DBUNLDGS: unchanged, still whole (their only COMP-5 item, IMSFUNCS PARMCOUNT, is read by no CALL).
  • pr_gates --fast: 9/9 pass.

Class / Sibling gaps

Class: a translator switch that must act on programs holding COMP-5 without regressing programs it cannot serve. Fixed here: SQL/CALL/LINK programs without COMP-5 are not touched, and those with COMP-5 fall back rather than refuse.
Sibling gaps (no issues filed):

  • CBSA BNK1TFN and XFRFUN (+generated) and the cruc-ca-xctl-versions front hold COMP-5 and use SQL or a LINK COMMAREA: they stay little-endian under the default. This deviates from ruling B "every program"; it needs DetSql / COMMAREA byte order work. Needed by: CBSA.
  • The owner premise that CBSA, GenApp and zECS hold no COMP-5 is false for CBSA and zECS (copybooks). zECS was re-ported and re-proved; GenApp is unchanged.

Facts checked

  • Hand-written files: 6, one over the cap of 5. test_det_programs.py was forced by the flip (13 tests failed otherwise).
  • Burned estates only; no census source read.

Remaining slices

Lessons for agents

  • ContextVar.set rejects bool | None under mypy: coerce first.
  • A default that must keep a cohort byte-identical needs an explicit gate (here: only programs holding COMP-5), or the flip changes hundreds of ports.

Cross-repo: none.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 5, 2026 17:36
… programs that hold COMP-5 (Part of #7646, #7709)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…5 program it cannot serve (Part of #7646, #7709)

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

squid-shepherd Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 5, 2026 23:07
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 5, 2026 23:09
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 5, 2026 23:37
@squid-shepherd

squid-shepherd Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

PR #7829 @ ae1c410: 1 failed check(s)

== shard 1/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42127146618/job/127597714654
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
failing tests: tests/cobol_mainframe/test_det_programs.py::test_program_output_is_gnucobols[COMP5-bytes]
errors:
fail-on-cache-miss: false
E AssertionError: java '-0000000129\n+0000000128\n+0000065535\n-0000000129\n-0000000130\n' != cobol '+0000032767\n-0000032768\n+0000065535\n+2147483647\n+0000032766\n'
tests/cobol_mainframe/test_det_programs.py:2078: AssertionError
FAILED tests/cobol_mainframe/test_det_programs.py::test_program_output_is_gnucobols[COMP5-bytes] - AssertionError: java '-0000000129\n+0000000128\n+0000065535\n-0000000129\n-0000000130\n' != cobol '+0000032767\n-0000032768\n+0000065535\n+21
##[error]Process completed with exit code 1.
log tail:
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
MAVEN_ARGS: -ntp
GITGALAXY_ORACLE_PREBUILT: 1
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-equivalence-e2e-shard-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 60112
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 44fb3c275706bb7924636150cb3174b08f82866b61e7396eb405738189997ad4
Finalizing artifact upload
Artifact test-times-equivalence-e2e-shard-1 successfully finalized. Artifact ID 13462487291
Artifact test-times-equivalence-e2e-shard-1 has been successfully uploaded! Final size is 60112 bytes. Artifact ID is 13462487291
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/42127146618/artifacts/13462487291
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/e821fe76-4288-4533-8293-a9c45d8b35f2' 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 the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 5, 2026
…, the oracle's COMP-5 order (Part of #7646, #7709)

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

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (cd7abdd) 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 6, 2026 00:06
@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 6, 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 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 6, 2026 00:09
@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 6, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 6, 2026 00:09
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 6, 2026
@squid-shepherd
squid-shepherd Bot merged commit a2597c7 into main Nov 6, 2026
123 of 160 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7709-20261105T2225Z branch November 6, 2026 01:05
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