Repository navigation
Keyword families: cross-language consistency report on keyword-rosetta (Part of #8863) - #9202
Merged
Merged
Conversation
…a (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 (step 2 of "The test": cross-language consistency on keyword-rosetta). Checklist: partial [c:cross-language-consistency-report]
What
tests/tools/family_rosetta_consistency.py: reads keyword-rosetta'sdata/*/expected_signals.json(the blessed engine counts of the same 12-probe program in every language, summed over the folder's files) and, per contracted family, says which languages that HAVE a rule for it disagree with the rest. A family that fires in most of its defining languages and reads 0 in one is a gap with no parser oracle. No engine or keyword change; nothing scans.Verdicts per (family, language):
agrees,silent(rule defined, most languages fire, this one reads 0),over,under,ledgered(a deviation that keyword-rosetta'sdeviation_ledger.jsonalready explains). A language with no rule is N/A, not a gap. A family that fires in under half its defining languages has "no consensus" and is listed, not judged. Contracted families the corpus does not plant are listed as "not testable here". With no corpus, no manifests or no mapped language it exits 2 saying nothing was checked (the #2682 rule);--check-floorexits 1 on any silent cell;--jsonwrites the table.First result (corpus 2e67433, 50 code languages, 30 contracted planted families)
dead_codein Python (fires in 4 of 5 defining languages).apiin 8 languages (abap, ada, bms, dart, hlasm, objective-c, perl, pli),func_startin css and makefile,panics_and_abortsin hlasm. No under-counts.regex_execution,time_date_logic,serialization_parsing,bitwise_ops.These are the report's readings, not verdicts on the engine: the contract decides whether any is a bug (#8862 for draft contracts).
Class / Sibling gaps
Class: cross-language consistency of the planted, contracted keyword families on keyword-rosetta (every family in the intersection of
signal_contracts.CONTRACTSand the manifest keys, handled by one table; each verdict has a test intest_family_rosetta_consistency.py: clean, silent, over, under, N/A, ledgered, unplanted, non-code folder, threshold boundary, ordering, missing corpus, malformed manifest, CLI and--check-floor).Sibling gaps (not done here, different mechanism):
rule_probe.probeover the corpus. Source: this tool's design.--check-floorexists but is wired nowhere.dead_code, Python) and theapi/func_startover-counts are for the contract audit of those signals, not this PR.Gates
pr_gates.py --fast: 8 of 9 pass;derived(docs_read_by_tests.txt stale) fixed bychange_classifier.py --write(3 generated lines, two come from main's docs). Tree-wide guards 207 passed, time ratchet 0 over.--ratchets: 9 pass, 0 fail, 0 skipped. New test 20 cases, 0.6 s. No golden, ledger or baseline moved.Cross-repo
None: reads keyword-rosetta, changes nothing there.
Lessons for agents
main.*makes cleanup, globals, test and telemetry look dead.🤖 Generated with Claude Code