Skip to content

[Epic] Cost visibility: failed-attempt spend, cost export, anomaly alerts, cost by effort - #3458

Merged
integry merged 21 commits into
mainfrom
3437-epic-cost-visibility-olu
Nov 13, 2026
Merged

integry merged 21 commits into
mainfrom
3437-epic-cost-visibility-olu

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Cost visibility: failed-attempt spend, cost export, anomaly alerts, cost by effort

This Epic PR aggregates all changes for the plan: Cost visibility: failed-attempt spend, cost export, anomaly alerts, cost by effort

Issues in this Epic

Auto-close

When this PR is merged, the following issues will be automatically closed:

Fixes #3437
Fixes #3438
Fixes #3439
Fixes #3440


Created automatically by ProPR

propr-dev[bot] and others added 3 commits November 11, 2026 22:31
…on, and analytics reports it separately from successful spend. Typecheck passes for root, core, api and propr-ui, and eslint passes with `--max-warnings 0` on every changed file. In the related tests (28 root suites, the API analytics suites and the Analytics page tests) everything passes. The `processGoalJob` suite only failed when I ran suites four at a time, because they share a SQLite file; it passes 18/18 alone. `test/llmMetrics.test.ts` needs a real Redis, so I didn't run it; the new tests use a mocked Redis that behaves like the real one for these calls.

1. Failed attempts get one execution row
- Usage limits: `parseStreamJsonOutput` now attaches what it had parsed so far (turns, tokens, cost, session) to the `UsageLimitError`. When `ClaudeAgent` or `CodexAgent` catches one, it writes one `llm_logs` row and one `llm_executions` row with `success = false`, the error message and the observed tokens and cost (zero if none), then rethrows. Nothing downstream ever gets a result for this case, so the agent has to record it.
- Thrown errors: the agent returns a failed result as before, and the job records it as before. The difference is that it now also writes the missing `llm_logs` row. If the agent run had finished and a later step threw, the tokens and cost from that run are kept instead of being reset to zero.
- Cancellations: the issue and PR-comment jobs now record the run before checking whether the task was cancelled. A cancelled run's spend used to go unrecorded.
- The shared logic is in a new file, `agents/impl/utils/failedAgentExecution.ts`. Recording waits at most 10 seconds, so an unreachable store can't hold up a failing run.

2. `recordLLMMetrics` can't count an execution twice
- Each agent result now carries an `executionId`, assigned after the agent runs and passed through every result conversion in the issue, PR-comment, merge-conflict and goal jobs.
- The first record of an id claims it in Redis (`SET NX`, kept 30 days, with a small in-process backup set). Any later record with that id inserts no row and adds nothing to the `llm:metrics:*` counters. Results without an id are recorded as before. This is in a new file, `utils/llmMetricsExecutionClaim.ts`.

3. Analytics splits spend by outcome
- `loadRecordedSpend` now returns `{ total, successful, failed }` instead of a single number; `total` means the same as before. Its two callers in `statsRoutes.ts` are updated.
- `loadModelUsage` adds `successful_cost_usd`, `failed_cost_usd` and `failed_runs` to each model.
- `/stats/overview` adds `usage.successful_cost_usd` and `usage.failed_cost_usd`. `/stats/dashboard` adds `recordedSpendSuccessful` and `recordedSpendFailed`, including under `previous`. No existing field was renamed or removed.
- An execution with no recorded outcome is not counted as failed. A database without the `success` column reports zero failed spend.
- The Analytics page shows "$X on failed attempts" under Total spend for the selected window, and shows nothing when the server doesn't send the split. I shortened the wording from "spend on failed attempts" because it was cut off on a 390px phone.

Tests
- New `test/llmMetricsFailedExecutions.test.ts`: recording an id twice gives one row and one counter increment; an id claimed by another worker is skipped; usage limit with and without streamed tokens; thrown errors.
- New `test/llmMetricsFailureHandlerIdempotency.test.ts`: the issue and PR-comment failure handlers pass on the same id the run recorded. This test fails against the old code.
- The API tests cover the split, missing outcomes and the old schema. The Analytics page test covers the new line.
- I updated existing exact-match test expectations to include the new fields. The shared dashboard test database now has a nullable `success` column.

Two behaviour changes to check:
- The idempotency guard relies on Redis. If Redis is down, recording already fails as it did before.
- A thrown error before the agent did any work still writes a failed row with zero spend, as the issue asks. Those rows add to the run counts on the Analytics page.

I captured desktop and phone previews of the totals band using stubbed data.
…on's claim, so a later record of the same result can still write its row. A completed record is still never written twice. Typecheck passes for core and root, and eslint `--max-warnings 0` is clean on both changed source files. The new and existing metrics tests pass (25/25), and the other suites that record metrics through a mocked Redis pass (289/289).

I fixed F1: a write that fails no longer uses up an execution's claim, so a later record of the same result can still write its row. A completed record is still never written twice. Typecheck passes for core and root, and eslint `--max-warnings 0` is clean on both changed source files. The new and existing metrics tests pass (25/25), and the other suites that record metrics through a mocked Redis pass (289/289).

**How the claim works now** (`packages/core/src/utils/llmMetricsExecutionClaim.ts`)
- Recording an execution now has two stages, each claimed separately with Redis `SET NX`: the `llm:metrics:*` counters (existing key `llm:metrics:recorded:<id>`) and the `llm_executions` row (new key `llm:metrics:persisted:<id>`).
- Each claim stores a random token. A claim is released only if it still holds that token, so one worker can't remove another worker's claim. Releasing also clears the in-process backup entry.
- A release happens only when the stage verifiably wrote nothing:
  - **Counters:** released if the attempt fails before any counter is incremented (a cost calculation or `setex` failure). Once incrementing has started the claim is kept, so a partial write is never counted again.
  - **Row:** `persistToDatabase` now returns whether the row was inserted, and the claim is released only if it wasn't. If the row went in but its detail rows failed, the claim stays, so nothing is inserted twice.
- A record whose counters are already claimed now skips only the counters and still writes the row if that stage is unclaimed. That is how the failure handler's second record recovers a missing row.

**Tests**
- New `test/llmMetricsClaimRecovery.test.ts`, which injects failures. Each case records the same result again afterwards and checks the outcome:

  | First attempt fails at | Second attempt |
  |---|---|
  | Row insert | Exactly one row, counters not incremented again; a third record still writes nothing |
  | `setex` | Both claims were released; one row, one count |
  | A counter increment | One row; the counters keep the first attempt's value |
  | Detail rows | Still treated as recorded, no second row |

  A fifth case checks that a claim held by another worker is never released. The first three cases fail against the previous code.
- In `test/llmMetricsFailedExecutions.test.ts`, the cross-worker test now marks both stages as claimed by the other worker.

**Separate from this fix (not changed)**
- One race can't be avoided: if the database inserts the row but the reply is lost, the claim is released and a retry could insert a second row. Redis being unreachable during a release leaves that stage claimed, so it's lost but not doubled.
- As before, a Redis failure during the counters stage still skips the database write within that same attempt; the next record of the same result writes it.

There are no visual changes, so I made no previews.

PR: #3453
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
…-report-spend-o-20261111-2200-41r

[3437 by Claude Opus 5.5] Record and report spend on failed and errored attempts
@propr-dev

propr-dev Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Epic progress: Cost visibility: failed-attempt spend, cost export, anomaly alerts, cost by effort, escalation after failure

4 out of 4 PRs merged ✅

██████████ 100%

Merged child PRs: #3453, #3459, #3467, #3494

1 planned issue was closed without a merge and is not counted.

✅ This epic PR has been merged into main.


This comment is updated automatically by ProPR as child PRs merge.

@propr-dev propr-dev Bot added the AI label Nov 11, 2026
propr-dev[bot] and others added 7 commits November 12, 2026 00:29
…. It was a leftover wait loop from an earlier test run. It never exited because its `pgrep -f "costExport.test"` matched its own command line. The actual test runs finished separately and passed (8/8 for the API tests), so I didn't restart it. The implementation and test results in my previous summary still stand.
…me from the one log call matched to each execution, and stay null when no call matches. All 9 cost-export tests pass on SQLite, the API typecheck is clean, and eslint `--max-warnings 0` passes on both changed files.

I fixed F1 and F2 together: agent and execution type now come from the one log call matched to each execution, and stay null when no call matches. All 9 cost-export tests pass on SQLite, the API typecheck is clean, and eslint `--max-warnings 0` passes on both changed files.

**F1 didn't reproduce.** The old correlated `ORDER BY` query works on this SQLite (3.53.4, better-sqlite3): the existing agent/type test passed before I changed anything, run with `PROPR_DEMO_MODE=true`. I replaced the query anyway, because fixing F2 needs one ranked match per execution.

**What changed** (`loggedRuns` in `packages/api/routes/costExport.ts`):
- The export now joins each execution in the window to candidate log calls and ranks them with `row_number()`: same session first, then same model, then nearest start time, then `log_id`. The best candidate is the only row joined, and both agent and execution type are read from it. A null `agent_alias` on that row stays null and isn't taken from another call.
- A call counts as a match only if:
  - **Execution with a task:** the call has the same task and the same session. If neither has a session, it needs the same task and the same model instead. Calls that only share the task, or that come from a different session, no longer match.
  - **Execution without a task:** the call has the same session (unchanged).
- The task and session paths both use the new query. The join only runs when `agent` or `execution_type` is requested.

One rule is stricter than the finding asked for. A session-less execution no longer matches a call that has a session, even on the same model. I did this because an execution and its log call take their session from the same result, so a log with a session belongs to some other run. Otherwise the test would pass only because of the `log_id` tie-break.

**New test:** "agent and execution type come from one matching call; nothing is borrowed from other runs of the task". It covers three cases:
- **F2's own case:** the matching call has a type but no agent, and another review call on the task has `codex`. The result is `null / implementation`.
- **No matching call:** an execution whose session no call recorded gets `null / null`.
- **No session:** the nearer of two session-less same-model calls wins, and a nearer call from another session is never picked.

I checked that this test fails on the previous code, which gives `codex / implementation` and `codex / review`.

I found nothing else outside the selected findings to report.

PR: #3459
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
…t and execution type only when there's real evidence that a log call belongs to that run. If there isn't, both stay null, so the later run in the finding's example is no longer credited to the earlier run's call.

I fixed F3. An execution without a session now gets an agent and execution type only when there's real evidence that a log call belongs to that run. If there isn't, both stay null, so the later run in the finding's example is no longer credited to the earlier run's call.

**What changed** (`loggedRuns` in `packages/api/routes/costExport.ts`): a session-less execution and a session-less call on the same task and model now pair up only when:
- **Their time spans overlap.** Both rows come from the same agent run, so the real call always overlaps its execution. A missing end time counts as the start time.
- **They are each other's nearest overlapping match.** One call can therefore never be credited to two executions.
- **The match is decided across all executions, not just the requested period.** If a call's own execution started before the period, the call isn't credited to a later overlapping execution inside it.

Executions with a session, and executions with no task, still match exactly as before. The HTTP JSON, CSV, CLI and MCP outputs all share this loader, so they all get the fix.

**Tests** (`packages/api/test/costExport.test.ts`):
- **New regression test** with three cases:
  - **The finding's case:** two session-less runs of one task on one model, with a call recorded only for the earlier run. The later run is counted as unknown, and its $4 is no longer credited to `claude / implementation`.
  - **Two runs overlapping one call:** only the run nearest the call gets it. The other stays unknown.
  - **Call's own run outside the period:** the call isn't credited to the overlapping run inside the period.
- **One existing test fixture adjusted.** In the earlier test's session-less case, the matching call started an hour before the execution and recorded no end time, so it never overlapped the run. I gave it an end time so that it covers the run. That case still checks that the matching call wins over a call from another session.

**Verification:**
- All 10 cost-export tests pass.
- The new test fails on the previous `costExport.ts`, and that is the only test that fails there.
- The `packages/api` typecheck is clean.
- eslint `--max-warnings 0` passes on both changed files.

One thing to know: the overlap rule assumes an execution row's time span actually covers its agent run. The execution's start is computed when it is saved, as save time minus the run's duration. If a run were saved long after it ended, its spans wouldn't overlap and its agent and type would show as unknown rather than wrong.

I found nothing else outside F3 to report. This change has no visual effect, so I made no preview.

PR: #3459
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
…both cost export endpoints now return 400 instead of exporting every repository.

I fixed F4: when a repository filter isn't a plain string, both cost export endpoints now return 400 instead of exporting every repository.

**The fix** (`packages/api/routes/costExport.ts`, in `readExport`): `validateRepositoryFilter` now checks the raw `req.query.repository` before anything else. A missing or empty value still means "all repositories". Repeated parameters (`?repository=acme/alpha&repository=acme/beta`) and nested ones (`?repository[name]=…`) get a 400 with "Repository must be a string". Both `/api/stats/cost` and `/api/stats/cost.csv` go through this one function, so one change covers both.

**New test** (`packages/api/test/costExport.test.ts`): for both endpoints, it sends two repeated values, one value in array form, and an object. It checks each gets a 400 with that error.

**Verification:**
- The cost-export suite passes 11/11. I ran it with `PROPR_DEMO_MODE=true` because without GitHub auth configured, the test file fails before any test runs.
- With the original route code put back, the new test fails, so it does catch the bug.
- The API typecheck is clean, and eslint `--max-warnings 0` passes on both changed files.

**Other places I checked:**
- The MCP tool `get_cost_breakdown` isn't affected: its input schema already requires `repository` to be a single repository handle, so it can't receive an array or object.
- **Not fixed, separate issue:** `readSummary` in `packages/api/routes/reviewScoreStats.ts` (around line 388) has the same pattern. It turns any non-string `repository` into `'all'` before validating, so repeated parameters widen the review-score summary to every repository. This PR only exported `csvCell` from that file and didn't touch this code, so I left it out of scope.

PR: #3459
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
…d-llm-cost-expo-20261111-2357-0bs

[3438 by Claude Opus 5.5] Metrics and LLM-cost export (CSV, JSON, CLI, MCP)
… compared with the usual tokens for the same repository, model and execution type. A run far above that usual level raises a `warning` Inbox notification on its task. The new tests and the related suites pass.

How the check works
- Baseline: the median tokens of the last N successful runs (default 20) for the same repository, model and execution type. A run is never part of its own baseline. No alert fires until at least 8 such runs exist.
- Execution type: older call sites don't pass one, so I fall back to the job type (`issue`, `pr_comment`, …).
- Token total: input + output + cache writes + cache reads, the same total the cost estimate uses.
- When it alerts: the run must be above the multiple (default 4×) and above an absolute floor (default 500,000 tokens), so small runs never alert.
- Notification: reuses the existing `task` kind, links to the task, and states observed versus baseline. For example: "Used 6M tokens, 6× the baseline of 1M (median of the last 8 successful implementation runs of Claude Opus 5.5 in acme/widgets; alert above 4×)."
  - It goes to all instance members, the same way the spend-cap notification does.
  - It is skipped for repositories with notifications turned off.
  - Each task alerts at most once, so later runs of the same task stay quiet.
  - Runs with no task still count toward baselines but cannot alert, since there is nothing to link to.
- Speed: one row per run goes into a new table, `llm_execution_token_samples`, added by migration `20261112000000`. A composite index makes the baseline query a single indexed lookup. The check is loaded only when first used, and any error in it is logged without affecting the recording.

Automation pause (off by default)
With `token_outlier_pause_alerts` set to M, a repository with M alerts inside the window has its scheduled agent runs skipped, with a reason in the run history. This happens in the existing agent-run cost gate. Only scheduled runs are affected; manual, API, MCP and CLI triggers still run. The pause lifts by itself once the window passes, and if the check itself fails the run goes ahead.

Settings
| Setting | Default | Range |
|---|---|---|
| `token_outlier_multiplier` | 4 | 1.5–100 |
| `token_outlier_min_tokens` | 500,000 | from 1,000 |
| `token_outlier_baseline_runs` | 20 | 8–200 |
| `token_outlier_pause_alerts` | 0 (off) | 0–1,000 |
| `token_outlier_pause_window_hours` | 24 | 1–720 |

- They follow the standard pattern: loader, validation, `SPECIALIZED_SETTING_NAMES`, the settings API, the settings catalog, MCP `update_execution_settings`, and the CLI (`propr setting update …`).
- The definitions live in `@propr/shared` so the CLI can use them.
- The API imports them from shared rather than from `@propr/core`. Several existing tests replace `@propr/core` with a fixed list of exports and broke when the API imported the new constants from core.

Old high-cost Redis list: removed. That covers `checkCostThreshold`, the `llm:metrics:alerts:highcost` list, `HighCostAlert`, and the `recentHighCostAlerts` summary field in core and the API. Nothing in the UI, CLI or OpenAPI used that field. `LLM_COST_THRESHOLD_USD` no longer does anything, and the docs now describe the new alert instead: `metrics.md`, `agents.md`, `execution-safety.md`, plus a regenerated `settings-locations.md`.

Tests
- New: `test/tokenOutlierAlert.test.ts`, 18 tests on in-memory SQLite. They cover the baseline (median, last-N, failed runs excluded, other model/type/repository excluded, case-insensitive repository), the threshold and floor, the 8-run minimum, once-per-task deduplication, the pause and its window, the gate, and the settings (loader, API validation, CLI parsing). I broke the deduplication and the 8-run minimum on purpose to confirm the tests catch it.
- Existing: I re-ran 30 related suites (settings, config routes, MCP, OpenAPI, cost export, and the existing metrics-recording suites). In `test/configRoutes.followup.test.ts`, the expected settings responses needed the new defaults added; it now passes 103/103.
- `test/llmMetrics.test.ts`: I rewrote its old high-cost test to check that the list is gone. It needs a live Redis and timed out in the first run because this container has none. With a Redis 7.2 built locally it passes 5/5.
- Typecheck and lint: clean for shared, core, API and CLI; the changed core and API files pass `eslint --max-warnings 0`.

There are no visual previews: the alert uses the existing Inbox notification UI, and everything else is backend.
…d the automation pause, only after its Inbox notification has actually been saved. All 21 tests in `test/tokenOutlierAlert.test.ts` pass, including three new ones.

I fixed F1: a task's alert is now marked, and counted toward the automation pause, only after its Inbox notification has actually been saved. All 21 tests in `test/tokenOutlierAlert.test.ts` pass, including three new ones.

**Changes in `packages/core/src/utils/tokenOutlierAlert.ts`**
- **Three outcomes:** `notifyTokenOutlier` now reports `delivered` once the event is saved, or `suppressed` when nothing is raised (repository notifications off, no recipients, no task). A failed save throws as before. The new `TokenOutlierNotificationOutcome` type is also exported from `packages/core/src/index.ts`.
- **Marker after delivery:** `recordTokenUsageSample` writes `alerted_at` only for `delivered`.
  - If the notification is suppressed, nothing is marked and the result is `alerted: false`.
  - If the save fails, the error reaches the caller's existing best-effort handler in `llmMetrics.ts` with nothing marked. The task's next outlier run tries again, and the existing `token-outlier:<taskId>` deduplication key stops a retry from creating a second Inbox event.
- **Pause count:** since the current alert isn't in the table yet when the pause is worked out, the count adds 1 for it. The notification text still states the pause that this alert causes.
- **Two runs at once:** two outlier runs of the same task could both pass the "already alerted" check while waiting on the notification, then both mark and count twice toward the pause. The marker update now skips the row if another run of the task has been marked in the meantime, so only one run reports `alerted: true`. The original code had the same gap, and it could only get wider once marking waits for delivery.

**New tests in `test/tokenOutlierAlert.test.ts`**
- **Notifications off:** with the pause set to 1, a suppressed alert leaves no marker and no pause. Once delivery works again, the same task's next outlier alerts and starts the pause.
- **Save failure:** the error propagates, there is no marker or pause, the next outlier run of the task alerts, and the one after that stays quiet.
- **Two runs at once:** both runs get past the "already alerted" check before delivery finishes, and only one ends up marked.

All three new tests fail when run against the previous version of the file, and the other 18 still pass there. The core typecheck and `eslint --max-warnings 0` on the changed core files are clean.

`test/llmMetrics.test.ts` was not run successfully: it needs Redis, which isn't in this container, so the attempt hung and I stopped it. The caller it would cover, `checkTokenOutlier`, is unchanged.

There are no visual previews, because this change is backend-only.

PR: #3467
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@integry

integry commented Nov 12, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

❌ Failed to resolve merge conflicts from main into 3437-epic-cost-visibility-olu

Push rejected

Reason: Non-fast-forward (non_fast_forward)

The remote branch moved while the task ran (non-fast-forward). Fetch the branch, integrate the new commits, and push again.

Recovery: The commits were pushed to refs/propr/rescue/merge-conflict-integry-propr-3458-1794494768991--20261112T145023Z on integry/propr. Recover them with: git fetch origin refs/propr/rescue/merge-conflict-integry-propr-3458-1794494768991--20261112T145023Z && git checkout -B 3437-epic-cost-visibility-olu FETCH_HEAD, then push the branch.

Remote output
To https://github.com/integry/propr.git
!	refs/heads/3437-epic-cost-visibility-olu:refs/heads/3437-epic-cost-visibility-olu	[rejected] (non-fast-forward)
Done
Pushing to https://github.com/integry/propr.git
error: failed to push some refs to 'https://github.com/integry/propr.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. If you want to integrate the remote changes,
hint: use 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

System-triggered merge conflict resolution

…-a-run-s-token--20261112-1031-e9d

[3439 by Claude Opus 5.5] Alert when a run's token use is far above the baseline for its repository and model
@propr-dev

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 3437-epic-cost-visibility-olu in commit 364d89d

Conflicting Files

  • CHANGELOG.md

Resolution Summary

The merge conflict is resolved. CHANGELOG.md was the only file with conflict markers, and none are left anywhere in the repository.

What the conflict was: both branches added a new entry at the top of ## [Unreleased] → ### Added, in the same spot:

  • This PR (HEAD): the LLM cost export entry, covering GET /api/stats/cost and /api/stats/cost.csv, propr stats cost, and the get_cost_breakdown MCP tool.
  • main: the Auto-merge: up-to-date branches entry (auto_merge.require_up_to_date). It is followed by a new ### Changed section about the bundled Antigravity CLI 1.5.6 upgrade and its sub-items.

How I resolved it: I kept everything from both sides and only removed the conflict markers. Under ### Added, the PR's cost-export entry comes first and main's auto-merge entry follows it. Main's ### Changed section comes next, then the existing ### Fixed section. The headings still follow the Keep a Changelog order (Added, Changed, Fixed), and git diff --check reports no whitespace problems.

Why: these are separate features, so a changelog needs every entry and neither side should replace the other. Putting them one after another keeps the PR's entry and brings in main's changes unchanged.


🤖 Resolution Details

  • Model: Claude Opus 5.5
  • Time: 3m 22s

View Task Execution


System-triggered merge conflict resolution

propr-dev[bot] and others added 4 commits November 12, 2026 14:54
Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- CHANGELOG.md

PR: #3458
Model: Claude Opus 5.5
…s down by implementer model and effort. Only the API typechecks; the CLI and UI typecheck too, and lint passes for the API and UI files I changed with `--max-warnings 0` (the CLI package has no ESLint config, so nothing lints its files). The new and existing tests pass:

- API: the review-score suites plus the nearby analytics, stats, cost-export and MCP overview suites.
- CLI: 4/4.
- UI: the Vitest tests and the 15 Playwright tests in `analytics-timeframe.pw.ts`.

API (`packages/api/routes/reviewScoreStats.ts`)
- The summary has a new `by_effort` list. Each row has the same figures as a `models` row, for one model at one effort level, plus `implementer_reasoning_level`.
- A PR's effort comes from the same score row that gives its model. PRs with no recorded level, including empty strings and historical data, go under an explicit `unknown` value and are never dropped. Each model's effort rows add up to its `models` row.
- Rows follow the order of `models`, then effort from lowest to highest, with `unknown` last.
- `models` keeps its meaning, so the per-model totals and the overview's score figures are unchanged.
- If a database doesn't have the `implementer_reasoning_level` column yet, every PR is reported as `unknown` instead of the query failing.
- CSV format change: the CSV now has one row per model and effort, with a new `implementer_reasoning_level` column after `implementer_agent`. Anything that reads this CSV expecting one row per model will need updating; the per-model totals are still in the JSON `models` list.

CLI (`packages/cli`)
- The TypeScript type now includes `score_delta`, `runs_to_merge` and the effort rows.
- `propr stats review-scores` prints one row per model and effort, with new Effort, Merged, and Runs to merge columns. If the server is older and doesn't send effort rows, it falls back to per-model rows with the effort shown as `(all)`.

UI (`ReviewQualityByModel.tsx`)
- A model with more than one effort level gets an indented row per level under its totals, with "Unknown effort" last.
- A model with exactly one known level gets a small tag next to its name instead, such as "Medium effort".
- Untracked work and older servers look the same as before.
- I didn't add a cost-per-merged-PR column to this table; it didn't have one before, and cost is in the CSV and CLI. The issue only asked for effort as a secondary grouping here.

Tests and docs
- New tests cover grouping, ordering, the `unknown` bucket, the missing-column case, the CSV columns, and the CLI rows and table. The existing fixtures now include effort levels, and the e2e mock includes effort rows.
- The API tests for the effort split are in a new file, `packages/api/test/reviewScoreEffort.test.ts`, because adding them to the existing test file would have pushed it over the 400-line lint limit.
- `metrics.md`, `propr-cli.md` and `CHANGELOG.md` are updated.

A few of the related API suites only run with `PROPR_DEMO_MODE=true` in this container. Without it they stop at the GitHub-auth message, which is an environment issue, not caused by this change. The preview is a screenshot of the Analytics pane with mocked data, captured by the existing e2e test.
…ame.pw.ts` had 405 counted lines against the 400-line `max-lines` limit, because this branch added effort rows to its mock data. It now passes.

I fixed the UI lint failure. `propr-ui/e2e/analytics-timeframe.pw.ts` had 405 counted lines against the 400-line `max-lines` limit, because this branch added effort rows to its mock data. It now passes.

I shortened the file without changing any data or what the tests check:
- **Review-score mock:** the model and agent fields are now defined once, as `claude` and `gpt`, and a small `effort()` helper builds the four effort rows. The `models` and `by_effort` lists now take five lines instead of nine.
- **Drill-down test:** three `expect(...)` calls that were split across two lines are now on one line each.

Checks I ran:
- `eslint e2e/analytics-timeframe.pw.ts --max-warnings 0` and the full `npm run lint` in `propr-ui` both pass.
- `tsc --noEmit` passes.
- All 15 Playwright tests in `analytics-timeframe.pw.ts` pass.

The "Slow Test" note about `creation-short-window.pw.ts` in the CI summary is only a timing report, not a failure, and this branch doesn't touch that file. Nothing changes on screen, so there is no new visual preview.

PR: #3494
Comment by: @github-actions[bot] (ID: 6828733695)
Comment by: @propr-dev[bot] (ID: 6828733526)
Model: Claude Opus 5.5
…t-per-merged-pr-20261112-1447-a37

[3440 by Claude Opus 5.5] Report cost per merged PR by model and effort
@integry integry changed the title [Epic] Cost visibility: failed-attempt spend, cost export, anomaly alerts, cost by effort, escalation after failure [Epic] Cost visibility: failed-attempt spend, cost export, anomaly alerts, cost by effort Nov 12, 2026
@integry
integry marked this pull request as ready for review November 13, 2026 07:18
@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 3437-epic-cost-visibility-olu in commit 847d92c

Conflicting Files

  • CHANGELOG.md
  • packages/api/mcp/toolsManagement.ts
  • packages/api/routes/configSettings.ts

Resolution Summary

I resolved the conflicts in all three files, and no conflict markers remain anywhere in the repository. Before typechecking, I rebuilt packages/shared and packages/core, because the API typecheck reads their built output. After that, packages/api typechecks with no errors, and ESLint with --max-warnings 0 reports nothing on the two TypeScript files.

All three conflicts had the same cause: this PR and main each added something different on the same lines. Neither side changed what the other added, so each fix keeps both. Most of main's new automation-threshold code was already merged cleanly outside the conflict blocks.

1. CHANGELOG.md — [Unreleased] → Added

  • Conflict: This PR added two entries ("Review quality by effort" and "LLM cost export"). main added "Claude Fable 5.2 and GPT-6.1 Terra" in the same spot.
  • Resolution: I kept all three, with the PR's two first and main's after them. The blank line before the next entry ("Auto-merge: up-to-date branches") is in main's file too, so I left it.

2. packages/api/mcp/toolsManagement.ts — two blocks

  • The @propr/shared import: This PR added TOKEN_OUTLIER_SETTING_DEFINITIONS and TOKEN_OUTLIER_SETTING_NAMES, which its tokenOutlierSettingsShape() helper needs. main added AUTOMATION_UNPRODUCTIVE_RUN_THRESHOLD_MIN and AUTOMATION_UNPRODUCTIVE_RUN_THRESHOLD_MAX. The import now brings in all four.
  • The settingsShape object (the list of execution settings the MCP tools accept): main added the automation_unproductive_run_threshold setting, limited to 1–50. This PR added ...tokenOutlierSettingsShape() at the end. I started from main's version and added the PR's ...tokenOutlierSettingsShape() at the end. The MCP tools that read and change execution settings now accept both.

3. packages/api/routes/configSettings.ts — the @propr/shared import

  • Conflict: This PR imported the token-outlier helpers: TOKEN_OUTLIER_SETTING_NAMES, describeTokenOutlierSettingRange, parseTokenOutlierSetting and the TokenOutlierSettingName type. main imported the two automation-threshold constants. Both import MAX_RUN_COST_CAP_USD.
  • Resolution: One import now covers everything from both sides, with MAX_RUN_COST_CAP_USD once. The rest of the file uses all of them: main's threshold check (lines 183–187) and the PR's token-outlier parsing (lines 203 and 228).

Why: Each side's additions are needed by code elsewhere in the merged files. Dropping either one would have broken the build or removed a setting.


🤖 Resolution Details

  • Model: Claude Opus 5.5
  • Time: 5m 16s

View Task Execution


System-triggered merge conflict resolution

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- CHANGELOG.md
- packages/api/mcp/toolsManagement.ts
- packages/api/routes/configSettings.ts

PR: #3458
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 3437-epic-cost-visibility-olu in commit cf4afe7

Conflicting Files

  • CHANGELOG.md
  • docs/static/openapi/propr-api.yaml

Resolution Summary

I resolved both conflicts and no conflict markers are left in the repository. The regenerated OpenAPI spec passes npm run gen:openapi:check (310 routes, 71 documented, 239 undocumented), and openapiRouteCoverage.test.ts passes 16 of 16.

1. CHANGELOG.md, the ## [Unreleased] → ### Added section

  • The conflict: both branches added new entries at the top of the same list.
    • This PR added Review quality by effort and LLM cost export.
    • main added Automation templates, Instruction learning loop template, MCP get_pull_request_discussion review sources and Weekly codebase drift report template.
  • Resolution: I kept every entry from both sides, the PR's first and then main's, followed by the existing entries such as Claude Fable 5.2. The entries describe separate features, so nothing needed rewording or dropping.
  • Formatting: Prettier reports style issues in the merged file, but main's own CHANGELOG.md gets the same warning, so the merge didn't cause it.

2. docs/static/openapi/propr-api.yaml, the info.x-route-coverage counts

  • The conflict: each side had route counts generated from its own routes.
    • This PR: 309 total, 71 documented, 238 undocumented. Its new cost endpoints added routes.
    • main: 308 total, 69 documented, 239 undocumented. main added GET /api/automation-definitions/templates.
  • Resolution: neither side's numbers are right for the merged code, so I took the PR's side as a starting point and ran npm run gen:openapi to rebuild the spec from the merged routes. The result is 310 total, 71 documented, 239 undocumented. That adds main's new template route as undocumented alongside the PR's documented routes. Only the counts changed; the rest of the spec already matched.
  • Why regenerate: these numbers come from scripts/generate-openapi.ts. Choosing either side by hand would have failed the gen:openapi:check CI check.

🤖 Resolution Details

  • Model: Claude Opus 5.5
  • Time: 4m 2s

View Task Execution


System-triggered merge conflict resolution

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- CHANGELOG.md
- docs/static/openapi/propr-api.yaml

PR: #3458
Model: Claude Opus 5.5
@integry

integry commented Nov 13, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR adds failed-attempt accounting, cost exports, token-outlier notifications, and effort-based review statistics. It needs a localized correction before merge: the anomaly baseline ignores execution history recorded before deployment.

✅ Consistent export surfaces — HTTP, CSV, CLI, and MCP share the cost aggregation, with stable column ordering and CSV escaping.

✅ Preserved model totals — Effort summaries retain the existing per-model figures and explicitly include unknown historical effort.

✅ Focused regression coverage — Added tests cover duplicate recording, failed writes, outcome splits, notification suppression, and effort grouping. The supplied current-head status reports 38 passed checks and no failures.

The linked issue descriptions contain truncation notices; this review relies on their visible requirements and the supplied code. No commands or tests were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Include existing executions in anomaly baselines

  • Required behavior: The baseline must be the median of the last N successful executions for the same repository, model, and execution type, with at least eight executions before alerting.

  • Evidence: packages/core/src/utils/tokenOutlierAlert.ts:readTokenBaseline, packages/core/src/db/migrations/20261112000000_create_llm_execution_token_samples.js:up

    1. Upgrade an instance that already has 20 successful executions for one repository/model/type, each consuming approximately 100,000 tokens.
    2. The migration creates an empty sample table without populating it from those executions.
    3. The next matching execution consumes 10 million tokens. readTokenBaseline queries only the new sample table and returns no history.
    4. evaluateTokenOutlier returns insufficient_history, so the execution produces no warning despite exceeding both the existing historical baseline and the default absolute floor.

    The instance remains blind to these outliers until eight new successful executions have populated that key. The execution history exists, but neither the migration nor the baseline reader consults it. The tests seed all baseline executions through the new sampling function, so they do not exercise this upgrade sequence. static trace: verified from the migration, baseline query, and minimum-history guard supplied in the diff.

  • Minimum fix: Populate baseline samples from attributable existing successful executions, either during migration or through a bounded fallback when a baseline lacks samples. Preserve repository/model/type matching and exclude the current execution. Add an upgrade regression covering an outlier immediately after deployment.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Make execution deduplication durable

The new execution UUID is protected by expiring Redis claims and a bounded process-local set, but is not stored as a unique database key. Consider persisting it with a uniqueness constraint so future replay or recovery mechanisms can guarantee deduplication independently of cache retention. This is an optional durability improvement: the supplied code establishes the immediate duplicate-handler protection, but does not establish a reachable delayed replay after both protections disappear.

Score

The implementation has broad, focused coverage and all reported current-head checks pass. The missing historical baseline prevents the new alert feature from meeting its stated behavior on existing installations.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 35s
  • Tokens: 128,164 (126,446 in / 1,718 out)
  • Cost: $1.22

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 S1

🤖 Review by ProPR

@integry

integry commented Nov 13, 2026

Copy link
Copy Markdown
Owner

/fix all

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit d086565

Addressed 1 AI review comment (IDs: 6848160503)

Addressed finding F1 · suggestion S1

Summary of Changes

I've made both changes: F1 (anomaly baselines now use executions recorded before the upgrade) and S1 (each execution's ID is now stored in the database under a unique index). The changed suites pass, and the core typecheck and zero-warning lint are clean.

F1: Baselines include executions from before the upgrade

A new migration, 20261113000000_backfill_llm_execution_token_samples.js, copies past successful executions into the sample table. I added it as a separate file rather than editing the create-table migration, so instances that already ran that one still get the backfill. Each copied row gets the same repository, model and execution type that recordLLMMetrics would give a new sample:

  • Repository: taken from the execution's task, lowercased.
  • Model: the execution's own model_name.
  • Execution type: taken from the logged call of the same run (same task and agent session).
    • A call logged with an explicit type (pr-review, context-analysis, …) keeps that type.
    • A normal task run (logged as implementation) gets its job type from the task type: issue and goal become issue, pr-comment becomes pr_comment, merge_conflict stays merge_conflict.
  • Tokens: input_tokens + output_tokens. Since February, input_tokens already includes cache tokens, which matches what new samples count.

These executions are skipped:

  • failed runs and task-less runs.
  • runs with no session ID or the placeholder unknown.
  • runs with no matching logged call, or with calls that disagree on the type.
  • runs whose task type has no job-type mapping.
  • runs with missing token counts.

Each repository/model/type keeps at most its last 200 executions (the largest baseline window the setting allows). The migration runs before any new execution is recorded, so the current execution can't end up in its own baseline.

The new test test/tokenSampleBackfillMigration.test.ts migrates a database to just before the backfill, seeds 20 past runs of about 100K tokens, then upgrades. The next 10M-token run comes out as an outlier against a 100K baseline from 20 samples, and the alert fires. Other tests cover the key mapping, the skipped cases and the 200-run cap. With the backfill disabled, three of the five tests fail, so they do test the backfill.

S1: Deduplication survives expired Redis claims

  • Migration: 20261113000100_add_llm_execution_uuid.js adds a nullable llm_executions.execution_uuid column with a unique index. Old rows and results without an ID stay null and aren't constrained.
  • Insert: the insert moved to a new helper, insertExecutionRow, in llmMetricsExecutionClaim.ts. It writes the execution ID with the row. If the database rejects a duplicate ID, the record is treated as already written: the row claim is kept, and no details row or second token sample is written.
  • Tests: the claim-recovery suite now drops both the Redis claim and the in-process claim, records the same result again, and checks that no second row is written. test/llmExecutionUuidMigration.test.ts checks the real SQLite unique index, that the error is recognised as a duplicate, and that the migration rolls back.

Checks and caveats

  • test/llmMetrics.test.ts was not run: it needs a live Redis, which this container doesn't have, so it hangs.
  • I didn't run the packages/api cost-export suites.
  • No visual previews, since nothing changed in the UI.

🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 25m 33s
  • Tokens: 6,363,512 (6,323,529 in / 39,983 out)
  • Cost: $2.72
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6848345548✓

…tions recorded before the upgrade) and S1 (each execution's ID is now stored in the database under a unique index). The changed suites pass, and the core typecheck and zero-warning lint are clean.

I've made both changes: F1 (anomaly baselines now use executions recorded before the upgrade) and S1 (each execution's ID is now stored in the database under a unique index). The changed suites pass, and the core typecheck and zero-warning lint are clean.

## F1: Baselines include executions from before the upgrade

A new migration, `20261113000000_backfill_llm_execution_token_samples.js`, copies past successful executions into the sample table. I added it as a separate file rather than editing the create-table migration, so instances that already ran that one still get the backfill. Each copied row gets the same repository, model and execution type that `recordLLMMetrics` would give a new sample:

- **Repository:** taken from the execution's task, lowercased.
- **Model:** the execution's own `model_name`.
- **Execution type:** taken from the logged call of the same run (same task and agent session).
  - A call logged with an explicit type (`pr-review`, `context-analysis`, …) keeps that type.
  - A normal task run (logged as `implementation`) gets its job type from the task type: `issue` and `goal` become `issue`, `pr-comment` becomes `pr_comment`, `merge_conflict` stays `merge_conflict`.
- **Tokens:** `input_tokens + output_tokens`. Since February, `input_tokens` already includes cache tokens, which matches what new samples count.

These executions are skipped:
- failed runs and task-less runs.
- runs with no session ID or the placeholder `unknown`.
- runs with no matching logged call, or with calls that disagree on the type.
- runs whose task type has no job-type mapping.
- runs with missing token counts.

Each repository/model/type keeps at most its last 200 executions (the largest baseline window the setting allows). The migration runs before any new execution is recorded, so the current execution can't end up in its own baseline.

The new test `test/tokenSampleBackfillMigration.test.ts` migrates a database to just before the backfill, seeds 20 past runs of about 100K tokens, then upgrades. The next 10M-token run comes out as an outlier against a 100K baseline from 20 samples, and the alert fires. Other tests cover the key mapping, the skipped cases and the 200-run cap. With the backfill disabled, three of the five tests fail, so they do test the backfill.

## S1: Deduplication survives expired Redis claims

- **Migration:** `20261113000100_add_llm_execution_uuid.js` adds a nullable `llm_executions.execution_uuid` column with a unique index. Old rows and results without an ID stay null and aren't constrained.
- **Insert:** the insert moved to a new helper, `insertExecutionRow`, in `llmMetricsExecutionClaim.ts`. It writes the execution ID with the row. If the database rejects a duplicate ID, the record is treated as already written: the row claim is kept, and no details row or second token sample is written.
- **Tests:** the claim-recovery suite now drops both the Redis claim and the in-process claim, records the same result again, and checks that no second row is written. `test/llmExecutionUuidMigration.test.ts` checks the real SQLite unique index, that the error is recognised as a duplicate, and that the migration rolls back.

## Checks and caveats
- `test/llmMetrics.test.ts` was not run: it needs a live Redis, which this container doesn't have, so it hangs.
- I didn't run the `packages/api` cost-export suites.
- No visual previews, since nothing changed in the UI.

PR: #3458
Comment by: @integry (ID: 6848345548)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 3437-epic-cost-visibility-olu in commit 86adc66

Conflicting Files

  • CHANGELOG.md
  • packages/api/mcp/toolsManagement.ts
  • packages/api/routes/configSettings.ts

Resolution Summary

I resolved all three conflicts, and no conflict markers remain anywhere in the repository. packages/api typechecks cleanly with tsc --noEmit (after rebuilding shared and core), and the zero-warning lint passes on both merged TypeScript files. I didn't run the test suites.

In every case the two sides added separate things in the same spot, so I kept both. Nothing had to be dropped.

1. CHANGELOG.md — Unreleased → Added

  • Conflict: both branches added new entries at the top of the section. This PR added "Review quality by effort" and "LLM cost export"; main added "Claude goals can ask you a question" (the ask_operator tool and the goal_question_max_wait_ms setting).
  • Resolution: kept all three entries, with the PR's entries first and main's after them.
  • Why: they describe separate features, and the changelog has to list both.

2. packages/api/mcp/toolsManagement.ts

Two conflicts, both from the PR's token-outlier settings meeting main's goal-question setting.

  • @propr/shared import: this PR added TOKEN_OUTLIER_SETTING_DEFINITIONS and TOKEN_OUTLIER_SETTING_NAMES; main added MIN_GOAL_QUESTION_MAX_WAIT_MS. The merged import includes all three.
  • settingsShape: this PR added ...tokenOutlierSettingsShape() at the end of the object; main added goal_question_max_wait_ms after ultrafix_ci_wait_timeout_ms. I took main's version and added the PR's spread back at the end.
  • Why: the MCP execution settings tools (get_execution_settings and the update tool) need to expose both the token-outlier settings and goal_question_max_wait_ms. The tokenOutlierSettingsShape() helper the PR defines in this file (line 17) is still there.

3. packages/api/routes/configSettings.ts

  • Conflict: the @propr/shared import at the top of the file. This PR added TOKEN_OUTLIER_SETTING_NAMES, describeTokenOutlierSettingRange, parseTokenOutlierSetting and TokenOutlierSettingName; main added MIN_GOAL_QUESTION_MAX_WAIT_MS.
  • Resolution: one import with all the names from both sides.
  • Why: the rest of the file merged cleanly, and it uses both sets: main's check on goal_question_max_wait_ms (around line 198) and the PR's token-outlier saves and loop (around lines 211–236).

🤖 Resolution Details

  • Model: Claude Opus 5.5
  • Time: 5m 26s

View Task Execution


System-triggered merge conflict resolution

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- CHANGELOG.md
- packages/api/mcp/toolsManagement.ts
- packages/api/routes/configSettings.ts

PR: #3458
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 1/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 1/4
  • Result: failure
  • Commit: 86adc6693c3c (86adc6693c3c780f0159c11638babcb7a4efdab5)
  • Details: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:41325
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@github-actions

Copy link
Copy Markdown

Full Test Suite Results

Validation failed during: Test shard (shard 1).

  • Dependency install: success
  • Workspace build: success
  • Docs validation: success
  • Shard coverage verification: success
  • Hosted native Electron units: success
  • Shard 1/4: failed during Test shard in 1244.5s on GitHub Actions 1000115196
    • packages/api/test/analyticsCacheUsageProducer.test.ts: exit 1
  • Shard 2/4: passed in 938.0s on GitHub Actions 1000115193
  • Shard 3/4: passed in 864.4s on GitHub Actions 1000115192
  • Shard 4/4: passed in 663.2s on GitHub Actions 1000115191
View shard 1/4 output
...(truncated)

dioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx�[2m > �[22m�[2msidebar usage history overlay�[2m > �[22m�[2mopens on hover after the intent delay and reads the last two sessions
�[22m�[39mThe width(-1) and height(-1) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.
The width(0) and height(0) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.

�[90mstdout�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=false)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps the plans list when the acknowledgement arrives after Back
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  draftId: �[32m'draft-1'�[39m,
  timestamp: �[32m'2026-11-13T09:55:20.837Z'�[39m,
  runId: �[32m'run-1'�[39m,
  draftStatus: �[32m'review'�[39m
}

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=false)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps the plans list when the acknowledgement arrives after Back
�[22m�[39mAn update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx�[2m > �[22m�[2msidebar usage history overlay�[2m > �[22m�[2mreads two weeks for a weekly limit, toggled by tap
�[22m�[39mThe width(-1) and height(-1) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.
The width(0) and height(0) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.

�[90mstderr�[2m | src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx�[2m > �[22m�[2msidebar usage history overlay�[2m > �[22m�[2mcloses on Escape and with the close button
�[22m�[39mThe width(-1) and height(-1) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.
The width(0) and height(0) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.

�[90mstderr�[2m | src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx�[2m > �[22m�[2msidebar usage history overlay�[2m > �[22m�[2mcloses on Escape and with the close button
�[22m�[39mThe width(-1) and height(-1) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.
The width(0) and height(0) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.

�[90mstderr�[2m | src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx�[2m > �[22m�[2msidebar usage history overlay�[2m > �[22m�[2mgroups Gemini 4 Argon under its own pool and charts its weekly quota
�[22m�[39mThe width(-1) and height(-1) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.
The width(0) and height(0) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.

�[90mstderr�[2m | src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx�[2m > �[22m�[2msidebar usage history overlay�[2m > �[22m�[2mreads again when new usage is recorded while the overlay stays open
�[22m�[39mThe width(-1) and height(-1) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.

�[90mstderr�[2m | src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx�[2m > �[22m�[2msidebar usage history overlay�[2m > �[22m�[2mreads again when new usage is recorded while the overlay stays open
�[22m�[39mThe width(0) and height(0) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.

�[90mstderr�[2m | src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx�[2m > �[22m�[2msidebar usage history overlay�[2m > �[22m�[2mreads again when new usage is recorded while the overlay stays open
�[22m�[39mAn update to AgentTankSidebar inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx�[2m > �[22m�[2msidebar usage history overlay�[2m > �[22m�[2mreads again when new usage is recorded while the overlay stays open
�[22m�[39mAn update to AgentTankSidebar inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx�[2m > �[22m�[2msidebar usage history overlay�[2m > �[22m�[2moffers history again once Agent Tank is re-enabled
�[22m�[39mThe width(-1) and height(-1) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.
The width(0) and height(0) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.

�[90mstderr�[2m | src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx�[2m > �[22m�[2msidebar usage history overlay�[2m > �[22m�[2mlets a disabled answer lapse, so rows outside the sidebar can retry
�[22m�[39mThe width(-1) and height(-1) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.
The width(0) and height(0) of chart should be greater than 0,
       please check the style of container, or the props width(100%) and height(100%),
       or add a minWidth(0) or minHeight(undefined) or use aspect(undefined) to control the
       height and width.

 �[32m✓�[39m src/components/usageHistory/UsageMetricHistoryOverlay.test.tsx �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[33m 1575�[2mms�[22m�[39m
   �[32m✓�[39m sidebar usage history overlay �[2m(11)�[22m
     �[33m�[2m✓�[22m�[39m opens on hover after the intent delay and reads the last two sessions�[33m 523�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m does not open when the pointer passes over the row�[33m 350�[2mms�[22m�[39m
�[90mstdout�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=false)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps another opened draft untouched when the acknowledgement arrives
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  draftId: �[32m'draft-1'�[39m,
  timestamp: �[32m'2026-11-13T09:55:22.356Z'�[39m,
  runId: �[32m'run-1'�[39m,
  draftStatus: �[32m'review'�[39m
}

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=false)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps another opened draft untouched when the acknowledgement arrives
�[22m�[39mAn update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstdout�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=false)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mdoes not rewrite the plans entry when the draft is created after Back
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  draftId: �[32m'draft-1'�[39m,
  timestamp: �[32m'2026-11-13T09:55:23.859Z'�[39m,
  runId: �[32m'run-1'�[39m,
  draftStatus: �[32m'review'�[39m
}

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=false)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mdoes not rewrite the plans entry when the draft is created after Back
�[22m�[39mAn update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate races the autosave debounce (stale read before the acknowledgement)
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate races the autosave debounce (stale read before the acknowledgement)
�[22m�[39mFailed to save planner settings to localStorage

 �[32m✓�[39m src/components/TaskDetails/RunTimeline.test.tsx �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[33m 1005�[2mms�[22m�[39m
   �[32m✓�[39m RunTimeline �[2m(12)�[22m
     �[33m�[2m✓�[22m�[39m keeps all 50 runs in the shared task scroll flow�[33m 432�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate races the autosave debounce (stale read before the acknowledgement)
�[22m�[39mFailed to save planner settings to localStorage

�[90mstdout�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate races the autosave debounce (stale read before the acknowledgement)
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  draftId: �[32m'draft-1'�[39m,
  timestamp: �[32m'2026-11-13T09:55:24.042Z'�[39m,
  runId: �[32m'run-1'�[39m,
  draftStatus: �[32m'review'�[39m
}

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate races the autosave debounce (stale read before the acknowledgement)
�[22m�[39mAn update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate races the autosave debounce (stale read after the acknowledgement)
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate races the autosave debounce (stale read after the acknowledgement)
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate races the autosave debounce (stale read after the acknowledgement)
�[22m�[39mFailed to save planner settings to localStorage

�[90mstdout�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate races the autosave debounce (stale read after the acknowledgement)
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  draftId: �[32m'draft-1'�[39m,
  timestamp: �[32m'2026-11-13T09:55:25.560Z'�[39m,
  runId: �[32m'run-1'�[39m,
  draftStatus: �[32m'review'�[39m
}

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate races the autosave debounce (stale read after the acknowledgement)
�[22m�[39mAn update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/VoiceBriefingControl.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[33m 734�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate follows an in-place autosave
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate follows an in-place autosave
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/components/TaskPlanner/useAutoDraftCreation.test.tsx�[2m > �[22m�[2museAutoDraftCreation�[2m > �[22m�[2mkeeps navigating when persisting the resolved baseBranch fails after auto-creating a draft
�[22m�[39mFailed to persist draft setup snapshot: Error: Transient update failure
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/useAutoDraftCreation.test.tsx:103:39
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:1632:35
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:2801:26
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3338:20
    at new Promise (<anonymous>)
    at runWithCancel (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3333:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3318:20
    at new Promise (<anonymous>)
    at runWithTimeout (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3276:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3904:64

�[90mstderr�[2m | src/components/TaskPlanner/useAutoDraftCreation.test.tsx�[2m > �[22m�[2museAutoDraftCreation�[2m > �[22m�[2msurfaces the persistence warning only for in-place auto-created drafts
�[22m�[39mFailed to persist draft setup snapshot: Error: Transient update failure
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/useAutoDraftCreation.test.tsx:268:39
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:1632:35
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:2801:26
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3338:20
    at new Promise (<anonymous>)
    at runWithCancel (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3333:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3318:20
    at new Promise (<anonymous>)
    at runWithTimeout (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3276:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3904:64

 �[32m✓�[39m src/components/TaskPlanner/useAutoDraftCreation.test.tsx �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[32m 64�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate follows an in-place autosave
�[22m�[39mFailed to save planner settings to localStorage

�[90mstdout�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate follows an in-place autosave
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  draftId: �[32m'draft-1'�[39m,
  timestamp: �[32m'2026-11-13T09:55:28.439Z'�[39m,
  runId: �[32m'run-1'�[39m,
  draftStatus: �[32m'review'�[39m
}

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mshows Generating then Review when Generate follows an in-place autosave
�[22m�[39mAn update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mkeeps the prompt for a retry when generation fails to start
�[22m�[39mFailed to save planner settings to localStorage

 �[32m✓�[39m src/desktop/nativeCommands.integration.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[32m 270�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mkeeps the prompt for a retry when generation fails to start
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mkeeps the prompt for a retry when generation fails to start
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps the plans list when the acknowledgement arrives after Back
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps the plans list when the acknowledgement arrives after Back
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps the plans list when the acknowledgement arrives after Back
�[22m�[39mFailed to save planner settings to localStorage

�[90mstdout�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps the plans list when the acknowledgement arrives after Back
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  draftId: �[32m'draft-1'�[39m,
  timestamp: �[32m'2026-11-13T09:55:30.029Z'�[39m,
  runId: �[32m'run-1'�[39m,
  draftStatus: �[32m'review'�[39m
}

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps the plans list when the acknowledgement arrives after Back
�[22m�[39mAn update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps another opened draft untouched when the acknowledgement arrives
�[22m�[39mFailed to save planner settings to localStorage

 �[32m✓�[39m src/components/AssigneeList.test.tsx �[2m(�[22m�[2m25 tests�[22m�[2m)�[22m�[33m 522�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps another opened draft untouched when the acknowledgement arrives
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps another opened draft untouched when the acknowledgement arrives
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps another opened draft untouched when the acknowledgement arrives
�[22m�[39mFailed to save planner settings to localStorage
Failed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps another opened draft untouched when the acknowledgement arrives
�[22m�[39mFailed to save planner settings to localStorage

�[90mstdout�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps another opened draft untouched when the acknowledgement arrives
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  draftId: �[32m'draft-1'�[39m,
  timestamp: �[32m'2026-11-13T09:55:31.520Z'�[39m,
  runId: �[32m'run-1'�[39m,
  draftStatus: �[32m'review'�[39m
}

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mkeeps another opened draft untouched when the acknowledgement arrives
�[22m�[39mAn update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mdoes not rewrite the plans entry when the draft is created after Back
�[22m�[39mFailed to save planner settings to localStorage

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mdoes not rewrite the plans entry when the draft is created after Back
�[22m�[39mFailed to save planner settings to localStorage

�[90mstdout�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mdoes not rewrite the plans entry when the draft is created after Back
�[22m�[39m[useDraft] Received draft update via WebSocket: {
  draftId: �[32m'draft-1'�[39m,
  timestamp: �[32m'2026-11-13T09:55:32.985Z'�[39m,
  runId: �[32m'run-1'�[39m,
  draftStatus: �[32m'review'�[39m
}

�[90mstderr�[2m | src/pages/PlanStudioPage.freshGenerate.test.tsx�[2m > �[22m�[2mfresh plan generation becomes the displayed draft (desktop=true)�[2m > �[22m�[2mafter the user leaves a pending fresh plan�[2m > �[22m�[2mdoes not rewrite the plans entry when the draft is created after Back
�[22m�[39mAn update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to PlanStudioPage inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/pages/PlanStudioPage.freshGenerate.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[33m 18961�[2mms�[22m�[39m
   �[32m✓�[39m fresh plan generation becomes the displayed draft (desktop=false) �[2m(7)�[22m
     �[33m�[2m✓�[22m�[39m shows Generating then Review when Generate races the autosave debounce (stale read before the acknowledgement)�[33m 1893�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m shows Generating then Review when Generate races the autosave debounce (stale read after the acknowledgement)�[33m 1582�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m shows Generating then Review when Generate follows an in-place autosave�[33m 1625�[2mms�[22m�[39m
     �[32m✓�[39m after the user leaves a pending fresh plan �[2m(3)�[22m
       �[33m�[2m✓�[22m�[39m keeps the plans list when the acknowledgement arrives after Back�[33m 1545�[2mms�[22m�[39m
       �[33m�[2m✓�[22m�[39m keeps another opened draft untouched when the acknowledgement arrives�[33m 1520�[2mms�[22m�[39m
       �[33m�[2m✓�[22m�[39m does not rewrite the plans entry when the draft is created after Back�[33m 1504�[2mms�[22m�[39m
   �[32m✓�[39m fresh plan generation becomes the displayed draft (desktop=true) �[2m(7)�[22m
     �[33m�[2m✓�[22m�[39m shows Generating then Review when Generate races the autosave debounce (stale read before the acknowledgement)�[33m 1503�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m shows Generating then Review when Generate races the autosave debounce (stale read after the acknowledgement)�[33m 1542�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m shows Generating then Review when Generate follows an in-place autosave�[33m 1533�[2mms�[22m�[39m
     �[32m✓�[39m after the user leaves a pending fresh plan �[2m(3)�[22m
       �[33m�[2m✓�[22m�[39m keeps the plans list when the acknowledgement arrives after Back�[33m 1465�[2mms�[22m�[39m
       �[33m�[2m✓�[22m�[39m keeps another opened draft untouched when the acknowledgement arrives�[33m 1493�[2mms�[22m�[39m
       �[33m�[2m✓�[22m�[39m does not rewrite the plans entry when the draft is created after Back�[33m 1465�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/QuickAddTodo.test.tsx�[2m > �[22m�[2mEscape in the toolbar popover�[2m > �[22m�[2mdismisses the popover opened by the native New To-do shortcut
�[22m�[39mAn update to QuickAddTodo inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to QuickAddTodo inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/QuickAddTodo.test.tsx�[2m > �[22m�[2mEscape in the toolbar popover�[2m > �[22m�[2mdismisses with nothing focused, but ignores Escape from controls outside it
�[22m�[39mAn update to QuickAddTodo inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to QuickAddTodo inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/QuickAddTodo.test.tsx �[2m(�[22m�[2m17 tests�[22m�[2m)�[22m�[33m 3831�[2mms�[22m�[39m
   �[32m✓�[39m QuickAddTodo popover �[2m(2)�[22m
     �[33m�[2m✓�[22m�[39m keeps the success confirmation and Add another available until dismissed�[33m 499�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m resets content and category, retains the submitted repository, focuses and submits again�[32m 300�[2mms�[22m�[39m
   �[33m�[2m✓�[22m�[39m uses the normal repository fallback: acme/gamma�[33m 303�[2mms�[22m�[39m
   �[33m�[2m✓�[22m�[39m ignores a category response from the previous to-do after Add another�[33m 341�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/useTaskAssignment.test.tsx �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[33m 894�[2mms�[22m�[39m
   �[32m✓�[39m AssignmentControl while saving �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m does not open the editor until the pending save settles�[33m 319�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2mpreserves distinct migrated effort labels when editing and saving an Antigravity agent
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2madds a loginable agent with an isolated managed credential path and requests login
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2mallows a new agent to reuse an existing config directory instead of logging in
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/TaskDetails/ContextStrip.test.tsx �[2m(�[22m�[2m17 tests�[22m�[2m)�[22m�[33m 666�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2muses the agent alias in long model labels
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2msaves a model-specific reasoning level for Codex agents
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2mAgentConfigModal�[2m > �[22m�[2mmarks a legacy cross-agent reasoning value as unsupported
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/pages/SettingsPage/AgentConfigModal.test.tsx�[2m > �[22m�[2moffers one Antigravity entry per model with model-specific reasoning choices
�[22m�[39mAn update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentConfigModal inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/pages/SettingsPage/AgentConfigModal.test.tsx �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[33m 1641�[2mms�[22m�[39m
   �[32m✓�[39m AgentConfigModal �[2m(8)�[22m
     �[33m�[2m✓�[22m�[39m preserves distinct migrated effort labels when editing and saving an Antigravity agent�[33m 341�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m allows a new agent to reuse an existing config directory instead of logging in�[33m 337�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/TaskVisualPreviews.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 672�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/LogFilesModal.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 709�[2mms�[22m�[39m
   �[32m✓�[39m LogFilesModal �[2m(3)�[22m
     �[33m�[2m✓�[22m�[39m searches literal metacharacters, counts what it highlights, and steps through matches�[33m 525�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/TaskDetails/ReviewScoreHistory.test.tsx�[2m > �[22m�[2musePullRequestScores�[2m > �[22m�[2mnever returns a previous PR's history for a new PR, while loading or after a failed read
�[22m�[39mAn update to TestComponent inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/TaskDetails/ReviewScoreHistory.test.tsx �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[33m 380�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/TaskDetails/LatestRunCommands.projection.test.tsx�[2m > �[22m�[2mfollow-up commands read from the API task projection�[2m > �[22m�[2mthe task header keeps /fix for findings and sends it only after the projection is read again
�[22m�[39mAn update to FollowupCommands inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/TaskDetails/LatestRunCommands.projection.test.tsx �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[33m 305�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/PlanStudioPage.inPlaceDraft.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 275�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/index.followupTarget.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 650�[2mms�[22m�[39m
   �[32m✓�[39m the follow-up dialog names the thread its submission posts to �[2m(7)�[22m
     �[33m�[2m✓�[22m�[39m an issue implementation that created a PR names that PR and submits that task ID�[33m 312�[2mms�[22m�[39m
 �[32m✓�[39m src/components/ui/Skeleton.test.tsx �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[33m 331�[2mms�[22m�[39m
 �[32m✓�[39m src/components/ApplicationShell.idle.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 90�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop-deep-link.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 20�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AgentRuntimePackagesSection.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 762�[2mms�[22m�[39m
   �[32m✓�[39m AgentRuntimePackagesSection �[2m(7)�[22m
     �[33m�[2m✓�[22m�[39m offers catalog suggestions and validates a selected package�[33m 348�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Goals/GoalAttentionPanel.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 400�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/NotificationSettingsSection.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 1311�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/FollowupModal.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 492�[2mms�[22m�[39m
   �[32m✓�[39m FollowupModal submission feedback �[2m(5)�[22m
     �[33m�[2m✓�[22m�[39m a posted-but-not-submitted receipt is announced, focused, keeps the text and blocks an identical repost�[33m 317�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AgentNetworkSettingsSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 405�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/planDisplayName.test.ts �[2m(�[22m�[2m17 tests�[22m�[2m)�[22m�[32m 15�[2mms�[22m�[39m
 �[32m✓�[39m src/api/currentUserResponse.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 19�[2mms�[22m�[39m
�[90mstdout�[2m | src/components/TaskDetails/LiveFileChips.test.tsx�[2m > �[22m�[2mLiveFileChips live refreshes�[2m > �[22m�[2mturns the fixture baseline of three burst invalidations into one additional file-changes request
�[22m�[39m[LiveFileChips] Received task update, refreshing file changes: { taskId: �[32m'task-1'�[39m }
[LiveFileChips] Received task update, refreshing file changes: { taskId: �[32m'task-1'�[39m }
[LiveFileChips] Received task update, refreshing file changes: { taskId: �[32m'task-1'�[39m }

 �[32m✓�[39m src/components/TaskDetails/LiveFileChips.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 463�[2mms�[22m�[39m
   �[32m✓�[39m LiveFileChips live refreshes �[2m(3)�[22m
     �[33m�[2m✓�[22m�[39m shows the shared directory once with 32 filenames ordered by changed lines and keeps every diff accessible�[33m 396�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanIssuesManager.notificationIntent.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 680�[2mms�[22m�[39m
   �[32m✓�[39m PlanIssuesManager execution intent �[2m(3)�[22m
     �[33m�[2m✓�[22m�[39m cancel closes without starting implementation�[33m 407�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/hooks.lazyRoute.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 451�[2mms�[22m�[39m
 �[32m✓�[39m src/components/globalSearchModel.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanEditor.notificationIntent.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 687�[2mms�[22m�[39m
   �[32m✓�[39m PlanEditor notification intents �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m never approves from navigation and cancel leaves the plan unchanged�[33m 619�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useCurrentUserBootstrap.mainProxy.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 77�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RepositoryAutoAssignControl.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 325�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/packagedAcceptanceRendererLifecycle.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 12�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/TaskCard.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 617�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/planIssueDefaultSelection.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AgentWatchdogSettingsSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 91�[2mms�[22m�[39m
�[90mstdout�[2m | src/components/TaskDetails/useTaskData.completion.test.ts�[2m > �[22m�[2mreplaces the live view of a subscribed client with persisted details when the task completes
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

 �[32m✓�[39m src/components/TaskDetails/useTaskData.completion.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 32�[2mms�[22m�[39m
 �[32m✓�[39m src/api/dashboardApi.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/VoiceSettingsSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 373�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.accounts.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 520�[2mms�[22m�[39m
   �[33m�[2m✓�[22m�[39m shows both users at one instance and adds an account with a fresh binding�[33m 326�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/generationTelemetryUtils.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 10�[2mms�[22m�[39m
 �[32m✓�[39m src/components/UserAvatar.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 211�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/PromptModal.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 289�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/setupWizardHooks.editMode.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 26�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/RepositoryAutoResolveConflictsControl.test.tsx�[2m > �[22m�[2mRepositoryAutoResolveConflictsControl�[2m > �[22m�[2mreflects a stored override
�[22m�[39mAn update to RepositoryAutoResolveConflictsControl inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/RepositoryAutoResolveConflictsControl.test.tsx�[2m > �[22m�[2mRepositoryAutoResolveConflictsControl�[2m > �[22m�[2msets always, never, and inherit (null)
�[22m�[39mAn update to RepositoryAutoResolveConflictsControl inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/RepositoryAutoResolveConflictsControl.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 276�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/ContextLevelSlider.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 85�[2mms�[22m�[39m
 �[32m✓�[39m src/components/modalShells.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 239�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/durations.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RouteChunkErrorBoundary.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 265�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanEditorDesktopLayout.assistant.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 292�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/useSelectedModelMaxTokens.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 80�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/scopedTaskEvents.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/setupWizardDraftConfig.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/Pagination.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 261�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/TaskCardList.breakpoint.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 249�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/repositoryNonBlockingChecks.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/api/automationRunTrigger.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 10�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Agents/AgentAutonomySection.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 294�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/InboxPageComponents.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 215�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/syntaxHighlighter.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/taskKind.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/AssignmentControl.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 241�[2mms�[22m�[39m
 �[32m✓�[39m src/api/proprApi.instanceCatalog.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/executionConfigSummary.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Dashboard/KPICard.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 50�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Repositories/RepoBrowsePanel.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 28�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/RefinementChat.focus.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 200�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/ExecutionEventUtils.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/tokenFormat.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m

�[2m Test Files �[22m �[1m�[32m85 passed�[39m�[22m�[90m (85)�[39m
�[2m      Tests �[22m �[1m�[32m697 passed�[39m�[22m�[90m (697)�[39m
�[2m   Start at �[22m 09:54:47
�[2m   Duration �[22m 99.05s�[2m (tests 38%, environment 37%, import 13%, setup 7%, transform 5%)�[22m

�[2mEnvironment �[22m �[33mjsdom was created 85 times�[39m�[2m · 68.43s total, 37% of tracked time�[22m
�[2m            �[22m �[2mcreate it once per worker with �[22m�[33mpool: 'vmThreads'�[39m�[2m (keeps per-file isolation) or �[22m�[33misolate: false�[39m�[2m (shares it across files)�[22m
�[2m            �[22m �[2mlearn more: https://vitest.dev/guide/improving-performance#test-environments�[22m


> [email protected] posttest
> npm run test:docker-context


> [email protected] test:docker-context
> node --test scripts/docker-context-inputs.test.mjs

TAP version 13
# Subtest: focused UI selectors are forwarded only to Vitest
ok 1 - focused UI selectors are forwarded only to Vitest
  ---
  duration_ms: 0.944877
  type: 'test'
  ...
# Subtest: the UI Docker context contains its complete non-type external source import closure
ok 2 - the UI Docker context contains its complete non-type external source import closure
  ---
  duration_ms: 64.281466
  type: 'test'
  ...
1..2
# tests 2
# suites 0
# pass 2
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 123.284386
[254/254] passed propr-ui#1/4 (workspace test script) in 99.9s

### Shard 1/4: 253/254 passed in 1244.5s

Assigned 254 of 1016 discovered units.

| Duration | Status | Unit |
| ---: | --- | --- |
| 154.1s | passed | `test/taskIntentWithdrawal.test.ts` |
| 99.9s | passed | `propr-ui#1/4` (workspace) |
| 65.3s | passed | `packages/api/test/mcpAccessLog.test.ts` |
| 65.1s | passed | `packages/api/test/mcpAgentRuns.test.ts` |
| 47.0s | passed | `test/agentRunUnproductiveStreakRecovery.test.ts` |
| 35.9s | passed | `packages/api/test/mcpPublishPlan.test.ts` |
| 35.8s | passed | `packages/core/test/fleetDataPlane.test.ts` |
| 34.1s | passed | `test/agentRunProductivity.test.ts` |
| 28.6s | passed | `test/agentRunCostGate.test.ts` |
| 27.3s | passed | `test/agentRunStore.test.ts` |
| 25.2s | passed | `packages/api/test/taskFollowupIssueQueueRecoveryHistory.test.ts` |
| 22.6s | passed | `test/extensionStdioBridge.test.mjs` |
| 20.0s | passed | `test/prPublicationRecoveryJob.test.ts` |
| 19.9s | passed | `test/connectCliIntegration.test.ts` |
| 18.5s | passed | `packages/core/test/managedDiagnosticsBatching.test.ts` |

Passing units at or above 60% of the 180.0s per-unit timeout. Split or speed these up before they fail:

- `test/taskIntentWithdrawal.test.ts` used 86% (154.1s)

::warning title=Test unit near the per-unit timeout::test/taskIntentWithdrawal.test.ts used 86% (154.1s) of the 180.0s per-unit timeout

1/254 test runs failed in shard 1/4 after 1244.5s:
- packages/api/test/analyticsCacheUsageProducer.test.ts: exit 1

Details truncated; see the uploaded artifacts for complete failure rows and logs.

View Workflow
View uploaded artifacts

@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Run Full Test Suite

Please investigate and fix this CI failure.

Failure evidence

.github:67
Process completed with exit code 1.

.github:66
Full test suite shards finished with result 'failure'.

.github:4
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960, actions/download-artifact@018cc2c. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 5707b55

Summary of Changes

I fixed the failing shard: one test suite, packages/api/test/analyticsCacheUsageProducer.test.ts, was building an out-of-date database schema. All 4 of its tests now pass locally and lint is clean. I haven't re-run the full shard.

Cause: the suite creates its own in-memory llm_executions table by running a hand-picked list of migrations. This branch recently added 20261113000100_add_llm_execution_uuid.js, and recordLLMMetrics now writes an execution_uuid column when it inserts an execution row. The suite didn't run that migration, so the insert failed and no row was written. The first test then read back undefined instead of the token counts, and the other three crashed on the missing row.

