Repository navigation
fix(det): cics DTO field lookup refuses an ambiguous COPY member (#4461) - #4560
Merged
Merged
Conversation
…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
Contributor
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
squid-protocol
marked this pull request as ready for review
October 6, 2026 12:16
This was referenced Oct 6, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4461.
The last first-hit COPY search in the det translator was
Cics.declared()(det/cics.py), which took the firstcopy_dirsentry holding a DTO field's copybook. It now goes throughsource._search_member(as #4549 did for the COPY expander), so a member held by several directories is refused by name with its candidates (as aCicsError, which the callers already handle). No other directory search remains ingitgalaxy/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 --ratchets6/6 pass (ports against v0.3.0, port-surface, estate, fact-crosscheck, completeness, ground-truth); fullpr_gates6/7: onlysuitefailed,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