Repository navigation
Missing-keyword mining report per family and language (Part of #8863) - #9235
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
This was referenced Nov 25, 2026
Merged
Open
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.
Missing-keyword mining report per family and language: report-only tool plus test (Part of #8863, checklist item "missing-keyword mining report per family and language").
tests/tools/family_missing_keywords.pyreadsfamily_oracle.score()results (--scan LANG:DB:SRC, or a savedfamily_oracle.py --jsonas--result LANG:FILE) and ranks, per (language, family) cell, the tokens the parser oracle saw in functions where the family read 0. It also reports the missed-function count, a per-function share, the tokens that recur across languages for one family (one candidate addition, several languages), thin cells (under--min-functionsoracle functions, listed and never ranked), and languages with no oracle (listed as skipped). It never fails on findings: exit 0 for a report, 2 when nothing ran. It adds no oracle logic and changes no engine code, so there is no golden bless.Class / Sibling gaps
Class: oracle-missed tokens (the parser sees the construct, the family reads 0), ranked per keyword family and oracle language. Every family
family_oracle.score()scores and every oracle language (Python plus the tree-sitter set) goes through the same code path; the tests cover ranking and tie order, dead and partial cells, thin and empty cells, cross-language merging, the capped-at-5 saved-result flag, a real scan end to end, and every exit path.Sibling gaps: languages without an oracle (COBOL, JCL, HLASM, PL/I, REXX, ABAP, SQL dialects) cannot be mined and are listed as skipped; counts are token occurrences, not distinct functions, because
score()does not expose per-function token sets (afamily_oracle.pychange); the tool has not been run over the full pinned crucible scans (it needs a scan DB per language).Remaining slices
family_oracle.score().Gates
pr_gates.py --fast(see the report),audit_check.pyall clear, pinned ruff format and check on both files, 11 tests in 0.07 s withtime_ratchetat 0 over the limit.pr_gates --fast: every gate passes exceptderived, which was stale on main (amatrix_legacy.svgline from #9204); the one regenerated line is included (generated, not hand-written).Lessons for agents
docs_read_by_tests.txtcan already be stale on main:pr_gates --fastderivedfails untilchange_classifier.py --writeis run.🤖 Generated with Claude Code