Skip to content

fix(jcl): extract step->program calls_out edges (#3292) - #3301

Merged
squid-protocol merged 1 commit into
mainfrom
fix/3292-jcl-signature-calls-out
Sep 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/3292-jcl-signature-calls-out

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #3292.

Root cause

The issue assumed the EXEC card sat outside the scanned body. It doesn't: Mode A's block starts at the //STEP EXEC match. The real culprit was _apply_literal_shield, which treated JCL's // statement prefix as a C-style line comment and blanked every line of the block, so no calls_out regex could ever match.

Changes

  • Shield: jcl's only comment marker is //*. jcl is also excluded from /* */ block comments, because /* is the instream delimiter / JES2 card prefix. The shield's other call site is Mode D, which jcl never uses, so only calls_out is affected.
  • Self-filter: skipped for invocation_model: positional languages, so //IEFBR14 EXEC PGM=IEFBR14 keeps its edge. Step names and program names are separate namespaces.
  • jcl.py calls_out: reads the first EXEC operand (PGM=, PROC=, or a bare proc name). It abstains on referbacks (PGM=*.LKED.SYSLMOD), symbolics (PGM=&X) and keyword-only operands.

Evidence

  • Rosetta shell: all 13 steps edge as the oracle derived. The PARM='... PGM=IKJEFT01 DECOY' decoy and the //*PROBEDEAD comment card never edge.
  • Crucible jcl: 368 of 371 steps edge. The 3 misses are 2 PGM=&ASMBLR symbolics and 1 PGM=*.LKED.SYSLMOD referback, both by design.
  • Full suite: 10482 passed. Golden crucible (full mode) passes unchanged, so no re-bless. ruff/mypy audits clean.

Companion rosetta rebless: squid-protocol/keyword-rosetta rebless/3292-jcl-calls-out. The oracle's jcl entry moves from expect_empty to DISPATCH->ROSPROC.

🤖 Generated with Claude Code

The EXEC card was always inside Mode A's sliced block. What hid it was
_apply_literal_shield treating JCL's `//` statement prefix as a C-style
line comment, blanking every line before the calls_out scan ran.

- shield: jcl's only comment marker is `//*`; `/*` is a delimiter,
  not a block-comment opener
- calls_out self-filter skipped for positional languages, so
  `//IEFBR14 EXEC PGM=IEFBR14` keeps its edge
- jcl.py: calls_out reads the first EXEC operand (PGM=/PROC=/bare proc);
  abstains on referbacks (PGM=*.LKED.SYSLMOD) and symbolics (PGM=&X)

Crucible jcl: 368/371 steps edge; the 3 misses are the 2 symbolics and
1 referback. Golden master unchanged.

Closes #3292

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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

rosetta-audit's jcl REG (12 steps, [] -> program/proc) is the intended movement. Companion re-bless: squid-protocol/keyword-rosetta#151. Labeled rosetta:rebless-owed; merge this first, then #151.

@squid-protocol squid-protocol added the rosetta:rebless-owed Intentionally moves keyword-rosetta counts; audit warns, corpus re-blesses after merge label Sep 23, 2026
@squid-protocol
squid-protocol merged commit 3a585f5 into main Sep 23, 2026
42 of 43 checks passed
@squid-protocol
squid-protocol deleted the fix/3292-jcl-signature-calls-out branch September 23, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rosetta:rebless-owed Intentionally moves keyword-rosetta counts; audit warns, corpus re-blesses after merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

calls_out: jcl step→program edges need signature-line scanning

1 participant