Skip to content

det: translate a SYSLIB collision through the engine's first-library member, with a warning; strict mode refuses (#4486) - #4563

Merged
squid-protocol merged 3 commits into
mainfrom
feat/4486-syslib-4486
Oct 6, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
feat/4486-syslib-4486

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #4486

Owner decision on #4486: translate.

What

  • Collision → first library + warning. When a COPY member sits in more than one library of the program's SYSLIB order, EngineCopies.member now takes the member the engine resolved (the first library's, as on z/OS) instead of refusing. Each collision is recorded as a warning naming the member, the library chosen and the other libraries in search order. The warnings land in stats["warnings"]; port_runner run --backend det logs and prints them, and det_port.py reports them. GalaxyIR.copy_resolution collision rows (the skeleton's and port ticket's copy_collisions) now carry those libraries.
  • Strict mode (opt-in) restores the by-name CopyUnresolved refusal. It is set with translate(..., strict_copy=True), port_runner --strict-copy, or a case.json "strict_copy": true.
  • Still refused in both modes: gaps, and a collision whose first library holds several files. COPY x IN lib is never treated as a collision.
  • PAYMAIN's next gap: the layout now skips an I-O-CONTROL APPLY WRITE-ONLY (or other APPLY) hint. These hints have no storage.

Evidence (estate-crucible v0.4.0)

  • The fact cross-check ledger is lowered: all 9 translator-refuses-copy-collision entries are gone and the cause is removed.
  • ORDPRICE, ORDV#OLD, ORDVAL, ORDVALV2, ORDVOLD, TAXCALC and TAXCALC2 now translate and agree with the engine on every channel.
  • PAYMAIN and its units (nested PAYCALC, batch-compiled PAYRPT) also translate and agree.
  • ORDMAIN now refuses on its real defect, COPY ORDPRICE (H-0053 gap). It is ledgered as translator-copy-program-member (det translator: a COPY that finds only a program source splices that whole program into the includer (silent wrong records) #4460).
  • Tests cover a collision (first library + warning), strict-mode refusal, a gap refused in both modes, a single-library member (unchanged), COPY ... IN, ticket round-trip, the copy_resolution rows, and APPLY.
  • Local pr_gates.py passed 7/7 (lint, audits, secrets, xray, gauntlet, golden, suite). --ratchets passed 6/6 (ports, port-surface, estate, fact-crosscheck, completeness, ground-truth).
  • I did not run the det sweep locally. No equivalence case declares copy libraries or uses APPLY, so I don't expect it to move.

🤖 Generated with Claude Code

https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR

squid-protocol and others added 2 commits October 6, 2026 05:59
…member, with a warning; --strict-copy refuses (#4486)

Owner decision on #4486: on a COPY member found in more than one library of the program's SYSLIB order the det
translator takes the member the engine resolved (the first library's, as z/OS does) and records a warning
(member, library chosen, other libraries in search order) in stats["warnings"]; port_runner logs/prints it,
det_port.py reports it. GalaxyIR.copy_resolution's collision rows now carry the libraries. Strict mode
(translate(strict_copy=True), port_runner --strict-copy, case.json "strict_copy") restores the by-name refusal.
Gaps, and a collision whose first library holds several files, stay refused; COPY x IN lib is never a collision.
The layout skips an I-O-CONTROL APPLY hint (PAYMAIN's next gap). Fact cross-check ledger lowered: 9
translator-refuses-copy-collision entries gone; ORDMAIN now refuses on COPY ORDPRICE (#4460 gap).

Closes #4486

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
@squid-protocol squid-protocol added enhancement New feature, sensor, or structural signature legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: high Core feature broken, but workarounds exist labels Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

The ground-truth CI job installs gitgalaxy without the translator extra; every other
det parser test guards with pytest.importorskip, this one did not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017BVJCCUMdjLJq1TAM3V34V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, sensor, or structural signature legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: high Core feature broken, but workarounds exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

det translator: translate a SYSLIB collision the engine resolved (first library wins), or mark the refusal policy

1 participant