Repository navigation
[2866 by Claude Opus 5.5] Analytics updates - #2868
Conversation
…or these areas pass, with one exception: a dashboard attention test that fails the same way on untouched `main`. 1. Tasks vs. runs - The Models table now counts Runs (agent executions) per model instead of tasks. Older servers that don't report runs still show a "Tasks" column. - A new delivery band under the totals shows run volume against task volume: Runs per task (the iteration multiplier, e.g. `2.4×`, with total runs underneath). 2. Review Quality → "Agent efficacy by model" - Columns are now Evaluated PRs, Initial score, Final score, Score delta, Avg runs to merge and Merge rate. - Each cell shows one number. The `n=` lines and the bracketed median are gone; the PR count behind each figure is in the cell's tooltip. - Score delta is green with ▲ when the code improved and red with ▼ when it got worse, as in your "8.0 → 6.0" row. - The headers wrap so all seven columns fit the pane without sideways scrolling. - A footnote states how many PRs the table covers. The table still only includes PRs that have a review score, because only those have scores to compare. I labelled that scope rather than widening it. 3. New metrics - First-time pass: of merged PRs, the share that needed one implementation run, no follow-up fix task, and no Ultrafix cycle after the first. Review tasks don't count against a PR. - Time to merge: mean (and median) time from the issue's first task to the merge. - Autonomy: of finished tasks, the share that never failed and never entered a needs-attention state (e.g. `88%`, with `12% required operator` underneath). Cancelled tasks are left out. - Cache hit rate and savings in the Token consumption card. Savings use official first-party prices only, so the page never waits on a price lookup. Models without an official price are left out, so the savings figure can understate. - Anything with no data behind it shows "—", never 0. 4. Widget and Analytics page out of sync - The two views were counting different things over different windows. The widget counted completions over whole calendar days; the page counted created tasks over a rolling window. - Both now read the same shared code (`analyticsAggregates.ts`) over the same rolling window. So for "7 days" the task count, success rate, spend and daily curve match. - The widget's first figure is now Tasks (total created, matching "Total tasks" on the page) instead of "Completed". - A new test checks that the widget and page figures are equal for both 7 and 30 days. Things to know - The failing test is "the attention count opens a list of exactly the work it counted" in `dashboardRoutes.test.ts`. It covers the attention list, which this change doesn't touch. - Two lint warnings that my first version introduced (function complexity in `analyticsDelivery.ts`, and `statsRoutes.ts` going over the line limit) are fixed. - Beyond the analytics files, I exported `getOfficialModelPricing` from `@propr/core`. The pricing lookup is passed in from `server.ts`, so the stats routes don't import `@propr/core` directly; a direct import caused the stats tests to fail on GitHub auth setup. - I updated `docs/docs/operations/metrics.md` and the existing test fixtures. The CSV export gains score delta and runs-to-merge columns. Previews were captured with Playwright against stubbed data: the Analytics page, the delivery band, the efficacy table, Models plus Token consumption, and the dashboard widget.
1. Fatal Math Contradiction: The 0.88 Runs Fallacy (Image 3)Look at the numbers currently rendered on Image 3:
2. The 100× Discrepancy with the Dashboard Widget (Image 3 vs. Image 5)Compare the dashboard widget (Image 5) to the full analytics page (Image 3). Both are set to the exact same
3. The 8-Bar "7 Days" ChartLook at the X-axis of
4. Semantic Label on Row 3 (
|
|
✅ Applied the requested follow-up changes in commit 9e9a522 Summary of ChangesI fixed all four points. The relevant API, UI and e2e tests pass, apart from the attention-list test in 1. Runs per task now matches the numbers next to it. The multiplier was dividing runs by only the tasks that had a recorded run (about 450 in your screenshot). "Total tasks" counts every task created. It now divides total runs (the Models table's runs, summed) by Total tasks, so the two always multiply out. The card also shows both numbers, e.g. 2. The dashboard/Analytics mismatch came from the preview's stub data, not the app. The two screenshots were built from two unrelated fake datasets: the dashboard fixture had 40 tasks and $12.42 hard-coded. In the real code both views already use the same calculation over the same window, and a test checks they agree for 7 and 30 days. For this round's previews I seeded one test database, ran the real API code against it, and rendered both views from its output. Both show 361 tasks, 92.8% success and $1,142.61. 3. "Last 7 days" now has seven bars. The window used to be the last 7 × 24 hours, which touches eight calendar days. The 7, 30 and 90 day and 1 year periods now count whole UTC days ending today, so 7 days runs Thu Sep 17 to Wed Sep 23. The fix is in the shared window code, so the page and the widget change together, and the widget's "previous period" comparison uses the matching earlier days. "24h" is still a rolling 24 hours. A side effect: a task created 6.9 days ago no longer counts in "7 days". I updated the tests and stub data that assumed eight bars. 4. "Unknown model" is now "Manual / Untracked". Its tooltip says the PR was scored but has no recorded implementing run: written by hand, or by an agent outside ProPR. I updated Visual previewAgent efficacy tableThe row with no recorded implementer is labelled 'Manual / Untracked' (the review-scores payload is stubbed for this capture). Original unavailable: managed storage is unavailable or the upload has expired. Analytics page, 7 daysAnalytics rendered from the real stats handlers over one seeded database: 693 runs ÷ 361 tasks = 1.9×, the Models runs sum to 693, the activity chart has 7 bars (Thu Sep 17 – Wed Sep 23), and the unattributed efficacy row reads 'Manual / Untracked'. First-time pass and time to merge show — because t Original unavailable: managed storage is unavailable or the upload has expired. Dashboard widget, 7 daysThe dashboard's Historical stats from the same seeded database and window: 361 tasks, 92.8% success and $1,142.61, the same as the Analytics totals band. Original unavailable: managed storage is unavailable or the upload has expired. Runs per task cardThe multiplier now names both operands: 693 runs · 361 tasks. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
No. Do not build two separate charts. Creating two independent graphs (one for Tasks and one for Runs) is a data visualization anti-pattern that wastes screen real estate and destroys the single most important insight you want to communicate: the ratio between compute and deliverables. Here is the critical breakdown of why two separate graphs fail, and the exact composite chart you should build instead: Why Two Separate Graphs Fail
The Recommended Architecture: The Layered "Compute vs. Deliverable" ChartPlot both metrics on the exact same chart. Use a Dual-Series or Layered Bar Chart:
Why this delivers 10x higher insight:
The Low-Effort Alternative: The Chart Header Segmented ToggleIf your charting library cannot cleanly handle nested/layered bars:
Summary
|
… pass, apart from the attention-list test in `dashboardRoutes.test.ts`, which fails the same way on untouched `main`. I fixed all four points. The relevant API, UI and e2e tests pass, apart from the attention-list test in `dashboardRoutes.test.ts`, which fails the same way on untouched `main`. **1. Runs per task now matches the numbers next to it.** The multiplier was dividing runs by only the tasks that had a recorded run (about 450 in your screenshot). "Total tasks" counts every task created. It now divides total runs (the Models table's runs, summed) by Total tasks, so the two always multiply out. The card also shows both numbers, e.g. `693 runs · 361 tasks`. If many tasks never record a run (queued, cancelled, or run by an agent that doesn't report runs), the figure can now drop below 1×. That is the real ratio, not an error. **2. The dashboard/Analytics mismatch came from the preview's stub data, not the app.** The two screenshots were built from two unrelated fake datasets: the dashboard fixture had 40 tasks and $12.42 hard-coded. In the real code both views already use the same calculation over the same window, and a test checks they agree for 7 and 30 days. For this round's previews I seeded one test database, ran the real API code against it, and rendered both views from its output. Both show 361 tasks, 92.8% success and $1,142.61. **3. "Last 7 days" now has seven bars.** The window used to be the last 7 × 24 hours, which touches eight calendar days. The 7, 30 and 90 day and 1 year periods now count whole UTC days ending today, so 7 days runs Thu Sep 17 to Wed Sep 23. The fix is in the shared window code, so the page and the widget change together, and the widget's "previous period" comparison uses the matching earlier days. "24h" is still a rolling 24 hours. A side effect: a task created 6.9 days ago no longer counts in "7 days". I updated the tests and stub data that assumed eight bars. **4. "Unknown model" is now "Manual / Untracked".** Its tooltip says the PR was scored but has no recorded implementing run: written by hand, or by an agent outside ProPR. I updated `docs/docs/operations/metrics.md` to match. In the new previews, First-time pass and Time to merge show "—" because the seeded database has no pull requests. The efficacy table's data in the previews is stubbed, since that table reads a different endpoint from the one I seeded. PR: #2868 Comment by: @integry (ID: 6036266821) Model: Claude Opus 5.5
|
✅ Applied the requested follow-up changes in commit d73c67b Summary of ChangesI replaced the tasks-only bar chart with one layered chart. Each day's runs are the outer bar, and that day's tasks are a narrower bar inside it, both on the same scale. There is no second chart, and the chart is no taller than before, so the tables below it stay where they were. The relevant API, UI and browser tests pass, as do the type checks and UI lint. What it looks like
Data
Tests and docs
Preview: it shows only the activity pane, with stubbed data and the Tuesday tooltip open. I dropped a full-page capture because the other panels' test data has no run counts. That screen showed "—" for Runs per task right beside 1,080 runs, a mismatch that isn't in the real app. Visual previewActivity: runs vs tasks in one chartAnalytics activity pane, last 7 days, at 1440px: each day's tasks bar (dark slate, teal today) sits inside its runs bar on one shared scale, with the legend and window totals (Runs 1,080 · Tasks 450) in the pane heading. Hovering Tuesday shows 571 runs · 210 tasks · 2.7× runs per task. Stubbed API d Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… Each day's runs are the outer bar, and that day's tasks are a narrower bar inside it, both on the same scale. There is no second chart, and the chart is no taller than before, so the tables below it stay where they were. The relevant API, UI and browser tests pass, as do the type checks and UI lint. I replaced the tasks-only bar chart with one layered chart. Each day's runs are the outer bar, and that day's tasks are a narrower bar inside it, both on the same scale. There is no second chart, and the chart is no taller than before, so the tables below it stay where they were. The relevant API, UI and browser tests pass, as do the type checks and UI lint. **What it looks like** - **Outer bar (runs):** slate-300, light teal for today. - **Inner bar (tasks):** dark slate-700, brand teal for today. It is half the outer bar's width, centred, and starts at the same baseline. - **Colour change:** I used slate-300 for runs rather than the slate-200 you suggested. Slate-200 was nearly the same colour as the hover highlight, so a hovered bar almost disappeared. - **Legend:** the key goes in the pane heading next to `ACTIVITY · LAST 7 DAYS`, as `■ Runs 1,080 ■ Tasks 450`. Because it sits in the heading, it adds no height. - **Hover:** a day shows both counts and the ratio, e.g. "Sep 22: 571 runs · 210 tasks" and "2.7× runs per task". - **Scale:** the top of the axis is the busiest day's highest number, which is usually its runs. - **Older servers:** if the server reports no run counts, the chart shows tasks only, as before, with no legend. **Data** - `GET /api/stats/tasks` now returns a `runs` count beside each day's task `count`. - The daily runs add up to the total behind "Runs per task", so the chart, the legend and that card always agree. A test checks this. - The dashboard widget's daily data is unchanged. I adjusted the test comparing the widget with the Analytics page so it compares only dates and task counts. **Tests and docs** - I added a browser test using your Tuesday example (571 runs, 210 tasks). It checks that each tasks bar sits centred inside its runs bar on the same baseline, that only today is teal, the legend totals, the scale and the hover text. - I added unit tests for the legend. - I added a paragraph about the chart to `docs/docs/operations/metrics.md`. **Preview:** it shows only the activity pane, with stubbed data and the Tuesday tooltip open. I dropped a full-page capture because the other panels' test data has no run counts. That screen showed "—" for Runs per task right beside 1,080 runs, a mismatch that isn't in the real app. PR: #2868 Comment by: @integry (ID: 6036313966) Model: Claude Opus 5.5
Full Test Suite ResultsValidation failed during: Test shard (shard 3), Test shard (shard 4).
View shard 3/4 outputView shard 4/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
|
✅ Applied the requested follow-up changes in commit 22da22c Summary of ChangesI fixed both failing test files. Each now passes locally, and the API type check and lint on the changed files are clean. Shard 4:
Shard 3:
I added an optional There's no visual change, so I didn't capture any previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…nd the API type check and lint on the changed files are clean. I fixed both failing test files. Each now passes locally, and the API type check and lint on the changed files are clean. **Shard 4: `apps/desktop/scripts/packaged-acceptance-stats.test.mjs`** This branch changed what `/api/stats/dashboard` returns, but the fake server used by the packaged desktop tests still sent the old response. - I updated the fake response in `apps/desktop/scripts/run-packaged-acceptance.mjs` to match the real server: it now includes `tasks`, `failed`, `dailyTasks` and `previous.tasks`. - The test compared the response fields against the `DashboardStatsResponse` type in `propr-ui/src/api/dashboardApi.ts`, but it skipped fields marked optional with `?`, so `dailyCompleted?` broke it. It now checks that every required field is sent and every field sent is declared. An optional field may be left out, which is how older servers behave. - Its checks on the chart now use `dailyTasks`, which is what the panel reads. **Shard 3: `packages/api/test/dashboardRoutes.test.ts`** The earlier reports said this test also fails on `main`, but none of this branch's changes touched it (only a comment changed in `dashboardQueries.ts`). The real cause is a clock mismatch that started today: - The dashboard code in the test uses a fixed date, 2026-09-23. - The task list behind the "needs attention" link (`getTasksFromDb`) used the real clock instead. - That list only looks back 14 days, and today is exactly 14 days after the fixed date. So the test's "stuck" failure fell outside the list but was still counted on the dashboard. I added an optional `now` setting to `getTasksFromDb` in `packages/api/routes/taskHelpers.ts` and pass it to the attention lookup. The test now passes the fixed date. Real requests are unchanged because they still use the current time. There's no visual change, so I didn't capture any previews. PR: #2868 Comment by: @github-actions[bot] (ID: 6036916361) Model: Claude Opus 5.5
|
Your eye is right: concentric nested bars (a bullet chart) create an optical and conceptual illusion. Here is the critical breakdown of why this visualization feels "off" and the exact way to fix it: 1. The "Battery / Thermometer" Fill Illusion (The #1 Problem)Look at Tue 22:
2. Inverted Visual Dominance
3. The Color Legend Disconnect on "Today" (Wed 23)Look at the legend on the top right:
4. The Scale Squash (The Tue 22 Skyscraper)
The Fix: Switch to Paired (Side-by-Side) Grouped BarsDitch the concentric nesting. Group the bars side-by-side for each day (the universal standard in Datadog, Stripe, and GitHub): Why Paired Bars Work:
Summary
|
|
✅ Applied the requested follow-up changes in commit c6888b0 Summary of ChangesI replaced the nested bars with paired bars. Each day now has a runs bar and a tasks bar side by side, the same width and on the same scale. All 10 Analytics browser tests pass, as do the chart's unit tests; the UI type check and lint report nothing. What changed (
Two differences from your spec:
Scale squash (your point 4): this is not fixed. Side-by-side bars don't change the scale, so on a week like your example Tue 22 still sets the top of the axis. Days with low task counts are taller than before but still hard to compare. A log scale or capping the axis would fix it, but you didn't ask for either, so I left the scale alone. Tests and docs
The preview shows the activity pane with test data and the Tuesday tooltip open. Visual previewActivity chart: paired runs and tasksAnalytics activity pane, last 7 days (stubbed data): each day has a runs bar and a tasks bar side by side at equal width, only today's tasks bar is teal, and the Tuesday tooltip is open. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…as a runs bar and a tasks bar side by side, the same width and on the same scale. All 10 Analytics browser tests pass, as do the chart's unit tests; the UI type check and lint report nothing. I replaced the nested bars with paired bars. Each day now has a runs bar and a tasks bar side by side, the same width and on the same scale. All 10 Analytics browser tests pass, as do the chart's unit tests; the UI type check and lint report nothing. **What changed** (`propr-ui/src/components/ActivitySparkline.tsx`) - **Bars:** runs on the left, tasks on the right. Each bar is at most 14px wide, with a 2px gap between the two. Tasks are no longer a narrow bar inside runs. - **Today:** runs keep the same light slate every day, so the light-teal runs bar is gone. Only today's tasks bar is teal, and everything else matches the legend. - **Width on longer periods:** I set each bar's width from the chart's measured width instead of just capping it. With only a cap, the charting library spread each day's two bars apart, about 19px apart in the 7-day view. On 30-day and longer periods the bars narrow to fit the space for each day. - **Unchanged:** the legend in the heading (`■ Runs 1,080 ■ Tasks 450`), the hover text with runs per task, the chart height, and the tasks-only chart for servers that report no runs. **Two differences from your spec:** - **Runs colour:** runs are slate-300, not slate-200. Slate-200 is almost the same colour as the hover highlight, so a hovered day's runs bar nearly disappears. - **Today's teal:** it is the dashboard's brand teal (`#14B8A6`), not teal-600. The dashboard uses this colour for today, so the two now match. **Scale squash (your point 4):** this is not fixed. Side-by-side bars don't change the scale, so on a week like your example Tue 22 still sets the top of the axis. Days with low task counts are taller than before but still hard to compare. A log scale or capping the axis would fix it, but you didn't ask for either, so I left the scale alone. **Tests and docs** - I rewrote the browser test. It checks that each day's two bars are side by side, the same width and on the same baseline. It also checks that runs are slate every day and only today's tasks bar is teal. - I updated the chart paragraph in `docs/docs/operations/metrics.md` and a comment in the API test. The preview shows the activity pane with test data and the Tuesday tooltip open. PR: #2868 Comment by: @integry (ID: 6036989935) Model: Claude Opus 5.5
1. Fatal Alignment Bug: Date Labels Are Centered on Series 1, Not the PairLook closely at the X-axis dates beneath the bars:
2. Intra-Pair Gap is Too Wide (Gestalt Proximity Failure)Look at the spacing between the two bars on any given day:
3. Tooltip Anchor DisconnectLook at the hover tooltip over Tue 22:
|
|
✅ Applied the requested follow-up changes in commit 42dd4ee Summary of ChangesI fixed the tooltip (point 3). I measured the chart in the browser and points 1 and 2 are already correct, so I didn't change the chart for those. I added test checks for them instead. All 10 Analytics browser tests and the UI component unit tests pass, and the UI type check and lint are clean. 1. Date labels — already centred on the pair. I measured the 7-day chart from the last preview at 1440px wide. Each date is centred on the whole pair, not on the runs bar:
The browser test now checks that every label is within 1px of its pair's midpoint. 2. Gap between the two bars — already 2px. The bars are 14px wide with a 2px gap, measured in the same run. That's tighter than the 3–4px you asked for, so I left it. The test already fails if the gap reaches 4px. If you saw the misalignment or the 12px gap on a different screen width or in the running app, tell me which and I'll measure it there. 3. Tooltip — fixed. It was a real bug: the charting library moved the box to whichever side of the pointer had room, which put Tuesday's tooltip over Monday. Now the tooltip:
The browser test checks this for Tuesday and for the first and last days. One side effect: Tuesday's runs bar reaches the top of the chart, so its tooltip sits above the chart and covers the legend in the pane heading while you hover. You can see this in the preview. Keeping it inside the chart would mean covering the bar it describes or making the chart taller. The changes are in Visual previewActivity tooltip anchored to TuesdayThe 7-day Activity pane with Tuesday hovered: the tooltip is centred over Tuesday's pair with a caret down to the 571 runs bar; each date label sits centred under its pair of bars. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…browser and points 1 and 2 are already correct, so I didn't change the chart for those. I added test checks for them instead. All 10 Analytics browser tests and the UI component unit tests pass, and the UI type check and lint are clean. I fixed the tooltip (point 3). I measured the chart in the browser and points 1 and 2 are already correct, so I didn't change the chart for those. I added test checks for them instead. All 10 Analytics browser tests and the UI component unit tests pass, and the UI type check and lint are clean. **1. Date labels — already centred on the pair.** I measured the 7-day chart from the last preview at 1440px wide. Each date is centred on the whole pair, not on the runs bar: | Day | Runs bar | Tasks bar | Pair midpoint | Label centre | |---|---|---|---|---| | Thu 17 | 316–330 | 332–346 | 331.0 | 331.1 | | Tue 22 | 786.7–800.7 | 802.7–816.7 | 801.7 | 801.8 | | Wed 23 | 880.9–894.9 | 896.9–910.9 | 895.9 | 895.9 | The browser test now checks that every label is within 1px of its pair's midpoint. **2. Gap between the two bars — already 2px.** The bars are 14px wide with a 2px gap, measured in the same run. That's tighter than the 3–4px you asked for, so I left it. The test already fails if the gap reaches 4px. If you saw the misalignment or the 12px gap on a different screen width or in the running app, tell me which and I'll measure it there. **3. Tooltip — fixed.** It was a real bug: the charting library moved the box to whichever side of the pointer had room, which put Tuesday's tooltip over Monday. Now the tooltip: - is centred over the hovered day. - has a small caret just above the top of that day's taller bar, at the centre of the pair. - slides sideways near the chart's edges so it stays over the chart, while the caret stays on its day. The browser test checks this for Tuesday and for the first and last days. **One side effect:** Tuesday's runs bar reaches the top of the chart, so its tooltip sits above the chart and covers the legend in the pane heading while you hover. You can see this in the preview. Keeping it inside the chart would mean covering the bar it describes or making the chart taller. The changes are in `propr-ui/src/components/ActivitySparkline.tsx` and the browser test in `propr-ui/e2e/analytics-timeframe.pw.ts`. I also added one sentence about the tooltip to `docs/docs/operations/metrics.md`. The preview shows the 7-day chart with Tuesday hovered. PR: #2868 Comment by: @integry (ID: 6037109603) Model: Claude Opus 5.5
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryI resolved the merge conflicts in Conflict 1 – the comment on the
Conflict 2 – the
My attempt to mark the file as resolved with 🤖 Resolution Details
System-triggered merge conflict resolution |
…s-updates-20261007-1013-idq Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - packages/api/routes/taskHelpers.ts PR: #2868 Model: Claude Opus 5.5
|
The paired-bar concept is correct, but your chart geometry has a severe collision defect, a persistent label-centering bug, and an unanchored ceiling. Here is the critical breakdown of what is broken: 1. Fatal Collision: The Tooltip is Covering the LegendLook at the top-right corner above Tuesday's bar:
2. Persistent Bug: Date Labels Are Still Not Centered Under the PairLook at
3. Intra-Pair Gap is Still Too WideLook at the space between the Run bar and the Task bar:
4. The 5-Pixel Flatline on Low Days (Wed 23 & Sun 20)
Summary Checklist:
|
|
✅ Applied the requested follow-up changes in commit 4f6eee6 Summary of ChangesThe tooltip no longer covers the legend. The other three points are done too, though two of them were already nearly right in this build. All 10 Analytics browser tests, the chart's unit tests, the UI type check and lint pass. Before changing anything I measured the current chart in a browser at 1024, 1280, 1440 and 1920px. The tooltip did overlap the legend, as you said. But the gap inside each pair was already 2px, not ~12px, and the date labels were already centred under the pair, not under the Runs bar (they were up to 1px off). The existing browser test also checked both. So your screenshot for points 2 and 3 may come from an earlier build.
The main change is in
I added unit tests for the ceiling rounding. The previews show the chart with Tuesday hovered at 1440px, and the shorter chart at 1024px with its 800 ceiling. Visual previewShorter chart at 1024pxOn the shorter chart the ceiling rises to 800, so the hover card still fits between Tuesday's bar and the legend. Original unavailable: managed storage is unavailable or the upload has expired. Runs vs tasks chart, Tuesday hovered (1440px)The y-axis ceiling is 700, giving the 571-run peak headroom. The hover card sits inside the chart below the legend. Each pair is 3px apart with its date centred under the seam, and the low Wed 23 bars keep a 4px minimum height. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ints are done too, though two of them were already nearly right in this build. All 10 Analytics browser tests, the chart's unit tests, the UI type check and lint pass. The tooltip no longer covers the legend. The other three points are done too, though two of them were already nearly right in this build. All 10 Analytics browser tests, the chart's unit tests, the UI type check and lint pass. Before changing anything I measured the current chart in a browser at 1024, 1280, 1440 and 1920px. The tooltip did overlap the legend, as you said. But the gap inside each pair was already 2px, not ~12px, and the date labels were already centred under the pair, not under the Runs bar (they were up to 1px off). The existing browser test also checked both. So your screenshot for points 2 and 3 may come from an earlier build. 1. **Y-axis ceiling.** The ceiling now rounds up to a whole number at least 15% above the busiest day, so the 571-run peak gets a ceiling of 700 and a midline at 350. The card is also a bit shorter: same text, less padding. - 15% alone wasn't always enough: at 1440px the card was still pushed against the top of the chart and its pointer dipped into Tuesday's bar. So the chart also adds whatever headroom the card needs at the chart's current height. It's 700 at 1440px, and 800 on the shorter chart below 1280px wide. - As a last safeguard, the card never rises above the top edge of the chart, where the legend sits. 2. **Dates under the pair.** I measured the 1px drift: recharts rounds where each pair starts down to a whole pixel. The date labels and the tooltip now allow for that, so they sit on the seam between the two bars at every width I tested. 3. **Gap inside each pair.** Changed from 2px to 3px to match the 3–4px you asked for. The bars are still 14px wide, with a wide gap between days. 4. **Minimum bar height.** Any day with a count above zero now draws at least a 4px bar, so Wed 23 stays visible. Days with zero still draw no bar. The main change is in `propr-ui/src/components/ActivitySparkline.tsx`, with the rounding helper in `chartConstants.ts`. In the browser tests: - The paired test now expects the 700 ceiling and checks two more things: every bar is at least 4px tall, and the tooltip stays inside the chart, below the legend. - An older chart test now expects a 0 / 5 / 10 scale instead of 0 / 4 / 8. I added unit tests for the ceiling rounding. The previews show the chart with Tuesday hovered at 1440px, and the shorter chart at 1024px with its 800 ceiling. PR: #2868 Comment by: @integry (ID: 6038329730) Model: Claude Opus 5.5
One Critical Frontend Implementation Check:Look at how the tooltip hangs to the left over Mon 21:
|
|
✅ Applied the requested follow-up changes in commit bd1bfe9 Summary of ChangesThe tooltip card now has This build wasn't flickering. Recharts already gives its tooltip wrapper The change is in
All 10 Analytics browser tests, the chart's 6 unit tests, the UI type check and lint pass. There's no preview this time because nothing looks different; the change only affects how the mouse behaves. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…set on it directly, so the cursor passes through it to the bars underneath. I also set `pointerEvents: 'none'` on recharts' wrapper around the card (`wrapperStyle`), so neither layer can catch the mouse. The tooltip card now has `pointer-events-none select-none` set on it directly, so the cursor passes through it to the bars underneath. I also set `pointerEvents: 'none'` on recharts' wrapper around the card (`wrapperStyle`), so neither layer can catch the mouse. This build wasn't flickering. Recharts already gives its tooltip wrapper `pointer-events: none`, and the card inherited it. But the card didn't set it itself, so a later style change could have brought the flicker back. The setting is now explicit, and text in the card can no longer be selected. The change is in `propr-ui/src/components/ActivitySparkline.tsx`. I added a check to the paired-chart browser test in `propr-ui/e2e/analytics-timeframe.pw.ts`: - With Tuesday hovered, the card reports `pointer-events: none` and `user-select: none`, and its left edge hangs over Monday's column. - The mouse then sweeps left across the card toward Monday. At Monday's position the element under the cursor is the chart, not the card, and the tooltip switches to Sep 21. All 10 Analytics browser tests, the chart's 6 unit tests, the UI type check and lint pass. There's no preview this time because nothing looks different; the change only affects how the mouse behaves. PR: #2868 Comment by: @integry (ID: 6039085858) Model: Claude Opus 5.5
|
/review astra fable |
|
✅ AI Code Review Complete requested by @integry Posted 2 reviews: |
… created: the no-period activity series is only consumed by API clients, since the Analytics page always passes a timeframe and feeds the chart external data, and the delivery change only alters a number when a database holds merged PRs without executions.
Both fixes are in place and verified. No preview files were created: the no-period activity series is only consumed by API clients, since the Analytics page always passes a timeframe and feeds the chart external data, and the delivery change only alters a number when a database holds merged PRs without executions.
**F15, runs-to-merge dilution** in `packages/api/routes/analyticsDelivery.ts`
- A merged PR with no recorded execution up to its merge now carries `runs: null` instead of `0`, and the mean and denominator skip it. With no merged PR recording a run the metric reports `mean: null, n: 0`.
- This matches how review quality's `pullRequestFacts` already treats the same PRs, so the two figures agree on the same scored population.
- Sibling check: the review-score spend loader also fills missing runs with `0`, but its consumer already converts that to null, so no change was needed there.
**F16, run-only days dropped** in `packages/api/routes/statsRoutes.ts`
- The no-period branch now builds the series from the union of task days and execution days inside the 30-day range, sorted, with zero tasks on run-only days. Explicit periods still go through `activityDays`, which already handled this.
- The 30-day bound on executions is unchanged, so a run older than that still stays out.
**Regression tests added**
- `packages/api/test/analyticsDelivery.test.ts`: a four-run PR beside a run-less PR yields `{ mean: 4, n: 1 }`, a follow-up run later makes the second PR known, and clearing executions yields `{ mean: null, n: 0 }`. The seeding helper now skips the insert for zero runs, which Knex rejects.
- `packages/api/test/statsAnalyticsTimeframe.test.ts`: a default request lists a day with only a run between two task days, and ignores a run 40 days back.
**Verification**
- The eight analytics, dashboard, review-score and timeframe API suites pass, 79 tests in total.
- API type check and lint on the changed files are clean.
- A run of the entire API test directory was stopped after exceeding ten minutes with many unrelated suites failing on environment dependencies such as Redis. Those failures predate this change and were not investigated.
PR: #2868
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Fable 5.1
|
⏳ Ultrafix is waiting for CI before the next These blocking checks on
Checks matching this repository's non-blocking checks never gate Ultrafix. The loop continues automatically once the blocking checks pass; if they have not settled within 2 hours, Ultrafix stops. |
|
⏳ Ultrafix is waiting for CI before the next These blocking checks on
Checks matching this repository's non-blocking checks never gate Ultrafix. The loop continues automatically once the blocking checks pass; if they have not settled within 2 hours, Ultrafix stops. |
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR separates runs from tasks, adds delivery metrics, and substantially improves analytics coverage. It needs localized correctness fixes before merge. The supplied current-head checks show 41 passed and no failures or pending checks; this review used static analysis only. ✅ Shared aggregation — Dashboard and Analytics task totals now use the same aggregation and timeframe calculation, with tests covering period boundaries. ✅ Run reconciliation — Executions without a model remain visible, allowing model totals, activity counts, and overall run volume to reconcile. ✅ Merge cutoffs — Delivery metrics exclude post-merge tasks and executions, with targeted regression coverage. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F17: 🔴 Later implementations inflate earlier PR costs
F18: 🔴 Defaulted cache zeros become reported telemetry
SuggestionsThese are optional follow-ups and are not sent to S28: 🟢 Correct the documented hourly window
ScoreThe implementation has substantial targeted coverage and green checks, but cost attribution and cache-telemetry provenance still produce incorrect analytics in supported scenarios. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 53a0f2e
Summary of ChangesBoth findings are fixed and verified. F17, later implementations inflating earlier PR costs. In F18, defaulted cache zeros becoming telemetry. The Codex stream parser in Independent discoveries, not acted on beyond the selected scope:
Verification. All affected suites pass, 180 tests across the API analytics, review score, Codex, and Antigravity files. Type checks and lint with zero warnings pass for both the core and API packages. The first draft of the F17 test lived in the stats test file and pushed it over the lint line limit, which is why it moved to its own file. No preview files were created. Both changes only alter numbers inside existing widgets for specific data shapes, which is not a perceptible UI change. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
Both findings are fixed and verified. **F17, later implementations inflating earlier PR costs.** In `packages/api/routes/reviewScoreSpend.ts:93` the cost attribution now keeps only implementation attempts created at or before the target PR's recorded merge, while every follow-up acting on the PR still counts. The `atOrBefore` cutoff helper in the delivery module is now exported so both aggregations apply the same rule. I checked the other callers: the delivery band already filtered by merge time, and runs to merge already had a start-time cutoff, so nothing else carried the defect. A new test file, `packages/api/test/reviewScoreSpend.test.ts`, seeds two successive PRs for one issue plus a post-merge review and asserts the first PR costs 6 and the second 25, with the unbounded case as a contrast. It fails on the old code with 26. **F18, defaulted cache zeros becoming telemetry.** The Codex stream parser in `packages/core/src/codex/codexHelpers.ts` now records whether any usage event carried `cached_input_tokens` and emits the cache-read field only when one did. The sibling adapters that synthesized zeros got the same treatment: the Codex app-server connection, the Antigravity goal stream reducer, and the Antigravity native goal segment reducer. The Antigravity JSONL output parser and the OpenCode normalizer already preserved absence, so they are unchanged. Regressions cover an omitted field and an explicit zero in the parser unit tests, and the producer test now runs a parsed Codex stream through the real recording path and checks the stored flag and the hit rate for omitted, zero, and partial cache counts. **Independent discoveries, not acted on beyond the selected scope:** - The old parser also dropped an explicitly reported zero, since it only emitted the field when the count was positive. That is the inverse of the finding's trace but the same provenance loss, and the fix covers both directions. - The API live-details parsers still default an absent Codex cache count to zero. They feed the live transcript view rather than the persisted execution rows, so they do not affect the hit rate and were left alone. **Verification.** All affected suites pass, 180 tests across the API analytics, review score, Codex, and Antigravity files. Type checks and lint with zero warnings pass for both the core and API packages. The first draft of the F17 test lived in the stats test file and pushed it over the lint line limit, which is why it moved to its own file. No preview files were created. Both changes only alter numbers inside existing widgets for specific data shapes, which is not a perceptible UI change. PR: #2868 Comment by: @propr-ultrafix (ID: 0) Model: Claude Fable 5.1
|
⏳ Ultrafix is waiting for CI before the next These blocking checks on
Checks matching this repository's non-blocking checks never gate Ultrafix. The loop continues automatically once the blocking checks pass; if they have not settled within 2 hours, Ultrafix stops. |
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR separates runs from tasks, shares dashboard aggregation, and adds delivery and cache metrics with substantial test coverage. It needs a localized correctness fix before merge. ✅ Shared aggregation — Dashboard and Analytics task counts now use ✅ Run reconciliation — Unknown-model executions remain in model totals, and tests verify that model counts, activity buckets, and overview runs reconcile. The supplied checks show 38 passed, two pending, and no failures. This review used static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F19: 🔴 Partial cache telemetry becomes a complete measurement
SuggestionsThese are optional follow-ups and are not sent to S29: 🟢 Correct the documented hourly window
ScoreThe implementation has strong reconciliation and boundary coverage, and no current check failures. Partial cache telemetry still produces misleading measurements and should be corrected before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit b3e355f
Summary of ChangesF19 is fixed. A cache breakdown now survives only when every prompt-bearing usage event or segment reported one, so a partially measured run is stored as unreported and stays out of the Analytics cache denominator. What changed
The SQL aggregate was left alone. It already excludes rows flagged as unreported, and the aggregate cannot recover a partial breakdown, so the correction belongs upstream where the fact is still known. Tests
Against the pre-fix source, the new tests fail in all three files. With the fix, all 87 tests across those files pass, as do the analytics aggregate and Codex connection suites. The core type check passes and lint reports no errors. No preview files were created. The change alters a stored flag and a percentage only for runs with mixed telemetry, which is not a perceptible UI change. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…y prompt-bearing usage event or segment reported one, so a partially measured run is stored as unreported and stays out of the Analytics cache denominator. F19 is fixed. A cache breakdown now survives only when every prompt-bearing usage event or segment reported one, so a partially measured run is stored as unreported and stays out of the Analytics cache denominator. **What changed** - **Codex parser** in `packages/core/src/codex/codexHelpers.ts` tracks a second flag for any event that carries input tokens but no cached count. The parsed usage includes the cache field only when some event reported it and no prompt-bearing event omitted it. Events with no input tokens cannot spoil the measurement. - **Metrics normalization** in `packages/core/src/utils/llmMetrics.ts` applies the same rule to the conversation-log aggregation. The persisted flag and the null cache columns now mean "complete breakdown", and the type comment says so. - **Antigravity step sum** drops the cache count when a step with a prompt lacks one. - **Antigravity segment sum** was extracted into an exported function so it can be tested. It keeps a count only when every prompt-bearing segment measured one, regardless of segment order. The SQL aggregate was left alone. It already excludes rows flagged as unreported, and the aggregate cannot recover a partial breakdown, so the correction belongs upstream where the fact is still known. **Tests** - Codex: the existing "reported zero" test now has both events report a zero, since the old shape was exactly the defect. New tests cover the mixed case from the finding and a cache-less event with no prompt. - Antigravity: the existing two-step tests were updated the same way, with new mixed-step and mixed-segment cases. - Persistence: three new tests drive a conversation log through the recorder and assert the stored flag and cache columns for full, partial, and reported-only telemetry. Against the pre-fix source, the new tests fail in all three files. With the fix, all 87 tests across those files pass, as do the analytics aggregate and Codex connection suites. The core type check passes and lint reports no errors. No preview files were created. The change alters a stored flag and a percentage only for runs with mixed telemetry, which is not a perceptible UI change. PR: #2868 Comment by: @propr-ultrafix (ID: 0) Model: Claude Fable 5.1
|
⏳ Ultrafix is waiting for CI before the next These blocking checks on
Checks matching this repository's non-blocking checks never gate Ultrafix. The loop continues automatically once the blocking checks pass; if they have not settled within 2 hours, Ultrafix stops. |
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR separates tasks from runs, shares dashboard and analytics aggregations, and simplifies model efficacy reporting. It needs a localized accounting correction before merge. ✅ Consistent run totals — Unknown-model executions remain in the model breakdown, allowing its run counts to reconcile with activity totals. ✅ Explicit telemetry coverage — Persistence distinguishes missing cache telemetry from a reported zero, with producer-to-aggregation tests. ✅ Boundary coverage — Tests cover period seams, post-merge work, and repeated implementation attempts. The supplied current-head checks report 41 passed and no failures. This review used static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F20: 🔴 Preserve tokens when cache reporting is partial
SuggestionsThese are optional follow-ups and are not sent to S30: 🟢 Correct the hourly-window documentation
ScoreThe implementation has substantial coverage and passing checks, but partial Codex telemetry now drops real token usage. Fixing that localized regression is necessary before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit c091f5a
Summary of ChangesF20 is fixed. A cached subtotal that covers only some prompts now returns to What was wrong. The Codex parser split each prompt into ordinary and cached tokens, then dropped the cached portion outright when a later prompt omitted cache telemetry. The two Antigravity aggregators this PR changed made the same assumption: they deleted the cache field without returning those tokens to the prompt total. Changes
Regressions added
Verification. The three test files pass with 90 tests. With the pre-fix sources restored, the new parser and Antigravity tests fail. The producer test alone passes on the old code because the log-aggregate fallback already recovered the total there, so the parser output was the real leak. The core type check and lint are clean. One trade-off to note. When the breakdown is withheld, the returned cached tokens are priced at the uncached input rate, since the usage shape has no place for a cached count that is not a whole-run measurement. That is a small overestimate rather than the previous undercount. No preview files were created: the change alters stored token totals only for runs with partial cache telemetry, which is not a perceptible UI change. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ts now returns to `input_tokens` instead of vanishing, so the execution's total prompt tokens and cost inputs survive while the cache breakdown is still withheld. F20 is fixed. A cached subtotal that covers only some prompts now returns to `input_tokens` instead of vanishing, so the execution's total prompt tokens and cost inputs survive while the cache breakdown is still withheld. **What was wrong.** The Codex parser split each prompt into ordinary and cached tokens, then dropped the cached portion outright when a later prompt omitted cache telemetry. The two Antigravity aggregators this PR changed made the same assumption: they deleted the cache field without returning those tokens to the prompt total. **Changes** - `packages/core/src/codex/codexHelpers.ts`: when the breakdown is not measured for every prompt, the returned `input_tokens` is the ordinary plus cached sum, and the cache field stays absent. - `packages/core/src/agents/impl/antigravityGoalStream.ts`: the step sum folds the counted cache reads back into the prompt total before withholding the breakdown. - `packages/core/src/agents/impl/antigravityNativeGoal.ts`: the segment sum does the same, including when a measured segment follows a segment that already made the breakdown unknown. **Regressions added** - Codex parser: a prompt with 60 cached tokens followed by one with no cache field yields 1,000 prompt tokens and no cache field. - Antigravity step and segment sums: positive cached counts mixed with an unmeasured prompt keep the full total, in either order and with a third measured segment. - Metrics producer: the real parser output for the mixed execution is persisted with 1,000 input tokens, a null cache read count and `cache_usage_reported` false, and the cost calculation receives all 1,000 prompt tokens. **Verification.** The three test files pass with 90 tests. With the pre-fix sources restored, the new parser and Antigravity tests fail. The producer test alone passes on the old code because the log-aggregate fallback already recovered the total there, so the parser output was the real leak. The core type check and lint are clean. **One trade-off to note.** When the breakdown is withheld, the returned cached tokens are priced at the uncached input rate, since the usage shape has no place for a cached count that is not a whole-run measurement. That is a small overestimate rather than the previous undercount. No preview files were created: the change alters stored token totals only for runs with partial cache telemetry, which is not a perceptible UI change. PR: #2868 Comment by: @propr-ultrafix (ID: 0) Model: Claude Fable 5.1
|
⏳ Ultrafix is waiting for CI before the next These blocking checks on
Checks matching this repository's non-blocking checks never gate Ultrafix. The loop continues automatically once the blocking checks pass; if they have not settled within 2 hours, Ultrafix stops. |
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR separates runs from tasks, shares dashboard aggregation, and adds delivery, cache, and review-quality metrics. It needs a targeted correction before merge because incomplete cache telemetry now discards information used for cost calculation. ✅ Shared aggregation — Dashboard task counts and Analytics task counts now use the same aggregation and UTC window boundaries. ✅ Boundary coverage — Added tests cover unknown models, period seams, post-merge work, and reported versus missing cache telemetry. The supplied current-head status is healthy: 41 passed, no failures or pending checks. This review used static tracing only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F21: 🔴 Preserve known cache discounts when telemetry is incomplete
SuggestionsThese are optional follow-ups and are not sent to S31: 🟢 Reconcile unavailable spend semantics
S32: 🟢 Correct the hourly window documentation
ScoreThe implementation has substantial focused coverage and passing checks, but the cache-completeness changes introduce a cost-accounting regression that needs correction before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 513d946
Summary of ChangesF21 is fixed. Known cached tokens now keep their cache-read price when a run's cache telemetry is incomplete, and only the hit-rate measurement is withheld. What changed
Regressions
Verification
Sibling audit
No preview files were created. The change alters the cost recorded for future executions and is not a perceptible UI change on its own. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
… price when a run's cache telemetry is incomplete, and only the hit-rate measurement is withheld. F21 is fixed. Known cached tokens now keep their cache-read price when a run's cache telemetry is incomplete, and only the hit-rate measurement is withheld. **What changed** - **Completeness travels separately from the counts.** `TokenUsage` gained an optional `cache_usage_incomplete` marker in both the agents and metrics type definitions. The marker means the cached subtotal is known but covers only some prompts. - **Codex parser** keeps `cache_read_input_tokens` as the measured subtotal whenever any event reported one, and sets the marker when a prompt-bearing event omitted it. Nothing is folded back into ordinary input any more. - **Antigravity step and segment sums** do the same. A step or segment without a cache count marks the sum incomplete instead of converting the other segments' cached tokens to full-rate input. A segment that arrives already marked keeps the whole goal marked. - **Metrics recording** treats a marked usage as unreported for persistence, so the row stores null cache columns and `cache_usage_reported = false` and stays out of the Analytics hit-rate denominator. Cost calculation still receives the separated cached subtotal, so the discount is applied. - **Two type-only ripples** were narrowed: the Claude goal stream's usage accumulator type and the OpenCode setter's key type now exclude the boolean marker. No runtime change in either. **Regressions** - Codex and Antigravity unit tests now assert the preserved subtotal plus the marker for mixed telemetry, including the zero-count, omitted-count, and already-marked-segment orderings. - The metrics recording suite has the finding's scenario for both providers: a 1,000,000-token prompt with 900,000 cached followed by a 100,000-token prompt with no cache field. Each asserts the cost function receives 200,000 ordinary input tokens and 900,000 cache reads, while the row stores 1,100,000 prompt tokens with the breakdown withheld. Both fail against the previous source and pass now. **Verification** - The three directly affected suites pass (91 tests), as do the seven other suites that import these modules (73 tests). - The core package type check and its lint config are clean on every changed file. **Sibling audit** - The Codex app-server connection carries one cumulative snapshot per thread with no cross-prompt aggregation, so it has no folding to correct. - The conversation-log aggregation path in metrics recording already priced the cached subtotal while flagging incompleteness; it now also honours the new marker on a logged usage. - The persisted row deliberately keeps null cache columns for incomplete runs. The Analytics cache query admits any row with a positive cache count, so storing the subtotal there would pull incomplete runs back into the hit-rate denominator. No preview files were created. The change alters the cost recorded for future executions and is not a perceptible UI change on its own. PR: #2868 Comment by: @propr-ultrafix (ID: 0) Model: Claude Fable 5.1
|
⏳ Ultrafix is waiting for CI before the next These blocking checks on
Checks matching this repository's non-blocking checks never gate Ultrafix. The loop continues automatically once the blocking checks pass; if they have not settled within 2 hours, Ultrafix stops. |
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within the supplied scope. The PR separates task and run volume, shares dashboard and Analytics aggregation, and adds delivery, efficacy, and cache metrics with substantial regression coverage. ✅ Consistent volume accounting — Unknown-model executions remain included, allowing model rows, activity buckets, and total runs to reconcile. ✅ Cache telemetry integrity — Missing and partial cache measurements stay out of hit-rate calculations while known cached tokens retain their pricing discount. ✅ Merge-bound accounting — Delivery calculations exclude post-merge work, with tests covering retries, follow-ups, and missing execution telemetry. This was a static review of the supplied code; no commands were run. The authoritative checks report 41 passed, none failed or pending. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S33: 🟢 Align timeframe documentation
ScoreThe implementation addresses the analytics objective with shared aggregation and focused coverage of accounting boundaries. No merge-blocking defect was verified, and current checks are green. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryI resolved the one conflict, in What the conflict was about: Both branches added a bullet at the same spot in the
How I resolved it: I kept both bullets, the PR's dashboard entry first and then Why: The two entries describe unrelated changes (the Analytics stats endpoint vs. repository to-dos), so neither replaces the other. Dropping either would lose a real release note. Nothing else in the file was touched. Checks: The surrounding sections ( One thing to know: I couldn't mark the file as resolved in git. 🤖 Resolution Details
System-triggered merge conflict resolution |
…s-updates-20261007-1013-idq Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - CHANGELOG.md PR: #2868 Model: Claude Opus 5.5









AI Implementation Summary
Closes #2866
Branch:
2866/claude-opus-5-5-analytics-updates-20261007-1013-idqCommits: ✅ Changes committed (66fa013)
AI Processing Completed
Execution Details:
Summary:
I've implemented all four parts of #2866. The API, UI and e2e tests for these areas pass, with one exception: a dashboard attention test that fails the same way on untouched
main.1. Tasks vs. runs
2.4×, with total runs underneath).2. Review Quality → "Agent efficacy by model"
n=lines and the bracketed median are gone; the PR count behind each figure is in the cell's tooltip.3. New metrics
88%, with12% required operatorunderneath). Cancelled tasks are left out.4. Widget and Analytics page out of sync
analyticsAggregates.ts) over the same rolling window. So for "7 days" the task count, success rate, spend and daily curve match.Things to know
dashboardRoutes.test.ts. It covers the attention list, which this change doesn't touch.analyticsDelivery.ts, andstatsRoutes.tsgoing over the line limit) are fixed.getOfficialModelPricingfrom@propr/core. The pricing lookup is passed in fromserver.ts, so the stats routes don't import@propr/coredirectly; a direct import caused the stats tests to fail on GitHub auth setup.docs/docs/operations/metrics.mdand the existing test fixtures. The CSV export gains score delta and runs-to-merge columns.Previews were captured with Playwright against stubbed data: the Analytics page, the delivery band, the efficacy table, Models plus Token consumption, and the dashboard widget.
Detailed Logs:
c721c64d-b555-48e6-a10c-2c8b1ab4248cLog files stored at:
/tmp/claude-logs/issue-2866-2026-10-07T10-34-19-014Z-conversation.json/tmp/claude-logs/issue-2866-2026-10-07T10-34-19-014Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2866.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Agent efficacy by model
Replaces Review quality by model: one figure per cell, no n= clutter or bracketed medians, plus score delta and average runs to merge
Original unavailable: managed storage is unavailable or the upload has expired.
Delivery band
Run volume vs. task volume, first-time pass rate, mean time to merge and autonomy, each with its denominator underneath
Original unavailable: managed storage is unavailable or the upload has expired.
Analytics page (7 days)
Totals band with the new delivery band under it (runs per task, first-time pass, time to merge, autonomy); Models now counts runs; Token consumption adds cache hit rate and savings
Original unavailable: managed storage is unavailable or the upload has expired.
Models (Runs) and Token consumption
The models column reads Runs instead of Tasks; token consumption shows cache hit rate and estimated savings
Original unavailable: managed storage is unavailable or the upload has expired.
Dashboard Historical stats widget
Shows Tasks, Success and Spend from the same aggregation and rolling window as the Analytics page
Original unavailable: managed storage is unavailable or the upload has expired.