Repository navigation
det: a CALL to a sibling program resolves to a service of its own (Part of #5106) - #5586
Merged
Merged
Conversation
…vice of its own (Part of #5106) The forge makes no stub for a sibling program (D049), so the translator makes one (`<Name>Service.handleCall(CobolRef<String>...)`) and translates the unit into Result.extra; det_port, the linked-program path and the readiness dry run carry every unit. Only BY REFERENCE elementary PIC X USING items with a matching argument count; anything else, and a CALL cycle, stays refused by name. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 19, 2026 07:39
squid-protocol
enabled auto-merge (squash)
October 19, 2026 07:45
Contributor
This was referenced Oct 19, 2026
Merged
squid-protocol
added a commit
that referenced
this pull request
Oct 21, 2026
…to its owner (Part of #5106) (#5845) A CALL to a sibling program of the same source resolves to a service of its own (#5586..#5608). When the sibling's own translation is refused (EPSCSMRI national text, EPSCSMRO OS/VS SERVICE LABEL), the CALL now reads `X: no service of its own, its translation is refused: <reason>` instead of the generic "sibling" text, so the support matrix maps it to the entry that owns the reason. multi-program-call keeps only the contract refusals. Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.
Part of #5106 (slice 1 of 3: a service per sibling unit).
What
A CALL to a sibling program of the same source (DBB epscsmrd's EPSCSMRI/O/X shape) now resolves to a service of its own instead of the by-name refusal from #5584. The forge makes no stub for a sibling (D049), so
det/program.py::_sibling_servicebuilds<Name>ServicewithhandleCall(CobolRef<String> ...)and translates the unit; it comes back in the newResult.extra.det_port.port_case,equivalence_java.linked_programsand the readiness dry run now carry every unit (files, statements, holes; sibling holes count as called holes, #4803).Supported: BY REFERENCE, elementary PIC X USING items with no OCCURS/REDEFINES, matching argument count, non-CICS caller, no CALL cycle (the translating program seeds the chain). Anything else stays refused by name (
multi-program-call).Class table (CALL to a sibling unit)
Evidence
test_det_epscsmrd_holes_5106.py(38 -> 54 cases). Generated Java inspected:ObjectProvider<SibService>wired,handleCall(arg1)matches the callee signature. No end-to-end javac/proof run: no burned-estate program is whole through this path yet.pr_gates --fast6/6,--ratchets8/8 (ports, fact-crosscheck, ground-truth, ...), pre-PR guards + timed tests clean (234 passed, 0 over limit). No golden re-bless (the engine's parsing logic is untouched).Remaining slices
docs/for COBOL engine: CALL to a sibling program in the same member (PAYMAIN → PAYCALC / literal-ID PAYRPT) resolves to nothing #4447 / COBOL units: record each unit's owning program (container attribute) for multi-program sources #4404 (6th file; 5-file cap).called_holesproof level / an equivalence case on a burned estate.🤖 Generated with Claude Code