Repository navigation
Description
Found by the real-repo plausibility audit of a galaxyscope scan of IBM's zopeneditor-sample (COBOL/PL-I/JCL/HLASM/REXX, 51 files analyzed), engine main just after REXX #2504 / PR #3107.
What the composite is
get_cumulative_risk (gitgalaxy/metrics/signal_processor.py:2052) is a plain sum() over the whole 13-entry risk_vector:
cognitive_load, safety_score, tech_debt, verification, api_exposure, concurrency, state_flux, dead_code, spec_match, stability, churn, documentation, secrets_risk
It adds independently-scaled sigmoid percentages with no weighting and no unit. The result — "Cumulative Risk: 556.29" on the sample scan — is not interpretable, and cannot be compared across repos.
Why it cannot be repaired in place
Four of the 13 summands are structurally degenerate on a real scan. spec_match and documentation are ceiling-defaulted (mode 100 where the convention is simply absent — see #3111); stability and churn are ablated to zero in every scan today (GITGALAXY_DISABLE_GIT_HISTORY, temporal-crucible#29, promotion pending #2987). So ~31% of the sum is either constant or dead.
It contradicts the post-#2991/#2982 framing. The vectors were renamed to activity/content surface meters precisely because the per-file standing-risk claim did not survive the temporal-crucible validation. Summing them re-creates exactly the composite "risk score" that record retired.
Decided change
Remove the composite. Three code sites:
| site | what |
|---|---|
gitgalaxy/metrics/signal_processor.py:2052 |
the computation |
gitgalaxy/metrics/signal_processor.py:2144-2158 |
the cumulative_risk root key injected into the forensic report |
gitgalaxy/recorders/llm_recorder.py:877-890 |
LLM brief section 11 "CUMULATIVE RISK HITLIST" |
Blocker: this metric is load-bearing for a documented CLI flag
Read this before starting. Cumulative risk backs the --max-systemic-threat CI policy gate (gitgalaxy/galaxyscope.py:1321-1345), which computes systemic_threat = cumulative_risk * normalized_blast_radius and fails the build on it. Removing the composite requires deciding that flag's replacement basis. Candidates for the implementer to weigh — deliberately not pre-decided:
- Retire the flag along with the metric.
- Re-base on a single named vector × blast radius, with the caller choosing which vector.
- Re-base on structural magnitude × blast radius — unit-honest (magnitude is explicitly "NOT a risk score" in the brief), but it changes the flag's meaning.
Whichever is chosen needs a CHANGELOG/CONTRIBUTING note: this is a breaking change to a documented CLI flag.
Second blast radius: published docs
cumulative_risk is quoted in docs/gitgalaxy_architecture_brief.md (12 references) and in ~8 docs/wiki museum-of-code teardowns (sqlite, doom, tensorflow, root, pandas, nvda, linux, alphafold). Those are historical analyses. Decide whether they get a footnote (metric retired, number kept as historical) rather than silently editing them.
Where section 11's purpose goes
Section 11's question — "which files deserve attention first" — is legitimate and should survive. #3113 (companion issue, filed alongside this one) owns the replacement ranking presentation; the two are coupled and should land together or in order. This issue also partially moots one clause of #3111: spec_match's exclusion "from cumulative-risk sums" becomes moot if the sum no longer exists, but the rest of #3111 (section 6 table, Primary Risk Drivers, default-off) stands on its own.
Activity
feat(report): stop the risk surface claiming more than it measures (#…
CI/CD: signal-contract render gate, Full Suite Gate label bursts, sel…