Skip to content

[3479 by Claude Opus 5.5] Defer jobs whose agent is at its ceiling instead of holding a worker, and charge the actual direct agent - #3497

Merged
integry merged 9 commits into
3478-epic-per-agent-9uvfrom
3479/claude-opus-5-5-defer-jobs-whose-agent-is-20261112-1539-3bs
Nov 12, 2026
Merged

integry merged 9 commits into
3478-epic-per-agent-9uvfrom
3479/claude-opus-5-5-defer-jobs-whose-agent-is-20261112-1539-3bs

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3479

Branch: 3479/claude-opus-5-5-defer-jobs-whose-agent-is-20261112-1539-3bs
Commits: ✅ Changes committed (0cfaca1)


AI Processing Completed

Execution Details:

Summary:
The monitor only expired; it doesn't need re-arming, since the batch had already finished. No test failed because of this change, so my earlier summary stands.

Detailed Logs:

  • Conversation: 153 messages
  • Session: ddd90f9b-7015-4a78-9bce-df6651bb8687

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3479-2026-11-12T16-41-13-936Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3479-2026-11-12T16-41-13-936Z-output.txt
Latest Conversation Messages
ASSISTANT: A job whose agent is at its per-agent ceiling now gives its worker back and waits in the queue. It no longer polls at container create. Everything passes: the related suites (39 files, plus the new te...

ASSISTANT: [content unavailable]

ASSISTANT: The monitor only expired; it doesn't need re-arming, since the batch had already finished. No test failed because of this change, so my earlier summary stands.


This PR was created automatically by ProPR after processing issue #3479.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!


Visual preview

Waiting for Agent Capacity timeline row

Waiting for Agent Capacity timeline row

Task details at 1440px for an issue deferred four times because its direct agent local-llama is at its per-agent ceiling: one waiting row, updated in place, with the alias, the deferral count and the next retry time

Connect sign-in required. Original retained until 2027-02-10T16:41:19.293Z.

View the full-resolution original in ProPR Connect

…had already finished. No test failed because of this change, so my earlier summary stands.
@propr-dev

propr-dev Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=10
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 12, 2026
@propr-dev

propr-dev Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds early capacity checks, queue deferral, synthetic-member selection, and timeline reporting across the main job types. It needs changes before merge because the new pre-check can prevent recovery of abandoned capacity holders.

✅ Preserved retry budget — Deferrals use moveToDelayed followed by DelayedError, with integration coverage asserting unchanged attemptsMade.

✅ Separated capacity failures — Provider replacement and synthetic failover explicitly exclude capacity refusals.

✅ Useful waiting state — Repeated deferrals update one timeline entry with aliases, count, and retry time.

The supplied current-head status has no failures and five pending checks. This review is static; no commands or tests were run.

Merge blockers

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

F1: 🔴 Allow abandoned holders to reach recovery

  • Required behavior: Capacity deferral must preserve the existing admission recovery lifecycle; an abandoned execution must not permanently prevent subsequent jobs from running.

  • Evidence: packages/core/src/agents/agentCapacity.ts, agentAliasHasCapacity; src/jobs/agentCapacityDeferral.ts, checkJobAgentCapacity; packages/core/src/agents/agentRunAdmission.ts, prepareAdmittedAgent.

    1. Configure a direct alias with ceiling 1. Its holder process dies without releasing its admission record.
    2. After the holder deadline expires, a subsequent queue job for that alias calls the new pre-check. The holder still counts: expiry does not release capacity, and recovery must confirm container removal.
    3. agentAliasHasCapacity reads the holder count and returns false. The job persists its refusal and moves to delayed before reaching prepareAdmittedAgent.
    4. Every later delivery repeats that same count check. With only jobs for this alias arriving, none reaches the admission loop’s await recover(identity), and the dead process cannot call finish().

    The queue remains indefinitely deferred despite the holder being recoverable. Backoff retries only repeat the pre-check; wake-ups require a release that never occurs. The supplied lifecycle documentation explicitly identifies recovery as demand-driven rather than a separate daemon. The new tests exercise normal holder release, not holder-process death followed exclusively by deferred jobs.

    static trace: Traced the pre-check/refusal path against the admission loop and documented recovery contract. proposed regression: Abandon a ceiling-1 holder, expire its lease, then submit only jobs for that alias and verify recovery and eventual execution.

  • Minimum fix: Make the pre-check recovery-aware: allow jobs encountering expired or recovering holders to reach authoritative recovery, or invoke the existing fenced recovery mechanism before deferring. Preserve confirmed container removal before capacity reuse.

Suggestions

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

No suggestions.

Score

The implementation has substantial coverage and clear integration across job types, but the abandoned-holder recovery regression can indefinitely stall an alias. Correct that path before merge and confirm the pending checks complete successfully.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 2s
  • Tokens: 91,258 (90,106 in / 1,152 out)
  • Cost: $0.85

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

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 2cf21c7

Addressed 1 AI review comment (IDs: 6829966296)

Addressed finding F1

Summary of Changes

I fixed F1: a job whose agent's holder died is no longer deferred forever. It now gets through to admission, which recovers the dead holder and then runs the job.

Cause. The capacity pre-check counted every holder record for the alias. A holder whose lease had expired, or one already marked recovering, still counted, so every job for that alias was deferred before it reached the admission loop. That loop is the only place recovery runs, so nothing could ever free the slot.

Fix (in packages/core/src/agents/agentCapacity.ts):

  • New read-only helper. agentAdmissionAliasOccupancy splits each alias's holders into live and recoverable (lease expired, or recovering). It uses Redis server time, the same clock the admission script uses to expire leases.
  • Pre-check counts only live holders. If a job only meets recoverable holders, it goes on to the normal acquire. That calls recover, which removes the recorded container before releasing the holder, so a slot is still never reused until removal is confirmed. If removal fails, the slot stays held, as before.
  • The two other callers get the same rule. Synthetic routing goes through the same pre-check. The wake-up on release (wakeAgentCapacityWaiters) now counts only live holders when working out free slots, so a woken job can be the one that does the recovery.
  • No change to the admission script. agentRunAdmission.ts is untouched; I moved the helper out of it because it pushed the file over the 400-line lint limit.
  • Docs. docs/docs/architecture/agent-run-admission.md now explains the live-holder rule for the pre-check and the wake-up.

New test in test/agentCapacityDeferral.test.ts, run against a real Redis 7.4.1 and BullMQ:

  1. A holder on a ceiling-1 alias "dies": its lease renewal never completes and it never calls finish().
  2. A job for that alias is deferred while the holder is still live, and the wake-up finds no free slot.
  3. After the lease expires, the holder record is still there, but the pre-check reports room and the wake-up promotes the waiting job.
  4. The job runs. The dead container is removed before the job's own container is created, it used one attempt, and its deferral data is cleared.
  5. A later job for the same alias runs without being deferred, and no holder records are left.

With the old pre-check put back, this test fails while the other five in the file pass.

Verification:

  • agentCapacityDeferral passed 6/6 three times in a row.
  • Related suites pass: agentRunAliasAdmission (10), agentRunAdmission (27), reviewCapacityRouting (2), and core's syntheticRoutingCapacity and syntheticRoutingService (19).
  • Typecheck (root and core) and eslint --max-warnings 0 on the core agents directory are clean.

One unrelated flaky test: in one of three agentRunAdmission runs, "caller deadline during create removes the ID without starting it" timed out at 15 s. It forks worker processes, doesn't depend on any file I changed, and passed 4 more times in a row both with and without this fix.

There's no visual preview because nothing in the UI changed.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 15m 18s
  • Tokens: 2,372,884 (2,354,478 in / 18,406 out)
  • Cost: $1.26
  • Subscription usage: Fable +1%

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

…ferred forever. It now gets through to admission, which recovers the dead holder and then runs the job.

I fixed F1: a job whose agent's holder died is no longer deferred forever. It now gets through to admission, which recovers the dead holder and then runs the job.

**Cause.** The capacity pre-check counted every holder record for the alias. A holder whose lease had expired, or one already marked `recovering`, still counted, so every job for that alias was deferred before it reached the admission loop. That loop is the only place recovery runs, so nothing could ever free the slot.

**Fix** (in `packages/core/src/agents/agentCapacity.ts`):
- **New read-only helper.** `agentAdmissionAliasOccupancy` splits each alias's holders into `live` and `recoverable` (lease expired, or `recovering`). It uses Redis server time, the same clock the admission script uses to expire leases.
- **Pre-check counts only live holders.** If a job only meets recoverable holders, it goes on to the normal acquire. That calls `recover`, which removes the recorded container before releasing the holder, so a slot is still never reused until removal is confirmed. If removal fails, the slot stays held, as before.
- **The two other callers get the same rule.** Synthetic routing goes through the same pre-check. The wake-up on release (`wakeAgentCapacityWaiters`) now counts only live holders when working out free slots, so a woken job can be the one that does the recovery.
- **No change to the admission script.** `agentRunAdmission.ts` is untouched; I moved the helper out of it because it pushed the file over the 400-line lint limit.
- **Docs.** `docs/docs/architecture/agent-run-admission.md` now explains the live-holder rule for the pre-check and the wake-up.

**New test** in `test/agentCapacityDeferral.test.ts`, run against a real Redis 7.4.1 and BullMQ:
1. A holder on a ceiling-1 alias "dies": its lease renewal never completes and it never calls `finish()`.
2. A job for that alias is deferred while the holder is still live, and the wake-up finds no free slot.
3. After the lease expires, the holder record is still there, but the pre-check reports room and the wake-up promotes the waiting job.
4. The job runs. The dead container is removed before the job's own container is created, it used one attempt, and its deferral data is cleared.
5. A later job for the same alias runs without being deferred, and no holder records are left.

With the old pre-check put back, this test fails while the other five in the file pass.

**Verification:**
- `agentCapacityDeferral` passed 6/6 three times in a row.
- Related suites pass: `agentRunAliasAdmission` (10), `agentRunAdmission` (27), `reviewCapacityRouting` (2), and core's `syntheticRoutingCapacity` and `syntheticRoutingService` (19).
- Typecheck (root and core) and `eslint --max-warnings 0` on the core agents directory are clean.

One unrelated flaky test: in one of three `agentRunAdmission` runs, "caller deadline during create removes the ID without starting it" timed out at 15 s. It forks worker processes, doesn't depend on any file I changed, and passed 4 more times in a row both with and without this fix.

There's no visual preview because nothing in the UI changed.

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

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 12, 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: 2cf21c7f26e6 (2cf21c7f26e62b7144a5187b891ee0ac5824699d)
  • Details: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:42789
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/

@propr-dev

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 3c25389

Summary of Changes

I fixed the Shard 1/4 failure. It was a test mock that hadn't been updated for a new import on this branch, not a bug in the code.

Cause. One test failed: executor and native goal admission retain create and final argument secrets in packages/core/test/managedDiagnostics.test.ts. It replaces agentRunAdmission.ts with a mock that only provides prepareAdmittedAgent. The last commit made agentCapacity.ts import agentAdmissionKeys and resolveAgentRunAdmission from that module. With the mock in place, the native-goal path failed to load with does not provide an export named 'agentAdmissionKeys'.

Fix. I added simple stand-ins for those two functions to the mock. agentAdmissionKeys returns the three instance keys and resolveAgentRunAdmission returns null. test/nativeGoalLaunchBoundary.test.ts mocks the same module in the same partial way, so I added the same two stand-ins there too. No source code changed.

Verification.

  • packages/core/test/managedDiagnostics.test.ts: all 33 tests pass, including the one that failed in CI.
  • test/nativeGoalLaunchBoundary.test.ts: all 11 tests pass.

I didn't run these two files with the old mock to watch them fail locally; the CI error is what points to the missing exports. I also ran eslint on both files, but it printed only an npm notice, so I can't confirm the lint check passed.

There's no visual preview because nothing in the UI changed.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 5m 44s
  • Tokens: 682,874 (679,635 in / 3,239 out)
  • Cost: $0.42
  • Subscription usage: Weekly +1%, Fable +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: 6830744846✓

…'t been updated for a new import on this branch, not a bug in the code.

I fixed the Shard 1/4 failure. It was a test mock that hadn't been updated for a new import on this branch, not a bug in the code.

**Cause.** One test failed: `executor and native goal admission retain create and final argument secrets` in `packages/core/test/managedDiagnostics.test.ts`. It replaces `agentRunAdmission.ts` with a mock that only provides `prepareAdmittedAgent`. The last commit made `agentCapacity.ts` import `agentAdmissionKeys` and `resolveAgentRunAdmission` from that module. With the mock in place, the native-goal path failed to load with `does not provide an export named 'agentAdmissionKeys'`.

**Fix.** I added simple stand-ins for those two functions to the mock. `agentAdmissionKeys` returns the three instance keys and `resolveAgentRunAdmission` returns `null`. `test/nativeGoalLaunchBoundary.test.ts` mocks the same module in the same partial way, so I added the same two stand-ins there too. No source code changed.

**Verification.**
- `packages/core/test/managedDiagnostics.test.ts`: all 33 tests pass, including the one that failed in CI.
- `test/nativeGoalLaunchBoundary.test.ts`: all 11 tests pass.

I didn't run these two files with the old mock to watch them fail locally; the CI error is what points to the missing exports. I also ran eslint on both files, but it printed only an npm notice, so I can't confirm the lint check passed.

There's no visual preview because nothing in the UI changed.

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

propr-dev Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 4/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 4/4
  • Result: failure
  • Commit: 3c2538982d11 (3c2538982d113ebad87bf03375870ed0ad6e8ef0)
  • Details: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:39443
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/

@propr-dev

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 63a3ba5

Summary of Changes

I fixed the Shard 4/4 failure. Like the Shard 1 failure, it came from a test mock that didn't match a new import on this branch, not from a bug in the deferral logic.

Cause. Two files failed before running any tests: test/checkRunHandler.test.ts and test/followupAssignmentGate.test.ts. Both replace bullmq with a mock that only provides ErrorCode, Queue, QueueEvents and Worker. This branch's packages/core/src/agents/agentCapacity.ts imports Job from bullmq to wake jobs waiting for capacity, so loading it failed with The requested module 'bullmq' does not provide an export named 'Job'.

Fix. I changed the source rather than the mocks. The wake-up code now uses queue.getJob(jobId), which returns the same job (or nothing) as Job.fromId(queue, jobId), and the Job import is gone. Three more root suites (commentEventHandler.ultrafix, mergeConflictDetector, deliveryInterestHandlerGuard) mock bullmq the same way, so this covers all of them without editing five test files. Only agentCapacity.ts changed.

Verification.

  • checkRunHandler (145 tests) and followupAssignmentGate (51 tests) both pass now, as do the other three suites with the same mock. Two of those first failed with read-only /tmp/git-processor errors, which this container is known for. With the clone paths moved to a writable directory, they pass.
  • I ran agentCapacityDeferral against a real Redis 7.4.1 I built locally, with Redis marked as required so it couldn't skip. Its 6 tests cover the getJob/promote wake path and pass. The related suites pass too: syntheticRoutingCapacity, processAgentRunJob, processGoalJob, reviewCapacityRouting and taskSubmissionLifecycle.
  • The core typecheck reports no errors, and eslint --max-warnings 0 passes on the changed file.

I didn't rerun the full shard locally, and nothing ran against real Docker. There's no visual preview because nothing in the UI changed.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 7m 6s
  • Tokens: 1,160,502 (1,155,013 in / 5,489 out)
  • Cost: $0.60
  • 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: 6831323136✓

… came from a test mock that didn't match a new import on this branch, not from a bug in the deferral logic.

I fixed the Shard 4/4 failure. Like the Shard 1 failure, it came from a test mock that didn't match a new import on this branch, not from a bug in the deferral logic.

**Cause.** Two files failed before running any tests: `test/checkRunHandler.test.ts` and `test/followupAssignmentGate.test.ts`. Both replace `bullmq` with a mock that only provides `ErrorCode`, `Queue`, `QueueEvents` and `Worker`. This branch's `packages/core/src/agents/agentCapacity.ts` imports `Job` from `bullmq` to wake jobs waiting for capacity, so loading it failed with `The requested module 'bullmq' does not provide an export named 'Job'`.

**Fix.** I changed the source rather than the mocks. The wake-up code now uses `queue.getJob(jobId)`, which returns the same job (or nothing) as `Job.fromId(queue, jobId)`, and the `Job` import is gone. Three more root suites (`commentEventHandler.ultrafix`, `mergeConflictDetector`, `deliveryInterestHandlerGuard`) mock `bullmq` the same way, so this covers all of them without editing five test files. Only `agentCapacity.ts` changed.

**Verification.**
- `checkRunHandler` (145 tests) and `followupAssignmentGate` (51 tests) both pass now, as do the other three suites with the same mock. Two of those first failed with read-only `/tmp/git-processor` errors, which this container is known for. With the clone paths moved to a writable directory, they pass.
- I ran `agentCapacityDeferral` against a real Redis 7.4.1 I built locally, with Redis marked as required so it couldn't skip. Its 6 tests cover the `getJob`/`promote` wake path and pass. The related suites pass too: `syntheticRoutingCapacity`, `processAgentRunJob`, `processGoalJob`, `reviewCapacityRouting` and `taskSubmissionLifecycle`.
- The core typecheck reports no errors, and `eslint --max-warnings 0` passes on the changed file.

I didn't rerun the full shard locally, and nothing ran against real Docker. There's no visual preview because nothing in the UI changed.

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

propr-dev Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 4/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 4/4
  • Result: failure
  • Commit: 63a3ba55b502 (63a3ba55b502a3f4000f4f5c271a21f44aca569e)
  • Details: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:40751
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/

@propr-dev

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit fe7c57b

Summary of Changes

I fixed the Shard 4/4 failure. It was a test that left a database connection open, not a problem in the deferral logic.

What failed. In test/processTaskImportJobRetry.test.ts, all 10 tests passed, but the test process never exited. The runner killed it at its 180s limit and marked the file as failed.

Cause. Two of the tests this branch added, "a lost race at admission…" and the resumed run in "an import stopped while it waited…", call the real cleanupWorktree and ask it to delete the worktree. Before deleting, it checks whether the worktree is still in use. It asks Docker first, and if Docker answers it then queries the database (packages/core/src/db/connection.js). Loading that module opens a SQLite connection, and nothing in this test closed it. In CI Docker answers, so the connection opened and kept the process alive. In this container there is no docker, so the check stopped before reaching the database, which is why the file passed when run here.

Fix. The test's after() hook now closes the connection (closeConnection()) before removing its temp directory. Other suites (followupHandoffWorktreeRestore.integration, llmLoggerPersist) already do the same. Only that one test file changed.

Verification.

  • CI condition reproduced: I put a stub docker on PATH that reports no running containers. Before the fix, the file hung until a 30s timeout killed it. After the fix it exits in about 3.5s with 10 passed and 0 failed, and the log shows the database query that CI ran.
  • No Docker (this container's default): still 10 passed and 0 failed, about 3.5s.
  • Not run: I didn't rerun the full shard.

There's no visual preview because nothing in the UI changed.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 6m 43s
  • Tokens: 1,811,952 (1,804,291 in / 7,661 out)
  • Cost: $0.86

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: 6831943225✓

@github-actions

Copy link
Copy Markdown

Full Test Suite Results

Validation failed during: Test shard (shard 4).

  • Dependency install: success
  • Workspace build: success
  • Docs validation: success
  • Shard coverage verification: success
  • Hosted native Electron units: skipped (classifier decision: false)
  • Shard 1/4: passed in 741.1s on GitHub Actions 1000112110
  • Shard 2/4: passed in 937.3s on GitHub Actions 1000112114
  • Shard 3/4: passed in 859.3s on GitHub Actions 1000112109
  • Shard 4/4: failed during Test shard in 1014.0s on GitHub Actions 1000112111
    • test/processTaskImportJobRetry.test.ts: timed out after 180000ms; process group terminated
View shard 4/4 output
...(truncated)

lace 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/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.

�[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.

�[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-12T18:09:53.814Z'�[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 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 1522�[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 516�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m does not open when the pointer passes over the row�[33m 353�[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-12T18:09:55.321Z'�[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

 �[32m✓�[39m src/components/TaskDetails/RunTimeline.test.tsx �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[33m 979�[2mms�[22m�[39m
   �[32m✓�[39m RunTimeline �[2m(12)�[22m
     �[33m�[2m✓�[22m�[39m keeps all 50 runs in the shared task scroll flow�[33m 426�[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�[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-12T18:09:56.796Z'�[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

�[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-12T18:09:56.943Z'�[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

 �[32m✓�[39m src/components/VoiceBriefingControl.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[33m 685�[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 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-12T18:09:58.445Z'�[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

�[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 67�[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

 �[32m✓�[39m src/desktop/nativeCommands.integration.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[32m 261�[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-12T18:10:01.268Z'�[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

�[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

 �[32m✓�[39m src/components/AssigneeList.test.tsx �[2m(�[22m�[2m25 tests�[22m�[2m)�[22m�[33m 431�[2mms�[22m�[39m
�[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-12T18:10:02.875Z'�[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

�[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-12T18:10:04.359Z'�[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-12T18:10:05.787Z'�[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 18681�[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 1912�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m shows Generating then Review when Generate races the autosave debounce (stale read after the acknowledgement)�[33m 1568�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m shows Generating then Review when Generate follows an in-place autosave�[33m 1576�[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 1473�[2mms�[22m�[39m
       �[33m�[2m✓�[22m�[39m keeps another opened draft untouched when the acknowledgement arrives�[33m 1507�[2mms�[22m�[39m
       �[33m�[2m✓�[22m�[39m does not rewrite the plans entry when the draft is created after Back�[33m 1475�[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 1470�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m shows Generating then Review when Generate races the autosave debounce (stale read after the acknowledgement)�[33m 1499�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m shows Generating then Review when Generate follows an in-place autosave�[33m 1505�[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 1463�[2mms�[22m�[39m
       �[33m�[2m✓�[22m�[39m keeps another opened draft untouched when the acknowledgement arrives�[33m 1482�[2mms�[22m�[39m
       �[33m�[2m✓�[22m�[39m does not rewrite the plans entry when the draft is created after Back�[33m 1428�[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 3798�[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 467�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/useTaskAssignment.test.tsx �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[33m 930�[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 333�[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

�[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 1601�[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 337�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m allows a new agent to reuse an existing config directory instead of logging in�[33m 315�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/ContextStrip.test.tsx �[2m(�[22m�[2m17 tests�[22m�[2m)�[22m�[33m 641�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/TaskVisualPreviews.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 652�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/LogFilesModal.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 711�[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 522�[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 388�[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�[32m 270�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/PlanStudioPage.inPlaceDraft.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 281�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/index.followupTarget.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 660�[2mms�[22m�[39m
 �[32m✓�[39m src/components/ui/Skeleton.test.tsx �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[33m 303�[2mms�[22m�[39m
 �[32m✓�[39m src/components/ApplicationShell.idle.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 77�[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 833�[2mms�[22m�[39m
   �[32m✓�[39m AgentRuntimePackagesSection �[2m(7)�[22m
     �[33m�[2m✓�[22m�[39m adds a package and submits the complete desired profile�[33m 314�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m offers catalog suggestions and validates a selected package�[33m 354�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Goals/GoalAttentionPanel.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 408�[2mms�[22m�[39m
   �[32m✓�[39m goal console attention �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m shows the provider prompt as plain text with its suggested answers and supported actions�[33m 304�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/NotificationSettingsSection.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 1345�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/FollowupModal.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 489�[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 328�[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 13�[2mms�[22m�[39m
 �[32m✓�[39m src/api/currentUserResponse.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 16�[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 436�[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 350�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanIssuesManager.notificationIntent.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 633�[2mms�[22m�[39m
   �[32m✓�[39m PlanIssuesManager execution intent �[2m(3)�[22m
     �[33m�[2m✓�[22m�[39m cancel closes without starting implementation�[33m 358�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/hooks.lazyRoute.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 447�[2mms�[22m�[39m
 �[32m✓�[39m src/components/globalSearchModel.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 10�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanEditor.notificationIntent.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 587�[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 526�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useCurrentUserBootstrap.mainProxy.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 79�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RepositoryAutoAssignControl.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 317�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/packagedAcceptanceRendererLifecycle.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 10�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/TaskCard.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 628�[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 122�[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 22�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/VoiceSettingsSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 342�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/generationTelemetryUtils.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.accounts.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 527�[2mms�[22m�[39m
   �[33m�[2m✓�[22m�[39m shows both users at one instance and adds an account with a fresh binding�[33m 343�[2mms�[22m�[39m
 �[32m✓�[39m src/components/UserAvatar.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 234�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/PromptModal.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 278�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/setupWizardHooks.editMode.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 37�[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 259�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/ContextLevelSlider.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 75�[2mms�[22m�[39m
 �[32m✓�[39m src/components/modalShells.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 267�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/durations.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RouteChunkErrorBoundary.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 219�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanEditorDesktopLayout.assistant.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 282�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/useSelectedModelMaxTokens.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 77�[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 258�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/TaskCardList.breakpoint.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 251�[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 15�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Agents/AgentAutonomySection.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 253�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/InboxPageComponents.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 222�[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 7�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/AssignmentControl.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 252�[2mms�[22m�[39m
 �[32m✓�[39m src/api/proprApi.instanceCatalog.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 10�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/executionConfigSummary.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Dashboard/KPICard.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 49�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Repositories/RepoBrowsePanel.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 30�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/RefinementChat.focus.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 221�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/ExecutionEventUtils.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 8�[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�[32m696 passed�[39m�[22m�[90m (696)�[39m
�[2m   Start at �[22m 18:09:22
�[2m   Duration �[22m 95.22s�[2m (tests 39%, environment 38%, import 10%, setup 8%, transform 5%)�[22m

�[2mEnvironment �[22m �[33mjsdom was created 85 times�[39m�[2m · 68.11s total, 38% 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.954658
  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: 72.106084
  type: 'test'
  ...
1..2
# tests 2
# suites 0
# pass 2
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 133.651419
[247/247] passed propr-ui#1/4 (workspace test script) in 96.0s

### Shard 4/4: 246/247 passed in 1014.0s

Assigned 247 of 991 discovered units.

| Duration | Status | Unit |
| ---: | --- | --- |
| 180.1s | failed | `test/processTaskImportJobRetry.test.ts` |
| 96.0s | passed | `propr-ui#1/4` (workspace) |
| 33.6s | passed | `apps/desktop/src/profile-store.crash-recovery.test.ts` |
| 31.8s | passed | `packages/core/test/relevanceServiceCommit.test.ts` |
| 30.5s | passed | `packages/api/test/mcpBrowser.test.ts` |
| 29.8s | passed | `packages/api/test/planRevisions.test.ts` |
| 25.3s | passed | `packages/core/test/managedDiagnosticsPortability.test.ts` |
| 24.6s | passed | `packages/api/test/taskFollowupIssueQueueRecoveryHistory.test.ts` |
| 17.5s | passed | `test/prPublicationRecoveryJob.test.ts` |
| 17.1s | passed | `test/agentDefinitionStore.test.ts` |
| 15.9s | passed | `packages/api/test/mcpRecentActivity.test.ts` |
| 13.7s | passed | `packages/api/test/openapiResponseConformance.test.ts` |
| 12.9s | passed | `packages/core/test/repositoryWorkflow.test.ts` |
| 11.6s | passed | `packages/api/test/mcpActivity.test.ts` |
| 11.0s | passed | `test/integrationImageHarness.test.mjs` |


1/247 test runs failed in shard 4/4 after 1014.0s:
- test/processTaskImportJobRetry.test.ts: timed out after 180000ms; process group terminated

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

View Workflow
View uploaded artifacts

@propr-dev

propr-dev Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Run Full Test Suite

Please investigate and fix this CI failure.

Failure evidence

.github:68
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/

…tabase connection open, not a problem in the deferral logic.

I fixed the Shard 4/4 failure. It was a test that left a database connection open, not a problem in the deferral logic.

**What failed.** In `test/processTaskImportJobRetry.test.ts`, all 10 tests passed, but the test process never exited. The runner killed it at its 180s limit and marked the file as failed.

**Cause.** Two of the tests this branch added, "a lost race at admission…" and the resumed run in "an import stopped while it waited…", call the real `cleanupWorktree` and ask it to delete the worktree. Before deleting, it checks whether the worktree is still in use. It asks Docker first, and if Docker answers it then queries the database (`packages/core/src/db/connection.js`). Loading that module opens a SQLite connection, and nothing in this test closed it. In CI Docker answers, so the connection opened and kept the process alive. In this container there is no `docker`, so the check stopped before reaching the database, which is why the file passed when run here.

**Fix.** The test's `after()` hook now closes the connection (`closeConnection()`) before removing its temp directory. Other suites (`followupHandoffWorktreeRestore.integration`, `llmLoggerPersist`) already do the same. Only that one test file changed.

**Verification.**
- **CI condition reproduced:** I put a stub `docker` on PATH that reports no running containers. Before the fix, the file hung until a 30s timeout killed it. After the fix it exits in about 3.5s with 10 passed and 0 failed, and the log shows the database query that CI ran.
- **No Docker (this container's default):** still 10 passed and 0 failed, about 3.5s.
- **Not run:** I didn't rerun the full shard.

There's no visual preview because nothing in the UI changed.

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

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Analysis Summary

I made no code changes. The failure was reported on commit 63a3ba55b, and the commit after it, fe7c57b6b (the current branch head), already fixes it.

What failed: In shard 4, test/processTaskImportJobRetry.test.ts was killed at its 180s limit. Two tests added on this branch run the real worktree cleanup. When Docker responds, as it does in CI, that cleanup also queries the database, which opens a SQLite connection. The test never closed that connection, so the process stayed alive after all 10 tests had passed. fe7c57b6b closes the connection in the file's after() hook.

Checked again here, with a stand-in docker command so the database query runs as it does in CI:

  • The test file as of 63a3ba55b: hangs until my 40s timeout kills it (exit 124), the same way CI failed.
  • The current test file: 10 passed, 0 failed, exits in about 4.6s. The log shows the database query that triggered the hang in CI.

I didn't run the full shard locally. The next CI run on fe7c57b6b should clear the failure. There's no visual preview because nothing in the UI changed.

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


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 4m 19s
  • Tokens: 441,508 (439,736 in / 1,772 out)
  • Cost: $0.43

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: 6831950867✓, 6831950849✓

@propr-dev

propr-dev Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds queue-level capacity deferral while retaining atomic container admission as the enforcement boundary. It needs a localized correction before merge: changing a job’s refused aliases leaves stale waiter registrations that can repeatedly divert wakeups.

✅ Preserves retry budgets — Deferral moves the same job to delayed and throws DelayedError, avoiding ordinary failure retries.

✅ Handles abandoned holders — The pre-check distinguishes live holders from recoverable holders, allowing admission recovery to reclaim abandoned capacity.

✅ Broad validation coverage — Tests cover worker release, claim boundaries, synthetic routing and timeline updates. All supplied current-head checks passed or were skipped. This review used static tracing only, as requested.

Merge blockers

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

F2: 🔴 Remove obsolete alias waiter registrations

  • Required behavior: Deferred jobs must track the aliases currently blocking them so released capacity wakes eligible waiting jobs instead of repeatedly waking jobs blocked elsewhere.

  • Evidence: src/jobs/agentCapacityDeferral.ts, persistAgentCapacityDeferral and admitAgentCapacity; packages/core/src/agents/agentCapacity.ts, wakeAgentCapacityWaiters.

    1. A review has saturated reviewers A and B. Its refusal registers the job in both aliases’ waiter sets and persists agentCapacityAliases: ['A', 'B'].
    2. A holder releases A and wakes the review. On re-entry, A now has capacity but B remains saturated. routeReviewAssignments throws a refusal naming only B.
    3. persistAgentCapacityDeferral registers B and overwrites the persisted aliases with ['B']. It never removes the existing A registration. admitAgentCapacity is not reached because review routing threw.
    4. Another A execution acquires and subsequently releases A while B remains saturated. The stale review entry is still older than a legitimate A-only waiter. wakeAgentCapacityWaiters increments woken and promotes that review, exhausting A’s wakeup allowance.
    5. The review again defers on B. The legitimate A-only waiter remains delayed despite free A capacity, potentially until its five-minute backoff expires. This can repeat on subsequent releases.

    static trace: The supplied code registers current aliases without reconciling previous registrations; wakeup checks only job existence, completion and delayed status, not whether the job still waits for that alias. PR locks do not prevent this sequence because they are intentionally released between deliveries. The timer eventually retries the legitimate waiter but does not prevent repeated diversion of release-triggered wakeups.

  • Minimum fix: Reconcile old and new alias memberships whenever a refusal changes the blocking aliases, removing obsolete registrations after successfully persisting the new data. Also discard obsolete memberships during wakeup by checking the job’s persisted aliases before consuming a wakeup slot.

Suggestions

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

S1: 🟢 Reuse capacity snapshots

Capacity-aware routing can open a Redis connection and scan the entire holder hash separately for each capped alias; direct reservations also perform a second check. Consider sharing a connection and occupancy snapshot within one advisory pre-check. This is an optional efficiency improvement because authoritative admission already handles changes after the snapshot.

Score

The implementation has substantial coverage and green current-head checks, but the waiter-membership defect undermines the new release-triggered scheduling behavior. The correction is localized.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 5s
  • Tokens: 116,241 (114,861 in / 1,380 out)
  • Cost: $1.09

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 F2 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit f074fb7

Addressed 1 AI review comment (IDs: 6833703645)

Addressed finding F2

Summary of Changes

I fixed F2. When a re-entered job's refusal stops naming an alias, the job now leaves that alias's waiting list, so released capacity goes to the jobs that still wait for it.

Changes:

  • persistAgentCapacityDeferral (src/jobs/agentCapacityDeferral.ts): once the new refusal is saved, the job leaves the waiting lists of aliases its previous refusal named and this one doesn't. In the review example from the finding, the review now leaves A's list when only B blocks it. It keeps its original place on B's list.
  • wakeAgentCapacityWaiters (packages/core/src/agents/agentCapacity.ts): before a waiter uses up a wakeup slot, the wakeup checks which aliases the job's last saved refusal named. If the job is delayed and no longer waits for this alias, its entry is removed and the slot goes to the next waiter. This catches leftover entries, for example if the removal above failed, since that removal is best effort.
  • The window you asked about: a job that isn't delayed may still be in the middle of joining a new alias's list, with its saved data still naming the old aliases. The wakeup skips such a job without counting it but doesn't remove its entry, because removing it would wrongly take the job off a list it just joined. Nothing is missed: right after joining, the job checks capacity itself and schedules a quick retry if the alias has room. That window is avoidable, so I closed it. The remaining overlap between a release and a job joining a list is the race the existing capacity check already covers.
  • Related bug, same mistake: when saving the refusal failed, the old code removed the job from every alias the refusal named. That included lists the job was legitimately on from its previous refusal, whose data was still saved. Now it removes only the lists this attempt newly joined.

Tests: I added one integration test to test/agentCapacityDeferral.test.ts, run against a real Redis and BullMQ queue. It enables a second ceiling, remote-llama=1, and covers:

  • a review blocked on both aliases joins both lists.
  • a failed save keeps both entries.
  • re-deferring on remote-llama alone leaves local-llama's list but keeps its place on remote-llama's.
  • a local-llama wakeup drops an older leftover review entry, keeps the entry of a job that isn't delayed (without counting it), and wakes the real local-llama waiter.

The test fails on the old code with either half of the fix reverted on its own, so each half is covered.

Verification:

  • The capacity suite passes 7/7.
  • The related suites pass: alias admission 10, review capacity routing 2, agent run 71, agent action 35, PR publication 30, merge conflict 24, task import retry 10, task submission lifecycle 30.
  • tsc is clean for the root and for packages/core, and eslint --max-warnings 0 is clean on both changed source files. To clear a nesting-depth warning I moved the alias check into a small waitsFor helper.

No visual preview, since nothing visible changed.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 7m 45s
  • Tokens: 1,251,879 (1,239,585 in / 12,294 out)
  • Cost: $0.82

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

… alias, the job now leaves that alias's waiting list, so released capacity goes to the jobs that still wait for it.

I fixed F2. When a re-entered job's refusal stops naming an alias, the job now leaves that alias's waiting list, so released capacity goes to the jobs that still wait for it.

**Changes:**
- **`persistAgentCapacityDeferral`** (`src/jobs/agentCapacityDeferral.ts`): once the new refusal is saved, the job leaves the waiting lists of aliases its previous refusal named and this one doesn't. In the review example from the finding, the review now leaves A's list when only B blocks it. It keeps its original place on B's list.
- **`wakeAgentCapacityWaiters`** (`packages/core/src/agents/agentCapacity.ts`): before a waiter uses up a wakeup slot, the wakeup checks which aliases the job's last saved refusal named. If the job is delayed and no longer waits for this alias, its entry is removed and the slot goes to the next waiter. This catches leftover entries, for example if the removal above failed, since that removal is best effort.
- **The window you asked about:** a job that isn't delayed may still be in the middle of joining a new alias's list, with its saved data still naming the old aliases. The wakeup skips such a job without counting it but doesn't remove its entry, because removing it would wrongly take the job off a list it just joined. Nothing is missed: right after joining, the job checks capacity itself and schedules a quick retry if the alias has room. That window is avoidable, so I closed it. The remaining overlap between a release and a job joining a list is the race the existing capacity check already covers.
- **Related bug, same mistake:** when saving the refusal failed, the old code removed the job from every alias the refusal named. That included lists the job was legitimately on from its previous refusal, whose data was still saved. Now it removes only the lists this attempt newly joined.

**Tests:** I added one integration test to `test/agentCapacityDeferral.test.ts`, run against a real Redis and BullMQ queue. It enables a second ceiling, `remote-llama=1`, and covers:
- a review blocked on both aliases joins both lists.
- a failed save keeps both entries.
- re-deferring on remote-llama alone leaves local-llama's list but keeps its place on remote-llama's.
- a local-llama wakeup drops an older leftover review entry, keeps the entry of a job that isn't delayed (without counting it), and wakes the real local-llama waiter.

The test fails on the old code with either half of the fix reverted on its own, so each half is covered.

**Verification:**
- The capacity suite passes 7/7.
- The related suites pass: alias admission 10, review capacity routing 2, agent run 71, agent action 35, PR publication 30, merge conflict 24, task import retry 10, task submission lifecycle 30.
- `tsc` is clean for the root and for `packages/core`, and `eslint --max-warnings 0` is clean on both changed source files. To clear a nesting-depth warning I moved the alias check into a small `waitsFor` helper.

No visual preview, since nothing visible changed.

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

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds queue deferral, capacity-aware routing, and timeline visibility, but needs corrections before merge.

✅ Preserved retry budgets — Capacity refusals move the same BullMQ job to delayed and throw DelayedError.

✅ Pre-claim checks — Goal and automation processors check capacity before taking durable execution claims.

✅ Focused coverage — Added tests cover real Redis/BullMQ deferral, wake-ups, recovery, and synthetic selection. Current-head test suites pass; Validate Changes remains pending.

This review uses static analysis of the supplied code; no commands were run.

Merge blockers

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

F3: 🔴 Valid alias can become permanently saturated

  • Required behavior: Capacity checks must correctly handle valid direct-agent aliases and admit jobs after their holders release.

  • Evidence: packages/core/src/agents/agentCapacity.ts, agentAdmissionAliasOccupancy and liveAliasHolders

    1. Configure a direct agent named constructor, which satisfies the supplied lowercase alias validation, with ceiling 1.
    2. While that agent has a holder, a capacity check receives an occupancy row for constructor.
    3. occupancy["constructor"] ??= ... retrieves the inherited Object constructor instead of creating an occupancy entry. Adding counts to its undefined live and recoverable properties produces NaN.
    4. liveAliasHolders returns NaN, so NaN < ceiling reports no capacity.
    5. Even after the holder releases, fresh {} occupancy objects inherit the same mutated constructor. Subsequent checks still return NaN, indefinitely deferring jobs despite an empty holders hash.

    Configuration validation permits this alias, and backoff retries repeat the poisoned lookup. static trace: JavaScript prototype lookup and arithmetic through the supplied occupancy implementation; no execution performed.

  • Minimum fix: Use a null-prototype dictionary or Map for occupancy, ensuring every alias lookup reads only explicitly stored entries. Add coverage for constructor before and after holder release.

F4: 🔴 Capacity checks prevent generation reconciliation

  • Required behavior: The existing admission-generation transition must remain reachable: a newer generation fences and drains older-generation holders before admitting new work.

  • Evidence: packages/core/src/agents/agentCapacity.ts, agentAliasHasCapacity and OCCUPANCY_SCRIPT

    1. An old-generation process holds the sole slot for a capped alias, for example through a long-running native goal, and continues renewing its holder.
    2. A replacement worker starts with a higher admission generation during the documented resize procedure. Its queued jobs request that same alias.
    3. The new pre-check counts the old-generation holder as live without examining the stored admission configuration or generation.
    4. Every job is deferred before reaching prepareAdmittedAgent, where generation reconciliation would fence and remove the old holder.
    5. Repeated deliveries continue deferring while the old process renews. The new generation cannot perform the documented drain, and queued work remains blocked until the old execution independently ends.

    Lease renewal keeps this holder outside the expired-holder recovery exception. Backoff cannot help because every retry encounters the same pre-check. static trace: the new unconditional live-holder comparison against the supplied generation-reconciliation contract in docs/docs/architecture/agent-run-admission.md; no execution performed.

  • Minimum fix: Make the advisory check allow requests requiring admission-configuration reconciliation to reach authoritative admission. Preserve the existing generation fencing there, and cover a newer-generation job encountering a live, saturated older-generation alias.

Suggestions

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

No suggestions.

Score

The implementation has substantial focused coverage, but two capacity-precheck defects can prevent queued work from progressing. Both admit localized corrections.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 42s
  • Tokens: 118,451 (116,288 in / 2,163 out)
  • Cost: $1.16

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 F3 F4

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 34ba12d

Addressed 1 AI review comment (IDs: 6834430932)

Addressed findings F3, F4

Summary of Changes

I fixed F3 and F4. Before the fix I ran a probe against the old code, and it reproduced both problems: an agent named constructor stayed full after its holder released, and a newer-generation job was turned away by a live older holder. With the fix, both checks give the right answer.

F3: an alias named constructor

  • Occupancy is now a Map, so looking up constructor only finds what was actually stored there. The occupancy function also returns a different shape now: { aliases: Map, reconciliationPending } (packages/core/src/agents/agentCapacity.ts).
  • Same bug elsewhere in this PR's code, fixed:
    • agentAdmissionAliasHolders counted holders in a plain {} and could produce a garbage value for constructor. It now counts in a Map.
    • Ceiling lookup: a direct agent called constructor without a ceiling inherited Object as its ceiling, so the pre-check always said it was full. Both the pre-check and the admission script's lookup now go through a new agentRunAliasCeiling helper that only reads listed entries. The parser also builds the limits in a Map.
    • Refusal messages: they printed (limit function Object() { [native code] }), including on the task timeline. Both message builders now only show ceilings that were actually set (AgentCapacityError and refusalReason in src/jobs/agentCapacityDeferral.ts).

F4: a newer generation reaching reconciliation

  • The occupancy script now reads the stored admission configuration in the same Redis call as the holders. It reports when the stored generation is older than the caller's.
  • In that case the pre-check counts no holders, so the job gets through to the acquire. Fencing and draining stay where they were: the acquire's recovery step marks the old holders, removes their containers, and only then admits.
  • The wake-up after a release uses the same rule. A newer-generation process now wakes a waiter even while older holders are still live.
  • Unchanged cases:
    • An older process whose generation has been superseded still counts holders normally.
    • A different limit at the same generation still counts normally. The acquire rejects that mismatch anyway.
    • An unreadable stored configuration counts normally and is left for the acquire to reject.
  • Callers covered: direct-agent jobs, synthetic member selection and the deferral retry path all go through agentAliasHasCapacity, so the one fix covers them.

Tests and docs

  • New test file test/agentCapacityAliasOccupancy.test.ts, using a real Redis, real BullMQ and the real admission script. It has 3 tests:
    • constructor with a ceiling of 1: full while held, free again after release; also checks that no shared prototype was changed.
    • constructor without a ceiling: not capped, and refusal messages are clean.
    • A newer-generation job meets a live, renewing older-generation holder: it isn't deferred, either in the pre-check or through checkJobAgentCapacity. An old-generation job is still deferred. The new acquire removes the old container before creating its own.
    • A waiter is woken by a newer-generation release but not by an older one.
  • Results: the 3 new tests fail on the old code and pass with the fix. Related suites (alias admission, global admission including the generation upgrade/downgrade cases, repository workflow admission, deferral, native goals, review routing, synthetic routing) also pass: 129 tests, 0 skipped.
  • tsc passes for the root project and for packages/core, and eslint --max-warnings 0 passes on the changed files.
  • I updated docs/docs/architecture/agent-run-admission.md to describe the generation rule and the new occupancy signature.

There's no visual change, so I didn't create a preview.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 11m 32s
  • Tokens: 3,350,506 (3,319,997 in / 30,509 out)
  • Cost: $1.78

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

… old code, and it reproduced both problems: an agent named `constructor` stayed full after its holder released, and a newer-generation job was turned away by a live older holder. With the fix, both checks give the right answer.

I fixed F3 and F4. Before the fix I ran a probe against the old code, and it reproduced both problems: an agent named `constructor` stayed full after its holder released, and a newer-generation job was turned away by a live older holder. With the fix, both checks give the right answer.

### F3: an alias named `constructor`
- **Occupancy** is now a `Map`, so looking up `constructor` only finds what was actually stored there. The occupancy function also returns a different shape now: `{ aliases: Map, reconciliationPending }` (`packages/core/src/agents/agentCapacity.ts`).
- **Same bug elsewhere in this PR's code, fixed:**
  - `agentAdmissionAliasHolders` counted holders in a plain `{}` and could produce a garbage value for `constructor`. It now counts in a `Map`.
  - **Ceiling lookup:** a direct agent called `constructor` *without* a ceiling inherited `Object` as its ceiling, so the pre-check always said it was full. Both the pre-check and the admission script's lookup now go through a new `agentRunAliasCeiling` helper that only reads listed entries. The parser also builds the limits in a `Map`.
  - **Refusal messages:** they printed `(limit function Object() { [native code] })`, including on the task timeline. Both message builders now only show ceilings that were actually set (`AgentCapacityError` and `refusalReason` in `src/jobs/agentCapacityDeferral.ts`).

### F4: a newer generation reaching reconciliation
- The occupancy script now reads the stored admission configuration in the same Redis call as the holders. It reports when the stored generation is older than the caller's.
- In that case the pre-check counts no holders, so the job gets through to the acquire. Fencing and draining stay where they were: the acquire's recovery step marks the old holders, removes their containers, and only then admits.
- The wake-up after a release uses the same rule. A newer-generation process now wakes a waiter even while older holders are still live.
- **Unchanged cases:**
  - An older process whose generation has been superseded still counts holders normally.
  - A different limit at the same generation still counts normally. The acquire rejects that mismatch anyway.
  - An unreadable stored configuration counts normally and is left for the acquire to reject.
- **Callers covered:** direct-agent jobs, synthetic member selection and the deferral retry path all go through `agentAliasHasCapacity`, so the one fix covers them.

### Tests and docs
- **New test file** `test/agentCapacityAliasOccupancy.test.ts`, using a real Redis, real BullMQ and the real admission script. It has 3 tests:
  - `constructor` with a ceiling of 1: full while held, free again after release; also checks that no shared prototype was changed.
  - `constructor` without a ceiling: not capped, and refusal messages are clean.
  - A newer-generation job meets a live, renewing older-generation holder: it isn't deferred, either in the pre-check or through `checkJobAgentCapacity`. An old-generation job is still deferred. The new acquire removes the old container before creating its own.
  - A waiter is woken by a newer-generation release but not by an older one.
- **Results:** the 3 new tests fail on the old code and pass with the fix. Related suites (alias admission, global admission including the generation upgrade/downgrade cases, repository workflow admission, deferral, native goals, review routing, synthetic routing) also pass: 129 tests, 0 skipped.
- `tsc` passes for the root project and for `packages/core`, and `eslint --max-warnings 0` passes on the changed files.
- I updated `docs/docs/architecture/agent-run-admission.md` to describe the generation rule and the new occupancy signature.

There's no visual change, so I didn't create a preview.

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

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds queue deferral for saturated agents, shared backoff and timeline handling, and capacity-aware synthetic routing. It needs a localized correction before merge.

✅ Preserved retry budget — Capacity refusals unwind through moveToDelayed and DelayedError, with real BullMQ coverage checking that deferrals consume no failure attempts.

✅ Recovery-aware checks — The occupancy check allows admission to recover expired holders and reconcile older generations, avoiding permanent deferral behind abandoned capacity.

The supplied current-head status has no failures and two pending checks. This review used static analysis only; no commands or tests were run.

Merge blockers

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

F5: 🔴 Fence paused goals before capacity checks

  • Required behavior: A goal delivery that is no longer authorized to run must reach its claim fence without waiting for agent capacity. Capacity deferral must not keep paused deliveries queued indefinitely.

  • Evidence: src/jobs/goalCapacity.ts:checkGoalAgentCapacity and src/jobs/processGoalJob.ts:processGoalJob

    1. A running goal’s delivery encounters a saturated agent and is delayed before claiming the attempt.
    2. The user pauses the goal while that delivery waits, changing desired_state away from running without completing the goal.
    3. On redelivery, checkGoalAgentCapacity calls fencedGoal. The supplied implementation checks the attempt identity and null result_state, but does not check desired_state.
    4. If the agent remains saturated, the capacity check throws again. deferCapacityJob delays the delivery before claimGoalAttempt can reject the paused goal.

    The paused delivery therefore remains in the delayed queue and capacity waiting lists, repeatedly recording capacity waits until unrelated agent capacity becomes available. Previously, the claim immediately rejected this delivery. The claim’s desired_state: 'running' guard prevents execution, but cannot retire the delivery because the new pre-check runs first. No lease expiry or concurrent ownership loss is needed: pausing between deliveries is sufficient.

    static trace: verified against the changed processor ordering and the supplied fencedGoal and claimGoalAttempt implementations. proposed regression: defer a goal, pause it, retain a saturated agent, and assert the next delivery returns goal_claim_fence without another delay.

  • Minimum fix: Skip capacity checking when the fetched goal is not runnable under the claim’s guards, allowing the existing claim to reject it immediately. Remove any persisted capacity-waiter registrations when retiring that delivery.

Suggestions

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

S2: 🟢 Exercise usage-based capacity selection

The new synthetic-routing suite constructs round-robin pools throughout, although chooseMemberWithCapacity also changes usage-based selection. A focused test covering a saturated highest-headroom member and selection of its available same-tier peer would strengthen coverage. This is optional because the supplied implementation does not demonstrate a defect in that branch.

Score

The implementation has substantial targeted coverage and sound recovery handling, but paused-goal deliveries need to bypass capacity deferral. Current checks show no failures, with two still pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 15s
  • Tokens: 123,665 (122,140 in / 1,525 out)
  • Cost: $1.19

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 F5 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 9275199

Addressed 1 AI review comment (IDs: 6835061679)

Addressed finding F5

Summary of Changes

I fixed F5. A paused or cancelled goal's delivery now goes straight to the claim fence and is retired at once, even while its agent is still full. It also leaves the agent's waiting list.

The fix (src/jobs/goalCapacity.ts): before checking capacity, checkGoalAgentCapacity now applies the same conditions claimGoalAttempt uses. The goal must still match this attempt and have no result, have desired_state === 'running', and have claimed_at unset. If any of these fails, it skips the capacity check and calls admitAgentCapacity(job). That clears the stored wait counters and removes the job from every alias waiting list it joined. The claim then returns goal_claim_fence without another delay.

The finding names only paused goals; the same change also covers these other cases the claim would reject:

  • Cancelled goals: they hit the same bug as paused ones and were delayed again.
  • Already-claimed attempts: the claim rejects these too, but the old code still delayed them.
  • Superseded attempts: the old code already returned early here, but it never removed the waiting-list entries. That is the cleanup part of the "minimum correction".

Regression tests (test/processGoalJob.test.ts): one case each for paused, cancelled, superseded and already-claimed. Each uses a real database, the real checkGoalAgentCapacity and claimGoalAttempt, and a stub capacity Redis where codex=1 stays fully held. The first delivery is delayed and joins the codex waiting list. After the goal changes, the next delivery returns goal_claim_fence, is not delayed again, leaves the list, and has its stored wait data cleared.

Verification:

  • Old code: all four new tests fail. Paused, cancelled and already-claimed are delayed again; superseded hits the fence but stays on the waiting list.
  • Fixed code: the whole of processGoalJob.test.ts passes (23/23).
  • Lint and typecheck: goalCapacity.ts passes eslint with --max-warnings 0, and tsc --noEmit is clean.
  • Not run: the Redis-backed agentCapacityDeferral.test.ts, because this container has no redis-server.

Similar code checked (no change needed): I looked at the other places that check capacity before starting work: agent report/action runs, task import, issue jobs, PR comment jobs and merge-conflict jobs. Each checks whether the work is still valid (run state, task cancellation or labels) before the capacity check, so none can be delayed indefinitely this way. Their early exits don't remove waiting-list entries either. That is harmless: when an agent frees up, the wake-up step drops entries for finished jobs without using up the wake-up.

No visual preview: this change doesn't affect anything a user can see.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 6m 29s
  • Tokens: 2,176,026 (2,162,718 in / 13,308 out)
  • Cost: $1.16

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

…straight to the claim fence and is retired at once, even while its agent is still full. It also leaves the agent's waiting list.

I fixed F5. A paused or cancelled goal's delivery now goes straight to the claim fence and is retired at once, even while its agent is still full. It also leaves the agent's waiting list.

**The fix** (`src/jobs/goalCapacity.ts`): before checking capacity, `checkGoalAgentCapacity` now applies the same conditions `claimGoalAttempt` uses. The goal must still match this attempt and have no result, have `desired_state === 'running'`, and have `claimed_at` unset. If any of these fails, it skips the capacity check and calls `admitAgentCapacity(job)`. That clears the stored wait counters and removes the job from every alias waiting list it joined. The claim then returns `goal_claim_fence` without another delay.

The finding names only paused goals; the same change also covers these other cases the claim would reject:
- **Cancelled goals:** they hit the same bug as paused ones and were delayed again.
- **Already-claimed attempts:** the claim rejects these too, but the old code still delayed them.
- **Superseded attempts:** the old code already returned early here, but it never removed the waiting-list entries. That is the cleanup part of the "minimum correction".

**Regression tests** (`test/processGoalJob.test.ts`): one case each for paused, cancelled, superseded and already-claimed. Each uses a real database, the real `checkGoalAgentCapacity` and `claimGoalAttempt`, and a stub capacity Redis where `codex=1` stays fully held. The first delivery is delayed and joins the `codex` waiting list. After the goal changes, the next delivery returns `goal_claim_fence`, is not delayed again, leaves the list, and has its stored wait data cleared.

**Verification:**
- **Old code:** all four new tests fail. Paused, cancelled and already-claimed are delayed again; superseded hits the fence but stays on the waiting list.
- **Fixed code:** the whole of `processGoalJob.test.ts` passes (23/23).
- **Lint and typecheck:** `goalCapacity.ts` passes eslint with `--max-warnings 0`, and `tsc --noEmit` is clean.
- **Not run:** the Redis-backed `agentCapacityDeferral.test.ts`, because this container has no `redis-server`.

**Similar code checked (no change needed):** I looked at the other places that check capacity before starting work: agent report/action runs, task import, issue jobs, PR comment jobs and merge-conflict jobs. Each checks whether the work is still valid (run state, task cancellation or labels) before the capacity check, so none can be delayed indefinitely this way. Their early exits don't remove waiting-list entries either. That is harmless: when an agent frees up, the wake-up step drops entries for finished jobs without using up the wake-up.

No visual preview: this change doesn't affect anything a user can see.

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

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds queue deferral for saturated agents, shared capacity-wait bookkeeping, synthetic routing support, and timeline visibility. It needs a localized correction before merge.

✅ Worker release — Capacity refusals unwind processing and use moveToDelayed plus DelayedError, preserving the failure-attempt budget.

✅ Recovery-aware checks — Expired holders and older admission generations can reach authoritative admission for recovery instead of remaining blocked by the pre-check.

✅ Current validation — The supplied current-head checks pass, including all four test shards; the earlier timeout is no longer a current failure.

Merge blockers

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

F6: 🔴 Preserve import wait state through admission

  • Required behavior: A capacity-deferred job must retain its synthetic selection and waiting position across repeated capacity refusals, without advancing the routing cursor again.

  • Evidence: src/jobs/processTaskImportJob.ts:processAdmittedTaskImportJob, src/jobs/agentCapacityDeferral.ts:admitAgentCapacity

    static trace:

    1. With per-agent ceilings enabled, a synthetic task import passes checkJobAgentCapacity, which stores its selected member in agentCapacitySelections.
    2. The immediately following admitAgentCapacity(job) clears that selection and any previous deferral count and waiting timestamp, before physical admission.
    3. While the import awaits authentication, cloning, or worktree preparation, another launch acquires the selected alias’s remaining slot. The pre-check holds no reservation or lock preventing this.
    4. The import reaches authoritative admission and waits beyond its configured 30-second race bound. It throws AgentCapacityError; the catch persists a new deferral from the already-cleared job data.
    5. On redelivery, the original pin is absent. Synthetic routing advances its cursor again and can select a different member even when the original member is eligible and free. Repeated lost races also reset the deferral count and oldest-waiting timestamp.

    This changes routing because of a capacity wait and loses the job’s accumulated waiting priority. The in-memory pin only survives the current delivery; persistAgentCapacityDeferral does not restore it. The added import race test mocks both capacity admission and persistence, so it does not exercise this durable-state sequence.

  • Minimum fix: Preserve the import’s selected member and accumulated wait metadata until physical admission succeeds, or restore that saved state when the bounded acquire produces another capacity refusal. Clear it once the import actually proceeds.

Suggestions

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

S3: 🟢 Test consecutive import admission races

Add a regression using the real capacity bookkeeping across two import deliveries. Assert that a second admission refusal preserves the pin and original waiting timestamp and increments the deferral count. This would strengthen coverage beyond the current mocked processor-path test.

Score

The implementation has substantial coverage and passing current checks, but the import retry path loses durable routing and waiting state. A localized lifecycle correction should make it merge-ready.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 13s
  • Tokens: 124,928 (123,325 in / 1,603 out)
  • Cost: $1.20

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 F6 S3

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 7232813

Addressed 1 AI review comment (IDs: 6836604840)

Addressed finding F6

Summary of Changes

The monitor timed out after the batch had already finished, so I don't need to restart it. All 28 related suites passed, and my summary above still holds.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (xhigh)
  • Requested By: @propr-ultrafix
  • Time: 23m 14s
  • Tokens: 8,319,880 (8,319,379 in / 501 out)
  • Cost: $2.22

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

… so I don't need to restart it. All 28 related suites passed, and my summary above still holds.

The monitor timed out after the batch had already finished, so I don't need to restart it. All 28 related suites passed, and my summary above still holds.

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

propr-dev Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR moves saturated-agent jobs back into the queue, preserves their retry budgets, and adds capacity-aware synthetic routing and timeline reporting. Merge-ready within the reviewed scope, conditional on the pending Validate Changes check.

✅ Preserved admission authority — Pre-checks remain advisory; physical admission still enforces capacity and recovers expired or older-generation holders.

✅ Durable deferral coverage — Added tests exercise real Redis/BullMQ deferrals, worker release, wake-ups, cancellation, and synthetic selection persistence.

Review was limited to static analysis of the supplied code; no commands or tests were run. Current-head checks report no failures, including successful completion of all four test shards.

Merge blockers

No merge blockers.

Suggestions

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

S4: 🟢 Exercise prompt-dependent synthetic eligibility

Add coverage connecting reserveAgentCapacity preselection to SyntheticAgent.executeTask when the actual prompt changes member eligibility through requiredTokens. Existing tests cover capacity and pin reuse separately; this additional case would help verify their interaction with context limits. This is optional coverage, not a demonstrated defect.

S5: 🟢 Consolidate Redis test fixtures

The new integration suites repeat Redis startup, connection, and teardown helpers. A shared fixture would reduce maintenance and keep timeout and cleanup behavior consistent. This is optional test infrastructure cleanup.

Score

The implementation has substantial targeted coverage and no verified merge blocker in the supplied code. Current-head test results are successful; one validation check remains pending.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 1s
  • Tokens: 128,597 (127,559 in / 1,038 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 S4 S5

🤖 Review by ProPR

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant