Skip to content

Agent fleet analytics from ground truth: merge rate, review tax, rework, cost per merged PR #375

Closed

Description

@currentbits

From the analytics research: the category ('AI engineering intelligence') splits into capture-time attribution, model-based detection, and post-hoc heuristics — and Solenta sits on perfect ground truth for free, since it launches every session and sees every commit.

Per thread and per provider: wall-clock vs active time, tokens, cost, lines added/churned, merge rate, rework (lines rewritten within N days), review time on agent PRs vs human PRs ('review tax' — Swarmia's metric), and cost per MERGED PR instead of cost per token. The cross-provider comparison ('which agent is actually better for MY codebase') is something no standalone analytics tool can compute. Extends #152.

Activity

  1. added
    enhancement
    plan:todo
    on Aug 17, 2026
  2. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Research note (evidence round): add durable-code percentage to the fleet analytics — lines surviving 14 days unrewritten, per agent per repo (GitClear/Faros show churn is the honest quality metric). This is actionable model-routing data (#246) no competitor surfaces. Also: LLM-classify threads as creating/debugging/refactoring/exploring so users see WHAT agents did, not just how long.

  3. added
    plan:doing
    and removed
    plan:todo
    on Aug 17, 2026
  4. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Deep-dive detail (Sentry): track close-without-merge as a healthy outcome — their +12.5% close-without-merge turned out to be duplicates/superseded fixes, the system working. 'Agent PR resolved the problem even if not merged' is a success metric, not just merge rate.

  5. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Contract landed on coder/agent-fleet-analytics-from-ground-truth--efe17c: FleetEvidence / FleetThread / FleetPr in src/shared/ipc.ts, coder.fleet.evidence(), and the pure summarizeFleet signature in src/fleet.ts (stubbed empty so an unimplemented rollup reads as no data, never as a 0% merge rate).

    Split across three grok workers, each merging that contract first:

    • A electron/fleet.js — ground-truth collector. gh pr list --state all (incl. reviews for review latency, human PRs kept as the baseline), squash-merge commit matched by (#N) then git blame HEAD for line survival, per-run activeMs from the work log. Facts only, capped blame budget with the shortfall reported in notes.
    • B src/fleet.ts — pure rollup: merge rate (open PRs excluded from the denominator), close-without-merge reported alongside it rather than as failure, cost per merged PR, durable/rework share over threads past the 14-day window, median review latency and the agent÷human review tax.
    • C src/components/FleetView.tsx — provider comparison table, review tax headline, per-thread table, notes strip. null renders as "not enough history", never as zero.
  6. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    All three workers landed and merged; join verified by electron/test/fleet-seam.test.js (real collector → real rollup). PR: #424

  7. added a commit that references this issue on Aug 17, 2026
  8. added
    plan:done
    and removed
    plan:doing
    on Sep 8, 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

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions