Skip to content

det: take COPY resolution from the engine (#4468) - #4489

Merged
squid-protocol merged 4 commits into
mainfrom
fix/4468-det-engine-copy-resolution
Oct 5, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
fix/4468-det-engine-copy-resolution

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #4468.

The engine owns COPY resolution (#4273, fact_ownership.md). The det translator no longer searches directories for an estate member. Every COPY in an estate file (the program's and its copybooks') takes the file the engine resolved: GalaxyIR.copy_resolution (copy_deps + library names per importer, SYSLIB order, COPY ... IN), read from the port ticket (the skeleton's new copy_edges / copy_gaps / copy_collisions) or from GalaxyIR. The two resolutions can no longer diverge, so #4467's CopyDisagrees is gone. When the engine has no single answer the program is refused by name (CopyUnresolved): engine collisions and gaps, several files, an estate file the engine resolved nothing for, or an engine member that was never expanded. Text expansion and layout arithmetic are unchanged.

The cross-check's translator side (translator_adapter.py, fact_crosscheck.py) takes the engine's resolution too.

Ratchets / evidence

Refusals that remain (estate-crucible, 17, all CopyUnresolved, never silent)

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 5, 2026 13:09
The engine owns COPY resolution (#4273, fact_ownership.md). The det translator
no longer searches directories for an estate member. Every COPY in an estate
file (the program's own and its copybooks') takes the file the engine
resolved: GalaxyIR.copy_resolution (copy_deps + library-names per importer,
SYSLIB order, COPY ... IN), read from the port ticket (the skeleton's new
copy_edges / copy_gaps / copy_collisions) or GalaxyIR. The two resolutions
can no longer diverge, so #4467's CopyDisagrees is gone. Refused by name
(CopyUnresolved): engine collisions and gaps, several files, an estate file
the engine resolved nothing for (#4460), an engine member never expanded
(#4459). Text expansion and layout arithmetic are unchanged.

The cross-check's translator side takes the engine's resolution too. Ledger
816 -> 702: 131 entries gone (all 18 copy_resolution, all 78 translator
offsets), 17 new estate-crucible status refusals with causes (#4486
collisions, #4459, #4460, #4462). A full `update` now drops stale entries
(#4472 part 2).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
…opy-resolution

# Conflicts:
#	tests/tools/fact_crosscheck.py
fact_crosscheck.py update (full run) on top of #4481's ledger: the same 131
entries drop and the same 17 estate-crucible refusals enter as in the #4468
commit (816 -> 702 on the old base); the 17 re-assigned to their causes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol added enhancement New feature, sensor, or structural signature data-integrity Issues relating to RAM state or SQLite database fidelity legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: high Core feature broken, but workarounds exist labels Oct 5, 2026
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

Status report (#4468)

CI after about 20 min: 43 pass, 5 fail, 3 pending (det sweep, windows-3.12, macos-3.12), 1 skipped. None of the failures touch this diff:

  • full-suite py3.9 (ubuntu/macos/windows): pip cannot install tree-sitter-language-pack==1.20.0, which has no py3.9 wheel. The job fails before the tests run.
  • full-suite ubuntu-3.10: 4 collection errors in tests/cobol_mainframe/test_estate4_draw.py (datetime.UTC is py3.11+). That file is not in this PR.
  • full-suite ubuntu-3.12: 1 failure, test_cics_resources.py::test_many_move_statements_stay_linear, a timing assertion (2.3 s vs < 2.0). The other 14,833 tests pass.

Ledger / ratchet deltas

Handoff for the #4465 agent:

  • The det façades are still stubs: handleTransaction/handleLink throw. That is the whole cause of the 23 #4465 entries in det_sweep_baseline.json.
  • det/source.py now takes COPY resolution only from the engine: the ticket's copy_edges/copy_gaps/copy_collisions, or GalaxyIR.copy_resolution. Do not add a directory search back. An unresolved COPY is refused by name as CopyUnresolved.
  • Once the façades prove, run proof_sweep.py --det-only --skip-db2 --update-baseline (~28 min, detached via heavy-run.sh) and commit the shorter baseline.
  • pr_gates --ratchets needs CICS_CRUCIBLE_PATH on the v0.2.0 checkout: /srv/storage_16tb/projects/gitgalaxy/cics-crucible-pin.

…4468)

_from split the member path on "/estate/"; on Windows ln.file uses
backslashes. Split its posix form instead. Production det/source.py and
galaxy_ir.py already compare posix paths (as_posix / relative_to).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol
squid-protocol marked this pull request as ready for review October 5, 2026 18:43
@squid-protocol
squid-protocol merged commit 49879e5 into main Oct 5, 2026
43 checks passed
@squid-protocol
squid-protocol deleted the fix/4468-det-engine-copy-resolution branch October 5, 2026 18:43
squid-protocol added a commit that referenced this pull request Oct 5, 2026
genapp-lgupdb01 5/5 and cbsa-inqacc 14/14 re-proven on the merged
generator (det COPY resolution from the engine). The det sweep,
regenerated with --update-baseline, is unchanged at 33/37.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 5, 2026
* fix(det): CICS facades run the program in the region (#4465)

The det translator kept the stub's handleTransaction / handleLink as stubs
(void: does nothing; typed: throws). They now emit the generator's #4343
facade: CicsTask.region(), region.transaction / region.linked, region.run(task,
NAME, this::runTask), returning task.returned(..) or request as the signature
says. A channel program's handler (no region facade) stops by name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(det): re-prove LINK callers, lower det-sweep and facade ratchets (#4465)

The det facades prove: cbsa-inqacc java-facade 14/14 (ABNDPROC), genapp-lgupdb01
5/5 (LGUPVS01). det sweep 33/37: 23 #4465 entries dropped by
proof_sweep --update-baseline; carddemo-signon re-attributed to #4464 (its
handleTransaction takes no COMMAREA). Also parenthesise an implicit string
concatenation (ruff ISC004).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(det): re-prove LINK callers after merging #4489 (#4465)

genapp-lgupdb01 5/5 and cbsa-inqacc 14/14 re-proven on the merged
generator (det COPY resolution from the engine). The det sweep,
regenerated with --update-baseline, is unchanged at 33/37.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data-integrity Issues relating to RAM state or SQLite database fidelity 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: take COPY resolution from the engine (ownership per #4273), replacing the first-hit directory search

1 participant