Repository navigation
Keyword families: rosetta consistency --live judges every defined family (Part of #8863) - #9228
Merged
Merged
Conversation
…ily (Part of #8863) --live runs each registry rule over the keyword-rosetta sources instead of reading the manifests, so the families the corpus does not plant are reached; a Live vs manifest section names planted families the two sources count differently. Report only. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
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 (step 2 of "The test": cross-language consistency on keyword-rosetta). Checklist: partial [c:cross-language-consistency-report]
What
#9202 merged the manifest-based report, which can only judge the 30 families the corpus plants. This adds
--livetotests/tools/family_rosetta_consistency.py: it runs every rule the registry defines for a language over the Prism streams of that language's keyword-rosetta source files (reusingrule_probe.corpus_files/streams_for) and feeds the counts to the sameanalyze, so a family that fires in most languages and reads 0 in a few is found for all contracted families, planted or not. It also prints a Live vs manifest section: a planted family the two sources count differently is a stale manifest or a detector post-filter the live count lacks. Report only: no keyword, rule, manifest or golden change. 2.6 s CPU for the full corpus.Result (corpus 2e67433, 50 code languages,
--live)panics_and_aborts(fires in 27 of 48 defining languages; reads 0 in abap, c, cobol, haskell, javascript, php, python, shell, typescript, ...: 21 languages) andstructural_boundaries(m4, scheme). These are readings: raw hits with no post-filter, so read the contract before calling either a bug (Keyword families in Go, Rust, JavaScript, TypeScript, Java, C: per-language differences that need a definition decision #8868 holds thepanics_and_abortsper-language readings, e.g. Cassert).calls_out(target 26; 23 over, 17 under),structural_boundaries(23 over, 19 under),panics_and_abortsover in 16 (kotlin 15),globalsgo=23,argsabap=16; the manifest report'sapi/func_startover-counts reproduce live.bitwise_ops,regex_execution,time_date_logic,serialization_parsing,closures, ...): the live count reaches them, but all show "no consensus" (0 to a handful of languages fire). The corpus does not plant a construct for them, so a zero is not evidence of a gap. They still need rosetta SPEC plants.args13/16, csafety2/1, goglobals2/23, hlasmfunc_start13/14, matlabstate_mutation2/17, yamlargs13/67): post-filters the live count does not apply, not stale manifests (rosetta_auditkeeps those equal to the engine).Class / Sibling gaps
Class: cross-language consistency of every contracted keyword family on keyword-rosetta (one table;
--liveextends the intersection of contracts and manifest keys to every family the registry defines for the corpus languages). Tests (test_family_rosetta_consistency.py, 24 pass): live counts reach every defined family of a folder and skip a non-registry folder; drift names only disagreeing families; drift report empty case; CLI--liveend to end; all earlier verdict cases unchanged.Sibling gaps (not done here):
calls_outandstructural_boundariesspread (over and under in dozens of languages) is probably a plant-count definition issue, not a gap; contract audit of each.--check-floor: a separate decision.Gates
audit_check.py: all clear (ruff 72-baseline, format clean, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage).ruff formattouched wrapped lines in both files. Tests 24 passed, 0.5 s.pr_gates --fast: 9 of 9 pass. No golden, ledger or baseline moved.Cross-repo
None: reads keyword-rosetta, changes nothing there.
Lessons for agents
rule_probe.ROSETTAis read fromKEYWORD_ROSETTA_PATHat import: a tool calling it for another corpus setsrule_probe.ROSETTAbefore use.pythonedit then fails silently, so checkgit diff --statafter it.🤖 Generated with Claude Code