Skip to content

[3860 by Claude Opus 5.5] # Issue jobs refused for disk pressure are dropped silently; implement_plan returns 500 with no log - #3862

Merged
integry merged 17 commits into
mainfrom
3860/claude-opus-5-5-issue-jobs-refused-for-di-20261127-2208-xrs
Nov 28, 2026
Merged

integry merged 17 commits into
mainfrom
3860/claude-opus-5-5-issue-jobs-refused-for-di-20261127-2208-xrs

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3860

Branch: 3860/claude-opus-5-5-issue-jobs-refused-for-di-20261127-2208-xrs
Commits: ✅ Changes committed (474884e)


AI Processing Completed

Execution Details:

Summary:
I've fixed both bugs from issue #3860. All the targeted suites pass, including the BullMQ ones against a real Redis 7.2.5. Typecheck and lint are clean for core and the API, except for one existing lint warning in AntigravityAgent.ts, which I didn't touch. I didn't run the full test suite.

1. Issue jobs refused for disk pressure

Retry with backoff. In core's createWorker, an issue job that admission refuses with WorktreeDiskPressureError is now delayed on the same job instead of failing (packages/core/src/queue/issueDiskPressureDeferral.ts). It waits 2, 5, 10 and then every 20 minutes, and these waits don't use up its 3 attempts. Each wait is logged as "Issue job refused for disk pressure: waiting for free disk space". The total wait is capped by a new setting, WORKTREE_DISK_PRESSURE_MAX_WAIT_MS (default 1 hour). When it runs out, the job fails for good with no further retries, and the error message still identifies disk pressure. The admission check itself is unchanged.

Reporting the final refusal (packages/core/src/services/issueDiskPressureRefusal.ts):

  • The issue gets one comment saying disk pressure stopped the run and that nothing changed. To retry, it says to remove and re-add the trigger label, or to retry the issue from its plan.
  • A plan issue stuck in processing with no task goes back to pending. If it is part of a running epic execution, it shows as blocked (dispatch_failed) with the disk-pressure reason, so get_plan and the Studio show why it stopped.

No silent dedupe. Both enqueue paths (core issue detection and the API's enqueueIssueImplementationJob) now check for an existing job with the same ID first. A failed or completed one is removed and replaced. A live one (for example, a job waiting for disk space) keeps the request, and that is logged rather than silently dropped.

2. implement_plan with a running epic queue

  • Clear refusal. A sequential or graph implement_plan while the plan's epic execution is still running now gets a 409 EPIC_EXECUTION_ACTIVE error ("This plan's epic execution is still running issues #…; retry when it finishes."). It is refused before anything is claimed, labelled or dispatched. Before, the queue creation threw a plain error, which came back as OUTCOME_UNKNOWN/500. I chose to refuse rather than append to the running queue, since its order and dependency edges are fixed when it starts.
  • Logging. Any MCP tool failure that the caller only sees as an internal error (including OUTCOME_UNKNOWN caused by one) is now logged as "MCP tool failed internally", with the tool, operation ID, repository, message and stack (packages/api/mcp/internalFailureLog.ts).

Behaviour to be aware of

  • Submission intake jobs. These are also issue jobs, so they wait for disk space too now. The existing intake test sets WORKTREE_DISK_PRESSURE_MAX_WAIT_MS=0, which keeps the old behaviour of failing within seconds.
  • Automatic re-dispatch. A blocked epic issue can be re-dispatched by the queue's recovery sweep after its normal 15-minute retry interval. That re-dispatch re-adds the trigger label, which only starts a new job if polling picks the issue up. That's why the comment tells people to remove and re-add the label.
  • Repeat comments. The issue keeps its trigger label, so where polling is on it will be picked up again. During a long disk shortage it can get a refusal comment roughly every hour.

Tests

  • New: issueDiskPressureDeferral.test.ts (schedule, deferral, final failure), issueDiskPressureQueue.test.ts (real BullMQ: a refused job is delayed rather than failed; an exhausted wait fails on that refusal; re-enqueuing after a retained failed job runs it), issueDiskPressureRefusal.test.ts (comment, plan issue state, no immediate re-dispatch), and mcpInternalFailureLog.test.ts.
  • Added to mcpEpicDispatch.test.ts: the 409 refusal in sequential and graph modes, and acceptance once the queue has finished.
  • Checking they catch the bug: the queue test shows a plain add being swallowed by the retained failed job. Removing the re-dispatch guard makes the refusal test fail.
  • Adjusted: test/planIssueImplementationTrigger.test.ts lists core's exports by hand in its mock, so I added the new enqueue helper to it.

I updated the docs to match: the maintenance and configuration-reference pages, the API reference, docs/mcp.md and .env.example. There are no visual previews, since nothing user-facing changed on screen.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (12 files)
    • .env.example (+2/−0)
    • packages/api/mcp/internalFailureLog.ts (added, +23/−0)
    • packages/api/mcp/toolExecution.ts (+7/−1)
    • packages/api/mcp/tools.ts (+16/−0)
    • packages/api/routes/planIssueHelpers.ts (+5/−3)
    • packages/core/src/daemon/issueDetection.ts (+11/−4)
    • packages/core/src/index.ts (+7/−0)
    • packages/core/src/queue/issueDiskPressureDeferral.ts (added, +157/−0)
    • packages/core/src/queue/issueJobEnqueue.ts (added, +51/−0)
    • packages/core/src/queue/taskQueue.ts (+27/−4)
    • packages/core/src/services/issueDiskPressureRefusal.ts (added, +105/−0)
    • packages/core/src/services/taskPlanning/epicQueueBlockedHead.ts (+27/−1)
  • Low risk (11 files)
    • docs/docs/operations/api-reference.md (+1/−1)
    • docs/docs/operations/configuration-reference.md (+1/−0)
    • docs/docs/operations/maintenance.md (+1/−1)
    • docs/mcp.md (+7/−0)
    • packages/api/test/mcpEpicDispatch.test.ts (+33/−0)
    • packages/api/test/mcpInternalFailureLog.test.ts (added, +96/−0)
    • packages/core/test/issueDiskPressureDeferral.test.ts (added, +122/−0)
    • packages/core/test/issueDiskPressureQueue.test.ts (added, +163/−0)
    • packages/core/test/issueDiskPressureRefusal.test.ts (added, +117/−0)
    • packages/core/test/taskSubmissionIntakeQueue.test.ts (+2/−0)
    • test/planIssueImplementationTrigger.test.ts (+4/−0)

Diff size: 23 files changed, +985/−15 lines

View task for the run's logs and conversation.


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


💡 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!

I've fixed both bugs from issue #3860. All the targeted suites pass, including the BullMQ ones against a real Redis 7.2.5. Typecheck and lint are clean for core and the API, except for one existing lint warning in `AntigravityAgent.ts`, which I didn't touch. I didn't run the full test suite.

1. Issue jobs refused for disk pressure

Retry with backoff. In core's `createWorker`, an issue job that admission refuses with `WorktreeDiskPressureError` is now delayed on the same job instead of failing (`packages/core/src/queue/issueDiskPressureDeferral.ts`). It waits 2, 5, 10 and then every 20 minutes, and these waits don't use up its 3 attempts. Each wait is logged as "Issue job refused for disk pressure: waiting for free disk space". The total wait is capped by a new setting, `WORKTREE_DISK_PRESSURE_MAX_WAIT_MS` (default 1 hour). When it runs out, the job fails for good with no further retries, and the error message still identifies disk pressure. The admission check itself is unchanged.

Reporting the final refusal (`packages/core/src/services/issueDiskPressureRefusal.ts`):
- The issue gets one comment saying disk pressure stopped the run and that nothing changed. To retry, it says to remove and re-add the trigger label, or to retry the issue from its plan.
- A plan issue stuck in `processing` with no task goes back to `pending`. If it is part of a running epic execution, it shows as blocked (`dispatch_failed`) with the disk-pressure reason, so `get_plan` and the Studio show why it stopped.

No silent dedupe. Both enqueue paths (core issue detection and the API's `enqueueIssueImplementationJob`) now check for an existing job with the same ID first. A failed or completed one is removed and replaced. A live one (for example, a job waiting for disk space) keeps the request, and that is logged rather than silently dropped.

2. `implement_plan` with a running epic queue

- Clear refusal. A sequential or graph `implement_plan` while the plan's epic execution is still running now gets a 409 `EPIC_EXECUTION_ACTIVE` error ("This plan's epic execution is still running issues #…; retry when it finishes."). It is refused before anything is claimed, labelled or dispatched. Before, the queue creation threw a plain error, which came back as `OUTCOME_UNKNOWN`/500. I chose to refuse rather than append to the running queue, since its order and dependency edges are fixed when it starts.
- Logging. Any MCP tool failure that the caller only sees as an internal error (including `OUTCOME_UNKNOWN` caused by one) is now logged as "MCP tool failed internally", with the tool, operation ID, repository, message and stack (`packages/api/mcp/internalFailureLog.ts`).

Behaviour to be aware of
- Submission intake jobs. These are also issue jobs, so they wait for disk space too now. The existing intake test sets `WORKTREE_DISK_PRESSURE_MAX_WAIT_MS=0`, which keeps the old behaviour of failing within seconds.
- Automatic re-dispatch. A blocked epic issue can be re-dispatched by the queue's recovery sweep after its normal 15-minute retry interval. That re-dispatch re-adds the trigger label, which only starts a new job if polling picks the issue up. That's why the comment tells people to remove and re-add the label.
- Repeat comments. The issue keeps its trigger label, so where polling is on it will be picked up again. During a long disk shortage it can get a refusal comment roughly every hour.

Tests
- New: `issueDiskPressureDeferral.test.ts` (schedule, deferral, final failure), `issueDiskPressureQueue.test.ts` (real BullMQ: a refused job is delayed rather than failed; an exhausted wait fails on that refusal; re-enqueuing after a retained failed job runs it), `issueDiskPressureRefusal.test.ts` (comment, plan issue state, no immediate re-dispatch), and `mcpInternalFailureLog.test.ts`.
- Added to `mcpEpicDispatch.test.ts`: the 409 refusal in sequential and graph modes, and acceptance once the queue has finished.
- Checking they catch the bug: the queue test shows a plain `add` being swallowed by the retained failed job. Removing the re-dispatch guard makes the refusal test fail.
- Adjusted: `test/planIssueImplementationTrigger.test.ts` lists core's exports by hand in its mock, so I added the new enqueue helper to it.

I updated the docs to match: the maintenance and configuration-reference pages, the API reference, `docs/mcp.md` and `.env.example`. There are no visual previews, since nothing user-facing changed on screen.

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

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

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

propr-dev Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

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

First action: /review

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

@propr-dev

propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@integry

integry commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Please also add this requirement. It was appended to #3860 after this run started:

The refusal at 19:00–19:01 UTC can't be diagnosed after the fact. The server has 40–55 GB free in normal operation, and with WORKER_CONCURRENCY=5 the admission threshold is about 2 GiB reserve + ≤5 GiB in claims. So either the disk really fell below ~7 GiB for those two minutes, or readers/ claims leaked. Every claim belongs to the long-lived worker (pid 19), so "owner gone" reclamation can never release a leaked one. Today's message, "Worktree disk pressure: admission reserve unavailable; data retained", can't tell these apart.

Required:

  • WorktreeDiskPressureError carries, and every log line or user-facing report of it shows:
    • the measured filesystem path;
    • freeBytes (bavail * bsize);
    • reserveBytes;
    • the summed reservedBytes of other claims;
    • the claim count;
    • the requesting job's taskBytes.
      Use human-readable units (e.g. "free 6.2 GiB < required 7.0 GiB = reserve 2.0 GiB + 5 claims × 1.0 GiB").
  • The same numbers go into the deferral log, the "waiting for free disk space" Ultrafix log, and the issue or PR comment posted when the wait runs out.
  • Log one warning per refusal that lists the claim files counted, with owner host/pid and age, so leaked claims are visible.
  • Test: the error message and report include these values.

@propr-dev

propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 9548462

Summary of Changes

Disk-pressure refusals now say what was measured, so a really full disk can be told apart from leaked readers/ claims. The targeted suites pass, and typecheck and zero-warning lint are clean for the files I changed. I didn't run the full suite.

The error. WorktreeDiskPressureError now carries a measurement with the filesystem path, freeBytes (bavail * bsize), reserveBytes, reservedBytes and claimCount of the other claims, and the job's taskBytes. The message keeps the old prefix and adds the numbers:

Worktree disk pressure: admission reserve unavailable; data retained (filesystem /tmp/git-processor: free 6.2 GiB < required 7.0 GiB = reserve 2.0 GiB + 4 other claims × 1.0 GiB + this job 1.0 GiB)

The job's own claim is shown as its own term. It is already on disk when the check runs, so it was always part of the total. If the other claims aren't all the same size, it says "N other claims totalling X" instead of "× X". Only the message survives a BullMQ round-trip, so worktreeDiskPressureDetails() reads the numbers from either the original error or the message. The new code is in packages/core/src/storage/diskPressure.ts, and lifecycle.ts re-exports it.

Where the numbers now appear:

  • Logs: the worker's "Job failed" log, and both issue-deferral logs ("waiting for free disk space" and "the wait for free disk space ran out"). The final error message has them too, and the latest refusal's numbers are kept on the job as diskPressureDetails.
  • Issue comment when the wait runs out ("Measured at the last refusal:"), plus its log line.
  • PR comment for a refused PR comment job, plus its log line.
  • Ultrafix: the "Ultrafix step refused for disk pressure: waiting for free disk space" log, the re-arm "waiting for free disk space on the worker" log, the waiting notice, and the stop notice posted when the wait runs out. They are saved in the loop's wait state so the stop notice can repeat them.

Claim listing. Each refusal logs one [storage] Worktree admission refused (...) warning. It lists every claim file it counted, with its size, owner host and pid, and age (taken from the file's last-modified time). The job's own claim is marked "(this job)". Claims that reserve nothing aren't counted or listed. An age like 3h 05m on a pid 19 claim would point to a leak.

Tests:

  • New, packages/core/test/worktreeDiskPressureDetails.test.ts: a real admission refusal on a temp filesystem, which checks every field, the separated own claim, the message, the single warning and its owner, pid and age line. It also covers recovering the numbers from the message alone, and the deferral and final-failure logs and messages.
  • Added to existing tests: issueDiskPressureRefusal.test.ts for the issue comment, test/prCommentUnstartedFailure.test.ts for the PR comment and its log, and test/ultrafixCiFailureRecovery.test.ts for the Ultrafix log and both notices. The last two mock @propr/core with a fixed list of exports, so I added worktreeDiskPressureDetails to those mocks.

packages/core/test/taskSubmissionIntake.test.ts reports a failure at the file level, though all 7 of its tests pass. It exits 1 when GitHub auth isn't configured, as it does here. With PROPR_DEMO_MODE=true it never exited, and my 5-minute timeout stopped it. I didn't check it against the code before this change.

I also added a paragraph to docs/docs/operations/maintenance.md describing the numbers and how to spot leaked claims from the warning. There are no previews: nothing changes in the app's interface, only log lines and GitHub comment text.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (11 files)
    • packages/core/src/index.ts (+4/−1)
    • packages/core/src/queue/issueDiskPressureDeferral.ts (+24/−13)
    • packages/core/src/queue/taskQueue.ts (+4/−3)
    • packages/core/src/services/issueDiskPressureRefusal.ts (+17/−5)
    • packages/core/src/storage/diskPressure.ts (added, +133/−0)
    • packages/core/src/storage/lifecycle.ts (+25/−21)
    • src/jobs/prCommentUnstartedFailure.ts (+7/−3)
    • src/jobs/ultrafixDiskPressureWait.ts (+13/−2)
    • src/jobs/ultrafixExhaustedStep.ts (+9/−5)
    • src/jobs/ultrafixFailedStep.ts (+2/−1)
    • src/jobs/ultrafixStrandedLoopRearm.ts (+3/−1)
  • Low risk (5 files)
    • docs/docs/operations/maintenance.md (+1/−1)
    • packages/core/test/issueDiskPressureRefusal.test.ts (+11/−1)
    • packages/core/test/worktreeDiskPressureDetails.test.ts (added, +121/−0)
    • test/prCommentUnstartedFailure.test.ts (+19/−2)
    • test/ultrafixCiFailureRecovery.test.ts (+13/−2)

Diff size: 16 files changed, +406/−61 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 20m 56s
  • Tokens: 5,176,161 (5,141,763 in / 34,398 out)
  • Cost: $2.31
  • 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: 7229594049✓

Disk-pressure refusals now say what was measured, so a really full disk can be told apart from leaked `readers/` claims. The targeted suites pass, and typecheck and zero-warning lint are clean for the files I changed. I didn't run the full suite.

**The error.** `WorktreeDiskPressureError` now carries a `measurement` with the filesystem path, `freeBytes` (`bavail * bsize`), `reserveBytes`, `reservedBytes` and `claimCount` of the other claims, and the job's `taskBytes`. The message keeps the old prefix and adds the numbers:

```
Worktree disk pressure: admission reserve unavailable; data retained (filesystem /tmp/git-processor: free 6.2 GiB < required 7.0 GiB = reserve 2.0 GiB + 4 other claims × 1.0 GiB + this job 1.0 GiB)
```

The job's own claim is shown as its own term. It is already on disk when the check runs, so it was always part of the total. If the other claims aren't all the same size, it says "N other claims totalling X" instead of "× X". Only the message survives a BullMQ round-trip, so `worktreeDiskPressureDetails()` reads the numbers from either the original error or the message. The new code is in `packages/core/src/storage/diskPressure.ts`, and `lifecycle.ts` re-exports it.

**Where the numbers now appear:**
- **Logs:** the worker's "Job failed" log, and both issue-deferral logs ("waiting for free disk space" and "the wait for free disk space ran out"). The final error message has them too, and the latest refusal's numbers are kept on the job as `diskPressureDetails`.
- **Issue comment** when the wait runs out ("Measured at the last refusal:"), plus its log line.
- **PR comment** for a refused PR comment job, plus its log line.
- **Ultrafix:** the "Ultrafix step refused for disk pressure: waiting for free disk space" log, the re-arm "waiting for free disk space on the worker" log, the waiting notice, and the stop notice posted when the wait runs out. They are saved in the loop's wait state so the stop notice can repeat them.

**Claim listing.** Each refusal logs one `[storage] Worktree admission refused (...)` warning. It lists every claim file it counted, with its size, owner host and pid, and age (taken from the file's last-modified time). The job's own claim is marked "(this job)". Claims that reserve nothing aren't counted or listed. An age like `3h 05m` on a pid 19 claim would point to a leak.

**Tests:**
- **New, `packages/core/test/worktreeDiskPressureDetails.test.ts`:** a real admission refusal on a temp filesystem, which checks every field, the separated own claim, the message, the single warning and its owner, pid and age line. It also covers recovering the numbers from the message alone, and the deferral and final-failure logs and messages.
- **Added to existing tests:** `issueDiskPressureRefusal.test.ts` for the issue comment, `test/prCommentUnstartedFailure.test.ts` for the PR comment and its log, and `test/ultrafixCiFailureRecovery.test.ts` for the Ultrafix log and both notices. The last two mock `@propr/core` with a fixed list of exports, so I added `worktreeDiskPressureDetails` to those mocks.

`packages/core/test/taskSubmissionIntake.test.ts` reports a failure at the file level, though all 7 of its tests pass. It exits 1 when GitHub auth isn't configured, as it does here. With `PROPR_DEMO_MODE=true` it never exited, and my 5-minute timeout stopped it. I didn't check it against the code before this change.

I also added a paragraph to `docs/docs/operations/maintenance.md` describing the numbers and how to spot leaked claims from the warning. There are no previews: nothing changes in the app's interface, only log lines and GitHub comment text.

PR: #3862
Comment by: @integry (ID: 7229594049)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: CodeQL

Please investigate and fix this CI failure.

Failure evidence

packages/core/src/storage/diskPressure.ts:114 — Polynomial regular expression used on uncontrolled data
This regular expression that depends on library input may run slow on strings starting with '(filesystem ' and with many repetitions of '(filesystem '.
This regular expression that depends on library input may run slow on strings starting with '(filesystem a this job ' and with many repetitions of '( this job '.
This regular expression that depends on library input may run slow on strings starting with '(filesystem ' and with many repetitions of '(filesystem '.
This regular expression that depends on library input may run slow on strings starting with '(filesystem a this job ' and with many repetitions of '( this job '.

@propr-dev

propr-dev Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit e634f43

Processed 2 comments:

  • Comment 1 by @github-advanced-security[bot] (ID: 4724322111✓)
  • Comment 2 by @propr-dev[bot] (ID: 7229985603✓)

Summary of Changes

I fixed the CodeQL "polynomial regular expression" alert in packages/core/src/storage/diskPressure.ts.

What was wrong: worktreeDiskPressureDetails read the measurement back out of a refusal message with the regex /\((filesystem .+ this job [^)]+)\)$/. After a queue round-trip that message is uncontrolled input, and on strings that repeat (filesystem or ( this job the regex can take polynomial time.

Fix: a new helper, measurementFromMessage, replaces the regex with plain string searches that run in linear time. It returns the same text the regex captured:

  • the message must end with ).
  • the details start at the first (filesystem .
  • the last this job must be followed by a non-empty size with no ) in it.

A filesystem path containing parentheses still parses correctly.

Test: I added one to packages/core/test/worktreeDiskPressureDetails.test.ts. It feeds in the two attack strings from the CodeQL report, each 100,000 repetitions long, and checks both return null in under a second. It also checks that a path like /mnt/data (ssd) still comes back intact. Locally, the two attack strings at 200,000 repetitions took 4 ms in total.

Checks run:

  • worktreeDiskPressureDetails.test.ts (4 pass) and issueDiskPressureRefusal.test.ts both pass, run with --experimental-test-module-mocks.
  • Core tsc --noEmit is clean.
  • eslint is clean on diskPressure.ts. The lint config ignores the test file, so it wasn't linted.

The CodeQL check itself will only clear when CI re-runs on the next push.

There's no visual change, so I made no preview.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/storage/diskPressure.ts (+18/−2)
  • Low risk (1 file)
    • packages/core/test/worktreeDiskPressureDetails.test.ts (+11/−0)

Diff size: 2 files changed, +29/−2 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @github-advanced-security[bot], @propr-dev[bot]
  • Time: 5m 42s
  • Tokens: 473,763 (470,263 in / 3,500 out)
  • Cost: $0.37

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 IDs: 4724322111✓, 7229985603✓

I fixed the CodeQL "polynomial regular expression" alert in `packages/core/src/storage/diskPressure.ts`.

**What was wrong:** `worktreeDiskPressureDetails` read the measurement back out of a refusal message with the regex `/\((filesystem .+ this job [^)]+)\)$/`. After a queue round-trip that message is uncontrolled input, and on strings that repeat `(filesystem ` or `( this job ` the regex can take polynomial time.

**Fix:** a new helper, `measurementFromMessage`, replaces the regex with plain string searches that run in linear time. It returns the same text the regex captured:
- the message must end with `)`.
- the details start at the first `(filesystem `.
- the last ` this job ` must be followed by a non-empty size with no `)` in it.

A filesystem path containing parentheses still parses correctly.

**Test:** I added one to `packages/core/test/worktreeDiskPressureDetails.test.ts`. It feeds in the two attack strings from the CodeQL report, each 100,000 repetitions long, and checks both return `null` in under a second. It also checks that a path like `/mnt/data (ssd)` still comes back intact. Locally, the two attack strings at 200,000 repetitions took 4 ms in total.

**Checks run:**
- `worktreeDiskPressureDetails.test.ts` (4 pass) and `issueDiskPressureRefusal.test.ts` both pass, run with `--experimental-test-module-mocks`.
- Core `tsc --noEmit` is clean.
- `eslint` is clean on `diskPressure.ts`. The lint config ignores the test file, so it wasn't linted.

The CodeQL check itself will only clear when CI re-runs on the next push.

There's no visual change, so I made no preview.

PR: #3862
Comment by: @github-advanced-security[bot] (ID: 4724322111)
Comment by: @propr-dev[bot] (ID: 7229985603)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 27, 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: e634f434c4a1 (e634f434c4a1031489bdf728fdac33eecd036dc0)
  • Run: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:45579
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 27, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit d9ad1d4

Summary of Changes

I fixed the Shard 1/4 failure: two tests were still checking for the old disk-pressure message, from before this PR added the measurement to it. The cancelled Shard 2/4 had a third stale test, which I fixed too. All three now pass against a real Redis 7.2.5.

Cause: the refusal message now ends with the measurement the follow-up comment asked for, e.g. (filesystem /tmp/…: free 85.0 GiB < required 8.0 PiB = reserve 8.0 PiB + 0 other claims + this job 1.0 GiB). Tests that required the message to end at data retained failed.

Changes:

  • packages/core/test/taskSubmissionIntakeQueue.test.ts (Shard 1/4): both tests now check for the full message, including the measurement, and that the measured path appears in it.
  • packages/core/test/issueDiskPressureQueue.test.ts: the "wait ran out" test had the same stale check. CI ran it in Shard 2/4, which failed it before being cancelled, so it would have broken the next run.
  • packages/core/src/queue/taskQueue.metrics.ts: this is the one code change. The second test also showed a real problem: the failure log kept only the first 100 characters of an error. When a stuck queued submission is later marked failed from that log, the message the user sees was cut off mid-path (…(filesystem /tmp/propr-intake-1. Once the cause is fixed…). That breaks the requirement that every user-facing report shows the measurement. I raised the limit to 400 characters. Putting the 100 back makes that test fail again.

Checks:

  • These suites pass: the five core disk-pressure and intake suites, test/queueMetrics.integration.test.ts, the API intake routes suite, the three root suites that mention the message, and every suite that touches the storage lifecycle.
  • Core typecheck is clean. The lint gates don't cover these files.

Shards 3 and 4 were cancelled, so I couldn't see their results; the sweep above was my substitute. One other suite fails here: test/queue.test.ts ("createWorker creates a worker with correct configuration"). It fails the same way with my metrics edit reverted, so the edit isn't the cause. Whether it's a local-environment issue, I don't know yet, because the run was cancelled before CI reached it.

There's nothing visual in this change, so I made no previews.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/queue/taskQueue.metrics.ts (+3/−1)
  • Low risk (2 files)
    • packages/core/test/issueDiskPressureQueue.test.ts (+3/−1)
    • packages/core/test/taskSubmissionIntakeQueue.test.ts (+6/−2)

Diff size: 3 files changed, +12/−4 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 12m 20s
  • Tokens: 3,276,187 (3,264,257 in / 11,930 out)
  • Cost: $1.30

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

I fixed the Shard 1/4 failure: two tests were still checking for the old disk-pressure message, from before this PR added the measurement to it. The cancelled Shard 2/4 had a third stale test, which I fixed too. All three now pass against a real Redis 7.2.5.

**Cause:** the refusal message now ends with the measurement the follow-up comment asked for, e.g. `(filesystem /tmp/…: free 85.0 GiB < required 8.0 PiB = reserve 8.0 PiB + 0 other claims + this job 1.0 GiB)`. Tests that required the message to end at `data retained` failed.

**Changes:**
- **`packages/core/test/taskSubmissionIntakeQueue.test.ts`** (Shard 1/4): both tests now check for the full message, including the measurement, and that the measured path appears in it.
- **`packages/core/test/issueDiskPressureQueue.test.ts`**: the "wait ran out" test had the same stale check. CI ran it in Shard 2/4, which failed it before being cancelled, so it would have broken the next run.
- **`packages/core/src/queue/taskQueue.metrics.ts`**: this is the one code change. The second test also showed a real problem: the failure log kept only the first 100 characters of an error. When a stuck queued submission is later marked failed from that log, the message the user sees was cut off mid-path (`…(filesystem /tmp/propr-intake-1. Once the cause is fixed…`). That breaks the requirement that every user-facing report shows the measurement. I raised the limit to 400 characters. Putting the 100 back makes that test fail again.

**Checks:**
- These suites pass: the five core disk-pressure and intake suites, `test/queueMetrics.integration.test.ts`, the API intake routes suite, the three root suites that mention the message, and every suite that touches the storage lifecycle.
- Core typecheck is clean. The lint gates don't cover these files.

Shards 3 and 4 were cancelled, so I couldn't see their results; the sweep above was my substitute. One other suite fails here: `test/queue.test.ts` ("createWorker creates a worker with correct configuration"). It fails the same way with my metrics edit reverted, so the edit isn't the cause. Whether it's a local-environment issue, I don't know yet, because the run was cancelled before CI reached it.

There's nothing visual in this change, so I made no previews.

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

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 4/4, Run Full Test Suite

Please investigate and fix these CI failures.

  • Check: Full Test Suite Shard 4/4
  • Result: failure
  • Commit: d9ad1d4b9f04 (d9ad1d4b9f041a013a062e8f270bce17bc001209)
  • Run: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

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


Depends on the failed job(s): Full Test Suite Shard 4/4. It may have failed only because they did; check them first.

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/

@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 780.8s on GitHub Actions 1000144586
  • Shard 2/4: passed in 998.0s on GitHub Actions 1000144585
  • Shard 3/4: passed in 1056.5s on GitHub Actions 1000144587
  • Shard 4/4: failed during Test shard in 1079.6s on GitHub Actions 1000144584
    • test/queue.test.ts: exit 1
View shard 4/4 output
...(truncated)

 an incident that blocks another donor until the fetch succeeds
  ---
  duration_ms: 638.43991
  type: 'test'
  ...
# Subtest: a successful fetch does not close an incident whose recorded revision is still damaged
ok 31 - a successful fetch does not close an incident whose recorded revision is still damaged
  ---
  duration_ms: 852.595181
  type: 'test'
  ...
# [2026-11-28 00:07:02.669 +0000] �[33mWARN�[39m: �[36mMissing Git objects; attempting one additive repair�[39m
#     common: "/tmp/propr-object-recovery-I0G6HQ/clone/.git"
#     revision: "8e533ef702aad40d1a30131daebfad949eb1ab50"
# Subtest: damage found on another ref does not replace an incident whose recorded revision is still damaged
ok 32 - damage found on another ref does not replace an incident whose recorded revision is still damaged
  ---
  duration_ms: 590.028851
  type: 'test'
  ...
1..32
# tests 32
# suites 0
# pass 32
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 25710.354744
[282/283] passed test/worktreeObjectRecovery.test.ts in 25.8s

[283/283] propr-ui#2/4 (workspace test script)

> [email protected] test
> vitest run --shard=2/4


�[1m�[30m�[46m RUN �[49m�[39m�[22m �[36mv5.0.5 �[39m�[90m/home/runner/work/propr/propr/propr-ui�[39m

�[90mstderr�[2m | src/pages/SettingsPage/MaintenanceSection.test.tsx�[2m > �[22m�[2mMaintenanceSection�[2m > �[22m�[2mwhen a later attempt replaces the one a release was decided for�[2m > �[22m�[2mdrops a ticked force choice, so Release on the later attempt is not forced
�[22m�[39mAn update to HeldFollowups 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 HeldFollowups 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 HeldFollowups 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 HeldFollowups 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/MaintenanceSection.test.tsx�[2m > �[22m�[2mMaintenanceSection�[2m > �[22m�[2mwhen a later attempt replaces the one a release was decided for�[2m > �[22m�[2mwithdraws an open Release confirmation once its attempt is replaced by a later attempt
�[22m�[39mAn update to HeldFollowups 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 HeldFollowups 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 HeldFollowups 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 HeldFollowups 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/config/runtimeConfig.test.ts�[2m > �[22m�[2mgetApiBaseUrl�[2m > �[22m�[2mblocks API client construction when the hosted UI has no selected stack
�[22m�[39m[propr] HOSTED_STACK_REQUIRED

�[90mstderr�[2m | src/pages/SettingsPage/MaintenanceSection.test.tsx�[2m > �[22m�[2mMaintenanceSection�[2m > �[22m�[2mwhen a later attempt replaces the one a release was decided for�[2m > �[22m�[2mwithdraws an open Release confirmation once its attempt is released
�[22m�[39mAn update to HeldFollowups 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 HeldFollowups 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 HeldFollowups 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 HeldFollowups 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/config/runtimeConfig.test.ts�[2m > �[22m�[2mgetApiBaseUrl�[2m > �[22m�[2mblocks API client construction for a non-Connect hosted runtime URL
�[22m�[39m[propr] INVALID_RUNTIME_CONFIGURATION

�[90mstderr�[2m | src/pages/SettingsPage/MaintenanceSection.test.tsx�[2m > �[22m�[2mMaintenanceSection�[2m > �[22m�[2mwhen a later attempt replaces the one a release was decided for�[2m > �[22m�[2mwithdraws an open Release confirmation once its attempt is gone from the list
�[22m�[39mAn update to HeldFollowups 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 HeldFollowups 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 HeldFollowups 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 HeldFollowups 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/MaintenanceSection.test.tsx�[2m > �[22m�[2mMaintenanceSection�[2m > �[22m�[2mwhen a later attempt replaces the one a release was decided for�[2m > �[22m�[2mkeeps an open Release confirmation while its attempt is still the open one
�[22m�[39mAn update to HeldFollowups 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 HeldFollowups 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 HeldFollowups 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 HeldFollowups 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/config/runtimeConfig.test.ts�[2m > �[22m�[2mhosted tunnel query API base�[2m > �[22m�[2mdoes not let an encoded tunnel name fall through to valid runtime configuration
�[22m�[39m[propr] INVALID_RUNTIME_CONFIGURATION

�[90mstderr�[2m | src/config/runtimeConfig.test.ts�[2m > �[22m�[2mhosted tunnel query API base�[2m > �[22m�[2mdoes not let an encoded tunnel name fall through to a valid stored endpoint
�[22m�[39m[propr] INVALID_RUNTIME_CONFIGURATION

 �[32m✓�[39m src/pages/SettingsPage/MaintenanceSection.test.tsx �[2m(�[22m�[2m30 tests�[22m�[2m)�[22m�[33m 1422�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/NewTaskPage.test.tsx�[2m > �[22m�[2mNew Task issue launcher�[2m > �[22m�[2mrejects stale remembered routing and allows issue-only agents
�[22m�[39mAn update to NewTaskLauncher 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/config/runtimeConfig.test.ts �[2m(�[22m�[2m67 tests�[22m�[2m)�[22m�[33m 5165�[2mms�[22m�[39m
   �[32m✓�[39m getApiBaseUrl �[2m(16)�[22m
     �[33m�[2m✓�[22m�[39m uses the runtime-configured apiBaseUrl when present�[33m 609�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/NewTaskPage.test.tsx �[2m(�[22m�[2m21 tests�[22m�[2m)�[22m�[33m 2454�[2mms�[22m�[39m
   �[32m✓�[39m New Task issue launcher �[2m(17)�[22m
     �[33m�[2m✓�[22m�[39m reopens unresolved work after starting another request and reloading, preserving its key and files�[33m 324�[2mms�[22m�[39m
�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mrefetches on task completion with initial HTTP pending=false
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mrefetches on task completion with initial HTTP pending=true
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mtask page replays a large increment once during HTTP/completion
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mtask page orders growing messages: HTTP past socket
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mtask page orders growing messages: socket past HTTP
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mbuffered updates of an execution a newer read replaced�[2m > �[22m�[2mtask page discards a buffered old increment and its late deliveries after a new-execution read
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mbuffered updates of an execution a newer read replaced�[2m > �[22m�[2mtask page discards a buffered old full state and its late deliveries after a new-execution read
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

�[90mstdout�[2m | src/components/TaskDetails/useTaskData.followup.test.ts�[2m > �[22m�[2mfull history follow-up regressions�[2m > �[22m�[2mbuffered updates of an execution a newer read replaced�[2m > �[22m�[2mtask page keeps the newer HTTP execution over an intermediate execution received during the read
�[22m�[39m[useTaskData] Received task update via WebSocket: { taskId: �[32m'task'�[39m, state: �[32m'COMPLETED'�[39m }

 �[32m✓�[39m src/components/TaskDetails/useTaskData.followup.test.ts �[2m(�[22m�[2m45 tests�[22m�[2m)�[22m�[33m 762�[2mms�[22m�[39m
   �[32m✓�[39m full history follow-up regressions �[2m(45)�[22m
     �[33m�[2m✓�[22m�[39m merges large full histories, including unshared prefixes and suffixes, without positional arguments�[33m 550�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/TaskStatusTable.test.tsx �[2m(�[22m�[2m53 tests�[22m�[2m)�[22m�[33m 586�[2mms�[22m�[39m
�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mcreates one force-new scoped Manager on null-to-A activation
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for scope rotation
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for scope rotation
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for same-origin A-to-B
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches A before creating a distinct Manager for same-origin A-to-B
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreports a replacement Manager as disconnected until its own connect event
�[22m�[39m[SocketContext] Connected to WebSocket server
[SocketContext] Cleaning up socket connection
[SocketContext] Connected to WebSocket server

�[90mstderr�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreports a replacement Manager as disconnected until its own connect event
�[22m�[39m[SocketContext] Connection error: not connected

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreports a replacement Manager as disconnected until its own connect event
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mrotates the Manager when the effective API origin changes
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mrotates the Manager when the effective API origin changes
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdisconnects on deactivate and creates no replacement
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mkeeps the hosted browser cookie socket without a desktop marker
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mclassifies authentication errors against the immutable activation scope
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreconnects the current Manager when authorization changes without invalidating its token
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mnever reconnects a stale same-origin Manager after deferred authorization work resolves
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mnever reconnects a stale same-origin Manager after deferred authorization work resolves
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdrops application events delivered by an old desktop scope
�[22m�[39m[SocketContext] Cleaning up socket connection
[SocketContext] Received task update: { eventType: �[32m'task:update'�[39m }

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdrops application events delivered by an old desktop scope
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdelivers live events without logging their potentially large payload
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreference-counts the activity room and rejoins it after a reconnect
�[22m�[39m[SocketContext] Connected to WebSocket server
[SocketContext] Disconnected from WebSocket server: transport close
[SocketContext] Connected to WebSocket server
[SocketContext] Unsubscribed from activity

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mreference-counts the activity room and rejoins it after a reconnect
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mshares task lifecycle ownership and scopes cleanup across reconnect and profile changes
�[22m�[39m[SocketContext] Connected to WebSocket server
[SocketContext] Disconnected from WebSocket server: transport close
[SocketContext] Connected to WebSocket server
[SocketContext] Cleaning up socket connection
[SocketContext] Connected to WebSocket server
[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mnegotiates direct snapshots without recreating the connection
�[22m�[39m[SocketContext] Connected to WebSocket server
[SocketContext] Disconnected from WebSocket server: transport close

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mnegotiates direct snapshots without recreating the connection
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mrefreshes browser authorization before reconnecting after a permission change
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdelivers activity, goal, notification and usage events without logging their payloads
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdrops activity events delivered by an old desktop scope
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mdrops activity events delivered by an old desktop scope
�[22m�[39m[SocketContext] Cleaning up socket connection

�[90mstdout�[2m | src/contexts/SocketProvider.test.tsx�[2m > �[22m�[2mSocketProvider�[2m > �[22m�[2mfully detaches listeners and disconnects on unmount
�[22m�[39m[SocketContext] Cleaning up socket connection

 �[32m✓�[39m src/contexts/SocketProvider.test.tsx �[2m(�[22m�[2m20 tests�[22m�[2m)�[22m�[32m 153�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/SettingsNavigation.test.tsx �[2m(�[22m�[2m26 tests�[22m�[2m)�[22m�[33m 1731�[2mms�[22m�[39m
   �[32m✓�[39m SettingsNavigation �[2m(26)�[22m
     �[33m�[2m✓�[22m�[39m lists the settings domains in a vertical rail beside a constrained reading pane�[33m 352�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useVoicePreference.test.tsx �[2m(�[22m�[2m20 tests�[22m�[2m)�[22m�[33m 376�[2mms�[22m�[39m
 �[32m✓�[39m src/api/demoMode.test.ts �[2m(�[22m�[2m25 tests�[22m�[2m)�[22m�[32m 36�[2mms�[22m�[39m
 �[32m✓�[39m src/serviceWorker.test.ts �[2m(�[22m�[2m24 tests�[22m�[2m)�[22m�[32m 37�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RepositorySelector.test.tsx �[2m(�[22m�[2m26 tests�[22m�[2m)�[22m�[33m 984�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useBrowserPush.test.tsx �[2m(�[22m�[2m20 tests�[22m�[2m)�[22m�[33m 348�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/extensions/ExtensionPackageServer.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[33m 1820�[2mms�[22m�[39m
�[90mstderr�[2m | src/desktop/DesktopExperience.transport.test.tsx�[2m > �[22m�[2mDesktopExperience transport and fencing�[2m > �[22m�[2mignores a delayed access-invalid event from A after B has connected
�[22m�[39mAn update to DesktopExperience 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/desktop/DesktopExperience.transport.test.tsx �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[33m 529�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/TaskDetails/index.followupHandoff.test.tsx�[2m > �[22m�[2ma handoff never crosses an account or instance switch�[2m > �[22m�[2mkeeps a desktop instance’s handoff on that instance
�[22m�[39mAn update to TaskDetails 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/index.followupHandoff.test.tsx �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[33m 965�[2mms�[22m�[39m
   �[32m✓�[39m an accepted issue follow-up hands off to the run it started �[2m(6)�[22m
     �[33m�[2m✓�[22m�[39m waits through delayed admission, then exposes the distinct fresh run as it runs and completes�[33m 328�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up stored in session storage survives the Desktop reconnect of the same identity�[2m > �[22m�[2mkeeps the starting banner and continues the read-only lookup without posting again
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up stored in session storage survives the Desktop reconnect of the same identity�[2m > �[22m�[2mkeeps the View new run link of a finished run without looking it up again
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up stored in session storage survives the Desktop reconnect of the same identity�[2m > �[22m�[2mkeeps it when the same profile is reconnected from the instance manager
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up stored in session storage survives the Desktop reconnect of the same identity�[2m > �[22m�[2mkeeps it when the same profile is reconnected from the instance manager
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up stored in session storage survives the Desktop reconnect of the same identity�[2m > �[22m�[2mkeeps it when the same profile is reconnected from the instance manager
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up held in page memory because storage ref… survives the Desktop reconnect of the same identity�[2m > �[22m�[2mkeeps the starting banner and continues the read-only lookup without posting again
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up held in page memory because storage ref… survives the Desktop reconnect of the same identity�[2m > �[22m�[2mkeeps the View new run link of a finished run without looking it up again
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up held in page memory because storage ref… survives the Desktop reconnect of the same identity�[2m > �[22m�[2mkeeps it when the same profile is reconnected from the instance manager
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up held in page memory because storage ref… survives the Desktop reconnect of the same identity�[2m > �[22m�[2mkeeps it when the same profile is reconnected from the instance manager
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up held in page memory because storage ref… survives the Desktop reconnect of the same identity�[2m > �[22m�[2mkeeps it when the same profile is reconnected from the instance manager
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2mthe Desktop reconnect fences responses from the connection it replaced�[2m > �[22m�[2mdoes not adopt an acceptance that lands after the reconnect
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2mthe Desktop reconnect fences responses from the connection it replaced�[2m > �[22m�[2mignores a lookup sent before the reconnect and follows the new one
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up stored in session storage does not outlive a replaced identity�[2m > �[22m�[2mis dropped when the reconnect finds the same profile with a replaced credential
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up stored in session storage does not outlive a replaced identity�[2m > �[22m�[2mis dropped on a switch to another profile and stays gone on switching back to the same identity
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up stored in session storage does not outlive a replaced identity�[2m > �[22m�[2mis dropped when the profile is moved to another endpoint
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up held in page memory because storage ref… does not outlive a replaced identity�[2m > �[22m�[2mis dropped when the reconnect finds the same profile with a replaced credential
�[22m�[39mAn update to TaskDetails 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/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up held in page memory because storage ref… does not outlive a replaced identity�[2m > �[22m�[2mis dropped on a switch to another profile and stays gone on switching back to the same identity
�[22m�[39mAn update to TaskDetails inside a test was not wrapped in act(...).

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

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

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

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Connected to WebSocket server

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Received task update: { id: �[32m'101'�[39m, username: �[32m'alice'�[39m, avatarUrl: �[1mnull�[22m }

�[90mstderr�[2m | src/components/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx�[2m > �[22m�[2man accepted follow-up held in page memory because storage ref… does not outlive a replaced identity�[2m > �[22m�[2mis dropped when the profile is moved to another endpoint
�[22m�[39mAn update to TaskDetails inside a test was not wrapped in act(...).

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

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

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

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Cleaning up socket connection

 �[32m✓�[39m src/components/TaskDetails/index.followupHandoffDesktopReconnect.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[33m 1768�[2mms�[22m�[39m
   �[32m✓�[39m an accepted follow-up stored in session storage survives the Desktop reconnect of the same identity �[2m(3)�[22m
     �[33m�[2m✓�[22m�[39m keeps the starting banner and continues the read-only lookup without posting again�[33m 305�[2mms�[22m�[39m
�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Connected to WebSocket server

�[90mstderr�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39mAn update to SocketProvider inside a test was not wrapped in act(...).

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

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

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

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Received task update: { id: �[32m'202'�[39m, username: �[32m'bob'�[39m, avatarUrl: �[1mnull�[22m }

�[90mstdout�[2m | src/desktop/account-switching.integration.test.tsx�[2m > �[22m�[2mpairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload
�[22m�[39m[SocketContext] Cleaning up socket connection

 �[32m✓�[39m src/desktop/account-switching.integration.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[33m 714�[2mms�[22m�[39m
   �[33m�[2m✓�[22m�[39m pairs two users through the production bridge, fences late A traffic, logs B out offline and preserves identity after reload�[33m 711�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useGenerationPolling.test.tsx �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[32m 40�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/inboxUtils.test.ts �[2m(�[22m�[2m26 tests�[22m�[2m)�[22m�[32m 20�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalHeader.desktop.test.tsx �[2m(�[22m�[2m18 tests�[22m�[2m)�[22m�[33m 1017�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.deep-link-presentation.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 766�[2mms�[22m�[39m
   �[33m�[2m✓�[22m�[39m preserves the warm Open account after tunnel presentation with cold delivery after profile loading�[33m 422�[2mms�[22m�[39m
 �[32m✓�[39m src/components/PreviewLightbox.test.tsx �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[33m 454�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/rowModel.test.ts �[2m(�[22m�[2m19 tests�[22m�[2m)�[22m�[32m 14�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.recovery.test.tsx �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[33m 560�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalHeader.nativeSearch.test.tsx �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[33m 490�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AIModelSelectionSection.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 405�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Layout.desktop.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 862�[2mms�[22m�[39m
�[90mstdout�[2m | src/hooks/useHeaderStats.push.test.tsx�[2m > �[22m�[2museHeaderStats pushed changes�[2m > �[22m�[2mdoes not re-read the queue for its subscription snapshot
�[22m�[39m[useHeaderStats] Received changed queue stats, scheduling stats refresh

 �[32m✓�[39m src/desktop/DesktopExperience.discovery.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 360�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useHeaderStats.push.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 1257�[2mms�[22m�[39m
   �[32m✓�[39m useHeaderStats pushed changes �[2m(6)�[22m
     �[33m�[2m✓�[22m�[39m reads system status when indexing or capacity changes, and nothing else�[33m 359�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m ignores a repeated pushed state for a task it already reconciled�[33m 408�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LlmLogsTable.test.tsx �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[32m 300�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useContextRefresh.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 40�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.authentication.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 462�[2mms�[22m�[39m
 �[32m✓�[39m src/api/instanceStorageApi.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanIssueQueueNotice.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 83�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Mcp/McpConnectedAppRow.test.tsx �[2m(�[22m�[2m13 tests�[22m�[2m)�[22m�[33m 327�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Agents/AgentEditor.reloadWhileAttaching.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 633�[2mms�[22m�[39m
   �[32m✓�[39m AgentEditor reload while input files change �[2m(5)�[22m
     �[33m�[2m✓�[22m�[39m disables Reload while an input file upload is in flight�[33m 390�[2mms�[22m�[39m
 �[32m✓�[39m src/api/voiceApi.test.ts �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[32m 142�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/reviewPromptOverview.test.ts �[2m(�[22m�[2m18 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/windowChromeStyles.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 8�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.oauthUrl.test.tsx �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[32m 10�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Agents/AgentEventTriggerSection.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 354�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalHeaderComponents.status.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 241�[2mms�[22m�[39m
 �[32m✓�[39m src/api/goals.test.ts �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 38�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/ExecuteAllBar.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[32m 184�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Dashboard/UsageTipsSection.test.tsx �[2m(�[22m�[2m10 tests�[22m�[2m)�[22m�[33m 1309�[2mms�[22m�[39m
   �[32m✓�[39m usage tips �[2m(10)�[22m
     �[33m�[2m✓�[22m�[39m restores a failed dismissal with a retry control using the original event�[33m 795�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/ExperimentalSettingsSection.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 343�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useHeaderStats.scope.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[33m 383�[2mms�[22m�[39m
   �[32m✓�[39m useHeaderStats request scope reconciliation �[2m(2)�[22m
     �[33m�[2m✓�[22m�[39m discards an in-flight live read across reconnect and completes the full recovery�[33m 322�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/TaskHeader.test.tsx �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[32m 231�[2mms�[22m�[39m
�[90mstderr�[2m | src/pages/AgentsPage.breakpoint.test.tsx�[2m > �[22m�[2mAgentsPage across the split breakpoint�[2m > �[22m�[2mkeeps an unsaved new agent when the viewport narrows and widens again
�[22m�[39mAn update to AgentList 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/AgentsPage.breakpoint.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[33m 621�[2mms�[22m�[39m
   �[32m✓�[39m AgentsPage across the split breakpoint �[2m(2)�[22m
     �[33m�[2m✓�[22m�[39m keeps an unsaved new agent when the viewport narrows and widens again�[33m 504�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.hostedOAuthLifecycle.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 275�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/extensions/ExtensionPendingEntries.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[33m 653�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/planQueueLabels.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 37�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Agents/agentFormValidation.test.ts �[2m(�[22m�[2m20 tests�[22m�[2m)�[22m�[32m 183�[2mms�[22m�[39m
 �[32m✓�[39m src/serviceWorkerRegistration.test.ts �[2m(�[22m�[2m11 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/repositoryAutoAssign.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Repositories/RepoImprovementsReferenceRepo.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[33m 428�[2mms�[22m�[39m
   �[32m✓�[39m Improve tab reference repository �[2m(2)�[22m
     �[33m�[2m✓�[22m�[39m lists other indexed repositories and sends the chosen id with the generate request�[33m 400�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/Agents/AgentEditor.fields.test.tsx�[2m > �[22m�[2mAgentEditor fields�[2m > �[22m�[2mpicks autonomy from a segmented control and explains only the chosen mode
�[22m�[39mAn update to AgentScopeSection 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 AgentEditor 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 AgentEditor 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/Agents/AgentEditor.fields.test.tsx�[2m > �[22m�[2mAgentEditor fields�[2m > �[22m�[2mlabels the previous reports checkbox without repeating the field name
�[22m�[39mAn update to AgentScopeSection 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 AgentEditor 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 AgentEditor 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/Agents/AgentEditor.fields.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 504�[2mms�[22m�[39m
 �[32m✓�[39m src/api/notificationApi.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/api/agentHealthApi.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 19�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/SettingsLayout.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 143�[2mms�[22m�[39m
 �[32m✓�[39m src/components/ui/loadingStates.guard.test.ts �[2m(�[22m�[2m40 tests�[22m�[2m)�[22m�[32m 8�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.desktopAuthentication.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 155�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/useLockTaskScroll.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 110�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanOverflowMenu.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 235�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/TaskPlanner/PlanIssuesManagerToolbar.test.tsx�[2m > �[22m�[2mExecutionOptionsToolbar mobile layout�[2m > �[22m�[2mkeeps the mode switcher and the config button on one non-wrapping row on phones
�[22m�[39mFailed to load the ultrafix defaults: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
�[90m    at processTicksAndRejections (node:internal/process/task_queues:103:5)�[39m
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:417:34�[90m)�[39m
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/api/proprApi.ts:120:20 {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/instance/catalog
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
  �[90m    at processTicksAndRejections (node:internal/process/task_queues:103:5)�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:417:34�[90m)�[39m
      at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/api/proprApi.ts:120:20 {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:417:54�[90m)�[39m
        at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/api/proprApi.ts:120:26 {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/instance/catalog'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/TaskPlanner/PlanIssuesManagerToolbar.test.tsx�[2m > �[22m�[2mExecutionOptionsToolbar mobile layout�[2m > �[22m�[2muses short mode labels and drops the Config label on phones while keeping full accessible names
�[22m�[39mFailed to load the ultrafix defaults: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
�[90m    at processTicksAndRejections (node:internal/process/task_queues:103:5)�[39m
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:417:34�[90m)�[39m
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/api/proprApi.ts:120:20 {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/instance/catalog
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
  �[90m    at processTicksAndRejections (node:internal/process/task_queues:103:5)�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:417:34�[90m)�[39m
      at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/api/proprApi.ts:120:20 {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:417:54�[90m)�[39m
        at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/api/proprApi.ts:120:26 {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/instance/catalog'�[39m
    }
  }
}

 �[32m✓�[39m src/components/TaskPlanner/PlanIssuesManagerToolbar.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 154�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/ManagedPreviewStorageSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 169�[2mms�[22m�[39m
 �[32m✓�[39m src/components/AIActivityMonitor.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 268�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/GlobalSearch.loading.test.tsx�[2m > �[22m�[2mGlobalSearch loading states�[2m > �[22m�[2mrenders a search failure as an error rather than an empty result
�[22m�[39mSearch failed: Error: Search unavailable
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/components/GlobalSearch.loading.test.tsx:49:44
    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/GlobalSearch.loading.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[33m 807�[2mms�[22m�[39m
   �[32m✓�[39m GlobalSearch loading states �[2m(2)�[22m
     �[33m�[2m✓�[22m�[39m waits for successful task and plan reads before showing no results�[33m 474�[2mms�[22m�[39m
     �[33m�[2m✓�[22m�[39m renders a search failure as an error rather than an empty result�[33m 330�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/electronAdapters.localSetup.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 9�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Dashboard/sectionState.visibility.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 22�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/ExecutionConfigPopover.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 180�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Repositories/RepoTodos/TodoIssueLink.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 186�[2mms�[22m�[39m
 �[32m✓�[39m src/config/runtimeMode.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/PlanStudioPage.notificationIntent.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 44�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/preloadWindowFrame.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/approvedPlanFooterStats.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/App.invalidConfiguration.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 1384�[2mms�[22m�[39m
   �[32m✓�[39m invalid eager API configuration �[2m(4)�[22m
     �[33m�[2m✓�[22m�[39m renders a bounded safe connection screen without leaking configured input�[33m 1064�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/TaskTimeline.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 191�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/MarkdownRenderer.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 206�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/TaskStatusTable.agentRuntime.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 186�[2mms�[22m�[39m
 �[32m✓�[39m src/components/AgentTankDetectionBanner.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 53�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskList/ReferenceChips.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 45�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/logSearch.test.ts �[2m(�[22m�[2m16 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/api/taskPathEncoding.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 9�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/TaskPrerequisites.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 42�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/headerStatsRequestCoordinator.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useDesktopLayout.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 15�[2mms�[22m�[39m
 �[32m✓�[39m src/api/previewStorageApi.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/AgentModelSelectorParts.responsive.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 33�[2mms�[22m�[39m
 �[32m✓�[39m src/components/ui/SystemAlert.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 132�[2mms�[22m�[39m
 �[32m✓�[39m src/components/creationActions.test.ts �[2m(�[22m�[2m24 tests�[22m�[2m)�[22m�[32m 18�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/SettingsSaveStatusBar.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 130�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/apiDataGuards.test.ts �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/utils/keepIfEqual.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 5�[2mms�[22m�[39m
 �[32m✓�[39m src/components/AppViewport.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 18�[2mms�[22m�[39m

�[2m Test Files �[22m �[1m�[32m95 passed�[39m�[22m�[90m (95)�[39m
�[2m      Tests �[22m �[1m�[32m1002 passed�[39m�[22m�[90m (1002)�[39m
�[2m   Start at �[22m 00:07:04
�[2m   Duration �[22m 67.77s�[2m (environment 38%, tests 31%, import 17%, setup 8%, transform 6%)�[22m

�[2mEnvironment �[22m �[33mjsdom was created 95 times�[39m�[2m · 48.69s 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.648899
  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: 47.346716
  type: 'test'
  ...
1..2
# tests 2
# suites 0
# pass 2
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 88.631153
[283/283] passed propr-ui#2/4 (workspace test script) in 68.3s

### Shard 4/4: 282/283 passed in 1079.6s

Assigned 283 of 1134 discovered units.

| Duration | Status | Unit |
| ---: | --- | --- |
| 151.6s | passed | `test/taskIntentWithdrawal.test.ts` |
| 68.3s | passed | `propr-ui#2/4` (workspace) |
| 64.4s | passed | `packages/api/test/mcpAccessLog.test.ts` |
| 64.0s | passed | `packages/api/test/mcpAgentRuns.test.ts` |
| 37.0s | passed | `packages/api/test/planRevisions.test.ts` |
| 33.4s | passed | `apps/desktop/src/profile-store.crash-recovery.test.ts` |
| 25.8s | passed | `test/worktreeObjectRecovery.test.ts` |
| 25.3s | passed | `packages/core/test/fleetDataPlane.test.ts` |
| 22.8s | passed | `packages/api/test/taskFollowupIssueQueueRecoveryHistory.test.ts` |
| 21.7s | passed | `test/agentRunActingMutationsStreak.test.ts` |
| 21.1s | passed | `test/dockerExecutorWatchdog.test.ts` |
| 20.8s | passed | `packages/core/test/instanceStorage.test.ts` |
| 19.9s | passed | `test/agentDefinitionStore.test.ts` |
| 16.7s | passed | `packages/core/test/managedDiagnosticsBatching.test.ts` |
| 14.5s | passed | `test/extensionLibraryMigrationReadiness.test.ts` |

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

- `test/taskIntentWithdrawal.test.ts` used 84% (151.6s)

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

1/283 test runs failed in shard 4/4 after 1079.6s:
- test/queue.test.ts: exit 1

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

View Workflow
View uploaded artifacts

@propr-dev

propr-dev Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds bounded disk-pressure deferral, terminal refusal reporting, and internal MCP failure logging. It needs a localized correction before merge: the new enqueue helper can still silently discard requests.

✅ Bounded deferral — The same issue job waits without consuming attempts, then raises an unrecoverable failure when its wait expires; unit and Redis integration tests cover these transitions.

✅ Useful diagnostics — Admission measurements survive message serialization and appear in refusal logs and user-facing reports.

✅ Explicit MCP refusal — Active epic executions produce a documented 409, with tests checking transaction rollback and absence of dispatch.

The supplied issue specification is explicitly truncated, so requirements beyond its visible text cannot be assessed. Current checks show 24 passed, two pending, and no failures. This review used static analysis only; no commands were run.

Merge blockers

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

F1: 🔴 Preserve requests through enqueue races and failures

  • Category: correctness

  • Required behavior: A new issue request must not disappear because its previous job finished or remained retained; an accepted enqueue outcome must correspond to runnable work.

  • Evidence: packages/core/src/queue/issueJobEnqueue.ts:enqueueIssueJobReplacingFinished

    1. A request reaches queue.getJob(jobId) while the previous job still exists.
    2. Before the awaited existing.getState() resolves, the worker completes that previous job and removes it under removeOnComplete: true.
    3. getState() returns unknown. The new helper treats every state except failed and completed as live, returns already_queued, and never calls add.
    4. packages/core/src/daemon/issueDetection.ts consequently returns ignored; packages/api/routes/planIssueHelpers.ts also accepts the helper result without enqueueing anything. The requested work has no job.

    There is a second loss path in the same helper:

    1. An existing job is correctly identified as failed or completed.
    2. Its awaited remove() rejects before deleting it, for example because that Redis operation encounters a transient connection failure.
    3. The catch suppresses the failure. If the subsequent add() succeeds, it deduplicates against the retained terminal job.
    4. The helper returns added even though no runnable job was created.

    No lock or atomic operation spans inspection, removal, and addition. Suppressing the removal failure also prevents the daemon’s enclosing withRetry from retrying that failure. static trace: the supplied queueSubmissionIntakeEvidence explicitly treats unknown as disappearance between lookup and state inspection; the added Redis integration test demonstrates that add() against a retained failed job leaves it failed. Neither new test exercises these failure paths.

  • Minimum fix: Treat unknown as absent and attempt addition. On terminal-job removal failure, re-read state and only accept a verified live job; retry removal or propagate the failure if the terminal job remains. Add focused regressions for disappearance during inspection and failed removal followed by deduplicated addition.

Suggestions

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

S1: 🟢 Exercise recovery after actual admission

The Redis integration suite verifies initial deferral and exhaustion, but does not demonstrate a deferred job subsequently gaining admission. A test that lifts the injected reserve, promotes the delayed job, and verifies one processor execution plus cleared wait fields would strengthen coverage. This is optional because the supplied implementation and unit tests already support that transition.

Score

The main refusal and diagnostic paths are well covered, but enqueue handling still permits the silent request loss this change seeks to eliminate. The remaining correction is localized; the two pending checks are not themselves blockers.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 15s
  • Tokens: 82,016 (80,681 in / 1,335 out)
  • Cost: $0.74

View Task


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

Copy and edit to choose records from this review:

/fix F1 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 24f70fc

Processed 2 comments:

  • Comment 1 by @propr-dev[bot] (ID: 7230678633✓)
  • Comment 2 by @github-actions[bot] (ID: 7230682971✓)

Summary of Changes

I fixed the Shard 4/4 failure, and test/queue.test.ts now passes locally.

Cause: this PR's disk-pressure wrapper read job.name without checking that job exists. The test "createWorker creates a worker with correct configuration" calls the worker's processor without passing a job. So reading job.name threw a TypeError inside repositoryStorageLifecycle.use(...). The catch in deferIssueJobOnDiskPressure then read job.name again and threw a second time. The worker code before this PR already allowed for a missing job (job?.stalledCounter); only the new lines didn't.

Fix: two lines, matching what the worker already does:

  • packages/core/src/queue/taskQueue.ts: job?.name === ISSUE_JOB_NAME before endIssueDiskPressureWait.
  • packages/core/src/queue/issueDiskPressureDeferral.ts: deferIssueJobOnDiskPressure now accepts DeferrableIssueJob | undefined and checks job?.name. A missing job just rethrows the original error, so how real issue jobs are deferred doesn't change.

Checks:

  • test/queue.test.ts passes, run through scripts/run-test-suite.mjs after rebuilding shared and core.
  • The PR's disk-pressure suites also pass: issueDiskPressureDeferral, issueDiskPressureQueue, issueDiskPressureRefusal and worktreeDiskPressureDetails.
  • Core tsc --noEmit and ESLint with --max-warnings 0 on the two changed files are clean.

I didn't rerun the full shard. This change has no visible effect, so there are no previews.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/queue/issueDiskPressureDeferral.ts (+2/−2)
    • packages/core/src/queue/taskQueue.ts (+1/−1)
  • Low risk: none

Diff size: 2 files changed, +3/−3 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot], @github-actions[bot]
  • Time: 5m 56s
  • Tokens: 917,906 (914,785 in / 3,121 out)
  • Cost: $0.61

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 IDs: 7230678633✓, 7230682971✓

@propr-dev

propr-dev Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

❌ ProPR could not start on /fix

The job failed 3 times before processing began:

API rate limit exceeded for installation ID 68212616. If you reach out to GitHub Support for help, please include the request ID E5B4:32C7D3:81C008:E40F84:6B0A1D58 and timestamp 2026-11-28 00:16:24 UTC. For more on scraping GitHub and how it may affect your rights, please review our Terms of Service (https://docs.github.com/en/site-policy/github-terms/github-terms-of-service) - https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api#rate-limiting

Post the command again once the cause is resolved.

I fixed the Shard 4/4 failure, and `test/queue.test.ts` now passes locally.

**Cause:** this PR's disk-pressure wrapper read `job.name` without checking that `job` exists. The test "createWorker creates a worker with correct configuration" calls the worker's processor without passing a job. So reading `job.name` threw a `TypeError` inside `repositoryStorageLifecycle.use(...)`. The `catch` in `deferIssueJobOnDiskPressure` then read `job.name` again and threw a second time. The worker code before this PR already allowed for a missing job (`job?.stalledCounter`); only the new lines didn't.

**Fix:** two lines, matching what the worker already does:
- `packages/core/src/queue/taskQueue.ts`: `job?.name === ISSUE_JOB_NAME` before `endIssueDiskPressureWait`.
- `packages/core/src/queue/issueDiskPressureDeferral.ts`: `deferIssueJobOnDiskPressure` now accepts `DeferrableIssueJob | undefined` and checks `job?.name`. A missing job just rethrows the original error, so how real issue jobs are deferred doesn't change.

**Checks:**
- `test/queue.test.ts` passes, run through `scripts/run-test-suite.mjs` after rebuilding shared and core.
- The PR's disk-pressure suites also pass: `issueDiskPressureDeferral`, `issueDiskPressureQueue`, `issueDiskPressureRefusal` and `worktreeDiskPressureDetails`.
- Core `tsc --noEmit` and ESLint with `--max-warnings 0` on the two changed files are clean.

I didn't rerun the full shard. This change has no visible effect, so there are no previews.

PR: #3862
Comment by: @propr-dev[bot] (ID: 7230678633)
Comment by: @github-actions[bot] (ID: 7230682971)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 28, 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 28, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds bounded disk-pressure deferral, terminal refusal reporting, admission diagnostics, and explicit MCP conflict handling. It needs changes before merge because the new replacement and status-release paths can affect work they do not own.

✅ Bounded admission waits — Deferrals preserve the same job and attempt budget; exhaustion produces a recognizable unrecoverable failure. The added Redis integration tests cover these transitions.

✅ Useful failure diagnostics — Measurements survive serialization through the error message, and internal MCP failures are logged before operation handling converts them into receipts.

The supplied original objective is truncated, so requirement validation is limited to its visible portion. This review is static; no commands or tests were run. Current checks report no failures and three pending checks; the historical shard failure is not treated as current.

Merge blockers

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

F2: 🔴 Concurrent replacement can delete the new job

  • Category: correctness

  • Required behavior: Replacing a retained finished job must preserve a concurrently accepted live job and its request data.

  • Evidence: packages/core/src/queue/issueJobEnqueue.ts:enqueueIssueJobReplacingFinished

    1. The daemon and plan API concurrently enqueue the same issue while its previous failed job remains retained. Both callers obtain that job and observe failed.
    2. Caller A completes existing.remove() and queue.add(), creating a new waiting job under the same deterministic ID.
    3. Caller B resumes at its awaited existing.remove(). BullMQ job removal addresses the job by queue and ID; B's old object does not identify a distinct generation. If A's job is still waiting or delayed, it is removable.
    4. B removes A's accepted job and adds its own payload. A's request-specific data, such as retry comment metadata or correlation, is lost despite A receiving added.

    Static trace: both changed callers use this helper, and the helper separates state inspection, removal, and addition without a generation check or shared serialization. An active-job lock only helps after worker activation; it does not protect waiting or delayed jobs. The added integration test exercises sequential replacement, not competing replacements.

  • Minimum fix: Make finished-job removal conditional on the currently stored job still being the inspected finished generation, using an atomic queue operation or equivalent serialization covering all replacement callers. Add a regression covering two competing replacements and preservation of the first accepted live payload.

F3: 🔴 Refusal resets historical plan issues

  • Category: correctness

  • Required behavior: A terminal admission refusal may release only the applicable processing plan issue; it must not reset completed historical plan occurrences.

  • Evidence: packages/core/src/services/issueDiskPressureRefusal.ts:releasePlanIssue

    1. An issue appears in two historical drafts, which the supplied lookup contract explicitly supports. Its older row is completed; its newest row is processing without a task because admission has not succeeded.
    2. Disk-pressure waiting expires. releasePlanIssue selects the newest row, and stillApplies confirms that row is processing without a task.
    3. The new caller invokes updatePlanIssueStatus(repository, issueNumber, PENDING, { stillApplies }).
    4. That helper updates every row matching the repository and issue number. Consequently, the older completed row also becomes pending, incorrectly reopening historical plan state.

    Static trace: the supplied planIssueManager.ts:282–299 establishes historical duplicates, while lines 354–360 establish the broader update scope. The guard validates one row but does not constrain the update to that row. The new refusal tests create only one occurrence per issue, so they do not exercise this failure.

  • Minimum fix: Release the selected plan-issue row through a scoped, journaled update whose predicate includes its ID, processing status, and absent task ID. Notify only its draft, and add a regression with a completed historical occurrence.

Suggestions

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

S2: 🟢 Preserve measurements independently of truncation

packages/core/src/queue/taskQueue.metrics.ts increases the error limit to 400 characters, which accommodates the demonstrated paths but does not guarantee preservation for longer configured filesystem paths. Consider storing measurement details separately from the bounded error summary. This is optional because the live failure and direct reporting paths already carry the full error.

Score

The implementation provides useful diagnostics and focused coverage, but two ownership problems remain in the newly introduced state mutations. Both can be corrected locally without redesigning the deferral mechanism.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 43s
  • Tokens: 103,956 (102,647 in / 1,309 out)
  • Cost: $0.96

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

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c5f0a87

Addressed 2 AI review comments (IDs: 7230725423, 7231135933)

Addressed findings F1, F2, F3

Summary of Changes

I fixed F1, F2 and F3. Each new regression test fails on the previous code and passes with the fix. The queue tests ran against a real Redis 7.4.11 that I built from source in /tmp.

F1 – a request is lost when the old job vanishes or can't be removed (packages/core/src/queue/issueJobEnqueue.ts)

  • If the old job disappears between being found and having its state read (BullMQ then reports unknown), the helper now treats it as absent and adds the new job. Before, it returned already_queued and added nothing.
  • If removing a finished job fails, the helper checks the job's state again:
    • Job is gone: it adds the new job.
    • Job is live: it returns already_queued.
    • Job is still finished: it re-throws the error. The daemon's withRetry then retries, instead of the helper reporting added for an add that BullMQ silently deduplicated against the old job.

F2 – a competing replacement can delete the new job (same file)

  • All replacements of one job ID now run one at a time, under a lock in Redis keyed per job ID. The lock expires after 30 s, and only the request that took it can release it.
  • A second request therefore checks the job only after the first one's job has been added, finds it live and returns already_queued, so the first job and its data stay in place.
  • Both callers (the daemon's processDetectedIssue and the plan route's enqueueIssueImplementationJob) go through this helper. A search found nothing else that adds jobs under the issue-<owner>-<repo>-<number> IDs.
  • A request that waits more than 10 s for the lock fails with an error instead of going ahead.
  • Test fakes without a Redis connection skip the lock, as they did before.

F3 – a refusal reset historical plan issues (packages/core/src/services/issueDiskPressureRefusal.ts)

  • The release now updates only the selected row: its ID must match, its status must be processing and it must have no task ID. These conditions are part of the journaled update itself.
  • The follow-on notification, draft-status check and activity event go only to that row's draft, and only if the row actually changed.

New tests

  • issueDiskPressureQueue.test.ts:
    • a job that disappears while its state is read
    • a removal that fails, then a retry that succeeds
    • two concurrent replacements, checking that exactly one is added and the stored data is that request's
  • issueDiskPressureRefusal.test.ts: an older merged row in another draft stays untouched while the newer processing row goes back to pending.

Verification

  • Both changed suites pass, the queue suite three runs in a row.
  • Core and API typechecks are clean (API after rebuilding core's dist), and lint is clean on the changed source files.
  • The caller suites pass: test/issueDetection.integration.test.ts, test/taskIntentWithdrawal.test.ts, test/intentWithdrawalWebhook.test.ts and test/planIssueImplementationTrigger.test.ts.

Separate finding: packages/core/test/taskSubmissionIntakeQueue.test.ts fails as a whole file with no subtest results. It fails the same way with my changes reverted, so it isn't caused by this fix; I didn't investigate it.

Remaining gap: the lock covers every caller that adds these jobs. A worker only ever removes a finished job, never brings it back, and the failed-removal path handles that removal. The one window left is a lock holder that stalls for more than 30 s mid-replacement; then the lock expires and the race could happen again.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/queue/issueJobEnqueue.ts (+81/−19)
    • packages/core/src/services/issueDiskPressureRefusal.ts (+21/−8)
  • Low risk (2 files)
    • packages/core/test/issueDiskPressureQueue.test.ts (+70/−0)
    • packages/core/test/issueDiskPressureRefusal.test.ts (+14/−0)

Diff size: 4 files changed, +186/−27 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 11m 32s
  • Tokens: 2,490,380 (2,469,720 in / 20,660 out)
  • Cost: $1.32
  • Subscription usage: Weekly +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

I fixed F1, F2 and F3. Each new regression test fails on the previous code and passes with the fix. The queue tests ran against a real Redis 7.4.11 that I built from source in `/tmp`.

**F1 – a request is lost when the old job vanishes or can't be removed** (`packages/core/src/queue/issueJobEnqueue.ts`)
- If the old job disappears between being found and having its state read (BullMQ then reports `unknown`), the helper now treats it as absent and adds the new job. Before, it returned `already_queued` and added nothing.
- If removing a finished job fails, the helper checks the job's state again:
  - **Job is gone:** it adds the new job.
  - **Job is live:** it returns `already_queued`.
  - **Job is still finished:** it re-throws the error. The daemon's `withRetry` then retries, instead of the helper reporting `added` for an add that BullMQ silently deduplicated against the old job.

**F2 – a competing replacement can delete the new job** (same file)
- All replacements of one job ID now run one at a time, under a lock in Redis keyed per job ID. The lock expires after 30 s, and only the request that took it can release it.
- A second request therefore checks the job only after the first one's job has been added, finds it live and returns `already_queued`, so the first job and its data stay in place.
- Both callers (the daemon's `processDetectedIssue` and the plan route's `enqueueIssueImplementationJob`) go through this helper. A search found nothing else that adds jobs under the `issue-<owner>-<repo>-<number>` IDs.
- A request that waits more than 10 s for the lock fails with an error instead of going ahead.
- Test fakes without a Redis connection skip the lock, as they did before.

**F3 – a refusal reset historical plan issues** (`packages/core/src/services/issueDiskPressureRefusal.ts`)
- The release now updates only the selected row: its ID must match, its status must be `processing` and it must have no task ID. These conditions are part of the journaled update itself.
- The follow-on notification, draft-status check and activity event go only to that row's draft, and only if the row actually changed.

**New tests**
- `issueDiskPressureQueue.test.ts`:
  - a job that disappears while its state is read
  - a removal that fails, then a retry that succeeds
  - two concurrent replacements, checking that exactly one is `added` and the stored data is that request's
- `issueDiskPressureRefusal.test.ts`: an older merged row in another draft stays untouched while the newer processing row goes back to `pending`.

**Verification**
- Both changed suites pass, the queue suite three runs in a row.
- Core and API typechecks are clean (API after rebuilding core's `dist`), and lint is clean on the changed source files.
- The caller suites pass: `test/issueDetection.integration.test.ts`, `test/taskIntentWithdrawal.test.ts`, `test/intentWithdrawalWebhook.test.ts` and `test/planIssueImplementationTrigger.test.ts`.

**Separate finding:** `packages/core/test/taskSubmissionIntakeQueue.test.ts` fails as a whole file with no subtest results. It fails the same way with my changes reverted, so it isn't caused by this fix; I didn't investigate it.

**Remaining gap:** the lock covers every caller that adds these jobs. A worker only ever removes a finished job, never brings it back, and the failed-removal path handles that removal. The one window left is a lock holder that stalls for more than 30 s mid-replacement; then the lock expires and the race could happen again.

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

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 28, 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 28, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds bounded disk-pressure deferral, final refusal reporting, retained-job replacement, and MCP error diagnostics. It needs a localized correctness fix before merge.

✅ Preserved retry budget — Same-job deferral uses moveToDelayed and DelayedError; the Redis integration tests verify that refusals do not consume attempts.

✅ Explicit MCP refusal — Active epic execution now produces a structured 409, with tests verifying rollback of the new issue’s claim.

The supplied current-head checks are green. The original issue specification is explicitly truncated, so requirements beyond its visible portion cannot be assessed. This review is based on static inspection; no commands were run.

Merge blockers

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

F4: 🔴 Distinguish refused retries from unstarted jobs

  • Category: correctness

  • Required behavior: Final refusal reporting must accurately distinguish an attempt rejected before admission from a job whose earlier attempts already performed work.

  • Evidence: packages/core/src/queue/taskQueue.ts, reportIssueDiskPressureFailure; packages/core/src/services/issueDiskPressureRefusal.ts, diskPressureRefusalCommentBody

    1. An issue job passes admission and enters its processor. The supplied processor context shows that it creates persistent task state and attaches the task to the plan issue.
    2. That attempt fails with an ordinary error. BullMQ schedules another attempt; ordinary processor failures remain retryable in the changed wrapper.
    3. Disk pressure prevents admission of the subsequent attempt. Its disk-pressure wait eventually expires, or its remaining ordinary attempts are exhausted with waiting disabled.
    4. The new failure handler reports that ProPR “could not start,” that “Nothing was changed,” and that no branch, commit, or pull request was created, without checking what earlier attempts did.

    The reporting predicate checks only the final error and whether retries are exhausted. It does not establish that the processor never ran on earlier attempts. The task_id guard protects the plan status update but does not protect the external comment. Users therefore receive an unsupported assurance that the overall run performed no work, despite an existing execution and potentially its artifacts.

    static trace: followed the worker wrapper, final-failure predicate, comment builder, and supplied processGitHubIssueJob.ts:50–89 context. proposed regression: admit an attempt that records a task and then fails; refuse its retry and verify that the final comment does not claim the whole job never started or made changes.

  • Minimum fix: Describe the refused attempt accurately and remove unsupported assurances about earlier attempts. If stronger “never started” wording is retained, require evidence that no earlier attempt entered processing.

Suggestions

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

S3: 🟢 Exercise recovery after successful admission

The new Redis suite verifies deferral and exhaustion, but does not resume a deferred job after restoring capacity. An integration test covering that transition would strengthen confidence that the same job runs, retains its payload and attempt budget, and clears its waiting metadata. This is optional additional coverage; the constituent operations already have tests.

Score

The implementation has substantial targeted coverage and passing current checks. One localized reporting defect remains: final admission failure is incorrectly treated as proof that the entire job never started.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 12s
  • Tokens: 106,723 (105,076 in / 1,647 out)
  • Cost: $1.02

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

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit a5a2df4

Addressed 1 AI review comment (IDs: 7231657914)

Addressed finding F4

Summary of Changes

I've fixed F4. The final disk-pressure comment now says "could not start… Nothing was changed" only when the job records that no attempt ever got into the processor. Before, it made that claim even when an earlier attempt had run and failed.

What changed

  • Recording that an attempt ran (packages/core/src/queue/issueDiskPressureDeferral.ts): when an issue job passes the disk-space check, endIssueDiskPressureWait now writes issueJobAdmitted: true into the job's data, along with clearing any old wait. The comment relies on this flag, so the write is no longer best effort. If it fails, the attempt fails as an ordinary, retryable error before the processor starts. That way, a missing flag really does mean no attempt ever ran.
  • Comment wording (packages/core/src/services/issueDiskPressureRefusal.ts, diskPressureRefusalCommentBody):
    • Flag set: the comment says "ProPR could not retry this issue". It explains that an earlier attempt started and failed, that the refused retry changed nothing, and that work from the earlier attempt (a task, a branch, commits or a pull request) may remain.
    • Flag absent: the original "could not start… Nothing was changed" text is kept.
    • The measured details and the retry instructions are unchanged.
  • Other places checked: the plan-issue status release was already guarded by task_id, so it needed no change. I also corrected doc comments in taskQueue.ts and the deferral module that said the job "never reached its processor".

Tests

  • issueDiskPressureRefusal.test.ts: an earlier attempt that recorded task-2 and failed, then a refused retry. The comment makes neither "could not start" nor "Nothing was changed" claim, names the earlier attempt, and the plan issue stays processing. A job with no earlier attempt still gets the strong wording.
  • issueDiskPressureDeferral.test.ts: a first attempt with no wait is flagged, and a failed write rejects instead of being swallowed. I updated the existing test for clearing an ended wait to expect the flag.
  • issueDiskPressureQueue.test.ts, on real Redis and BullMQ: with waiting disabled and 2 attempts, the first attempt is admitted and fails, and the retry is refused. Only one processor run happens, the final failure's job data has issueJobAdmitted: true, and the comment built from it uses the retry wording.

The three disk-pressure suites and taskSubmissionIntakeQueue pass. The Redis suite is skipped when no Redis is reachable, so I built Redis 7.2.4 locally and ran it with PROPR_REQUIRE_REDIS_INTEGRATION=1: all 7 tests passed. The core tsc --noEmit and core ESLint with --max-warnings 0 were clean.

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

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • packages/core/src/queue/issueDiskPressureDeferral.ts (+13/−11)
    • packages/core/src/queue/taskQueue.ts (+4/−2)
    • packages/core/src/services/issueDiskPressureRefusal.ts (+22/−6)
  • Low risk (3 files)
    • packages/core/test/issueDiskPressureDeferral.test.ts (+11/−2)
    • packages/core/test/issueDiskPressureQueue.test.ts (+28/−3)
    • packages/core/test/issueDiskPressureRefusal.test.ts (+20/−0)

Diff size: 6 files changed, +98/−24 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 6m 19s
  • Tokens: 1,561,355 (1,548,795 in / 12,560 out)
  • Cost: $0.93

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

I've narrowed the PR to the five parts you listed. All the dispatch-row, takeover, generation/fencing and cross-producer replacement code is gone, along with its tests. All the suites I ran pass, including the BullMQ ones against a real Redis 7.2.5 built in `/tmp`. Core typecheck and lint on the changed core sources are clean. I didn't run the full test suite.

**Removed**
- The `issue_dispatches` migration, `issueDispatch.ts`, `issueJobSettlement.ts` and `issueDispatchLifecycle.test.ts`.
- The replacement helper from the earlier commits (`enqueueIssueJobReplacingFinished` and its Redis lock).
- Every file the redesign touched outside the disk-pressure work is back to the merge base, byte for byte. That covers the plan route, the follow-up route and its tests, `issueDetection.ts`, `taskSubmissionIntake.ts`, `taskQueue.types.ts`, `taskIntentWithdrawal.test.ts` and `planIssueImplementationTrigger.test.ts`.

**Kept, and what changed**
1. **Deferral:** unchanged. A refused issue job is retried on the same job after 2, 5, 10, then every 20 minutes, without using its attempts, for at most `WORKTREE_DISK_PRESSURE_MAX_WAIT_MS`.
2. **Free-space numbers:** unchanged. The error, every log line and the final comment carry the measurement, there's one warning per refusal listing the counted claims, and the regex CodeQL flagged stays replaced.
3. **Final refusal:**
   - The plan issue is only changed if the issue's newest plan row is still `pending` or `processing` and is linked to this run. Linked means it has no task yet, or its task has this job's correlation ID.
   - Finished, historical and other-run rows are left alone, and their epic queue entry isn't blocked either.
   - The comment says "nothing was changed" only when no attempt of this job got past admission. Otherwise it says "The latest attempt was refused … after an earlier attempt of this run had already started."
4. **Re-enqueue:** this is the only new mechanism. When an issue job is finally refused for disk pressure, its own `failed` handler (`settleIssueDiskPressureFailure` in `taskQueue.ts`) posts the report and then calls `job.remove()`. It runs after the submission-intake handler has read the failed job, which that handler still needs. Nothing else removes or replaces jobs.
5. **`implement_plan`:** unchanged. Internal failures are logged with stack and operation ID, and a call while the plan's epic queue is active gets a 409 `EPIC_EXECUTION_ACTIVE` instead of a 500.

**Tests**

| Suite | Passed |
|---|---|
| Refusal reporting, deferral, measurement details | 24/24 |
| Disk-pressure queue, real Redis | 4/4 |
| Submission intake queue, real Redis | 2/2 |
| API `mcpEpicDispatch` and `mcpInternalFailureLog` | 84 + 2 |
| Root suites (plan trigger, PR-comment refusal, Ultrafix recovery, intent withdrawal, issue detection) | 275 |

New and changed tests:
- **Re-enqueue:** a finally refused job kept on failure (as polling's jobs are) is removed, and re-adding it under the same job ID runs it. This fails without the removal. A job that fails for any other reason keeps its normal retention.
- **Plan issue:** a row owned by another run's task isn't touched; `merged`, `closed`, `under_review` and `in_refinement` rows are never reset; when the newest row is finished, an older `processing` row is left alone too.
- **Wording:** a refused retry after an admitted attempt releases its own plan issue and says the latest attempt was refused.

`packages/core/test/issueDiskPressureRefusal.test.ts` shows as untracked because an earlier commit on the branch deleted it. It needs to be part of the commit.

The docs paragraph in `maintenance.md` now describes the removal and the linked/non-terminal rule instead of job replacement. No preview was made, since none of this is visible in the UI.

PR: #3862
Comment by: @integry (ID: 7236941756)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5

integry commented Nov 28, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=10

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

propr-dev Bot commented Nov 28, 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 28, 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 28, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds bounded disk-pressure deferral, failure reporting, admission diagnostics, and an explicit MCP refusal for active epic executions. It needs a localized correctness fix before merge.

✅ Preserved retry budget — Disk-pressure waits delay the same job without consuming attempts, with unit and Redis integration coverage.

✅ Actionable MCP refusal — Active sequential and graph executions return a structured 409, with tests verifying that refused requests leave no new claims.

✅ Useful diagnostics — Admission measurements survive error-message serialization and appear in logs and user-facing reports.

This review is based on static tracing; no commands were run. The original issue specification is explicitly truncated, so omitted requirements cannot be assessed. Current-head checks report no failures, with six still pending.

Merge blockers

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

F11: 🔴 Final cleanup can delete a replacement job

  • Category: correctness

  • Required behavior: Cleanup of a refused job must not remove a later accepted delivery sharing its deterministic job ID.

  • Evidence: packages/core/src/queue/taskQueue.ts, settleIssueDiskPressureFailure

    1. An issue job exhausts its disk-pressure wait. Both supplied producers, enqueueIssueImplementationJob and issue detection, set removeOnFail: true, so BullMQ removes the failed delivery before its asynchronous failure reporting finishes.
    2. The failure handler awaits reportIssueDiskPressureRefusal, including database work and a GitHub comment request.
    3. During that await, another label trigger enqueues the issue under the same deterministic ID. The new delivery can remain waiting or encounter the same disk pressure and move to delayed.
    4. The old handler resumes and calls job.remove(). That operation addresses the queue job by ID; it does not compare the old delivery’s timestamp or correlation ID. Consequently, it removes the waiting or delayed replacement.

    The newly accepted issue silently disappears, recreating the lost-dispatch behavior this PR aims to fix. An active-job lock can prevent removal while the replacement is processing, but does not protect the demonstrated waiting or delayed states. The submission finalizer’s supersession check does not fence this subsequent cleanup.

    static trace: The changed unconditional removal follows asynchronous reporting; both supplied producer excerpts establish automatic failure removal and deterministic ID reuse. The added integration test waits until cleanup finishes before re-enqueuing, so it does not cover this overlap.

  • Minimum fix: Skip explicit removal for deliveries already removed automatically on failure. For retained failures, ensure cleanup removes only the failed delivery it owns, with an atomic identity/state guard if replacement is possible. Add a regression that pauses reporting, enqueues a replacement under the same ID, then verifies that completing the old handler preserves it.

Suggestions

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

S5: 🟢 Exercise recovery of the delayed job

The Redis tests verify initial deferral and successful execution of a newly enqueued job after final failure. An additional test that lifts disk pressure and resumes the original delayed job would cover successful admission, wait-field cleanup, and processor execution together. This is optional coverage strengthening; the supplied code does not establish a defect in that path.

Score

The implementation has substantial focused coverage and useful diagnostics, but asynchronous cleanup can delete newly accepted work. Fixing that ownership error is necessary before merge.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 50s
  • Tokens: 107,061 (105,958 in / 1,103 out)
  • Cost: $1.00

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 F11 S5

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 9f04aac

Addressed 1 AI review comment (IDs: 7237213731)

Addressed finding F11

Summary of Changes

I fixed F11: cleanup after a disk-pressure refusal no longer deletes a newer job that reuses the same job ID. The new regression fails on the old code and passes with the fix.

What changed

  • New file packages/core/src/queue/removeOwnFailedJob.ts. It removes a failed job only if that job is still the one the handler holds:
    • If BullMQ already deleted the job when it failed (removeOnFail: true, 0, or {count: 0}), it does nothing. Both producers named in the finding set this.
    • Otherwise it runs BullMQ's own removeJob script with an atomic check in front. The ID must still be in the queue's failed set, and the stored timestamp (set when the job was added) and finishedOn must match the held job. If not, it returns not_owned and touches nothing. A waiting, delayed or later-failed job under the same ID is left alone.
  • settleIssueDiskPressureFailure in packages/core/src/queue/taskQueue.ts now uses this helper instead of an unconditional job.remove(), and its doc comment says so.

There is no remaining race window: the check and the removal run as one Redis script.

Tests (added to packages/core/test/issueDiskPressureQueue.test.ts, run against a real Redis 7.2.5 built locally)

  • End-to-end regression: the old failure handler is paused while it reports, by holding its database access at a gate. During the pause the test confirms BullMQ already removed the failed job, adds a replacement under the same ID, and waits until it is delayed waiting for space. The handler is then released and the test checks that the replacement is still delayed. With the old job.remove() this test fails ("the replacement survives the old delivery's cleanup").
  • Direct test of the helper: it removes the job it holds while that job is still the failed one. It returns not_owned and keeps the replacement when the replacement is waiting, delayed, or has failed itself. It returns removed_on_fail when BullMQ already removed the job. With the check taken out of the script, this test fails.
  • Results: node scripts/run-test-suite.mjs passes the four disk-pressure and intake suites, including the 6 tests in issueDiskPressureQueue. tsc and the core lint are clean.

Things to know

  • The helper loads BullMQ's packaged script from bullmq/dist/cjs/scripts/removeJob-2.js. BullMQ doesn't export that path officially, so a BullMQ upgrade could move it. The helper checks the script's key count and throws if it changes. The failure handler catches that error and logs a warning, so the issue job would then stay in the failed set instead of being removed.
  • I checked the rest of the PR for the same mistake: no other changed code removes jobs by ID.

No preview, since nothing visible changed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/queue/removeOwnFailedJob.ts (added, +67/−0)
    • packages/core/src/queue/taskQueue.ts (+15/−6)
  • Low risk (1 file)
    • packages/core/test/issueDiskPressureQueue.test.ts (+90/−2)

Diff size: 3 files changed, +172/−8 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 9m 42s
  • Tokens: 3,371,643 (3,345,974 in / 25,669 out)
  • Cost: $1.62

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

I fixed F11: cleanup after a disk-pressure refusal no longer deletes a newer job that reuses the same job ID. The new regression fails on the old code and passes with the fix.

**What changed**
- **New file `packages/core/src/queue/removeOwnFailedJob.ts`.** It removes a failed job only if that job is still the one the handler holds:
  - If BullMQ already deleted the job when it failed (`removeOnFail: true`, `0`, or `{count: 0}`), it does nothing. Both producers named in the finding set this.
  - Otherwise it runs BullMQ's own `removeJob` script with an atomic check in front. The ID must still be in the queue's failed set, and the stored `timestamp` (set when the job was added) and `finishedOn` must match the held job. If not, it returns `not_owned` and touches nothing. A waiting, delayed or later-failed job under the same ID is left alone.
- **`settleIssueDiskPressureFailure` in `packages/core/src/queue/taskQueue.ts`** now uses this helper instead of an unconditional `job.remove()`, and its doc comment says so.

There is no remaining race window: the check and the removal run as one Redis script.

**Tests** (added to `packages/core/test/issueDiskPressureQueue.test.ts`, run against a real Redis 7.2.5 built locally)
- **End-to-end regression:** the old failure handler is paused while it reports, by holding its database access at a gate. During the pause the test confirms BullMQ already removed the failed job, adds a replacement under the same ID, and waits until it is delayed waiting for space. The handler is then released and the test checks that the replacement is still delayed. With the old `job.remove()` this test fails ("the replacement survives the old delivery's cleanup").
- **Direct test of the helper:** it removes the job it holds while that job is still the failed one. It returns `not_owned` and keeps the replacement when the replacement is waiting, delayed, or has failed itself. It returns `removed_on_fail` when BullMQ already removed the job. With the check taken out of the script, this test fails.
- **Results:** `node scripts/run-test-suite.mjs` passes the four disk-pressure and intake suites, including the 6 tests in `issueDiskPressureQueue`. `tsc` and the core lint are clean.

**Things to know**
- The helper loads BullMQ's packaged script from `bullmq/dist/cjs/scripts/removeJob-2.js`. BullMQ doesn't export that path officially, so a BullMQ upgrade could move it. The helper checks the script's key count and throws if it changes. The failure handler catches that error and logs a warning, so the issue job would then stay in the failed set instead of being removed.
- I checked the rest of the PR for the same mistake: no other changed code removes jobs by ID.

No preview, since nothing visible changed.

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

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 28, 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 28, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds bounded disk-pressure deferral, refusal reporting, admission diagnostics, and clearer MCP failures. It needs a localized recovery fix before merge.

✅ Preserves retry budgets — Disk-pressure deferrals retain the same BullMQ job and leave attemptsMade unchanged, with real-Redis coverage.

✅ Protects replacement deliveries — Failed-job removal checks delivery timestamps and failed-set membership atomically before deleting a retained job.

✅ Explains MCP refusals — Active epic executions receive an explicit 409, while internal tool errors are logged with operation context.

The original issue specification is truncated, so requirement assessment is limited to its visible content. The supplied current-head checks show no failures; Validate Changes remains pending. This review uses static analysis only.

Merge blockers

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

F12: 🔴 Preserve recoverable evidence of early terminal failure

  • Category: correctness

  • Required behavior: A submission whose issue job permanently fails must remain recoverable if its asynchronous failure finalizer is interrupted.

  • Evidence: packages/core/src/queue/issueDiskPressureDeferral.ts, deferIssueJobOnDiskPressure; packages/core/src/queue/taskQueue.ts, failed-event handler; packages/core/src/queue/taskQueue.metrics.ts, updateFailedMetrics.

    1. A submission intake job repeatedly encounters disk pressure. Deferrals consume no attempts.
    2. When the wait expires, the new code throws UnrecoverableError. BullMQ terminates the job after its first failed attempt; producers configured with removeOnFail: true remove its queue record.
    3. The failed-event handler starts submission finalization asynchronously and independently records failure metrics. The worker stops after that single failure metric is persisted but before the database finalizer settles the submission.
    4. Subsequent reconcileSubmissionIntake sees an absent job and only one recorded failure. Its supplied implementation explicitly requires SUBMISSION_INTAKE_ATTEMPTS failures—three—before settling an absent intake, so it leaves the submission queued indefinitely.

    The interruption window is the database work awaited by finalizeSubmissionIntakeFailure; the metrics path runs independently because finalization is launched with void. The delivery-removal guard protects replacements but cannot restore terminal evidence for an automatically removed job. Additional reconciliation passes cannot manufacture the two missing failures.

    static trace: The new unrecoverable-error path, asynchronous failure handler, and supplied taskSubmissionIntake.ts:145–156 establish this sequence. The integration test explicitly confirms terminal disk-pressure exhaustion with attemptsMade === 1. No commands or tests were executed.

  • Minimum fix: Persist terminal-failure evidence that reconciliation can distinguish from a retryable attempt, and let absent-job reconciliation settle from that evidence while retaining its replacement-delivery checks. Add a regression covering interrupted finalization after a single terminal disk-pressure failure.

Suggestions

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

S6: 🟢 Exercise recovery on the delayed delivery

The real-Redis tests verify deferral and successful execution of a newly enqueued replacement. An additional test that restores capacity and promotes the original delayed delivery would directly verify successful admission, wait-field cleanup, and processor execution on that same job. This is optional coverage beyond the demonstrated recovery defect.

Score

The implementation has substantial focused coverage and passing current-head tests, but early terminal failure introduces a durable recovery gap that can leave submissions permanently queued.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 12s
  • Tokens: 111,477 (109,873 in / 1,604 out)
  • Cost: $1.05

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 F12 S6

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 88d761f

Addressed 1 AI review comment (IDs: 7237577926)

Addressed finding F12

Summary of Changes

I fixed F12. A submission whose intake job fails for good on its first attempt (a disk-pressure wait that ran out) now gets settled by reconciliation, even if the worker's failure finalizer never finished.

The problem: the only failure evidence left after removeOnFail deletes the job is the metrics failure log. Reconciliation only settles an absent intake once it sees SUBMISSION_INTAKE_ATTEMPTS (3) failures. An UnrecoverableError ends the job after one, so the submission stayed queued forever.

The fix:

  • taskQueue.metrics.ts (updateFailedMetrics): a failure BullMQ won't retry is now logged with final: true. It is identified by finishedOn being set, the same test finalizeSubmissionIntakeFailure already uses.
  • taskQueue.types.ts: added an optional final field to AiMetrics.
  • taskSubmissionIntake.ts:
    • When it reads the failure log, queueSubmissionIntakeEvidence().failures now reports final: true if the latest job instance has a failure marked final. A mark on an older instance doesn't carry over.
    • reconcileSubmissionIntake settles an absent intake from either three failures or one final failure. It still runs every existing check first, including the dispatch lock and re-reading the job after the log read, so a replacement delivery still decides instead.

Tests:

  • Unit tests (taskSubmissionIntake.test.ts):
    • A single final failure settles the submission.
    • A final failure on an older instance doesn't settle a newer instance's retryable failure.
    • A live replacement keeps the submission queued.
    • The log reader sets the final flag only for the latest instance.
  • Real Redis/BullMQ regression (taskSubmissionIntakeQueue.test.ts): it holds the submission's dispatch lock, so the finalizer can't settle it (standing in for an interrupted one), then lets the intake fail unrecoverably with attemptsMade === 1 while BullMQ removes the job. After the lock is released, reconciliation settles it with "Implementation did not start: Worktree disk pressure: … after waiting 120 minutes (7 refusals) …". Re-adding a delivery under the same job ID keeps it queued.

Verification:

  • Against a locally built Redis 7.2.5, all three affected suites pass: taskSubmissionIntake 12/12, taskSubmissionIntakeQueue 3/3, issueDiskPressureQueue 6/6.
  • I reverted each half of the fix in turn. Without the reconcile change, the unit case and the new Redis test fail. Without the final mark in the metrics, the new Redis test fails.
  • tsc passes for core, and eslint (zero warnings) passes for the three changed source files. Typechecking the two test files shows no errors from these changes, only existing missing-declaration errors for the .js migration imports.

No other code compares failure counts against SUBMISSION_INTAKE_ATTEMPTS; reconcileSubmissionIntake was the only place with this assumption. Nothing here is visible in the UI, so there are no previews.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • packages/core/src/queue/taskQueue.metrics.ts (+3/−0)
    • packages/core/src/queue/taskQueue.types.ts (+2/−0)
    • packages/core/src/services/taskSubmissionIntake.ts (+14/−5)
  • Low risk (2 files)
    • packages/core/test/taskSubmissionIntake.test.ts (+17/−5)
    • packages/core/test/taskSubmissionIntakeQueue.test.ts (+47/−3)

Diff size: 5 files changed, +83/−13 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 7m 39s
  • Tokens: 1,940,931 (1,927,929 in / 13,002 out)
  • Cost: $1.06

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

@integry

integry commented Nov 28, 2026

Copy link
Copy Markdown
Owner

F11 and F12 both come from the one cross-cutting piece left in this PR: removing the failed job after a final disk-pressure refusal, so a later trigger can reuse the jobId. Please drop that piece from this PR. It moves to #3873, where a fresh jobId per dispatch makes removal unnecessary.

  • Remove the post-refusal job removal (isRemovedOnFail handling, the "remove only the failed delivery" cleanup) and its tests. The failed job stays as recoverable evidence, which resolves F12.
  • The final refusal comment should say plainly that relabeling won't retry until the stale job is cleared (or Issue dispatch: make dedupe and retry race-free (single dispatch record per issue) #3873 lands), and how an operator can clear it. Don't promise an automatic retry.
  • Keep everything else as is: deferral with backoff, free-space numbers in every refusal, the final comment, the plan-issue update only when linked and non-terminal, and the implement_plan logging plus 409.

I fixed F12. A submission whose intake job fails for good on its first attempt (a disk-pressure wait that ran out) now gets settled by reconciliation, even if the worker's failure finalizer never finished.

**The problem:** the only failure evidence left after `removeOnFail` deletes the job is the metrics failure log. Reconciliation only settles an absent intake once it sees `SUBMISSION_INTAKE_ATTEMPTS` (3) failures. An `UnrecoverableError` ends the job after one, so the submission stayed queued forever.

**The fix:**
- **`taskQueue.metrics.ts`** (`updateFailedMetrics`): a failure BullMQ won't retry is now logged with `final: true`. It is identified by `finishedOn` being set, the same test `finalizeSubmissionIntakeFailure` already uses.
- **`taskQueue.types.ts`**: added an optional `final` field to `AiMetrics`.
- **`taskSubmissionIntake.ts`**:
  - When it reads the failure log, `queueSubmissionIntakeEvidence().failures` now reports `final: true` if the latest job instance has a failure marked final. A mark on an older instance doesn't carry over.
  - `reconcileSubmissionIntake` settles an absent intake from either three failures or one final failure. It still runs every existing check first, including the dispatch lock and re-reading the job after the log read, so a replacement delivery still decides instead.

**Tests:**
- **Unit tests** (`taskSubmissionIntake.test.ts`):
  - A single final failure settles the submission.
  - A final failure on an older instance doesn't settle a newer instance's retryable failure.
  - A live replacement keeps the submission queued.
  - The log reader sets the final flag only for the latest instance.
- **Real Redis/BullMQ regression** (`taskSubmissionIntakeQueue.test.ts`): it holds the submission's dispatch lock, so the finalizer can't settle it (standing in for an interrupted one), then lets the intake fail unrecoverably with `attemptsMade === 1` while BullMQ removes the job. After the lock is released, reconciliation settles it with "Implementation did not start: Worktree disk pressure: … after waiting 120 minutes (7 refusals) …". Re-adding a delivery under the same job ID keeps it queued.

**Verification:**
- Against a locally built Redis 7.2.5, all three affected suites pass: `taskSubmissionIntake` 12/12, `taskSubmissionIntakeQueue` 3/3, `issueDiskPressureQueue` 6/6.
- I reverted each half of the fix in turn. Without the reconcile change, the unit case and the new Redis test fail. Without the `final` mark in the metrics, the new Redis test fails.
- `tsc` passes for core, and eslint (zero warnings) passes for the three changed source files. Typechecking the two test files shows no errors from these changes, only existing missing-declaration errors for the `.js` migration imports.

No other code compares failure counts against `SUBMISSION_INTAKE_ATTEMPTS`; `reconcileSubmissionIntake` was the only place with this assumption. Nothing here is visible in the UI, so there are no previews.

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

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 28, 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 28, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 6cd5fde

Summary of Changes

I've removed the post-refusal job removal from this PR. A job that fails for good on disk pressure now stays in the queue as a failed job, as recoverable evidence. That resolves F12.

What changed

  • Removal gone: I deleted packages/core/src/queue/removeOwnFailedJob.ts, which held isRemovedOnFail and the "remove only the failed delivery" cleanup. settleIssueDiskPressureFailure in taskQueue.ts now only reports the refusal, and its doc comment says the failed job is kept.

  • Tests: I dropped the two removal tests (the replacement-during-report race and the cleanup-ownership test) and the hooks only they used. The tests that waited for the job to disappear now check that it stays failed.

  • Final refusal comment (issueDiskPressureRefusal.ts): it no longer says relabeling retries the issue. It now says:

    Relabeling will not retry this issue until the stale job issue-… is cleared (or until Issue dispatch: make dedupe and retry race-free (single dispatch record per issue) #3873 lands).

    It then gives the commands an operator runs to clear the job, and says to relabel (or retry from the plan) after that:

    redis-cli ZREM bull:<queue>:failed <jobId>
    redis-cli DEL bull:<queue>:<jobId> bull:<queue>:<jobId>:logs
    

    The queue name is github-issue-processor unless GITHUB_ISSUE_QUEUE_NAME is set. If a job has no ID, the comment still says relabeling won't retry, names the queue and its failed set, and promises no automatic retry. I wrote Issue dispatch: make dedupe and retry race-free (single dispatch record per issue) #3873 as integry/propr#3873 so the link works when the comment is posted on other repos.

  • Docs: I rewrote the paragraph in docs/docs/operations/maintenance.md that described the removal and the automatic re-pickup by a later poll. It now explains that the job is kept, why a relabel doesn't run, and the commands to clear it.

Nothing else changed: the deferral with backoff, the free-space numbers, the plan-issue update only when linked and non-terminal, and the implement_plan logging plus 409.

One thing worth knowing: the daemon and plan-route producers set removeOnFail: true, so for their jobs BullMQ deletes the failed job anyway and a relabel works without clearing anything. The comment still gives the warning unconditionally, as you asked, and the commands do nothing harmful if the job is already gone.

Verification

  • Core typecheck and lint on the changed source files are clean. The test files are outside core's eslint config, so they weren't linted.
  • I ran five disk-pressure and submission-intake suites against a locally built Redis 7.2.5, with real-Redis tests required; all 31 tests pass.
  • The integration test now proves the comment's own instructions work: while the failed job is kept, a relabel under the same ID doesn't run. The test pulls the redis-cli lines out of the generated comment and runs them, after which the job is gone and the next relabel runs.

I didn't run the full test suite. There's no visual change, so I made no preview.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • packages/core/src/queue/removeOwnFailedJob.ts (deleted, +0/−67)
    • packages/core/src/queue/taskQueue.ts (+4/−17)
    • packages/core/src/services/issueDiskPressureRefusal.ts (+43/−6)
  • Low risk (3 files)
    • docs/docs/operations/maintenance.md (+1/−1)
    • packages/core/test/issueDiskPressureQueue.test.ts (+22/−93)
    • packages/core/test/issueDiskPressureRefusal.test.ts (+11/−3)

Diff size: 6 files changed, +81/−187 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 7m 20s
  • Tokens: 2,497,981 (2,482,799 in / 15,182 out)
  • Cost: $1.23
  • 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: 7237586431✓

I've removed the post-refusal job removal from this PR. A job that fails for good on disk pressure now stays in the queue as a failed job, as recoverable evidence. That resolves F12.

**What changed**
- **Removal gone:** I deleted `packages/core/src/queue/removeOwnFailedJob.ts`, which held `isRemovedOnFail` and the "remove only the failed delivery" cleanup. `settleIssueDiskPressureFailure` in `taskQueue.ts` now only reports the refusal, and its doc comment says the failed job is kept.
- **Tests:** I dropped the two removal tests (the replacement-during-report race and the cleanup-ownership test) and the hooks only they used. The tests that waited for the job to disappear now check that it stays `failed`.
- **Final refusal comment** (`issueDiskPressureRefusal.ts`): it no longer says relabeling retries the issue. It now says:

  > **Relabeling will not retry this issue until the stale job `issue-…` is cleared** (or until #3873 lands).

  It then gives the commands an operator runs to clear the job, and says to relabel (or retry from the plan) after that:
  ```
  redis-cli ZREM bull:<queue>:failed <jobId>
  redis-cli DEL bull:<queue>:<jobId> bull:<queue>:<jobId>:logs
  ```
  The queue name is `github-issue-processor` unless `GITHUB_ISSUE_QUEUE_NAME` is set. If a job has no ID, the comment still says relabeling won't retry, names the queue and its failed set, and promises no automatic retry. I wrote #3873 as `#3873` so the link works when the comment is posted on other repos.
- **Docs:** I rewrote the paragraph in `docs/docs/operations/maintenance.md` that described the removal and the automatic re-pickup by a later poll. It now explains that the job is kept, why a relabel doesn't run, and the commands to clear it.

Nothing else changed: the deferral with backoff, the free-space numbers, the plan-issue update only when linked and non-terminal, and the `implement_plan` logging plus 409.

One thing worth knowing: the daemon and plan-route producers set `removeOnFail: true`, so for their jobs BullMQ deletes the failed job anyway and a relabel works without clearing anything. The comment still gives the warning unconditionally, as you asked, and the commands do nothing harmful if the job is already gone.

**Verification**
- Core typecheck and lint on the changed source files are clean. The test files are outside core's eslint config, so they weren't linted.
- I ran five disk-pressure and submission-intake suites against a locally built Redis 7.2.5, with real-Redis tests required; all 31 tests pass.
- The integration test now proves the comment's own instructions work: while the failed job is kept, a relabel under the same ID doesn't run. The test pulls the `redis-cli` lines out of the generated comment and runs them, after which the job is gone and the next relabel runs.

I didn't run the full test suite. There's no visual change, so I made no preview.

PR: #3862
Comment by: @integry (ID: 7237586431)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds bounded disk-pressure deferral, terminal refusal reporting, and diagnostic logging for internal MCP failures. It needs a localized correction before merge: the recovery comments assume failed jobs are retained, although both supplied production producers explicitly remove them.

✅ Preserved retry budget — Disk-pressure waits delay the existing job without consuming attempts; the added Redis integration tests cover this behavior.

✅ Actionable MCP refusal — Active epic executions now produce an explicit 409, with tests checking transaction rollback and unchanged dispatch state.

✅ Useful diagnostics — Admission measurements survive error-message serialization and appear in refusal reports.

This is a static review; no commands or tests were run. The original issue specification is truncated, limiting verification of its full acceptance criteria. Current checks show no failures and four pending checks.

Merge blockers

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

F13: 🔴 Make recovery instructions reflect actual retention

  • Category: correctness

  • Required behavior: Refusal reporting must provide accurate recovery instructions and must not direct operators to delete a replacement job.

  • Evidence: packages/core/src/services/issueDiskPressureRefusal.ts, retryText

    1. An issue dispatched through enqueueIssueImplementationJob or issueDetection exhausts its disk-pressure wait. Both supplied producers set removeOnFail: true, so BullMQ removes the failed job.
    2. The new report nevertheless states that the job remains and that relabeling cannot retry it, and supplies unconditional ZREM and DEL commands for its deterministic ID.
    3. A subsequent label trigger can successfully enqueue a replacement under that same ID. An operator following the original comment then executes its DEL, deleting the replacement job's hash and logs.
    4. The replacement loses its persisted payload and execution evidence; its queue membership or active lock is not removed by those commands.

    The report does not inspect retention or job existence, and the commands check neither failed state nor job-instance identity. The integration test exercises these instructions only with removeOnFail: false, overriding the supplied production settings. static trace: verified against retryText, the changed integration test, and both supplied producer excerpts; this sequence was not executed.

  • Minimum fix: Report ordinary retrigger instructions for jobs removed on failure. For retained jobs, replace unconditional key deletion with a recovery operation that verifies the failed job's instance and state before removal. Update the documentation and cover the production removeOnFail: true path.

Suggestions

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

No suggestions.

Score

The implementation has substantial targeted coverage and improves diagnostics, but its recovery instructions contradict production retention settings and can damage a replacement job. Correct that path before merging; current validation remains pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 39s
  • Tokens: 110,028 (109,185 in / 843 out)
  • Cost: $1.00

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 F13

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 38941d2

Addressed 1 AI review comment (IDs: 7237946243)

Addressed finding F13

Summary of Changes

I fixed F13: the refusal comment's retry instructions now match whether the failed job was actually kept. The comment no longer gives the unconditional ZREM/DEL commands that could delete a replacement job using the same ID.

What changed

  • Retention check (taskQueue.ts, new failedJobRetention): after the final disk-pressure failure, the worker checks what happened to the job and passes the result to the report:
    • removed: removeOnFail: true (the daemon poll and enqueueIssueImplementationJob), or the ID now belongs to a different job, told apart by its creation timestamp.
    • retained: this same job is in the failed set.
    • unknown: the check couldn't be done.
  • Comment text (issueDiskPressureRefusal.ts):
    • removed: an ordinary retry: "The refused job was removed from the worker's queue. To retry once space has been freed…, remove the AI label and add it again". No stale-job warning and no Redis commands.
    • retained: the "Relabeling will not retry … until the stale job is cleared" warning, followed by one guarded redis-cli EVAL command (built by the new clearFailedJobCommand). It removes the job and its logs only if the job is still in the failed set and its stored timestamp matches this job. Otherwise it prints 0 and changes nothing.
    • unknown: "If relabeling does not start a new run, the refused job is still kept…", followed by the same guarded command.
    • If the job has no ID or no timestamp, the comment gives no command and tells the operator to check the job before removing it.
  • Docs (docs/docs/operations/maintenance.md): the paragraph now says which producers remove jobs on failure and which keep them, and describes the guarded command in place of the old ZREM/DEL pair.

Tests

  • Integration (issueDiskPressureQueue.test.ts, real Redis), new test with the producers' own removeOnFail: true:
    • the worker's report records removed, the job is gone, and the comment has no Redis commands.
    • a relabel then enqueues a replacement under the same ID.
    • a guarded command built for the removed job returns 0, and the replacement keeps its hash and stays queued.
  • Integration, retained test: the report records retained. A command built for a different job under the same ID changes nothing. The command taken from the comment clears the job, and the next relabel runs.
  • Unit (issueDiskPressureRefusal.test.ts): covers the wording for all three cases, the case without a timestamp, and that the old unconditional ZREM/DEL lines are never produced.
  • Shell check: I pasted the exact command into a shell against the real redis-cli. It printed 0 and kept the job when the timestamp differed, and when the job wasn't in the failed set. On the matching job it printed 2 and left Redis empty.

Verification

  • Core typecheck and lint on the two changed source files are clean.
  • Against a locally built Redis 7.2.5, with real-Redis tests required:
    • issueDiskPressureQueue: 5/5, run three times.
    • issueDiskPressureRefusal: 14/14.
    • issueDiskPressureDeferral: 8/8.
    • taskSubmissionIntakeQueue: 3/3.
    • worktreeDiskPressureDetails: 4/4.
  • taskSubmissionIntake.test.ts passes all 12 tests, but the process never exits and the command times out. It does the same with the HEAD versions of the changed files, so the hang isn't from this change.
  • I didn't run the full suite.

There's no visual change, so I made no preview.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/queue/taskQueue.ts (+23/−4)
    • packages/core/src/services/issueDiskPressureRefusal.ts (+67/−23)
  • Low risk (3 files)
    • docs/docs/operations/maintenance.md (+1/−1)
    • packages/core/test/issueDiskPressureQueue.test.ts (+61/−7)
    • packages/core/test/issueDiskPressureRefusal.test.ts (+32/−7)

Diff size: 5 files changed, +184/−42 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 24m 29s
  • Tokens: 4,046,157 (4,015,713 in / 30,444 out)
  • Cost: $1.96
  • Subscription usage: Weekly +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

I fixed F13: the refusal comment's retry instructions now match whether the failed job was actually kept. The comment no longer gives the unconditional `ZREM`/`DEL` commands that could delete a replacement job using the same ID.

**What changed**
- **Retention check** (`taskQueue.ts`, new `failedJobRetention`): after the final disk-pressure failure, the worker checks what happened to the job and passes the result to the report:
  - **removed:** `removeOnFail: true` (the daemon poll and `enqueueIssueImplementationJob`), or the ID now belongs to a different job, told apart by its creation `timestamp`.
  - **retained:** this same job is in the failed set.
  - **unknown:** the check couldn't be done.
- **Comment text** (`issueDiskPressureRefusal.ts`):
  - **removed:** an ordinary retry: "The refused job was removed from the worker's queue. To retry once space has been freed…, remove the `AI` label and add it again". No stale-job warning and no Redis commands.
  - **retained:** the "Relabeling will not retry … until the stale job is cleared" warning, followed by one guarded `redis-cli EVAL` command (built by the new `clearFailedJobCommand`). It removes the job and its logs only if the job is still in the failed set and its stored `timestamp` matches this job. Otherwise it prints `0` and changes nothing.
  - **unknown:** "If relabeling does not start a new run, the refused job is still kept…", followed by the same guarded command.
  - If the job has no ID or no timestamp, the comment gives no command and tells the operator to check the job before removing it.
- **Docs** (`docs/docs/operations/maintenance.md`): the paragraph now says which producers remove jobs on failure and which keep them, and describes the guarded command in place of the old `ZREM`/`DEL` pair.

**Tests**
- **Integration** (`issueDiskPressureQueue.test.ts`, real Redis), new test with the producers' own `removeOnFail: true`:
  - the worker's report records `removed`, the job is gone, and the comment has no Redis commands.
  - a relabel then enqueues a replacement under the same ID.
  - a guarded command built for the removed job returns `0`, and the replacement keeps its hash and stays queued.
- **Integration, retained test:** the report records `retained`. A command built for a different job under the same ID changes nothing. The command taken from the comment clears the job, and the next relabel runs.
- **Unit** (`issueDiskPressureRefusal.test.ts`): covers the wording for all three cases, the case without a timestamp, and that the old unconditional `ZREM`/`DEL` lines are never produced.
- **Shell check:** I pasted the exact command into a shell against the real `redis-cli`. It printed `0` and kept the job when the timestamp differed, and when the job wasn't in the failed set. On the matching job it printed `2` and left Redis empty.

**Verification**
- Core typecheck and lint on the two changed source files are clean.
- Against a locally built Redis 7.2.5, with real-Redis tests required:
  - `issueDiskPressureQueue`: 5/5, run three times.
  - `issueDiskPressureRefusal`: 14/14.
  - `issueDiskPressureDeferral`: 8/8.
  - `taskSubmissionIntakeQueue`: 3/3.
  - `worktreeDiskPressureDetails`: 4/4.
- `taskSubmissionIntake.test.ts` passes all 12 tests, but the process never exits and the command times out. It does the same with the HEAD versions of the changed files, so the hang isn't from this change.
- I didn't run the full suite.

There's no visual change, so I made no preview.

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

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 28, 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 28, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds bounded disk-pressure deferral, terminal refusal reporting, and useful MCP failure diagnostics. It needs a localized correctness fix before merge: refusal reporting can block a replacement run’s epic queue after its ownership check becomes stale.

✅ Bounded deferral — The same BullMQ job is delayed without consuming attempts, with an unrecoverable failure when the configured wait expires.

✅ Actionable diagnostics — Refusal measurements survive serialization, and internal MCP failures are logged before mutation handling converts them into receipts.

✅ Retention-aware recovery — Retry instructions distinguish removed and retained jobs; the supplied Redis cleanup command checks the failed instance’s timestamp.

This review is a static trace of the supplied code; no commands were run. The original issue specification is explicitly truncated, limiting requirement verification. Current checks show no failures, with two checks pending; the historical shard failure is not a current blocker.

Merge blockers

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

F14: 🔴 Fence queue blocking against task takeover

  • Category: correctness

  • Required behavior: A refusal must not mutate the plan execution belonging to another run; the implementation explicitly promises to preserve plan issues another run has taken over.

  • Evidence: packages/core/src/services/issueDiskPressureRefusal.ts, releasePlanIssue; packages/core/src/services/taskPlanning/epicQueueBlockedHead.ts, markEpicQueueIssueDispatchRefused

    1. An issue job fails terminally and is removed under the producer’s removeOnFail: true policy. Its asynchronous refusal reporter reads the plan issue as processing, with no task, and therefore considers it linked.
    2. A new trigger enqueues a replacement under the now-available job ID. While the reporter awaits the database operations inside markEpicQueueIssueDispatchRefused, the replacement records its task on that plan issue.
    3. The reporter blocks the queue item as dispatch_failed. blockQueueIssue checks execution and occurrence ownership and whether the queue item is settled, but does not check the plan issue’s task ownership.
    4. The subsequent status update correctly detects the changed task_id and updates zero rows. However, the reporter leaves the queue blocker and renewed dispatch timestamp in place.

    The resulting persistent state attributes the old job’s disk-pressure failure to the replacement’s execution, despite preserving the replacement’s processing status. The protected status update happens after the queue mutation and cannot undo it. The queue mutation’s transaction does not include the earlier plan-issue ownership check.

    static trace: The supplied producer permits replacement after removal; the changed reporter performs ownership checking, queue blocking, and guarded status updating as separate operations. Existing tests cover ownership already changed before reporting starts, but not takeover between those operations.

  • Minimum fix: Revalidate the plan issue’s status and task ownership and perform the queue block and applicable status transition within one database transaction. If ownership changed, skip both mutations. Add a regression that installs a replacement task between the initial read and settlement.

Suggestions

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

S7: 🟢 Exercise recovery of the delayed job

The Redis integration tests establish deferral and terminal failure, but do not directly demonstrate the same deferred job resuming successfully when space becomes available. An optional test that lifts the reserve, promotes that delayed job, and verifies processor entry and removal of wait fields would strengthen coverage of the main recovery path.

Score

The implementation has substantial focused coverage and useful operational diagnostics, but the ownership gap in refusal settlement needs correction. Current checks have no reported failures, though two remain pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 14s
  • Tokens: 111,673 (110,124 in / 1,549 out)
  • Cost: $1.07

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 F14 S7

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 7de25cd

Addressed 1 AI review comment (IDs: 7238478253)

Addressed finding F14

Summary of Changes

I fixed F14: a refusal can no longer block the queue item of a replacement run that takes over the plan issue while the refusal is being reported.

The fix (packages/core/src/services/issueDiskPressureRefusal.ts, releasePlanIssue):

  • The first ownership check (status, newest row, task linked by correlation ID) still runs before anything is written.
  • The writes now happen in one database transaction. That transaction first reads the plan issue row again and goes on only if its status and task_id are unchanged since the first read.
  • Inside that same transaction it blocks the queue item as dispatch_failed, renews its dispatch timestamp, and, if the issue is processing, moves it back to pending using the existing guarded update.
  • If ownership changed, it writes neither the block nor the status change. The re-read throws an internal "taken over" error, which rolls back the transaction. The guarded status update throws the same error if it changes zero rows, so the queue block is undone along with it.
  • In that case the outcome is { planIssueReleased: false, queueBlocked: false }, and the issue still gets its comment. Follow-on notifications run only after the commit.
  • The database is SQLite, whose transactions are serializable, so a takeover lands either before the re-read or after the commit. The case where the takeover comes after the commit is the existing "ownership changed after the refusal" case, so I didn't add any further locking.

Supporting change (packages/core/src/config/planIssueStatusJournal.ts): updatePlanIssuesWithStatusJournal now takes an optional { database } (defaulting to db), so the status update and its journal entry run inside the caller's transaction. Existing callers are unaffected. This also matters because the SQLite pool has a single connection: calling the global db from inside the transaction would deadlock.

Regression tests (packages/core/test/issueDiskPressureRefusal.test.ts): two new cases, one for a processing plan issue and one for a pending one. Each installs a replacement task (task-replacement with a different correlation ID) after the refusal's first read and before any write. They check that:

  • the plan issue stays processing and owned by the replacement.
  • the queue item has no blocker and its dispatch timestamp is unchanged.
  • no blocked events were recorded.
  • the comment is still posted.

Verification:

  • Against the old issueDiskPressureRefusal.ts, both new tests fail; with the fix, all 16 tests in the file pass.
  • 31 related suites (21 in core, 4 at the repo root) passed with no failures (5 core tests were skipped).
  • tsc --noEmit for core passed and eslint reported nothing on the changed source files.

markEpicQueueIssueDispatchRefused has no other callers, so the same defect doesn't occur anywhere else in the PR. I found nothing else worth reporting. The change isn't visible in any UI, so I made no previews.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/config/planIssueStatusJournal.ts (+6/−2)
    • packages/core/src/services/issueDiskPressureRefusal.ts (+37/−15)
  • Low risk (1 file)
    • packages/core/test/issueDiskPressureRefusal.test.ts (+30/−0)

Diff size: 3 files changed, +73/−17 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 6m 34s
  • Tokens: 1,451,584 (1,437,491 in / 14,093 out)
  • Cost: $0.98

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

I fixed F14: a refusal can no longer block the queue item of a replacement run that takes over the plan issue while the refusal is being reported.

**The fix** (`packages/core/src/services/issueDiskPressureRefusal.ts`, `releasePlanIssue`):
- The first ownership check (status, newest row, task linked by correlation ID) still runs before anything is written.
- The writes now happen in one database transaction. That transaction first reads the plan issue row again and goes on only if its status and `task_id` are unchanged since the first read.
- Inside that same transaction it blocks the queue item as `dispatch_failed`, renews its dispatch timestamp, and, if the issue is `processing`, moves it back to `pending` using the existing guarded update.
- If ownership changed, it writes neither the block nor the status change. The re-read throws an internal "taken over" error, which rolls back the transaction. The guarded status update throws the same error if it changes zero rows, so the queue block is undone along with it.
- In that case the outcome is `{ planIssueReleased: false, queueBlocked: false }`, and the issue still gets its comment. Follow-on notifications run only after the commit.
- The database is SQLite, whose transactions are serializable, so a takeover lands either before the re-read or after the commit. The case where the takeover comes after the commit is the existing "ownership changed after the refusal" case, so I didn't add any further locking.

**Supporting change** (`packages/core/src/config/planIssueStatusJournal.ts`): `updatePlanIssuesWithStatusJournal` now takes an optional `{ database }` (defaulting to `db`), so the status update and its journal entry run inside the caller's transaction. Existing callers are unaffected. This also matters because the SQLite pool has a single connection: calling the global `db` from inside the transaction would deadlock.

**Regression tests** (`packages/core/test/issueDiskPressureRefusal.test.ts`): two new cases, one for a `processing` plan issue and one for a `pending` one. Each installs a replacement task (`task-replacement` with a different correlation ID) after the refusal's first read and before any write. They check that:
- the plan issue stays `processing` and owned by the replacement.
- the queue item has no blocker and its dispatch timestamp is unchanged.
- no blocked events were recorded.
- the comment is still posted.

**Verification:**
- Against the old `issueDiskPressureRefusal.ts`, both new tests fail; with the fix, all 16 tests in the file pass.
- 31 related suites (21 in core, 4 at the repo root) passed with no failures (5 core tests were skipped).
- `tsc --noEmit` for core passed and eslint reported nothing on the changed source files.

`markEpicQueueIssueDispatchRefused` has no other callers, so the same defect doesn't occur anywhere else in the PR. I found nothing else worth reporting. The change isn't visible in any UI, so I made no previews.

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

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 28, 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 28, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

Merge-ready within the visible scope, conditional on the pending validation check completing successfully. The PR adds bounded disk-pressure deferral, terminal refusal reporting, and diagnostic logging for internal MCP failures.

✅ Preserved retry budget — Disk-pressure deferrals delay the same job without consuming attempts; exhausted waits produce an unrecoverable failure.

✅ Protected plan updates — Refusal reporting checks task ownership and rechecks status/task identity inside a transaction before changing plan state.

✅ Useful regression coverage — Added tests cover retention, terminal intake reconciliation, takeover protection, and explicit MCP conflict responses.

This was a static review; no commands were run. The original issue specification is explicitly truncated, so requirements absent from the supplied text could not be assessed. Current checks report no failures, with one pending.

Merge blockers

No merge blockers.

Suggestions

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

S8: 🟢 Test recovery after space returns

The real-Redis tests in packages/core/test/issueDiskPressureQueue.test.ts establish deferral and terminal failure behavior. Add a complementary case that lifts the admission reserve, promotes the delayed job, and verifies successful processing, cleared wait fields, and unchanged retry budget. This would strengthen coverage of the successful recovery path; it is optional because the supplied implementation does not demonstrate a defect there.

Score

The visible changes address both dispatch problems with substantial regression coverage and no verified merge blocker. Final readiness remains conditional on the pending check.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 31s
  • Tokens: 112,469 (111,900 in / 569 out)
  • Cost: $1.04

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 S8

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 28, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3860 by Claude Opus 5.5] # Issue jobs refused for disk pressure are dropped silently; implement_plan returns 500 with no log ✅❾ [3860 by Claude Opus 5.5] # Issue jobs refused for disk pressure are dropped silently; implement_plan returns 500 with no log Nov 28, 2026
@integry
integry merged commit 643b9ee into main Nov 28, 2026
47 checks passed
@propr-dev propr-dev Bot changed the title ✅❾ [3860 by Claude Opus 5.5] # Issue jobs refused for disk pressure are dropped silently; implement_plan returns 500 with no log [3860 by Claude Opus 5.5] # Issue jobs refused for disk pressure are dropped silently; implement_plan returns 500 with no log Nov 28, 2026
@integry
integry deleted the 3860/claude-opus-5-5-issue-jobs-refused-for-di-20261127-2208-xrs branch November 28, 2026 17:22
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.

# Issue jobs refused for disk pressure are dropped silently; implement_plan returns 500 with no log

2 participants