Repository navigation
Open
Labels
Description
The Spec review of #2036 (PR #2080) raised these findings about the Fleet view of Metrics. They stayed open because deciding them goes past the Tickets that landed.
Findings
- Fleet and single-peer views show no signal groups or version slicing.
- The Spec asks to "Organize Metrics around four survivorship-safe signal groups … client-side Fleet aggregation", and Story 3 asks that "one Console shows my entire factory at once".
- The Fleet summary (
Summary/Fleetinsrc/logs/metrics/fleet.rs) carries only:- outcome buckets;
- the preceding-window comparison;
- Where runs failed.
src/console/metrics_fleet.htmlsays "Choose this machine for its signal groups". Fleet is the page's default, so these groups are missing there:- survival;
- quality;
- efficiency;
- friction;
- version markers.
- A machine that only reports outward (
metrics --push) can never show its signal groups on the hub.
- The Fleet page's Failed counts and Where runs failed rows link nowhere.
- The Spec asks to "Link failure counts, buckets, and 'Where runs failed' rows to filtered History or Command detail views (forwarding
--machine/machine=for reachable Fleet peers…)". - On
/metricswith a Fleet, only each Failed Command's name links, to its Peek on the owning machine. /historyhas nomachine=scope, so a peer's drilldown has nowhere to go, and even this machine's own rows aren't linked in the Fleet view.
- The Spec asks to "Link failure counts, buckets, and 'Where runs failed' rows to filtered History or Command detail views (forwarding
- Harness version can't be used to slice. Story 15 asks to slice "by
thirdshiftversion alongside Harness (and harness version)". The Implementation Decisions filter list leaves it out, andscope::Filtershas no harness-version filter. - The browser tests leave seams out. The Testing Decisions name these, but
console/tests/metrics.test.cjsdoes not cover them:- Fleet versus single-machine selection;
- version markers;
- desktop layout;
- clicking through a drilldown;
- a reported peer in the browser.
Evidence
src/logs/metrics/fleet.rs:struct Summaryhas fieldsoutcomes,comparisonandwhere_runs_failedonly.src/console/metrics_fleet.html: no/historylinks.src/console/metrics.rs:FleetPage::detailslinks only/peek.- Ticket Fleet Metrics aggregation (metrics --fleet), default Fleet scope, and local peer-snapshot cache #2068's acceptance criteria scope the Fleet view to these:
- merged buckets, deltas and Where runs failed;
- details links for a reachable peer.
Why this is not the review's call
- Items 1 and 2 widen the Fleet wire format. That format is the
/api/v1/metricssummary that peers return and thatPOST /api/v1/metrics/reportaccepts under areporttoken. Widening it also means giving History a remote scope. - Carrying signal groups is a privacy question. Moving more per-Command data between machines needs a decision about what a
report-scoped push may carry. ADR 0026 covers what the API exposes. - Item 3 is a conflict inside the Spec. Its stories and its Implementation Decisions disagree.
A person shaping the follow-up should decide:
- which signal groups, if any, Fleet summaries carry;
- whether History gains
machine=; - whether harness version becomes a filter.
Activity
JacobStephens2 commentedon Nov 12, 2026
Investigation summary
Keep #2087 for Day shift shaping; it contains distinct follow-up decisions and is not ready as one implementation Ticket.
Confirmed on the selected Base
This worktree is at 9c71a56. The implementation cited in the issue is absent: src/logs/metrics/fleet.rs, src/logs/metrics/scope.rs, src/console/metrics.rs, src/console/metrics_fleet.html and console/tests/metrics.test.cjs do not exist here. PR #2080 remains open and unmerged, targeting main. The later Fleet rendering and browser-test findings therefore cannot be reproduced against this Base.
The current implementation establishes relevant constraints:
Design and tracker evidence
#2036 Story 15 explicitly requests Harness-version slicing, while its Implementation Decisions filter inventory omits that dimension. Its browser testing decisions explicitly include Fleet selection, version markers, desktop/mobile layout, drilldown clicks and pushed peers. #2068 is closed; its acceptance criteria cover merged buckets/deltas/failure counts and reachable-peer Command details, rather than all Fleet signal groups.
ADR 0026 permits compact cached or pushed Run metrics summaries, binds report uploads to their holder, and keeps owning-machine APIs local. An expanded summary needs a defined payload and compatibility contract. Remote History must preserve that boundary. However, adding remote History or widening the payload is not necessarily required for every failure link: #2036 permits Command-detail drilldowns, and this Base already supports machine-scoped detail forwarding with credential-boundary tests in tests/console/remote_details.rs:479.
Open #2084 covers History filters lacking CLI/API parity. Coordinate any History extension there; it does not duplicate this issue's Fleet signal or version-filter scope. #2071 concerns outbound live Inbox/status and is separate.
Proposed next steps
Resolve the questionnaire, then shape separate Tickets for (A) approved Fleet signal payloads, aggregation and version markers, (B) failure drilldowns coordinated with #2084, and (C) Harness-version slicing. Include the relevant browser coverage in each Ticket. Recheck the cited implementation against the selected Base after #2036 lands before finalizing acceptance criteria.
Questionnaire
For the Day shift shaping #2087: the selected Base predates the Fleet Metrics implementation, while #2036/PR #2080 remains open. The following decisions are needed before publishing implementation Tickets.