Skip to content

Hub agreement: top-k PageRank overlap between the engine's import graph and the reference's #3797

Closed

Description

@squid-protocol

What

A metric in import_graph_accuracy.py: per language, how far the engine's top-10 files by PageRank (the "structural pillars" / blast-radius hubs the report shows) overlap with the top-10 computed on the reference import graph. Report the overlap@10 and a rank correlation over the union.

Why

Edge precision and recall say whether edges are right. They don't say whether the hubs users see are right: missed edges that cluster on one file can reorder the top of the ranking while barely moving recall. This is the direct answer to "can we trust the network hubs?".

Notes

  • Both graphs already exist in the tool (engine edges; truth file sets per statement). A statement that names several files needs a rule, e.g. an edge to each file, or to the package object per docs/import_rule_contract.md C7.
  • Use the engine's own PageRank code (network_risk_sensor), not networkx, so the hubs are computed the same way on both graphs.
  • Baseline it, and add a column to the graph coverage chart.

Activity

  1. added
    enhancement
    testing
    on Sep 26, 2026
  2. added
    scope:infra
    on Oct 16, 2026
  3. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-10-24T12:40Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

  4. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 3797-20261024T0718Z (host melek) ended without a PR. plan held on docs overlap with #6399; requeued after it

  5. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 3797-20261024T0726Z (host melek) ended without a PR. plan-held: real overlap with live worker 3798 on import_graph_accuracy tool+tests+baseline+doc; requeued after it

  6. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 3797-20261024T1329Z (host melek) ended without a PR. plan approved, overlap harmless (regenerated SVG)

  7. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Hub agreement metric landed in #6458 (overlap@10, Spearman, baselined) and the graph coverage chart column in #6465. Remaining docs line is covered by #6463.

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

    claim:melekenhancementscope:infratesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions