Skip to content

PL/I: a CALL inside EXEC SQL/CICS/DLI is not a PL/I CALL (Part of #5736, #4304) - #6310

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5736-20261024T0045Z
Oct 24, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5736-20261024T0045Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5736. Checklist: partial [c:6a180fa3] -- COBOL side was already fixed (#4374); this closes the PL/I side; the optional "carry the procedure name" part is left (see gaps).

What

A PL/I EXEC SQL CALL MYSCHEMA.GETCUST (:A); was read as a PL/I CALL of MYSCHEMA by both PL/I CALL readers (call_site_data via pli_external_calls, and calls_out_to via the calls_out rule). Both now skip a CALL inside any EXEC <word> ... ; command (SQL, CICS, DLI). sql_statement_data keeps recording the CALL. The calls_out mask is a bounded [^;]{0,2000}; pattern; an unterminated EXEC masks nothing beyond it.

Files: core/pli_calls.py, languages/pli.py (_calls_out_masked_blocks), test_pli_exec_sql_call_4304.py (new), test_pli_strict.py (key pin).

Class / Sibling gaps

Class: a CALL of an embedded-SQL stored procedure read as a host-language program call. Members: COBOL (#4374, done), PL/I (this PR), HLASM / other EXEC hosts: not applicable (no CALL verb reader on EXEC bodies; HLASM CALL is a macro).
Sibling gaps:

  • The procedure name (schema.proc) is not carried as a structured field or edge: it is only in sql_statement_data.statement_text. Needs a schema column (fact channel, rehydrator, recorders) or a new edge kind resolved against SQL files like SQL call sites: Db2 CALL leaving the file reaches call_site_data (Part of #5736) #6080. No burned program needs it: the only EXEC SQL CALL in the pinned corpora is estate-crucible CUSTDBIO.cbl (CALL CUSTAUDT), not a burned estate.

Evidence

Scan of a PL/I repro before: call_site_data had CALL MYSCHEMA, UPDPROC, REALSUB. After: tests assert only REALSUB/AFTERSUB/LINK CICSPGM. pr_gates --fast 7/7, --ratchets 9/9, crucible_check.py both legs PASS with no bless (golden unchanged). pytest tests/extraction/languages -k "pli or cobol": 695 passed.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 24, 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 24, 2026 01:02
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 01:03
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 8785ace into main Oct 24, 2026
103 checks passed
@squid-protocol
squid-protocol deleted the churn/5736-20261024T0045Z branch October 24, 2026 01:20
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