Repository navigation
import_graph_accuracy: hub-agreement metric, overlap@10 + Spearman (Part of #3797) - #6458
Merged
Merged
Conversation
…art of #3797) Compares the top-10 PageRank files (engine's graph_engine.pagerank) on the engine import graph vs the parser-truth graph, per repo, averaged per language. Baselined, not gated. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 24, 2026 13:00
Owner
Author
|
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 #3797 (slice 1: hub-agreement metric).
tests/tools/import_graph_accuracy.pynow asks whether the engine's top-10 PageRank files match the top-10 on the parser-truth import graph. Both graphs use the same file set, weight 1.0, and the engine's owngraph_engine.pagerank. A statement naming several files adds an edge to each. Reported per repo (hubs), then averaged per language ashub_overlap_at_10andhub_spearman(over the union of both top-10s, average ranks for ties). Groups under 10 files or with no truth edge give no value. The numbers are written to the baseline, butregressions()does not gate them yet.Baseline regenerated against the pinned corpus: purely additive (
hub_*keys); precision and recall unchanged. Weakest: csharp 0.50 (its edge precision is 9.5%), cpp/php/rust 0.90.Class / Sibling gaps
Class: rank-quality (hub agreement) metric of an engine graph vs a reference graph. Handled here: the import graph only. Gaps: the
graph_coverage_chart.pycolumn (asked for by the issue, separate slice); a hub gate inregressions()and the workflow; the same metric incall_graph_accuracy.pyandcall_graph_resolution.py. None is needed by a burned estate.Gates
Plain
pytestfrom /tmp ontest_import_graph_accuracy.py: 22 passed.audit_check.py: all clear. Tree-wide guards (source_reads, generated_branch, sweep_plan): 127 passed. No engine change, so no golden bless.Cross-repo: none.
🤖 Generated with Claude Code