Skip to content

Homepage hero metrics are wrong: decision accuracy pegged at 100%, AI-work-reused renders no value #8820

Description

@JSONbored

Context

The homepage hero's live-stats strip is showing two broken values:

  1. Decision accuracy: 100% — implausible. The published number comes from src/review/public-stats.ts (accuracyPct = 1 − reversed / (merged + closed), reversal-grounded). Ground truth in the calibration ledger shows real reversals exist (the same_pr_merged / user-reopened-and-merged class was backfilled into both cloud D1 and the ORB pg ledger), so a pegged 100% means the reversed count feeding the public stat is 0 when it shouldn't be — either the fleet-analytics path (computeFleetAnalytics, src/orb/analytics.ts) has no eligible registered instances and the own-ledger fallback's reversal feed is empty/stale, or reversal detection never writes into whichever ledger this stat reads.
  2. AI work reused: — (no value renders at all) — the metric is either never populated or the renderer receives null and shows an em-dash with a sparkline, which reads as broken on the hero (apps/loopover-ui/src/components/site/proof-of-power-stats.tsx).

With 13k+ total ORB reviews now in the ledgers there is more than enough data for both of these to show real, defensible values — no small-N excuse applies.

Requirements

  • Trace the full pipeline for both metrics: ledger writes → src/review/public-stats.ts aggregation → API (src/api/routes.ts) → proof-of-power-stats.tsx render.
  • Determine why reversed is 0 in the published snapshot despite backfilled ground-truth reversals; fix the feed (or the fallback selection between fleet accuracy and own-ledger accuracy) so the published accuracy reflects real reversal data.
  • Determine why the AI-work-reused value is absent; either populate it from real data or (if genuinely no signal source exists yet) render an honest empty state instead of a dash next to a live sparkline.
  • Audit the remaining hero metrics (PRs reviewed, filtered-without-merge, maintainer time saved) for the same class of skew while in there — the strip should be trustworthy end to end.
  • Regression tests for each fixed feed (the 99%+ patch-coverage bar applies to src/** changes).

Expected Outcome

The hero strip shows real, reversal-grounded accuracy (not a degenerate 100%), a populated (or honestly-absent) AI-work-reused value, and every number on the strip is traceable to ledger data.

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions