Skip to content

Report cost per merged PR by model and effort #3440

Closed

Description

@integry

Problem

The review-score statistics report cost per merged PR by implementer model only. Operators cannot see whether a higher effort level buys better outcomes.

Goal

Add the effort dimension to the existing report, using the column added in #3430.

Acceptance criteria

  • The review-score summary, its CSV and propr stats review-scores gain an implementer effort dimension: rows are per implementer model and effort, with merged PR count, average first-review score, runs to merge and cost per merged PR.
  • Rows with unknown effort (historical data) are grouped under an explicit "unknown" value, never dropped.
  • The CLI TypeScript type is brought in line with the API response (it currently omits score_delta and runs_to_merge).
  • The "Review quality by model" analytics component shows effort as a secondary grouping.
  • Existing response fields keep their meaning; the per-model totals remain available.
  • Tests cover grouping, the unknown bucket, CSV columns and the CLI output.

Implementation

Key files: packages/api/routes/reviewScoreStats.ts (loadReviewScoreSummary, summarizeModel, CSV_COLUMNS), packages/api/routes/reviewScoreSpend.ts (loadPullRequestCosts), packages/cli/src/api/stats.ts, packages/cli/src/commands/statsCommands.ts, propr-ui/src/components/Analytics/ReviewQualityByModel.tsx. Verify with the standard commands.

Activity

  1. propr-dev commented on Nov 12, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3440/claude-opus-5-5-report-cost-per-merged-pr-20261112-1447-a37
    • Base Branch: 3437-epic-cost-visibility-olu
    • Worktree: issue-3440-20261112-1447-claude-opus-5-5-a37

    🔍 Track Task Execution

  2. added a commit that references this issue 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions