Repository navigation
Description
Summary
Several engine metrics are written up, or emitted into briefs, as "choke points", "blast radius", "ecosystem role" or "house of cards". Those words read as risk or bottleneck claims. A study of fix history in 30 repositories (8 C repositories, then 22 more in C, Go and Java) tested several of them against fix touches, controlling for size (LOC and complexity). Most did not hold up as predictors of fix-proneness. The docs should say so next to the numbers, and the emitted labels that read as risk should be reworded.
This issue asks for wording and caveats only. It does not change any score. Nothing here is a risk claim, and nothing should be read as one.
Class: engine metrics presented as risk or bottleneck signals
Each member needs a status for what was tested, and every status is limited to the study (8 C repositories, plus a second wave of 22 in C, Go and Java for the function-level rows; see Evidence). "Not tested" means no test exists in the study, not that the metric is wrong.
Replication (second wave, 22 more repositories in C, Go and Java, hypotheses written before mining). Function-level fan-out partial correlation (controls LOC and complexity) with fix touches was positive in 21 of 21 repositories (median +0.10); orchestrators (fan-in < 8, fan-out >= 8) 1.22x (1.15-1.29) pooled; consumer-ish 1.16x (1.09-1.24), producer-ish 0.82x (0.74-0.91); function fan-in median partial rho -0.03. Betweenness, PageRank and the file-level role were not retested in wave 2. The orchestrator and consumer effects are general change-proneness: an any-commit control gives similar lifts. The effect sizes (10-25%) are too small to justify a headline risk claim.
| member (metric or label) | where it is emitted or documented | status | evidence |
|---|---|---|---|
betweenness_score (file and function) |
gitgalaxy/recorders/llm_recorder.py:2096 ("Choke Point (Betweenness)"); gitgalaxy/metrics/signal_processor.py:1218-1220 ("Cognitive Choke Point", threshold btw > 0.05); gitgalaxy/core/README.md:82 ("identifies Architectural Choke Points"); docs/zero_dependency_mode.md:40, 56-59 |
no signal (size-adjusted) | file: partial rho after LOC -0.06 to +0.10 (only openssl significant); function: 0.00 to +0.05 (openssl +0.05, p=0.003). Top-5% betweenness functions hold 7-9% of LOC and take 6-13% of fix touches |
pagerank_score, normalized_blast_radius, func_pagerank |
llm_recorder.py:2093 ("Dependency Blast Radius (PageRank)"); docs/vectors.md:504-516; galaxyscope.py:1939-1952; network_risk_sensor.py:1836 (systemic_threat_vector) |
no signal (file, size-adjusted) for PageRank / blast radius; func_pagerank not tested |
file partial rho after LOC +0.03 to +0.06, not significant; fix share vs PageRank negative in redis (-0.26, p=0.003) and openssl (-0.05) |
--max-systemic-threat gate (blast radius x structural magnitude) |
gitgalaxy/galaxyscope.py:4367; docs/vectors.md:508-516 |
not tested as a predictor | gate says "fail when something structurally heavy is also widely depended upon"; no fix-history test of the gate |
producer_ratio, ecosystem_role (file level) |
llm_recorder.py:2093 ("Ecosystem Role"); core/README.md:82 ("Producer vs. Consumer"); docs/zero_dependency_mode.md:33; docs/validation.md:178 |
no consistent direction (size-adjusted fix lift, consumer 0.75-1.11x, producer 0.69-1.21x across 8 repos) | file-level lines in the study output, all 8 repos |
function-level fan-in ratio (consumer-ish / producer-ish, not the same as file producer_ratio) |
not emitted as a named metric in the docs | weak / inconsistent: fresh set consumer-ish 1.14x (1.08-1.21), producer-ish 0.73x (0.62-0.84); development set 1.11x vs 0.95x | the study used its own function-level ratio (fan-in / (fan-in + fan-out) at 0.2 and 0.8); keep it separate from the file metric in any wording |
func_fan_in (function) |
gitgalaxy/core/function_graph.py:86; record_keeper.py:970; docs/function_call_graph.md (~line 196) |
no signal as a bug predictor; reads as a change cost | partial rho vs fix touches -0.05 to +0.02 (study range); curl function level +0.01 (res_curl.txt); when a fan-in >= 30 function is touched, callers change with it (mean 5.5 callers co-changed in curl, 5.1 in redis, 0.9 in openssl) |
func_fan_out (function) |
function_graph.py:87; docs/function_call_graph.md (~line 196) |
weak signal, positive in 8 of 8 repos after LOC and complexity | partial Spearman +0.05 to +0.20 (curl +0.10, p=0.003). Confounded with size, which is controlled but imperfectly |
closeness_score |
llm_recorder.py:2096 ("Ripple Effect (Closeness)") |
not tested alone | |
fragile_dependency_chain (closeness x error exposure) and its "House of Cards (Closeness * Error Risk)" section |
gitgalaxy/metrics/signal_processor.py:2126; llm_recorder.py:2274 |
not tested | a composite with "Error Risk" in its label; the study did not test error exposure. This is the member most in need of rewording |
cyclic_density, articulation_points, modularity, assortativity (repo level) |
docs/zero_dependency_mode.md:9; emitted in 3-4 files |
not tested as predictors | cycle members get more touches per function (1.46 vs 0.75 in curl) but this is not size-controlled |
| "Cognitive Choke Point" insight for AI components | signal_processor.py:1218-1220 |
not tested | threshold btw > 0.05 on betweenness, which is not validated (row 1) |
Where the caveat goes (doc files and sections, verified)
docs/vectors.md, the connectivity section (~lines 262-290). It already has a "not validated" caveat for connectivity. It also cites a mid-size PageRank lift (+0.145, lower bound +0.020) from temporal-crucibledocs/bh_eval.md. That result and this study disagree on PageRank in mid-size files. Keep both. State the disagreement and that neither is a validated risk indicator yet. Do not delete the other study's result.docs/vectors.md, the blast-radius section (~lines 504-516). It says "blast radius is a normalized PageRank over resolved imports" and "magnitude is explicitly not a risk score". Add: blast radius is not validated as a fix-risk predictor (row 2), and the systemic-threat gate's thresholds are not validated.docs/function_call_graph.md, the "Where it lands in the master DB" list (~lines 180-200:func_pagerank,func_fan_in,func_fan_out). One line each: structural, not validated as fix-risk predictors, with the study row.docs/risk_documentation_contract.md:125, which says blast radius "sits beside the score in the same report row". Add the same caveat.docs/zero_dependency_mode.md:33-40, 56-59. These are mode-parity statements, not risk claims. Add a short note only where the betweenness text reads as a bottleneck claim (line 47-49, "Cognitive Choke Point"). Otherwise no change.docs/wiki/08-28-blast-radius.mdand08-29-repair-radius.mdare already marked exploratory. Check that centrality numbers on those pages are labelled as structural, and link to this issue's table.
Generated text (a code change, not a doc edit):
gitgalaxy/recorders/llm_recorder.py:2093-2096and:2274,gitgalaxy/metrics/signal_processor.py:1218-1220and:2126. The brief labels "Choke Point", "Dependency Blast Radius", "Ripple Effect" and "House of Cards (Closeness * Error Risk)" are the reading that the docs should not give. Reword to structural labels (for example "Betweenness (structural)"). If the brief text is in a golden fixture, the change needs a golden re-bless with the drift attributed (CLAUDE.md, "Differential Scan").docs/wiki/museum-of-code/teardown-*.mdanddocs/wiki/agents/*_agents.mduse "Architectural Choke Points", "God Nodes", "House of Cards". About 141 files underdocs/match. These look generated. Fix the template and regenerate; do not hand-edit 141 pages. Confirm the generator before the PR.
Acceptance
- Every doc listed above carries one caveat sentence that names the study, the metric, its status from the table, and "structural measure, not validated as a fix-risk predictor". The caveat does not use the word "risk" to describe the metric.
- The emitted "House of Cards (Closeness * Error Risk)" label and the "Choke Point" labels are reworded to structural names, or the owner records a decision to keep them. Any golden drift is re-blessed with the cause stated.
- The numbers quoted in the docs come from the reproducible study (issue filed from the same study, "tooling / research"), with the repo list, engine commit and fix-detection rule stated next to them. A number with no source is removed.
python tests/doc_refs_audit.py --cistays clean. Runpython tests/tools/audit_check.pyif any generated page is touched.- Headless worker cap: at most 5 hand-written files per PR (
.claude/rules/pr-file-cap.md). Thedocs/wikitemplate change is a separate PR.
Limits (state them with every number)
- File-level and betweenness rows: 8 C repositories only (curl, redis, nginx, openssl as the development set; libuv, libgit2, git, haproxy as the fresh set). Function-level fan-in, fan-out and orchestrator rows were replicated in a second wave of 22 repositories in C, Go and Java. Rust, C++, C#, JavaScript, Python and Kotlin are not tested.
- Fix commits are detected by commit-subject keywords. Any-commit control: the orchestrator lift is 1.29x (fresh set) and about 1.23x (development set) for any-commit changes too, so it measures change-proneness, not bug-proneness.
- HEAD-only call graph and file graph. Function attribution uses hunk headers, which drop renamed functions.
- Pre-registered hypotheses (H1-H4) are not all passed. H1 holds only pooled (see the tooling issue). Read every row as exploratory.
- Effects of 10-25% are small. They must not become a risk score.
Remaining siblings (not filed here)
- Mid-size PageRank claim in
docs/vectors.mdvs this study: needs a third repository (the claim is pre-registered for openssl in temporal-crucible). - Keyword-family validity of per-function signals: epic Epic: keyword-family validity -- do the per-function signals measure what their names say? #8863 (open), which is the same question for signals rather than graph metrics.
- The earlier "risk_* vectors measure activity, not risk" rename: The risk_* vectors measure activity, not risk — rename, reframe, or split (evidence: the full #2982 validation record) #2991 (closed). Check whether its rename covers these metrics before reusing its wording.
- Validity of the "Error Risk" component in the House of Cards label: not tested here; separate issue if the composite is kept.
Not a duplicate
The closest closed issue is #2991 (risk_* vectors measure activity). It concerns a different set of vectors, and it is closed. The Eagle Eye epic (#8863) covers per-function signal families, not these graph metrics. Milestone choice: "Does It Actually Crit? 🎲 — Metrics That Earn Their Place" (#22, the milestone #2991 and #2982 used). The alternative "Eagle Eye 🦅 — Structure Accuracy: Do the Signals Measure What They Say?" (#40) fits as well; the owner should choose.
Generated by Claude Code
Activity
squid-protocol commentedon Nov 22, 2026
Cross-links. These four issues came out of one study (fix history vs call-graph structure; 30 repositories in C, Go and Java). Read them together:
Order that makes sense: #8956 step 1 (hand-checked sample) tells us how far to trust the graph; #8957 and #8958 can land independently; #8955 should wait for the #8956 sample.
Generated by Claude Code
docs: state that betweenness, PageRank, blast radius, producer ratio …
docs: state that betweenness, PageRank, blast radius, producer ratio …