Skip to content

det: a CALL to a sibling program resolves to a service of its own (Part of #5106) - #5586

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5106-20261019T0722Z
Oct 19, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5106-20261019T0722Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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_service builds <Name>Service with handleCall(CobolRef<String> ...) and translates the unit; it comes back in the new Result.extra. det_port.port_case, equivalence_java.linked_programs and 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)

Member Status
no USING / PIC X items, static CALL handled, tested
dynamic CALL identifier naming a sibling handled, tested
group USING item (DTO contract type) refused by name, tested
numeric item, BY VALUE / BY CONTENT / RETURNING refused by name, tested
arg count differs from USING refused by name, tested
CALL back into the caller (cycle) refused in the callee, tested
CALL OMITTED, CICS caller, callee holes in proofs not here (see Remaining slices)

Evidence

  • New tests in 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 --fast 6/6, --ratchets 8/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

  1. 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).
  2. Group (DTO) USING items, OMITTED / RETURNING / BY CONTENT, CICS callers: need a contract type per sibling.
  3. Callee holes into called_holes proof level / an equivalence case on a burned estate.

🤖 Generated with Claude Code

…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]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 19, 2026 07:39
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 07:45
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 9ec10e2 into main Oct 19, 2026
99 checks passed
@squid-protocol
squid-protocol deleted the churn/5106-20261019T0722Z branch October 19, 2026 08:01
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant