Repository navigation
Closed
Labels
Description
Parent
#2036 (decisions: PR #2064, Q1.1–Q1.5, Q2.3–Q2.5, Q2.8, Q3.2–Q3.3; glossary: Run metrics, Other-account Command; ADR 0016, ADR 0018, ADR 0026)
What to build
Turn /metrics from an unlinked raw <pre> JSON dump into a first-class server-rendered Console page named Metrics (data-jump="m"), backed by the metrics CLI command and local /api/v1/metrics endpoint with daily and weekly windowing, preceding-window deltas, honest outcome stacks, pass-through Pickup run deduplication, and Other-account Command inclusion.
- Add Metrics (
data-jump="m") to Console navigation alongside Experiments, Scores, and Bug origins ("health"stays reserved for live per-Command Slow / Silent state). Keep single-Commandmetrics <command>inspection working unchanged in text,--json, and/api/v1/metrics?command=.... (Q1.1) - Support both daily buckets and Monday weekly buckets, plus window presets (
7ddaily,30ddaily,12wweekly,Allweekly) alongside explicitfrom/throughbounds andgrain=day|week. When a bounded window is active, compute an explicit comparison against the immediately preceding equal-length window showing the delta, current and prior sample sizes (n), andobserved/missingcoverage. (Q1.5, Q2.5) - Mirror top-of-page GET query filters on
/metricswith CLI flags onmetrics:window,grain,from,through, repeatablerepo,kind,harness,model, andaccount. (Q3.3) - Count work Commands (
Ticket run,Spec run,Base fix,Review run,Fix run,Triage run,Architect run,Security run) in separate per-kind series/rows—never pooling parent Spec runs and child Ticket runs into a single combined pass rate. Exclude pass-through Pickup run dispatchers from outcome denominators unless the Pickup run itself failed or died before dispatching work, and exclude skipped idle Passes altogether. (Q2.3, Q2.4) - Separate currently
Liveruns from crashedDiedrecords (outcomeabsent and writer process dead). Classify ended runs into four visible stacks—Succeeded,Failed(includingDied),Paused(Paused Command on plan/quota limits), andStopped(human Stop)—preserving exact sub-outcomes on breakdown/hover and computing success/failure rate asSucceeded / (Succeeded + Failed). Keep every signal in its own units with no composite score. (Q1.2, Q2.4, Q2.6) - Include configured readable Other-account Commands on the machine alongside the serving OS account in
metricsand/api/v1/metrics, tagging buckets/rows by OS account and supportingaccountfiltering to match Inbox andstatus. (Q2.8) - Render
/metricsthrough server-side HTML templates paired with static inline SVG/CSS stacked outcome bars styled exclusively with semantic Theme tokens, zero client-side JavaScript charting libraries, zero motion, and responsive layout fit across desktop and a390pxmobile viewport. (Q3.2)
Acceptance criteria
- Console navigation includes Metrics with keyboard jump
m, and/metricsrenders structured HTML tables and static inline SVG/CSS stacked outcome bars across built-in and custom Themes with zero motion and no horizontal page overflow at390px. -
metrics --jsonand/api/v1/metricsreturn matching data acrosswindow(7d,30d,12w,all),grain(day,week),from/through,repo,kind,harness,model, andaccountfilters, whilemetrics <command>continues working unchanged. - Bounded windows report preceding-window deltas alongside current/prior sample sizes (
n) andobserved/missingcounts. - Pass-through Pickup runs that dispatched a child Command are excluded from outcome denominators; a Pickup run that failed or died before dispatch is counted; skipped idle Passes are excluded; and parent Spec runs and child Ticket runs remain in separate per-kind denominators.
- Crashed
Diedrecords are counted underFailedrather than conflated withLiveruns, whilePausedandStoppedappear as distinct visible stacks excluded fromSucceeded / (Succeeded + Failed). - Readable configured Other-account Commands appear in
metricsand/metricstagged by OS account and can be narrowed with--account/account=.
Blocked by
- None (can start immediately; parent Spec Spec: Console Metrics view for Run metrics, Fleet trends, and failure attribution #2036 is gated on Record RunMetrics and SessionSignals on Review run, Triage run, and Fix run Command records #2047)
Activity
Merge pull request #2078 from JacobStephens2/issue-2065
JacobStephens2 commentedon Nov 12, 2026
Closed by #2078, merged into issue-2036 by a thirdshift Ticket run with Self-merge.