Repository navigation
fix(jcl): extract step->program calls_out edges (#3292) - #3301
Merged
Merged
Conversation
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]>
Contributor
Owner
Author
|
rosetta-audit's jcl REG (12 steps, [] -> program/proc) is the intended movement. Companion re-bless: squid-protocol/keyword-rosetta#151. Labeled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 EXECmatch. 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
//*.jclis 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.invocation_model: positionallanguages, so//IEFBR14 EXEC PGM=IEFBR14keeps its edge. Step names and program names are separate namespaces.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
PARM='... PGM=IKJEFT01 DECOY'decoy and the//*PROBEDEADcomment card never edge.PGM=&ASMBLRsymbolics and 1PGM=*.LKED.SYSLMODreferback, both by design.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