Skip to content

det: a CALL to a sibling program of the same source is refused by name (Part of #5106) - #5584

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5106 (DBB MortgageApplication epscsmrd holes), box multi-program-call. Follow-up to #5571.

Checklist: partial [c:f319ae94] -- the CALL is refused by name, not resolved: no service is made for a sibling program, and the CALL shapes epscsmrd uses (OMITTED, RETURNING, a group USING item) are not read.

Class

A CALL, static (CALL 'X') or dynamic (CALL ident), to another program of the same multi-program source (nested or batch-compiled after it). Mechanism: program_units of the whole source gives gen.siblings; a CALL to one that no estate service answers raised the generic CALL X, and now reads CALL X: a sibling program of this source (...) (dyncall.sibling_refusal). refusal_map entry multi-program-call matches both the old and the new text.

Member Status
static CALL to a sibling (literal PROGRAM-ID, nested and batch-compiled) named refusal, tested
dynamic CALL to a sibling (CALL PGM) named refusal, tested
CALL to a program of no source unchanged, generic, tested
one-program source no siblings, unchanged, tested
a sibling translated alone (unit=) sees its caller as a sibling, not a hole tested
resolution (service per sibling, handleCall) not done, see Remaining slices

Holes before/after for epscsmrd (real translate, /tmp project): 10 / 10. The three sibling holes now read CALL EPSCSMRX|I|O: a sibling program of this source ...; nothing is closed, so no proof is loosened.

Why not resolved here

The forge makes no stub or service for a sibling (D049), so ObjectProvider<EpscsmrxService> would not compile. Resolution means emitting a service per unit (Result carries extra classes; det_port.py, dryrun.py, equivalence_java.py translate each unit), and epscsmrd's own CALLs pass OMITTED and RETURNING, and group items, which handleCall(CobolRef<String>...) cannot carry. The callees (EPSCSMRI 2.4k lines) have holes of their own that count for the caller (#4803).

Gates

pr_gates --fast 6/6; --ratchets 8/8 (ports, fact-crosscheck, ground-truth, completeness, time included); 351 tree-wide guard + det source + support-matrix tests passed; new test file 28 passed. Golden masters not touched (no parsing logic).

Remaining slices

  1. Service per sibling unit: program.py (extra classes in Result), det_port.py / dryrun.py / equivalence_java.py (translate every unit), docs (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). Core.
  2. CALL shapes: OMITTED arguments, RETURNING / PROCEDURE DIVISION RETURNING, group USING items between siblings: gen.py, program.py handleCall, oracle register entry.
  3. Callee holes into called_holes for the sibling closure (det_port: a CICS case's CALLed subprograms are not translated, so DBB EPSCSMRT cannot be cased (EPSMPMT stub; C6 holes) #4803).

Sibling gaps

  • procedure-pointer (SET ... TO ENTRY 'EPSCSMRF/A/E'): epscsmrd, needed together with the LE handler model.
  • soap (SOAPFAULT CREATE), getmain-initimg, address-of-record: epscsmrd only, unchanged.

Cross-repo: none.

🤖 Generated with Claude Code

…e (Part of #5106)

Static and dynamic CALL to another program of the translated source (DBB epscsmrd's EPSCSMRI/O/X) now reads
"CALL X: a sibling program of this source ..." instead of the generic "CALL X"; still the multi-program-call entry.

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 06:31
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 06:34
@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 18ba482 into main Oct 19, 2026
84 checks passed
@squid-protocol
squid-protocol deleted the churn/5106-20261019T0615Z branch October 19, 2026 06:52
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