Repository navigation
Graph coverage chart: per-language import / callee-name / call-resolution accuracy with n (#3796) - #3802
Merged
Conversation
…tion accuracy with n (#3796) tests/tools/graph_coverage_chart.py renders docs/self_scan/graph_coverage_chart.svg from the committed baselines and the graph comparison ledger (no scan): one row per measured language, precision/recall per panel with n, `*` per side while a shape has no verdict, grey below n=100, call resolution labelled "vs <tool> <version>", and every unmeasured registry language named. graph-comparison-history.yml regenerates it after each ledger refresh and appends graph_coverage_history.csv only when a number or n moved. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AbvXUJpva5XxxbssoKG9Jt
Contributor
Merged
5 tasks done
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.
Summary
This adds the graph counterpart of
tri_comparison_chart.svg: one auto-generated chart that says which languages' graphs are measured, how well, and on how much. Epic #3772, closes #3796.graph coverage
tests/tools/graph_coverage_chart.pyis a pure function of the committed baselines plusgraph_comparison_ledger.json, so it needs no scan. Its three panels:import_graph_accuracy);call_graph_accuracy, Level 1);call_graph_resolution, Level 2).graph_ledger.validatedreading the ledger'slast_seen_counts. These match the baselines' fp/fn exactly for all 22 language/graph pairs today;*on the side (P or R) that still has a shape with no verdict;tree_sitter_language_packat import time and omits languages that do have import graphs (proto, nix).graph-comparison-history.ymlregenerates the SVG after its ledger refresh. It appendsgraph_coverage_history.csvonly when a number or an n moved, so a push that changes nothing still opens no bot PR. The history is seeded with today's state.docs/self_scan/graph_comparison_README.md, and a pointer indocs/graph_accuracy.md.Current state: imports 20, callee names 11, call resolution 2, out of 59 languages.
Type of change
CI checklist
python tests/tools/audit_check.py: ruff, mypy, dead-key and ast-accuracy are all clear; format is cleantests/tools/test_graph_coverage_chart.py(6), run as plainpytestfrom/tmppython tests/tools/graph_coverage_chart.py --check: the committed SVG is currentDifferential Scan target
N/A: no parsing or engine code changed.
Verification
pytest tests/tools/test_graph_coverage_chart.py: 6 passed. They cover:*;+Nfor more repos.add-paths.Follow-ups (sub-issues of #3772): hub agreement #3797, wider import corpus #3798, the ledger verdict backlog #3799, and the README disclosure #3800, which will embed this chart.
🤖 Generated with Claude Code
https://claude.ai/code/session_01AbvXUJpva5XxxbssoKG9Jt
Generated by Claude Code