Repository navigation
Per-language evidence sheets: six independent stats, no overall score - #9142
Merged
Merged
Conversation
One generated sheet per code language (73) plus an index and a colour matrix, read from the committed baselines. Detection, functions, call links, imports, keywords and Rosetta each carry a value, a sample size, a method from a fixed vocabulary, the reference it was measured against and the source file. A hand-written notes file per language records what was possible (parsers found, corpus, best method), so a thin number is not read as a ranking. Notes are drafted for c, typescript, cobol, easytrieve and hcl; the easytrieve, cobol and hcl claims are marked unconfirmed. Keywords show families by score (>90, 90-75, 75-50, <50) with only the bins that have families; Rosetta shows comparable cells passed against open defects, from a committed snapshot of keyword-rosetta's bias_data.json so CI needs no sibling checkout. Colours are the keyword-quality chart's own bins. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
What this does
Gives every code language an evidence sheet of six independent stats instead of one ranking or tier. The README's five validation charts are too long and mix very different evidence; this is the place they move to.
For each of the 73 code languages,
tests/tools/language_sheets.pyreads the committed baselines and writesdocs/language_sheets/<lang>.md, an index, and a colour matrix (matrix.svg):tests/detection_accuracy_baseline.jsontree_sitter_accuracy_baseline_<lang>.json(python: ast)call_graph_resolution_<lang>_baseline.json, else the callee-name baselineimport_graph_accuracy_baseline.jsonfamily_validity_baseline.jsonrosetta_snapshot.jsonEvery stat carries value, sample size, method (fixed vocabulary), reference and source. Numbers are raw, as the baselines hold them.
graph_coverage_chart.pystill shows the ledger-validated graph numbers.A hand-written
notes/<lang>.tomlrecords what was possible for the language (parsers found, corpus, best method), so a thin number reads as a limit of the tooling, not a rank. The generator rejects a method outside the vocabulary and anensembleorllm-readstat without a note. Colours are the keyword-quality chart's own bins.Read this before merging
unconfirmedand have no dated search log yet.unclassified. The context group (modern-tooled, legacy/mainframe, DSL) is a hand decision per language.rosetta_snapshot.jsonis built from keyword-rosetta'sdocs/bias_data.jsonat enginea48ee0ad95via--refresh-rosetta PATH, so CI needs no sibling checkout. A cell counts as failed when its cause isunexplained,extractionorcorrelation(keyword-rosetta'sOPEN_DEFECT_CATEGORIES); validated variations count as passed. Nothing refreshes it automatically yet.--checkfails when the committed output is stale, but no workflow runs it. That is a follow-up, with the README slimming.Not in this PR
Moving the five README charts to these pages and shortening "How we validated it". I want the output reviewed first.
Checked
pytest tests/tools/test_language_sheets.py: 8 passedruff checkandruff formaton the two new files;ruff_audit.py --ci,doc_refs_audit.py --ci,dead_key_audit.py --ci: no new findingslanguage_sheets.py --check: current🤖 Generated with Claude Code