Skip to content

JCL keyword-family oracle: an EXEC step read through job_flow's statement reader (Part of #8863) - #9388

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8863-20261126T0625Z
Nov 26, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8863-20261126T0625Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8863. Adds a JCL oracle to the keyword-family validity harness: an EXEC step is the function, read through gitgalaxy/core/job_flow.py::_statements (continuations joined, comments and in-stream data skipped), independent of the engine's per-family regexes.

Checklist: partial [c:d579dfb3] -- HLASM oracle

What changed

  • tests/tools/family_oracle_jcl.py (new): families branch, args, io, sync_locks, cleanup, safety, danger; readings written from the contracts and IBM's JCL Reference before the first run, recorded in the module docstring.
  • Registered in family_oracle.get_oracle and family_oracle_sweep.languages(); 10 unit tests in tests/tools/test_family_oracle_jcl.py (continuations, unnamed EXEC, comments, in-stream data, IF/ELSE, PROC/PEND, DISP forms, && temporaries, COND forms).
  • Baseline: 7 new pinned jcl cells on language-crucible v1.9.0 (345 of 376 scan rows matched; the 31 unmatched are the engine's per-file Unknown_Block rows, not steps); the two family-validity SVGs regenerated.

Measured (pinned crucible, oracle vs engine)

family oracle engine recall precision
branch 28 50 1.00 0.56 (over-counts: the engine rule also counts ELSE)
args 35 34 0.97 1.00
io 210 210 1.00 1.00
sync_locks 26 26 1.00 1.00
cleanup 15 15 1.00 1.00
safety 27 30 1.00 0.90
danger 61 64 1.00 0.95

The red cells (branch, safety, danger precision) are baseline findings; no engine rule is changed here, so no golden moves.

Class / Sibling gaps

Class: languages that are not tree-sitter grammars and have no keyword-family oracle, so their grid cells stay gray. JCL (the burned estates' largest non-COBOL material: CardDemo, CBSA, GenApp, zECS, DBB) is done here with all seven families the engine has a JCL rule for.
Sibling gaps:

  • HLASM oracle (could be built on det/hlasm.py::statements()); burned-estate need is small (CardDemo and zECS .asm). Not here: a different statement reader and a separate reading set.
  • Generic assembly / agc_assembly: no burned estate.
  • Remaining slice: a JCL section in docs/family_oracle_readings.md (the 5-file cap kept it out; the readings are in family_oracle_jcl.py's docstring).
  • JCL engine fixes the baseline now shows (ELSE counted as a branch; safety and danger over-counts): a separate engine PR with a golden re-bless.

Gates: pr_gates --fast 9/9 pass; audit_check.py all clear; pytest tests/tools/test_family_oracle*.py 426 passed.

Lessons for agents

  • family_oracle.py --src must be the directory the scan was run on when scanning a subdirectory of the crucible (data/jcl), or every row is "unmatched".

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 26, 2026 09:20
…ment reader, 7 families scored on the pinned crucible (Part of #8863)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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