Skip to content

Graph coverage chart: per-language import / callee-name / call-resolution accuracy, with n and "not measured" #3796

Closed

Description

@squid-protocol

What

An auto-generated chart for the two graphs, the counterpart of docs/self_scan/tri_comparison_chart.svg, which covers structural extraction. It has one row per language, including languages we don't measure, so the chart itself discloses coverage.

column source n shown
Imports: precision / recall tests/import_graph_accuracy_baseline.json plus import verdicts in graph_comparison_ledger.json engine edges / resolvable import statements, repos
Callee names (Level 1): precision / recall tests/call_graph_accuracy_baseline.json plus call verdicts calls (tp+fp / tp+fn)
Call resolution (Level 2): confident precision / recall tests/call_graph_resolution*_baseline.json judged links / reference edges, and the reference tool

Cell states:

  • a number: every ledger shape behind it has a verdict;
  • *: open shapes remain, so the number is not a claim (the graph_ledger.validated rule);
  • muted: small n, below the gate floor;
  • not measured.

Why

The measurements exist (20 languages for imports, 11 for callee names, 2 for call resolution), but only in baselines and docs deep in docs/. The README's blast-radius and hub claims give no coverage at all. See the discussion on epic #3772.

Scope

  • tests/tools/graph_coverage_chart.py: a pure function of committed files (baselines plus ledger), so it needs no scan and is testable.
  • It writes docs/self_scan/graph_coverage_chart.svg and appends to docs/self_scan/graph_coverage_history.csv.
  • --check fails when the committed SVG is stale.
  • graph-comparison-history.yml regenerates both after its ledger refresh.
  • Documented in docs/self_scan/graph_comparison_README.md.

The README section is a separate issue.

Activity

  1. added
    documentation
    enhancement
    testing
    on Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationenhancementtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions