Skip to content

det: a sibling program's ADDRESS OF item = NULL tests an OMITTED USING item (Part of #5106) - #5608

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5106-20261019T1032Z
Oct 19, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5106-20261019T1032Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5106 (related #4404, #4447).

What

A CALL to a sibling program may now leave a USING item OMITTED when the callee tests it with IF ADDRESS OF item NOT = NULL. IBM sets the address of an OMITTED item to NULL, so that test is the only legal reference to it.

  • det/expr.py: new AddrOf node; ADDRESS OF ref [IS] [NOT] = NULL parses to Rel(op, AddrOf, NULL). A non-match restores the cursor, so the old ADDRESS OF refusal is unchanged.
  • det/gen.py: rel_address_null turns the test into a present[k] check. It refuses by name (condition: ADDRESS OF) for any other operator, or an item that is not a sibling USING item.
  • det/program.py: _names_item lets an OMITTED item be named only inside a THEN branch guarded by that test. Any other reference stays refused (undefined on IBM, S0C4). The present array is emitted only when something tests an address.

Effect on DBB epscsmrd: CALL EPSCSMRX now resolves to EpscsmrxService with 0 holes, and the caller goes from 23 to 22 holes.

Class

Reference to an OMITTED sibling USING item. Same-mechanism siblings fixed: the guarded NOT = NULL form. Nothing was loosened: unguarded references are refused (tested).

Gates

  • pr_gates --fast 6/6; --ratchets 8/8.
  • Tree-wide guard tests and the new tests pass (250 passed).
  • audit_check.py: the dead-key and ast-accuracy audits are OK. Mypy lists 16 findings, all in files this PR does not touch (detector, galaxyscope, the guardrail and uow_forge modules, and det/stmt.py), so they come from the local mypy environment. CI mypy is the check.
  • No golden bless: nothing under the detector or language standards changed.
  • No end-to-end Java equivalence run for the sibling case; only the generated structure is checked.

Sibling gaps

Remaining slices

Docs for #4447/#4404; an end-to-end equivalence case for the sibling call.

Lessons for agents

  • The det stmt parser cannot parse <> or one-line IF/ELSE: write test bodies one statement per line and use NOT =.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 19, 2026 06:39
…G item (Part of #5106)

IBM sets the address of an OMITTED parameter to NULL, so `IF ADDRESS OF item NOT = NULL` is the one
reference an OMITTED item allows (DBB EPSCSMRX tests all eight). The sibling's entry records which items
the caller passed (`present`); the test reads it. Only the test and the branch it guards may name an
OMITTED item; any other reference 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 11:07
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 11:14
@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 ca84d83 into main Oct 19, 2026
84 checks passed
@squid-protocol
squid-protocol deleted the churn/5106-20261019T1032Z branch October 19, 2026 11:21
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