Skip to content

Fleet Metrics: signal groups, History drilldowns and harness-version slicing across machines #2087

Open

Description

@JacobStephens2

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

  1. 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/Fleet in src/logs/metrics/fleet.rs) carries only:
      • outcome buckets;
      • the preceding-window comparison;
      • Where runs failed.
    • src/console/metrics_fleet.html says "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.
  2. 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 /metrics with a Fleet, only each Failed Command's name links, to its Peek on the owning machine.
    • /history has no machine= scope, so a peer's drilldown has nowhere to go, and even this machine's own rows aren't linked in the Fleet view.
  3. Harness version can't be used to slice. Story 15 asks to slice "by thirdshift version alongside Harness (and harness version)". The Implementation Decisions filter list leaves it out, and scope::Filters has no harness-version filter.
  4. The browser tests leave seams out. The Testing Decisions name these, but console/tests/metrics.test.cjs does not cover them:
    • Fleet versus single-machine selection;
    • version markers;
    • desktop layout;
    • clicking through a drilldown;
    • a reported peer in the browser.

Evidence

Why this is not the review's call

  • Items 1 and 2 widen the Fleet wire format. That format is the /api/v1/metrics summary that peers return and that POST /api/v1/metrics/report accepts under a report token. 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

  1. added
    needs-triage
    in-progress
    and removed
    needs-triage
    on Nov 12, 2026
  2. JacobStephens2 commented on Nov 12, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    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:

    • src/console.rs:1450 renders Metrics as JSON inside a pre element, accepting command/from/through/repo only. src/args.rs:210 has no machine or harness-version Metrics filter.
    • src/console.rs:1390 captures local History; Fleet merging runs only when archive_page.is_none(). Adding machine= does not currently select remote History.
    • Harness-version evidence already exists: src/logs/session_signals.rs:36 retains it, and src/logs/metrics/trends.rs:17 groups Session rows by it. Command-level groups set harness_version to None at line 244. tests/metrics.rs:397 describes one Command containing Sessions on two Harness versions. A future filter therefore needs explicit mixed-version and missing-evidence semantics.

    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.

    1. Which of the four signal groups and version markers must appear in both Fleet and individual-peer views? Please specify what a report-scoped pushed snapshot may carry, including whether additional per-Command metadata is permitted. This fixes the payload and privacy boundary.
    2. For Failed counts, buckets and Where runs failed rows, are matching Command-detail links sufficient for reachable peers, or must History gain machine scope? If History is required, settle its CLI/API parity with History filters (outcome, repository, Metrics failure drilldown) have no CLI twin #2084. Confirm that unreachable reported peers show read-only failure context without broken links. This fixes the navigation scope.
    3. Should Harness version become a filter across CLI, Console, API and Fleet snapshots? If so, should selecting a version include any Command with a matching Session, only matching Session signals, or another defined cohort? How should missing versions appear? Existing records can contain multiple Harness versions within one Command, so this determines denominators and attribution.
    4. Should this remain follow-up work after Spec: Console Metrics view for Run metrics, Fleet trends, and failure attribution #2036 lands, split into A: Fleet payload/aggregation/markers; B: failure drilldowns coordinated with History filters (outcome, repository, Metrics failure drilldown) have no CLI twin #2084; C: Harness-version slicing, with browser coverage attached to each? Identify any required dependencies or scope changes. This turns the issue into reviewable Tickets without treating the whole decision set as one agent task.
  3. added
    enhancement
    ready-for-human
    and removed
    in-progress
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions