Repository navigation
Fix Extraction hardening: jcl #961 - #963
Merged
Merged
Conversation
Contributor
Owner
Author
|
closes #850 |
This was referenced Aug 2, 2026
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.
Fix Extraction hardening: jcl #961: Harden JCL extraction rules against implicit syntax, parameters, and dataset dependencies
This fix was developed using the rigorous 5-stage agent pipeline, addressing critical extraction flaws in JCL:
What the Agents Found:
func_start: TheEXECstatement stepname is actually optional. The previous regex strictly required a stepname (e.g.([A-Za-z0-9_#$@]+)), missing all unnamed job steps entirely.args: JCL parameters (PARM=on EXEC steps and symbolic parameters on PROC definitions) were completely ignored (None). The agents mapped the syntax for both, including edge cases like single-quoted strings with escaped quotes ('O''BRIEN')._dependency_capture: The previous extraction only capturedINCLUDE MEMBER=.... The agents identified that the most critical JCL dependencies—datasets (DD DSN=...) and procedure libraries (JCLLIB ORDER=...)—were ignored.Red Team Adversarial Testing:
Constructed an extensive JCL adversarial testing suite with 38 distinct test scenarios encompassing:
&&TEMP).Engineering Implementation:
func_startto make the stepname capture group optional (*instead of+).argsextraction to captureEXEC ... PARM=values andPROCvariables._dependency_captureto parse dataset names (DD DSN=...) andJCLLIBdependencies, explicitly ignoring internal back-references (*) and temporary datasets (&&).QA Auditing (Crucible):
Verified the changes via
crucible_check.py. As expected, this caused significant structural drift across the JCL ecosystem. The JCLtotal_masscorrectly expanded, and architectural fingerprints shifted accurately given the massive influx of previously blind dependencies (e.g. datasets). The new JCL golden master (golden_master_zero_dep_audit.json) has been regenerated and committed.Known Limitations:
//SYSIN DD *or//DD DATA).Xmarker) cannot be robustly reassembled with single-line regex rules.