Fix: the suite now also runs 20261113000100_add_llm_execution_uuid.js and 20261112000000_create_llm_execution_token_samples.js (the baseline table for the token-use alerts), so its schema matches what the production code writes. No production code changed.

This was the only suite in the shard's failure list. Four other tests use the same kind of migration list without the new migration (reviewScoreEffort, reviewScoreStats, reviewScorePersistence, reasoningLevelColumnsMigration). None of them call recordLLMMetrics, and none failed in this shard, so I left them alone.

The UI doesn't change, so there are no previews.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 3m 40s
  • Tokens: 666,583 (663,875 in / 2,708 out)
  • Cost: $0.42

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6849702768✓

…st/analyticsCacheUsageProducer.test.ts`, was building an out-of-date database schema. All 4 of its tests now pass locally and lint is clean. I haven't re-run the full shard.

I fixed the failing shard: one test suite, `packages/api/test/analyticsCacheUsageProducer.test.ts`, was building an out-of-date database schema. All 4 of its tests now pass locally and lint is clean. I haven't re-run the full shard.

**Cause:** the suite creates its own in-memory `llm_executions` table by running a hand-picked list of migrations. This branch recently added `20261113000100_add_llm_execution_uuid.js`, and `recordLLMMetrics` now writes an `execution_uuid` column when it inserts an execution row. The suite didn't run that migration, so the insert failed and no row was written. The first test then read back `undefined` instead of the token counts, and the other three crashed on the missing row.

**Fix:** the suite now also runs `20261113000100_add_llm_execution_uuid.js` and `20261112000000_create_llm_execution_token_samples.js` (the baseline table for the token-use alerts), so its schema matches what the production code writes. No production code changed.

This was the only suite in the shard's failure list. Four other tests use the same kind of migration list without the new migration (`reviewScoreEffort`, `reviewScoreStats`, `reviewScorePersistence`, `reasoningLevelColumnsMigration`). None of them call `recordLLMMetrics`, and none failed in this shard, so I left them alone.

The UI doesn't change, so there are no previews.

PR: #3458
Comment by: @propr-dev[bot] (ID: 6849702768)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @github-actions[bot], @propr-dev[bot]

Analysis Summary

I made no changes this time: the fix for this CI failure was already on the branch.

  • Which commit failed: the run failed on 86adc6693, the merge from main. The next commit, 5707b55c9, fixed it.
  • Cause: packages/api/test/analyticsCacheUsageProducer.test.ts builds its own test database by running a hand-picked list of migrations. It didn't run the branch's new migration, 20261113000100_add_llm_execution_uuid.js. recordLLMMetrics now writes that migration's execution_uuid column, so the insert failed.
  • The fix in 5707b55c9: the suite now runs that migration and the token-samples one, 20261112000000_create_llm_execution_token_samples.js.
  • Checked now on the current branch:
    • analyticsCacheUsageProducer.test.ts: 4/4 pass.
    • analyticsAggregates.test.ts, the only other suite that mentions recordLLMMetrics without running the new migration: 14/14 pass.

I haven't re-run the full shard here. Pushing the current branch should start a new CI run that shows whether shard 1 passes.

There are no visual changes, so there are no previews.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 4m 29s
  • Tokens: 439,438 (437,999 in / 1,439 out)
  • Cost: $0.42

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 6849706547✓, 6849706557✓

@integry

integry commented Nov 13, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 3437-epic-cost-visibility-olu in commit 78f8971

Conflicting Files

  • packages/api/test/reviewScoreStats.test.ts
  • packages/shared/src/index.ts

Resolution Summary

I resolved both conflicts by keeping both sides. No conflict markers are left anywhere in the repository. The conflicted test file passes all 15 of its tests, and tsc --noEmit on packages/shared printed no errors.

1. packages/shared/src/index.ts

  • Conflict: Both branches added a new export at the end of the barrel file, after the agentFailureLine export. The PR added the token-outlier settings exports (TOKEN_OUTLIER_*, DEFAULT_TOKEN_OUTLIER_SETTINGS, the parsing and description helpers, and their types) from ./tokenOutlierSettings.js. main added export * from './acceptanceCriteria.js'.
  • Resolution: I kept the PR's export block first and main's line right after it.
  • Why: The two exports come from different modules and don't share any names, so the file needs both. The PR's cost-visibility code needs the token-outlier exports, and main's new acceptance-criteria code needs its export.

2. packages/api/test/reviewScoreStats.test.ts (three hunks)

  • Migration imports: The PR imports 20261111000000_add_reasoning_level_columns.js and main imports 20261112000000_add_review_score_blocker_categories.js. I kept both imports.

  • Setup in before(): The PR runs addReasoningLevelColumns(database) and main runs addBlockerCategories(database). I kept both calls, with the PR's migration first to match their timestamps.

  • seedScore insert: Both sides changed the same review_scores insert:

    • The PR added implementer_reasoning_level: seed.effort ?? null.
    • main added a blocker_categories JSON column, with a comment explaining it.

    I merged them into one insert that sets both columns and keeps the PR's cycle_number and goal fields.

  • Why: The test's schema needs both migrations, or the seeded rows would fail to insert. The PR's reasoning-level tests (effort: 'high' and similar) need its column. main's blocker-category assertions need theirs.


🤖 Resolution Details

  • Model: Claude Opus 5.5
  • Time: 2m 26s

View Task Execution


System-triggered merge conflict resolution

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- packages/api/test/reviewScoreStats.test.ts
- packages/shared/src/index.ts

PR: #3458
Model: Claude Opus 5.5
@integry

integry commented Nov 13, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR adds failed-attempt accounting, grouped cost exports, token-outlier notifications, and review-quality reporting by effort. It is merge-ready within the reviewed scope; no verified merge blocker emerged from the supplied code.

✅ Durable execution deduplication — A unique database index prevents duplicate execution rows even after Redis claims disappear, with migration and recovery coverage.

✅ Compatible effort reporting — by_effort preserves per-model totals and explicitly groups historical records under unknown, with API, CSV, CLI, and UI tests.

✅ Scoped cost exports — Export queries preserve unknown costs, validate repository filters, escape CSV cells, and provide grant-scoped MCP aggregation.

The authoritative current-head status reports 38 passing checks and no failures or pending checks, including all full-suite shards. This was a static review; no commands were run. The linked issue specifications contain truncation notices, so acceptance assessment is limited to their visible requirements.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S2: 🟢 Test agent failure integration

The new failure-accounting tests exercise usageLimitExecutionResult, failedExecutionResult, and metrics persistence directly. Add focused tests that enter through ClaudeAgent.executeTask and CodexAgent.executeTask, including usage-limit propagation and errors after a completed result exists. These would strengthen confidence that token usage, execution identity, and log persistence survive the actual catch paths. This is additional integration coverage, not a demonstrated blocker.

S3: 🟢 Align empty grouping semantics

The MCP tool documents an empty groupBy array as requesting totals. However, the CLI API serializes that array as group_by=, which parseCostGroupBy interprets as the default day grouping. Consider defining one explicit representation for totals-only requests across these interfaces. Empty grouping is outside the visible acceptance requirements, so this consistency improvement is optional.

Score

The implementation covers the visible objectives with substantial regression coverage and passing current-head checks. No actionable defect was verified in this static review.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 35s
  • Tokens: 155,296 (153,692 in / 1,604 out)
  • Cost: $1.51

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S2 S3

🤖 Review by ProPR

@integry
integry merged commit 4aa8838 into main Nov 13, 2026
50 checks passed
@integry
integry deleted the 3437-epic-cost-visibility-olu branch November 13, 2026 11:53
@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

✅ Epic merged: Cost visibility: failed-attempt spend, cost export, anomaly alerts, cost by effort, escalation after failure

Epic PR #3458 has been merged into main.

4 out of 4 PRs merged into main through this epic PR.

All planned epic work is now merged.

Posted automatically by ProPR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant