Repository navigation
fix(jcl): #3002 in-stream DSN/IDCAMS payload verb ownership review - #3014
Merged
Merged
Conversation
…none Reviews the nine Db2 DSN command-processor / IDCAMS control-statement verbs carried inside a JCL `//SYSIN DD *` in-stream payload (#2990's filed follow-up), checked verb by verb against docs/high_risk_execution_rule_contract.md (#2878) rather than as one blob. Eight verbs stay unowned by design: RUN PROGRAM/DSN SYSTEM run inside a session an IKJEFT01 step already counts, GRANT/DROP/DELETE/DEFINE CLUSTER/REPRO/FREE are IDCAMS's/DSN's own fixed command grammar (the same reasoning that already excludes IDCAMS itself from high_risk_execution), and DELETE/FREE specifically are cleanup-shaped, already modeled by JCL's DISP=(...,DELETE) rule. BIND is the one real gap -- it installs executable Db2 code -- but needs a bounded DD */DATA payload scanner this engine doesn't have yet, so it's split out to gitgalaxy#3010. Extends tests/tools/embedded_verb_coverage.py with a bounded DD */DD DATA payload extractor so this surface (previously invisible to the census by design) is now tracked with a `none_owned` reason for all nine verbs, verified clean against language-crucible v1.2.0 (0 GAP/MISMATCH, no engine rule spuriously fires on payload text). Co-Authored-By: Claude Sonnet 5 <[email protected]>
Contributor
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.
Summary
//SYSIN DD *in-stream payload, checked verb-by-verb againstdocs/high_risk_execution_rule_contract.md(high_risk_execution has no stated contract: agc reads the plant while 45 languages read plant+decoy, and the rules disagree on identifiers, references, goto and deletion #2878) instead of as one blob. Full reasoning lands as a ledger-style comment injcl.pyabovehigh_risk_execution.DSN SYSTEM,RUN PROGRAM,GRANT,DROP,DELETE,DEFINE CLUSTER,REPRO,FREE) get no rule change — either already counted at the launching step level, or excluded on the same "fixed command language" reasoning that already keeps IDCAMS itself out ofhigh_risk_execution, withDELETE/FREEspecifically already modeled by JCL'scleanuprule.BINDis the one real gap (installs an executable Db2 package — contract family (c)), but needs a boundedDD */DATApayload scanner this engine doesn't have yet — split out to a narrow follow-up, jcl: bounded DD * payload scanner + high_risk_execution for Db2 BIND #3010.tests/tools/embedded_verb_coverage.pywith a bounded in-stream-payload extractor so this surface (previously invisible to the census by design, per COBOL semantic-coverage assessment: new CICS corpus revealed 7 uncovered verb families (Async API scores zero concurrency) #2990's_JCL_STMTanchor) is now tracked with anone_ownedverdict + reason for all nine verbs, instead of remaining absent from the table.Test plan
python tests/tools/embedded_verb_coverage.py jcl --checkagainstlanguage-cruciblev1.2.0 — 70 verbs observed, 0 GAP/MISMATCH; all ninePAYLOAD:rows resolvenone, andobserved=(--)for each (confirms no existing rule spuriously fires on in-stream payload text, validating thenone_ownedcalls).python -m pytest tests/tools/test_embedded_verb_coverage.py— 14 passed.python -m pytest tests/— 8871 passed (one pre-existing, unrelatedkeyword-rosetta-staleness failure deselected — local-environment drift, not from this change).tests/tools/audit_check.py --ci— ruff/mypy/dead-key/ast-accuracy all clean against baseline, no new findings.detector.py/prism.py/language_standards.pyregex changes, so the Differential Scan (crucible_check.py) golden-master protocol doesn't apply to this PR.🤖 Generated with Claude Code