Repository navigation
HLASM keyword-family oracle: a CSECT or macro read through the translator's statement reader (Part of #8863) - #9389
Merged
Conversation
…ator's statement reader (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
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.
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 throughgitgalaxy/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,0is not a branch).family_oracle.get_oracleandfamily_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
assemblyandagc_assembly(no burned estate); PL/I, REXX, ABAP, SQL dialects, BMS, CSD.Remaining slices
family_oracle_sweep.py --writeto merge pinned hlasm cells into the baseline and regenerate the SVGs (needs the pinned crucible and the full scan).Gates:
audit_check.pyall clear;pytest tests/tools/test_family_oracle*.py420 passed. No engine change, no golden moves.Lessons for agents
ruffoutside the audit bundle reports S101 on tests; usetests/tools/audit_check.pyfor the repo's config.🤖 Generated with Claude Code