Skip to content

HLASM keyword-family oracle: a CSECT or macro read through the translator's statement reader (Part of #8863) - #9389

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8863. Adds an HLASM oracle to the keyword-family validity harness: a control section (CSECT | RSECT | START | DFHEIENT) or an in-file macro is the function, read through gitgalaxy/tools/cobol_to_java/det/hlasm.py::statements (continuations joined, comment cards dropped). Independent of the engine's per-family regexes; not independent of the project (the repo's own reader), as the COBOL oracle.

Checklist: partial [c:d579dfb3] -- JCL landed in #9388; HLASM here; the pinned sweep baseline cells and the SVGs are left

What changed

  • tests/tools/family_oracle_hlasm.py (new): families branch, io, debug_prints, explicit_casts, panics_and_aborts. Readings are in the module docstring (a conditional branch only: mask 1-14, BCTR r,0 is not a branch).
  • Registered in family_oracle.get_oracle and family_oracle_sweep.languages(); 11 unit tests.

Measured (language-crucible data/hlasm, oracle vs engine)

8 units matched, 1 unmatched (CardDemo MVSWAIT: the translator's reader refuses a continuation with text before column 16). branch 4/4, io 3/3, print 1/1, cast 1/1, bailout 2/2: recall and precision 1.00 each. Under 10 functions per cell, so exploratory, not quotable.

Class / Sibling gaps

Class: languages that are not tree-sitter grammars and have no keyword-family oracle.
Sibling gaps: generic assembly and agc_assembly (no burned estate); PL/I, REXX, ABAP, SQL dialects, BMS, CSD.

Remaining slices

Gates: audit_check.py all clear; pytest tests/tools/test_family_oracle*.py 420 passed. No engine change, no golden moves.

Lessons for agents

  • ruff outside the audit bundle reports S101 on tests; use tests/tools/audit_check.py for the repo's config.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 26, 2026 09:31
…ator's statement reader (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.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 26, 2026 14:34
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 14:35
@squid-shepherd
squid-shepherd Bot merged commit 008662a into main Nov 26, 2026
61 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8863-20261126T1427Z branch November 26, 2026 14:43
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