Skip to content

fix(det): cics DTO field lookup refuses an ambiguous COPY member (#4461) - #4560

Merged
squid-protocol merged 2 commits into
mainfrom
fix/4461-det-cics-copy
Oct 6, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
fix/4461-det-cics-copy

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #4461.

The last first-hit COPY search in the det translator was Cics.declared() (det/cics.py), which took the first copy_dirs entry holding a DTO field's copybook. It now goes through source._search_member (as #4549 did for the COPY expander), so a member held by several directories is refused by name with its candidates (as a CicsError, which the callers already handle). No other directory search remains in gitgalaxy/tools/cobol_to_java (grepped); in-estate COPYs take the engine's resolution (#4468), the engine-less fallback refuses ambiguity (#4549).

Test: tests/cobol_mainframe/test_copy_ambiguous_4461.py (two new tests; the ambiguity one fails before the fix with "DID NOT RAISE CicsError", in both directory orders).

Evidence: det/copy/cics tests 514 passed (65 skipped, all Docker/JDK oracle tests); pr_gates --ratchets 6/6 pass (ports against v0.3.0, port-surface, estate, fact-crosscheck, completeness, ground-truth); full pr_gates 6/7: only suite failed, test_embedded_python_comprehensions_redos_immunity (a wall-clock ReDoS timing test, unrelated, hit under load), which passes alone (108 passed).

🤖 Generated with Claude Code

https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR

…ame (#4461)

declared() searched copy_dirs first-hit; it now goes through source._search_member like the COPY expander.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
@squid-protocol squid-protocol added bug Unintended behavior or logic failure in the engine 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 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

bug Unintended behavior or logic failure in the engine 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

det translator: COPY resolution is a first-hit directory search, so a member in two libraries silently takes the wrong layout

1 participant