Skip to content

[3474 by Claude Opus 5.5] Emit an event when an epic queue issue becomes blocked, and add skip and retry actions - #3518

Merged
integry merged 5 commits into
3470-epic-scheduler-primitives-nrjfrom
3474/claude-opus-5-5-emit-an-event-when-an-epi-20261113-0213-zd9
Nov 13, 2026
Merged

integry merged 5 commits into
3470-epic-scheduler-primitives-nrjfrom
3474/claude-opus-5-5-emit-an-event-when-an-epi-20261113-0213-zd9

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3474

Branch: 3474/claude-opus-5-5-emit-an-event-when-an-epi-20261113-0213-zd9
Commits: ✅ Changes committed (50b8f44)


AI Processing Completed

Execution Details:

Summary:
I've implemented #3474. An issue that becomes blocked now records one durable event, raises an Inbox card and a realtime update, and a blocked or pending issue can be skipped or retried through REST, MCP and Planner Studio. Every suite I ran passes, and typecheck, zero-warning lint and the OpenAPI check are clean.

Blocked events

  • A new migration adds an epic_queue_blocked_events table. Every queue write that blocks or clears an issue now records the change in the same transaction as the guarded state write, so it doesn't matter which process made it.
  • Blocking an issue with the same kind and reason again records nothing and keeps the original blocked time. A different blocker on the same issue first records the old one as resolved (replaced), then records the new one. Clearing records how it ended: cleared, retried, skipped or settled.
  • After commit, each event is published as plan-domain realtime activity (blocked, or progressed for a resolution). Each new blocker also raises one plan Inbox card for the plan owner and the instance members, and that card is deduplicated per blocked state. An agent-reported blocker raises no plan card, so its existing task notification stays the only one. If a process crashes after commit but before delivery, the recovery sweep delivers the missed event.
  • Clients can read an execution's events with a cursor through GET …/execution-queue/blocked-events and the MCP tool list_plan_blocked_events.

Skip and retry (POST …/issues/:n/skip and …/retry; MCP tools skip_plan_issue and retry_plan_issue)

  • Both actions require the executionId (now included in the queue summary) and accept an optional expectedState. Both are idempotent: repeating one answers already_skipped or already_retried. They're refused with a clear code for a stale execution (STALE_EXECUTION), an issue in flight (IN_FLIGHT, which includes a pending issue someone started by hand) or one that's already done (ALREADY_DONE).
  • Skip: a chain moves on to the next issue. In a graph, issues that depend on the skipped one stay waiting and list it in waitingOnSkipped. They start only after a skip with satisfiesDependents: true, and skipping again with that option releases them. Skip never closes or edits the GitHub issue.
  • Retry: the blocker is cleared and the issue goes back through the queue's normal dispatch.
    • A failed dispatch is redispatched immediately.
    • An agent-reported blocker puts the plan issue back to pending, then dispatches it.
    • An issue closed without merge is reopened on GitHub first.
    • A missing issue is checked again, and blocks again if it is still missing.
    • A wait for a human merge and a label handoff keep their claim and are re-evaluated rather than re-run.
    • An issue still in setup is refused with NOT_RETRYABLE, because setup recovery handles it.
    • Retry doesn't go through implement_plan, so an issue started through MCP can be retried even though its implementation receipt is still there.

Changes you might not expect

  • Skipped issues needed two scheduler fixes: a skipped parallel child is no longer treated as reopened, and a parallel execution can now complete while one of its issues is skipped.
  • Skipping doesn't finish the epic PR on its own. Its final label is only added once every plan issue has finished, and a skipped issue stays pending in the plan, so that labeling stays owed until it's done.

Planner Studio: a blocked row shows the blocker kind and reason with Retry and Skip buttons. In a graph it also offers "Skip and start #N". Queued rows get a Skip control, and an issue waiting on a skipped prerequisite says so. Open views refresh when a blocked or progressed activity arrives for the plan, and the Inbox labels these cards "Epic issue blocked". Two screenshots (desktop and mobile) are attached as previews.

Docs and tests

  • Conventions: the routes are registered with OpenAPI docs and regenerated client types. docs/mcp.md, docs/mcp-coverage.md and the user-facing MCP feature page are updated, and the allowlist in mcpObservableSurface has the new words.
  • New tests: core tests cover what the issue asked for: one event per blocked state under repeated sweeps, a new event for a different blocker, resolution on clear, the cursor, skip in a chain and in a graph with both options, retry of every blocker kind, and refusals. Delivery tests use the real notification service. New MCP tests are in mcpEpicDispatch, and new UI tests sit next to the changed components.
  • Results: 260 tests pass across the core epic suites, the MCP, OpenAPI, route-authorization and notification-projection suites. The 87 root tests that touch the queue pass, as do all 49 Planner Studio UI test files.
  • Existing tests I edited: eight existing core epic suites and mcpIntegration now apply the new migration. Four summary assertions now expect the new executionId field.

Detailed Logs:

  • Conversation: 241 messages
  • Session: 2b23d39e-32a1-4fe4-95e1-645cbf759ddb

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3474-2026-11-13T02-51-15-517Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3474-2026-11-13T02-51-15-517Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I've implemented #3474. An issue that becomes blocked now records one durable event, raises an Inbox card and a realtime update, and a blocked or pending issue can be skipped or retried through REST, ...


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


💡 Need changes?

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


Visual preview

Blocked epic issue in Planner Studio (desktop)

Blocked epic issue in Planner Studio (desktop)

A graph execution in Planner Studio: issue #2798 shows its blocker kind and reason with Retry, Skip and 'Skip and start #2799' (release its dependent); queued issues offer Skip.

Connect sign-in required. Original retained until 2027-02-11T02:51:20.667Z.

View the full-resolution original in ProPR Connect

Blocked epic issue in Planner Studio (mobile)

Blocked epic issue in Planner Studio (mobile)

The same blocked issue notice and queue controls at a 390px mobile width.

Connect sign-in required. Original retained until 2027-02-11T02:51:21.745Z.

View the full-resolution original in ProPR Connect

… durable event, raises an Inbox card and a realtime update, and a blocked or pending issue can be skipped or retried through REST, MCP and Planner Studio. Every suite I ran passes, and typecheck, zero-warning lint and the OpenAPI check are clean.

Blocked events
- A new migration adds an `epic_queue_blocked_events` table. Every queue write that blocks or clears an issue now records the change in the same transaction as the guarded state write, so it doesn't matter which process made it.
- Blocking an issue with the same kind and reason again records nothing and keeps the original blocked time. A different blocker on the same issue first records the old one as resolved (`replaced`), then records the new one. Clearing records how it ended: `cleared`, `retried`, `skipped` or `settled`.
- After commit, each event is published as plan-domain realtime activity (`blocked`, or `progressed` for a resolution). Each new blocker also raises one `plan` Inbox card for the plan owner and the instance members, and that card is deduplicated per blocked state. An agent-reported blocker raises no plan card, so its existing task notification stays the only one. If a process crashes after commit but before delivery, the recovery sweep delivers the missed event.
- Clients can read an execution's events with a cursor through `GET …/execution-queue/blocked-events` and the MCP tool `list_plan_blocked_events`.

Skip and retry (`POST …/issues/:n/skip` and `…/retry`; MCP tools `skip_plan_issue` and `retry_plan_issue`)
- Both actions require the `executionId` (now included in the queue summary) and accept an optional `expectedState`. Both are idempotent: repeating one answers `already_skipped` or `already_retried`. They're refused with a clear code for a stale execution (`STALE_EXECUTION`), an issue in flight (`IN_FLIGHT`, which includes a pending issue someone started by hand) or one that's already done (`ALREADY_DONE`).
- Skip: a chain moves on to the next issue. In a graph, issues that depend on the skipped one stay waiting and list it in `waitingOnSkipped`. They start only after a skip with `satisfiesDependents: true`, and skipping again with that option releases them. Skip never closes or edits the GitHub issue.
- Retry: the blocker is cleared and the issue goes back through the queue's normal dispatch.
  - A failed dispatch is redispatched immediately.
  - An agent-reported blocker puts the plan issue back to pending, then dispatches it.
  - An issue closed without merge is reopened on GitHub first.
  - A missing issue is checked again, and blocks again if it is still missing.
  - A wait for a human merge and a label handoff keep their claim and are re-evaluated rather than re-run.
  - An issue still in setup is refused with `NOT_RETRYABLE`, because setup recovery handles it.
  - Retry doesn't go through `implement_plan`, so an issue started through MCP can be retried even though its implementation receipt is still there.

Changes you might not expect
- Skipped issues needed two scheduler fixes: a skipped parallel child is no longer treated as reopened, and a parallel execution can now complete while one of its issues is skipped.
- Skipping doesn't finish the epic PR on its own. Its final label is only added once every plan issue has finished, and a skipped issue stays pending in the plan, so that labeling stays owed until it's done.

Planner Studio: a blocked row shows the blocker kind and reason with Retry and Skip buttons. In a graph it also offers "Skip and start #N". Queued rows get a Skip control, and an issue waiting on a skipped prerequisite says so. Open views refresh when a `blocked` or `progressed` activity arrives for the plan, and the Inbox labels these cards "Epic issue blocked". Two screenshots (desktop and mobile) are attached as previews.

Docs and tests
- Conventions: the routes are registered with OpenAPI docs and regenerated client types. `docs/mcp.md`, `docs/mcp-coverage.md` and the user-facing MCP feature page are updated, and the allowlist in `mcpObservableSurface` has the new words.
- New tests: core tests cover what the issue asked for: one event per blocked state under repeated sweeps, a new event for a different blocker, resolution on clear, the cursor, skip in a chain and in a graph with both options, retry of every blocker kind, and refusals. Delivery tests use the real notification service. New MCP tests are in `mcpEpicDispatch`, and new UI tests sit next to the changed components.
- Results: 260 tests pass across the core epic suites, the MCP, OpenAPI, route-authorization and notification-projection suites. The 87 root tests that touch the queue pass, as do all 49 Planner Studio UI test files.
- Existing tests I edited: eight existing core epic suites and `mcpIntegration` now apply the new migration. Four summary assertions now expect the new `executionId` field.
@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

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

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

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

Copy link
Copy Markdown
Contributor Author

⏳ Ultrafix is waiting for CI before the next /review.

These blocking checks on 50b8f44 are holding the loop back:

  • Full Test Suite Native Electron (hosted) — not finished
  • Validate Docs Site — not finished
  • CLI Node Compatibility Guard — not finished
  • Windows Connect Discovery (ordinary user, Node 22) — not finished
  • Connect Discovery and Darwin ACL (Node 22) — not finished

Checks matching this repository's non-blocking checks never gate Ultrafix. The loop continues automatically once the blocking checks pass; if they have not settled within 2 hours, Ultrafix stops.

@propr-dev

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

Copy link
Copy Markdown
Contributor Author

CI failed: Validate unsigned linux-arm64 package

Please investigate and fix this CI failure.

  • Check: Validate unsigned linux-arm64 package
  • Result: failure
  • Commit: 50b8f44d51ee (50b8f44d51ee0c571a2cd55729cbb45df3e6f0bd)
  • Details: View CI failure

Failure evidence

.github:176
Process completed with exit code 1.

@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Validate unsigned linux-x64 package

Please investigate and fix this CI failure.

  • Check: Validate unsigned linux-x64 package
  • Result: failure
  • Commit: 50b8f44d51ee (50b8f44d51ee0c571a2cd55729cbb45df3e6f0bd)
  • Details: View CI failure

Failure evidence

.github:209
Process completed with exit code 1.

@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Validate unsigned darwin-arm64 package

Please investigate and fix this CI failure.

  • Check: Validate unsigned darwin-arm64 package
  • Result: failure
  • Commit: 50b8f44d51ee (50b8f44d51ee0c571a2cd55729cbb45df3e6f0bd)
  • Details: View CI failure

Failure evidence

.github:176
Process completed with exit code 1.

.github:1
Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.

@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Validate unsigned darwin-x64 package

Please investigate and fix this CI failure.

  • Check: Validate unsigned darwin-x64 package
  • Result: failure
  • Commit: 50b8f44d51ee (50b8f44d51ee0c571a2cd55729cbb45df3e6f0bd)
  • Details: View CI failure

Failure evidence

.github:176
Process completed with exit code 1.

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c62758f

Processed 2 comments:

Summary of Changes

I fixed both failures. Neither came from this PR's code. In both jobs, the "Audit committed dependency resolution" step failed because new security advisories were published against dependencies the branch already used. Main has the same old versions, so other branches will hit the same failure.

Cause: scripts/audit-dependencies.mjs (audit:runtime) reported blocking advisories against:

Fix: two version bumps, with no new audit exceptions:

  • In package.json, I raised the pinned overrides.hono from 4.13.12 to 4.13.18.
  • In package-lock.json, hono is now 4.13.18 and @hono/node-server is now 2.1.8. Those are the only two entries that changed. I made the lock edits with npm 11.

Checks:

  • npm run audit:runtime and npm run desktop:audit:packaging both pass.
  • Running npm install --package-lock-only with npm 10 (the version CI uses) leaves the lock unchanged.
  • npm ci --dry-run succeeds.

This change has nothing visible to show, so I made no previews.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 4m 49s
  • Tokens: 568,491 (565,814 in / 2,677 out)
  • Cost: $0.37
  • 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 IDs: 6842390332✓, 6842391444✓

@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Finalize unsigned validation checksums

Please investigate and fix this CI failure.

  • Check: Finalize unsigned validation checksums
  • Result: failure
  • Commit: 50b8f44d51ee (50b8f44d51ee0c571a2cd55729cbb45df3e6f0bd)
  • Details: View CI failure

Failure evidence

.github:42
Process completed with exit code 1.

.github:41
Unsigned packaging matrix finished with result 'failure'.

.github:1
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see actions/runner-images#14748"

… both jobs, the "Audit committed dependency resolution" step failed because new security advisories were published against dependencies the branch already used. Main has the same old versions, so other branches will hit the same failure.

I fixed both failures. Neither came from this PR's code. In both jobs, the "Audit committed dependency resolution" step failed because new security advisories were published against dependencies the branch already used. Main has the same old versions, so other branches will hit the same failure.

**Cause:** `scripts/audit-dependencies.mjs` (`audit:runtime`) reported blocking advisories against:
- `hono` 4.13.12: GHSA-3gg2-335m-rxc6, GHSA-46wx-v44x-9hh2 and GHSA-4h7h-rv7c-7m2v, among others. All are fixed in 4.13.16 or later.
- `@hono/node-server` 2.1.5: GHSA-qv5m-9pm6-hqp3 and GHSA-jpvv-r467-5p4w, fixed in 2.1.6. The CI log only named `hono`. This one showed up when I re-ran the audit after the `hono` bump.

**Fix:** two version bumps, with no new audit exceptions:
- In `package.json`, I raised the pinned `overrides.hono` from `4.13.12` to `4.13.18`.
- In `package-lock.json`, `hono` is now 4.13.18 and `@hono/node-server` is now 2.1.8. Those are the only two entries that changed. I made the lock edits with npm 11.

**Checks:**
- `npm run audit:runtime` and `npm run desktop:audit:packaging` both pass.
- Running `npm install --package-lock-only` with npm 10 (the version CI uses) leaves the lock unchanged.
- `npm ci --dry-run` succeeds.

This change has nothing visible to show, so I made no previews.

PR: #3518
Comment by: @propr-dev[bot] (ID: 6842390332)
Comment by: @propr-dev[bot] (ID: 6842391444)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Analysis Summary

I made no changes: these three failures are already fixed by the latest commit on the branch (c62758fec).

What failed: all three failures are from commit 50b8f44. I pulled the job details from the GitHub API, and both macOS jobs (darwin-arm64 and darwin-x64) failed at the same step, "Audit committed dependency resolution" (.github/workflows/desktop-release-guard.yml:264). The log ends with Blocking vulnerabilities: @hono/node-server, hono: these are newly published advisories against hono up to 4.13.15 and against @hono/node-server. "Finalize unsigned validation checksums" failed only because the packaging matrix it waits on failed ("Unsigned packaging matrix finished with result 'failure'"). It didn't fail on its own.

Why it's already fixed: this is the same audit failure the previous follow-up dealt with. That commit moved the lockfile to hono 4.13.18 and @hono/node-server 2.1.8, but CI hadn't run on it when these jobs ran. None of these failures comes from this PR's own code.

Check on the current branch: I ran the step's own two commands, and both pass: npm run audit:runtime reports "runtime dependency audit passed" and npm run desktop:audit:packaging reports "packaging dependency audit passed".

The macOS and finalize jobs should pass once CI runs on c62758fec. I couldn't run the macOS packaging steps after the audit in this Linux container. There's nothing visible to show, so I made no previews.

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


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 4m 38s
  • Tokens: 338,521 (336,899 in / 1,622 out)
  • Cost: $0.29

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: 6842391815✓, 6842392162✓, 6842393713✓

@github-actions

Copy link
Copy Markdown

Checks Failed

Validation failed during setup, tests, CLI packaging, linting, or build checks.

View Logs
Build check diagnostics for run 43355843533, attempt 2
Checkout outcome: success

--- GitHub Actions workflow lint ---
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667: Pulling from rhysd/actionlint
589002ba0eae: Pulling fs layer
c09af8888d6a: Pulling fs layer
4ccd7d76ca98: Pulling fs layer
b6b4b7b0e257: Pulling fs layer
b6b4b7b0e257: Waiting
589002ba0eae: Download complete
c09af8888d6a: Verifying Checksum
c09af8888d6a: Download complete
4ccd7d76ca98: Verifying Checksum
4ccd7d76ca98: Download complete
589002ba0eae: Pull complete
b6b4b7b0e257: Verifying Checksum
b6b4b7b0e257: Download complete
c09af8888d6a: Pull complete
4ccd7d76ca98: Pull complete
b6b4b7b0e257: Pull complete
Digest: sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
Status: Downloaded newer image for rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667

--- Release shell script lint ---

--- Toolchain ---
v22.23.4
10.9.9

--- Dependency installation ---
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]

added 1111 packages, and audited 1120 packages in 52s

317 packages are looking for funding
  run `npm fund` for details

8 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

--- CLI release package ---
Verifying propr-cli release package...

> [email protected] cli:pack
> node packages/cli/scripts/build-publish.mjs


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc && node scripts/copy-assets.mjs

copy-assets: copied 9 file(s) into the CLI package.

Staged [email protected] at /home/runner/work/propr/propr/dist-publish/propr-cli
npm notice
npm notice 📦  [email protected]
npm notice Tarball Contents
npm notice 26.7kB README.md
npm notice 36.3kB dist/agentSkill.js
npm notice 754B dist/api/agentRuntime.js
npm notice 7.1kB dist/api/agents.js
npm notice 2.6kB dist/api/agentTank.js
npm notice 4.0kB dist/api/automations.js
npm notice 11.7kB dist/api/client.js
npm notice 5.0kB dist/api/errors.js
npm notice 1.6kB dist/api/followupHandoffs.js
npm notice 16.9kB dist/api/goals.js
npm notice 6.0kB dist/api/implement.js
npm notice 2.6kB dist/api/index.js
npm notice 1.9kB dist/api/logs.js
npm notice 6.2kB dist/api/plans.js
npm notice 4.2kB dist/api/relay.js
npm notice 12.3kB dist/api/repos.js
npm notice 14.2kB dist/api/settings.js
npm notice 775B dist/api/stats.js
npm notice 1.6kB dist/api/syntheticPools.js
npm notice 1.8kB dist/api/system.js
npm notice 5.9kB dist/api/tasks.js
npm notice 2.9kB dist/api/todos.js
npm notice 86B dist/api/types.js
npm notice 313B dist/api/visualPreviewAuth.js
npm notice 32.3kB dist/assets/env.example.txt
npm notice 5.8kB dist/auth/githubLogin.js
npm notice 19.7kB dist/commands/agentCommands.js
npm notice 4.2kB dist/commands/agentPoolCommands.js
npm notice 4.3kB dist/commands/agentSkillCommands.js
npm notice 30.0kB dist/commands/agentValidation.js
npm notice 27.2kB dist/commands/automationCommands.js
npm notice 72.3kB dist/commands/checkCommands.js
npm notice 8.9kB dist/commands/configCommands.js
npm notice 14.6kB dist/commands/connectCommand.js
npm notice 5.5kB dist/commands/githubAppApi.js
npm notice 27.7kB dist/commands/githubAppCommands.js
npm notice 60.3kB dist/commands/goalCommands.js
npm notice 8.1kB dist/commands/handoffCommands.js
npm notice 2.4kB dist/commands/imageCommands.js
npm notice 8.0kB dist/commands/implementCommands.js
npm notice 1.8kB dist/commands/index.js
npm notice 8.3kB dist/commands/initCommands.js
npm notice 14.1kB dist/commands/initStack.js
npm notice 6.1kB dist/commands/logCommands.js
npm notice 24.9kB dist/commands/planCommands.js
npm notice 8.4kB dist/commands/relayCommands.js
npm notice 38.6kB dist/commands/repoCommands.js
npm notice 2.7kB dist/commands/repoValidate.js
npm notice 7.5kB dist/commands/runtimeCommands.js
npm notice 17.9kB dist/commands/settingCommands.js
npm notice 4.6kB dist/commands/setup/agentHostActions.js
npm notice 123B dist/commands/setup/agents.js
npm notice 4.7kB dist/commands/setup/engine.js
npm notice 51B dist/commands/setup/github.js
npm notice 37.3kB dist/commands/setup/hostActions.js
npm notice 3.2kB dist/commands/setup/imagePlatform.js
npm notice 27.3kB dist/commands/setup/sequential.js
npm notice 51B dist/commands/setup/state.js
npm notice 51B dist/commands/setup/types.js
npm notice 10.7kB dist/commands/setupCommand.js
npm notice 4.4kB dist/commands/stackCommands.js
npm notice 1.4kB dist/commands/startCommand.js
npm notice 3.7kB dist/commands/statsCommands.js
npm notice 13.5kB dist/commands/systemCommands.js
npm notice 3.5kB dist/commands/tankCommands.js
npm notice 46.3kB dist/commands/taskCommands.js
npm notice 29.7kB dist/commands/todoCommands.js
npm notice 31.0kB dist/commands/tunnelCommand.js
npm notice 2.7kB dist/commands/uiDocsCommands.js
npm notice 8.3kB dist/completion.js
npm notice 27.3kB dist/config/ConfigManager.js
npm notice 276B dist/config/index.js
npm notice 989B dist/config/rootKey.js
npm notice 345B dist/config/types.js
npm notice 46.0kB dist/connectIdentity.js
npm notice 25.0kB dist/connectRootAuthority.js
npm notice 32.5kB dist/connectWindowsAuthority.js
npm notice 2.2kB dist/desktopDiscovery.js
npm notice 13.3kB dist/desktopLocalSetup.js
npm notice 17.2kB dist/index.js
npm notice 4.5kB dist/native/darwin-authority-broker.c
npm notice 8.9kB dist/native/directory-operations.c
npm notice 50.1kB dist/native/prebuilds/darwin-arm64/connect-authority-broker
npm notice 54.2kB dist/native/prebuilds/darwin-arm64/directory-operations.node
npm notice 17.1kB dist/native/prebuilds/darwin-x64/connect-authority-broker
npm notice 24.3kB dist/native/prebuilds/darwin-x64/directory-operations.node
npm notice 28.9kB dist/native/prebuilds/linux-arm64/directory-operations.node
npm notice 17.4kB dist/native/prebuilds/linux-x64/directory-operations.node
npm notice 1.2kB dist/native/README.md
npm notice 3.1kB dist/orchestrator/format.js
npm notice 13.4kB dist/orchestrator/index.js
npm notice 302B dist/orchestrator/manifest.json
npm notice 131.2kB dist/orchestrator/orchestrator.mjs
npm notice 408B dist/orchestrator/types.js
npm notice 237B dist/skill/propr/agents/openai.yaml
npm notice 8.9kB dist/skill/propr/SKILL.md
npm notice 4.5kB dist/tui/AgentTableApp.js
npm notice 4.5kB dist/tui/app.js
npm notice 11.6kB dist/tui/CheckApp.js
npm notice 5.1kB dist/tui/render.js
npm notice 32.5kB dist/tui/SetupApp.js
npm notice 18.4kB dist/tui/SetupApp.test.js
npm notice 8.2kB dist/tui/StartApp.js
npm notice 3.6kB dist/utils/apiErrorPresentation.js
npm notice 12.0kB dist/utils/directoryDescriptor.js
npm notice 739B dist/utils/dockerPort.js
npm notice 5.0kB dist/utils/envFile.js
npm notice 520B dist/utils/index.js
npm notice 5.7kB dist/utils/io.js
npm notice 717B dist/utils/localSetupPlatform.js
npm notice 1.5kB dist/utils/nativeArtifact.js
npm notice 544B dist/utils/parseState.js
npm notice 417B dist/utils/positiveInteger.js
npm notice 4.5kB dist/utils/privateFilesystem.js
npm notice 4.2kB dist/utils/resolveProject.js
npm notice 7.2kB dist/vendor/local-setup/agents.js
npm notice 64.5kB dist/vendor/local-setup/engine.js
npm notice 5.0kB dist/vendor/local-setup/envFile.js
npm notice 11.4kB dist/vendor/local-setup/github.js
npm notice 188B dist/vendor/local-setup/index.js
npm notice 27.5kB dist/vendor/local-setup/publicInstanceIdentity.js
npm notice 14.6kB dist/vendor/local-setup/state.js
npm notice 2.8kB dist/vendor/local-setup/types.js
npm notice 1.0kB dist/vendor/shared/accountStatusTimestamp.js
npm notice 7.6kB dist/vendor/shared/activityEvents.js
npm notice 2.8kB dist/vendor/shared/agentConfigRedaction.js
npm notice 4.4kB dist/vendor/shared/agentDefinitions.js
npm notice 2.3kB dist/vendor/shared/agentFailureLine.js
npm notice 3.4kB dist/vendor/shared/agentLogin.js
npm notice 3.1kB dist/vendor/shared/agentTank.js
npm notice 1.2kB dist/vendor/shared/agentTankHistory.js
npm notice 2.8kB dist/vendor/shared/analyticsTimeframe.js
npm notice 4.4kB dist/vendor/shared/antigravityCompatibility.js
npm notice 5.1kB dist/vendor/shared/apiOrigin.js
npm notice 3.5kB dist/vendor/shared/assignment.js
npm notice 9.4kB dist/vendor/shared/automationDefinitions.js
npm notice 8.5kB dist/vendor/shared/connectDiscovery.js
npm notice 9.6kB dist/vendor/shared/cronSchedule.js
npm notice 254B dist/vendor/shared/demoMode.js
npm notice 4.3kB dist/vendor/shared/desktopPairing.js
npm notice 481B dist/vendor/shared/desktopTokenRevocation.js
npm notice 8.9kB dist/vendor/shared/events.js
npm notice 3.1kB dist/vendor/shared/extensionProfiles.js
npm notice 2.7kB dist/vendor/shared/fleetData.js
npm notice 2.5kB dist/vendor/shared/githubAppManifest.js
npm notice 1.6kB dist/vendor/shared/githubAuthMode.js
npm notice 2.0kB dist/vendor/shared/githubEventIntakeMode.js
npm notice 11.6kB dist/vendor/shared/goalBlockers.js
npm notice 6.0kB dist/vendor/shared/goalCheckpoints.js
npm notice 4.0kB dist/vendor/shared/goalCreation.js
npm notice 4.8kB dist/vendor/shared/goalWait.js
npm notice 13.2kB dist/vendor/shared/index.js
npm notice 214B dist/vendor/shared/instanceAuthorization.js
npm notice 54B dist/vendor/shared/instanceCatalog.js
npm notice 584B dist/vendor/shared/instanceStorage.js
npm notice 4.0kB dist/vendor/shared/intakeModePrerequisites.js
npm notice 2.9kB dist/vendor/shared/labelUtils.js
npm notice 17.5kB dist/vendor/shared/modelDefinitions.js
npm notice 3.5kB dist/vendor/shared/notificationLinks.js
npm notice 51.3kB dist/vendor/shared/notifications.js
npm notice 2.7kB dist/vendor/shared/openCodeCompatibility.js
npm notice 14.7kB dist/vendor/shared/planItemGraph.js
npm notice 7.5kB dist/vendor/shared/previewStorage/v1.js
npm notice 866B dist/vendor/shared/projectSlug.js
npm notice 3.8kB dist/vendor/shared/proprCompatibility.js
npm notice 13.0kB dist/vendor/shared/proprServiceUrls.js
npm notice 16.6kB dist/vendor/shared/prTemplate.js
npm notice 2.2kB dist/vendor/shared/publishedVisualPreviews.js
npm notice 2.5kB dist/vendor/shared/reasoningLevels.js
npm notice 1.2kB dist/vendor/shared/repositoryIcon.js
npm notice 1.4kB dist/vendor/shared/repositoryIconUrl.js
npm notice 3.9kB dist/vendor/shared/repositoryPresentation.js
npm notice 9.5kB dist/vendor/shared/reviewContextBudget.js
npm notice 5.8kB dist/vendor/shared/reviewFeedbackIds.js
npm notice 1.7kB dist/vendor/shared/reviewPrompt.js
npm notice 907B dist/vendor/shared/runCostCap.js
npm notice 861B dist/vendor/shared/sessionSecret.js
npm notice 392B dist/vendor/shared/sqliteTimestamp.js
npm notice 603B dist/vendor/shared/statusKeys.js
npm notice 7.5kB dist/vendor/shared/syntheticAgents.js
npm notice 2.2kB dist/vendor/shared/taskIdentifiers.js
npm notice 2.0kB dist/vendor/shared/taskLifecycle.js
npm notice 733B dist/vendor/shared/taskReplacement.js
npm notice 957B dist/vendor/shared/text.js
npm notice 9.8kB dist/vendor/shared/usageTips.catalog.json
npm notice 5.0kB dist/vendor/shared/usageTips.js
npm notice 335B dist/vendor/shared/usageTypes.js
npm notice 1.1kB dist/vendor/shared/userWhitelist.js
npm notice 758B dist/vendor/shared/validateRelayUrl.js
npm notice 2.2kB dist/vendor/shared/validateRoutingUrl.js
npm notice 7.1kB dist/vendor/shared/visualPreviewCapacity.js
npm notice 9.3kB dist/vendor/shared/voice.js
npm notice 222B dist/vendor/shared/workEvidence.js
npm notice 675B package.json
npm notice Tarball Details
npm notice name: propr-cli
npm notice version: 0.9.1
npm notice filename: propr-cli-0.9.1.tgz
npm notice package size: 489.4 kB
npm notice unpacked size: 2.0 MB
npm notice shasum: 35bb0bae05da7303a6fd1628ff9a96abb802e28a
npm notice integrity: sha512-bbiTFxFET+U7R[...]mZdpHl6cSROQg==
npm notice total files: 194
npm notice
propr-cli-0.9.1.tgz

Dry run only. Re-run with --publish to publish to npm.
✅ propr-cli release package verified
Starting changed-area validation process...
Reusing this job's @propr/shared build from CLI packaging.
Reusing this job's @propr/local-setup build from CLI packaging.

--- Core Service: Lint & Build ---
✅ Core Lint passed
✅ Core Source Build passed

--- UI: Typecheck, Lint & Build ---
✅ Client Package validation passed
✅ UI Typecheck passed
❌ UI Lint FAILED

> [email protected] lint
> eslint . --max-warnings 0


/home/runner/work/propr/propr/propr-ui/src/components/TaskPlanner/PlanIssueRow.tsx
  84:4  warning  Arrow function has a complexity of 22. Maximum allowed is 20  complexity

✖ 1 problem (0 errors, 1 warning)

ESLint found too many warnings (maximum: 0).
npm error Lifecycle script `lint` failed with error:
npm error code 1
npm error path /home/runner/work/propr/propr/propr-ui
npm error workspace [email protected]
npm error location /home/runner/work/propr/propr/propr-ui
npm error command failed
npm error command sh -c eslint . --max-warnings 0

--- Docs: Typecheck & Build ---
✅ Docs Typecheck passed
✅ Docs Build passed
✅ Docs Static Serving Check passed

--- Core Package: Build & Lint ---
✅ Core Package Build passed
✅ Core Package Lint passed

--- CLI: Lint ---
✅ CLI Lint passed

--- API: Build & Lint ---
✅ API Build passed
✅ API Lint passed

--- API Reference: OpenAPI Spec & Client Contract ---
✅ OpenAPI spec is current and valid
✅ @propr/client matches the OpenAPI spec

--- Stage outcomes ---
Workflow lint: success
Release shell lint: success
Pre-setup gate: skipped
Node setup: success
Toolchain: success
Dependency install: success
Release metadata: success
CLI packaging: success
Change detection: success
Changed-area checks: failure

View Workflow

@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Validate Changes

Please investigate and fix this CI failure.

Failure evidence

.github:8
Process completed with exit code 1.

.github:415
Process completed with exit code 1.

propr-ui/e2e/creation-short-window.pw.ts:0 — Slow Test
propr-ui/e2e/creation-short-window.pw.ts took 10.1m

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 08db0ab

Processed 2 comments:

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

Summary of Changes

I fixed the UI Lint failure, which was the step that failed "Validate Changes". ESLint flagged the PlanIssueRow render function in propr-ui/src/components/TaskPlanner/PlanIssueRow.tsx at complexity 22, over the limit of 20. The queueState && onQueueAction && … guard this PR added was enough to push it over.

The fix: I moved that guard into a small RowQueueNotice component in the same file. It renders PlanIssueQueueNotice only when the row has both a queue state and an action handler, which is what the inline check did, so behaviour is the same.

Checks:

  • npm run lint in propr-ui (zero-warning ESLint) now passes.
  • tsc --noEmit is clean.
  • The 6 PlanIssue* test files (48 tests) pass.

The "Slow Test" note on creation-short-window.pw.ts (10.1 minutes) was only a timing annotation; that test didn't fail, so I left it alone. Nothing changed on screen, so I didn't make new preview images.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @github-actions[bot], @propr-dev[bot]
  • Time: 4m 6s
  • Tokens: 334,388 (332,432 in / 1,956 out)
  • Cost: $0.33

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: 6843464620✓, 6843464997✓

… "Validate Changes". ESLint flagged the `PlanIssueRow` render function in `propr-ui/src/components/TaskPlanner/PlanIssueRow.tsx` at complexity 22, over the limit of 20. The `queueState && onQueueAction && …` guard this PR added was enough to push it over.

I fixed the UI Lint failure, which was the step that failed "Validate Changes". ESLint flagged the `PlanIssueRow` render function in `propr-ui/src/components/TaskPlanner/PlanIssueRow.tsx` at complexity 22, over the limit of 20. The `queueState && onQueueAction && …` guard this PR added was enough to push it over.

**The fix:** I moved that guard into a small `RowQueueNotice` component in the same file. It renders `PlanIssueQueueNotice` only when the row has both a queue state and an action handler, which is what the inline check did, so behaviour is the same.

**Checks:**
- `npm run lint` in `propr-ui` (zero-warning ESLint) now passes.
- `tsc --noEmit` is clean.
- The 6 `PlanIssue*` test files (48 tests) pass.

The "Slow Test" note on `creation-short-window.pw.ts` (10.1 minutes) was only a timing annotation; that test didn't fail, so I left it alone. Nothing changed on screen, so I didn't make new preview images.

PR: #3518
Comment by: @github-actions[bot] (ID: 6843464620)
Comment by: @propr-dev[bot] (ID: 6843464997)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds durable blocker history, queue actions, and Planner Studio controls across REST and MCP. It needs changes before merge because parallel retry recovery and realtime delivery have gaps.

✅ Transactional event recording — Guarded queue writes and their blocker transitions share a transaction, including replacement and resolution events.

✅ Consistent operator surfaces — REST, MCP, generated contracts, and UI controls expose the new actions with execution identity and state checks.

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

Merge blockers

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

F1: 🔴 Paused parallel retries lose their dispatch

  • Required behavior: Retrying a blocked issue must dispatch it under normal guards; pausing must defer that dispatch until execution resumes.

  • Evidence: packages/core/src/services/taskPlanning/epicQueueActions.ts:retryEpicQueueIssue; packages/core/src/services/taskPlanning/epicExecutionQueue.ts:dispatchEpicQueueIssue

    1. A parallel execution has an agent_blocked child and its plan is paused.
    2. Retry commits the child as pending, clears its dispatch claim, and resets its plan status to pending.
    3. The parallel retry branch calls dispatchEpicQueueIssue, which returns immediately because the draft is paused.
    4. The action returns retried, but the parallel execution has no scheduler pass that starts pending issues—the new dispatch helper explicitly documents this distinction. Its completion reconciliation checks terminal children rather than dispatching this pending child.
    5. After resume, the child remains pending without a dispatch. Repeating Retry returns already_retried because its latest event is the committed retry resolution.

    The transaction preserves the state change but does not preserve a recoverable dispatch obligation. The same gap exists if the process stops after committing the reset and before the one-time parallel dispatch. static trace: the new parallel retry branch, pause guard, idempotent-return branch, and parallel completion changes. No regression test was executed.

  • Minimum fix: Make pending parallel retries recoverable through resume and reconciliation, using the existing guarded dispatch operation. Preserve enough durable state to distinguish retry work if necessary.

F2: 🔴 Delivery acknowledgment precedes realtime publication

  • Required behavior: The durable outbox must allow recovery to deliver events missed when a process crashes after commit.

  • Evidence: packages/core/src/services/taskPlanning/epicQueueBlockedNotify.ts:deliverEpicQueueBlockedEvents; packages/core/src/services/taskPlanning/epicQueueBlockedEvents.ts:undeliveredBlockedEventIds

    1. A blocker transition commits with notified_at = null.
    2. Delivery persists its Inbox notification and then commits a non-null notified_at.
    3. The process stops between that awaited update and publish(event, draft).
    4. Recovery selects only rows whose notified_at is null, so this event never publishes its realtime activity. An open Planner Studio view misses the refresh promised by this feature.

    Notification deduplication protects the Inbox card, but the delivery marker incorrectly certifies publication before publication occurs. Additionally, publish catches exceptions and ignores the publisher’s boolean result, so failed publication also leaves the event permanently acknowledged. static trace: delivery ordering, publication error handling, and the recovery query; no crash test was executed.

  • Minimum fix: Acknowledge delivery only after successful realtime publication, retaining unsuccessful events for recovery. Use the existing Inbox deduplication when replaying delivery, or track notification and realtime delivery separately.

Suggestions

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

No suggestions.

Score

The implementation has substantial coverage and coherent API/UI integration, but two recovery defects remain in the new behavior. Current checks have no reported failures, with validation still pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 58s
  • Tokens: 95,836 (94,453 in / 1,383 out)
  • Cost: $0.90

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 F2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c3fc711

Addressed 1 AI review comment (IDs: 6843852901)

Addressed findings F1, F2

Summary of Changes

I fixed F1 and F2. The new regression tests fail on the previous code and pass now. All 119 core epic tests pass, as do the 78 MCP dispatch tests and the 12 root tests that touch the queue. Typecheck and zero-warning lint are clean.

F1 – a retry of a parallel issue was lost if the plan was paused

  • Cause: the retry tried to start the issue once, right away. A paused plan skipped that attempt, and nothing tried again later.
  • Fix: the parallel queue's own pass now starts any issue that is owed a retry. That pass already runs on resume, in the recovery sweep and whenever a child issue changes status, so a pause or a crash after the retry commits now only delays the start. It uses the existing guarded dispatch, so a paused plan still holds the issue and the claim prevents a double start.
  • How it tells retried issues apart: an issue counts as owed a retry in two cases. Either it's pending in both the queue and the plan, which in a parallel execution only a retry can cause, or its latest event is the retry and its plan status is still pending. The second case covers a crash after the claim but before the issue was labelled; like a chain's head, it is started again after 15 minutes.
  • Scope: issues started when the execution was created are never re-dispatched by this.
  • Changes: the retry action now just calls startEpicQueueHead for every mode, so I removed dispatchEpicQueueIssue, which nothing else used. The new logic is in epicQueueParallelRetry.ts because epicExecutionQueue.ts would otherwise go over the 400-line lint limit.

F2 – an event was marked delivered before it was published

  • Fix: in epicQueueBlockedNotify.ts, notified_at is now set only after the Inbox card is stored and the publisher reports success. Before, a thrown error or a false result was ignored.
  • Recovery: an event that wasn't published stays unmarked, and the sweep delivers it again. The replay adds no second Inbox card, because the card's deduplication key makes the insert a no-op.
  • One trade-off: while Redis is down, each sweep retries up to 100 events and repeats those no-op card writes until publishing works again.

New tests

  • epicQueueBlockedEvents.test.ts:
    • A retry while paused stays pending and returns already_retried if repeated. Neither a sweep nor a sibling issue finishing starts it while paused. Resume starts it exactly once.
    • A retry committed before a crash is started by the sweep.
    • A retried issue whose claim was taken but never labelled is started again only after 15 minutes. An initial child is not.
  • epicQueueBlockedNotify.test.ts:
    • Events whose publish returns false or throws stay undelivered, and that covers resolution events too.
    • Recovery then publishes one update, keeps one card per user, and marks the event delivered.

Something I found but didn't change: a child that started with the parallel execution has the same weak spot. If the process stops after its claim but before it's labelled, nothing recovers it. That existed before this PR and wasn't in F1, so I left it alone.

To run these suites locally, set PROPR_DEMO_MODE=true. Without it, the GitHub-auth check makes the files exit early.

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


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 9m 31s
  • Tokens: 2,853,826 (2,833,867 in / 19,959 out)
  • Cost: $1.44

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

…vious code and pass now. All 119 core epic tests pass, as do the 78 MCP dispatch tests and the 12 root tests that touch the queue. Typecheck and zero-warning lint are clean.

I fixed F1 and F2. The new regression tests fail on the previous code and pass now. All 119 core epic tests pass, as do the 78 MCP dispatch tests and the 12 root tests that touch the queue. Typecheck and zero-warning lint are clean.

**F1 – a retry of a parallel issue was lost if the plan was paused**
- **Cause:** the retry tried to start the issue once, right away. A paused plan skipped that attempt, and nothing tried again later.
- **Fix:** the parallel queue's own pass now starts any issue that is owed a retry. That pass already runs on resume, in the recovery sweep and whenever a child issue changes status, so a pause or a crash after the retry commits now only delays the start. It uses the existing guarded dispatch, so a paused plan still holds the issue and the claim prevents a double start.
- **How it tells retried issues apart:** an issue counts as owed a retry in two cases. Either it's pending in both the queue and the plan, which in a parallel execution only a retry can cause, or its latest event is the retry and its plan status is still pending. The second case covers a crash after the claim but before the issue was labelled; like a chain's head, it is started again after 15 minutes.
- **Scope:** issues started when the execution was created are never re-dispatched by this.
- **Changes:** the retry action now just calls `startEpicQueueHead` for every mode, so I removed `dispatchEpicQueueIssue`, which nothing else used. The new logic is in `epicQueueParallelRetry.ts` because `epicExecutionQueue.ts` would otherwise go over the 400-line lint limit.

**F2 – an event was marked delivered before it was published**
- **Fix:** in `epicQueueBlockedNotify.ts`, `notified_at` is now set only after the Inbox card is stored and the publisher reports success. Before, a thrown error or a `false` result was ignored.
- **Recovery:** an event that wasn't published stays unmarked, and the sweep delivers it again. The replay adds no second Inbox card, because the card's deduplication key makes the insert a no-op.
- **One trade-off:** while Redis is down, each sweep retries up to 100 events and repeats those no-op card writes until publishing works again.

**New tests**
- `epicQueueBlockedEvents.test.ts`:
  - A retry while paused stays pending and returns `already_retried` if repeated. Neither a sweep nor a sibling issue finishing starts it while paused. Resume starts it exactly once.
  - A retry committed before a crash is started by the sweep.
  - A retried issue whose claim was taken but never labelled is started again only after 15 minutes. An initial child is not.
- `epicQueueBlockedNotify.test.ts`:
  - Events whose publish returns `false` or throws stay undelivered, and that covers resolution events too.
  - Recovery then publishes one update, keeps one card per user, and marks the event delivered.

**Something I found but didn't change:** a child that started with the parallel execution has the same weak spot. If the process stops after its claim but before it's labelled, nothing recovers it. That existed before this PR and wasn't in F1, so I left it alone.

To run these suites locally, set `PROPR_DEMO_MODE=true`. Without it, the GitHub-auth check makes the files exit early.

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

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

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

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds durable blocker events, delivery recovery, and skip/retry controls across REST, MCP, and Planner Studio. It needs changes before merge because action guards permit incorrect state transitions and external effects.

✅ Transactional event recording — Guarded queue writes and their blocker events commit together, with repeated identical blockers preserving their original timestamp.

✅ Recoverable delivery — Events remain unacknowledged until notification storage and realtime publication succeed; notification deduplication protects delivery replay.

Review was static; no commands were run. Current checks report no failures, with three still pending.

Merge blockers

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

F3: 🔴 Prevent skipping already-merged prerequisites

  • Required behavior: Skip must not turn completed work into an unsatisfied graph prerequisite or strand its dependents.

  • Evidence: packages/core/src/services/taskPlanning/epicQueueActions.ts:108–118, skipEpicQueueIssue; packages/core/src/services/taskPlanning/epicQueueSchedule.ts, satisfiesPrerequisite.

    1. A graph prerequisite still has a pending queue row when its plan issue becomes merged, before queue reconciliation records it as done.
    2. Skip reads that pending row. runsWithoutClaim explicitly excludes merged, so it does not refuse the action.
    3. The transactional update also excludes merged from its rejection predicate, allowing the row to become skipped with skip_satisfies_dependents=false.
    4. Its dependents now wait on the skipped prerequisite despite its merge. Subsequent markQueueIssueDone calls exclude settled states, including skipped, so normal settlement cannot repair it.

    The queue-state comparison protects against another queue write, but does not check the completed plan status. The status update and queue advancement are separate operations, as illustrated by the supplied finish fixture. static trace: the action predicates, prerequisite evaluation, and settlement guards establish this sequence; it was not executed.

  • Minimum fix: Reject an already-merged plan issue in both the initial validation and the transactional skip predicate, returning ALREADY_DONE. Add a regression with a merged plan issue whose queue row has not yet settled.

F4: 🔴 Fence reopening before retry side effects

  • Required behavior: A retry that loses authority to a competing skip must not reopen the GitHub issue and then report that the action was refused.

  • Evidence: packages/core/src/services/taskPlanning/epicQueueActions.ts:159–176, retryEpicQueueIssue.

    1. Retry locates an active occurrence blocked as closed_unmerged.
    2. While retry awaits the separate plan_issues read, another request skips that occurrence and commits. Keep another issue in the execution pending so the execution remains active.
    3. The plan read still returns closed, because skip intentionally leaves the plan issue unchanged.
    4. Retry calls reopenGithubIssue, reopening the skipped issue externally.
    5. Only afterward does its guarded queue update discover state='skipped' and return STATE_CHANGED.

    No transaction or action reservation covers the interval before the GitHub request. The later compare-and-set prevents the queue mutation but cannot undo the reopening. static trace: this follows directly from the ordering of locate, the awaited plan read, the external request, and the guarded write; it was not executed.

  • Minimum fix: Acquire a guarded, recoverable retry reservation before reopening, and make competing queue actions respect it. Preserve recovery when reopening fails or the process stops; the demonstrated local race should be closed without claiming atomicity with GitHub.

Suggestions

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

S1: 🟢 Keep read-only blocker notices visible

RowQueueNotice returns nothing when onAction is absent, while rowProps deliberately omits that callback for read-only plans. Consider rendering the blocker explanation independently of action availability. This would improve visibility for read-only views without granting mutation access; it is optional because their presentation requirements are not explicit.

Score

The implementation has substantial coverage and sound event-delivery foundations, but two action correctness defects remain. Pending checks do not account for this deduction.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 38s
  • Tokens: 98,525 (96,288 in / 2,237 out)
  • Cost: $0.97

View Task


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

Copy and edit to choose records from this review:

/fix F3 F4 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 8c1660c

Addressed 1 AI review comment (IDs: 6844361509)

Addressed findings F3, F4

Summary of Changes

I fixed both F3 and F4 in packages/core/src/services/taskPlanning/epicQueueActions.ts and added four regression tests. All four fail on the previous code and pass now.

F3: skip no longer accepts an issue that already merged

  • Skip now checks whether the plan issue is merged, for pending and blocked rows alike, and refuses with ALREADY_DONE. The check happens twice: once before the write, and again inside the transactional skip update, so a merge landing between the two is also caught.
  • If the guarded write changes nothing and the issue has merged by then, skip also reports ALREADY_DONE rather than STATE_CHANGED.
  • The merge is still settled normally afterwards, so the dependents start.
  • The same check covers a blocked row (for example one waiting for a human merge) whose plan issue merged. That case was the same defect, so it's included.

F4: retry reserves the issue before reopening it on GitHub

  • I added a retry_reserved_at column to this PR's existing migration (20261113000000_add_epic_queue_blocked_events.js) rather than a new migration file.
  • When retrying an issue closed without merge, retry first sets the reservation with a guarded write on the exact blocked row it read. Only after that does it read the plan status and call the GitHub reopen. The final write that clears the blocker requires that same reservation and removes it.
  • Competing actions: while a reservation holds, both skip and a second retry are refused with the existing IN_FLIGHT code (skip checks it in its guarded update too). No new error code was needed, so the API and MCP docs are unchanged.
  • Recovery: if the reopen fails or the row changes, the reservation is released. If the process stops partway, the reservation lapses after RETRY_RESERVATION_MS (5 minutes), after which skip or retry can proceed. The other blocker kinds have no outside side effect, so they don't reserve, but they still respect someone else's live reservation.
  • What this does not cover: if GitHub accepted the reopen and the process then crashed, the issue stays reopened. That race with an external API can't be made atomic, and I didn't try to.

Tests (in packages/core/test/epicQueueBlockedEvents.test.ts)

  • Skip refuses a merged prerequisite whose queue row hasn't settled, both pending and blocked.
  • Skip refuses when the merge lands just before its guarded write; the test injects the merge at that point.
  • A skip and a retry attempted during a retry's reopen are both refused, and the issue is reopened only once.
  • A failed reopen releases the reservation, and one left behind by a stopped process lapses.

Verification

  • All 126 core epic tests pass.
  • The mcpEpicDispatch and mcpIntegration suites pass (81 tests) when run as CI does, with NODE_ENV=test. Without it, every test in them fails on the GitHub auth check, on the old code as well as mine.
  • Typecheck and zero-warning lint on the changed source files are clean.

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

One thing I noticed but left alone: retry doesn't check for a merged plan issue either. That's outside F3, which only covers skip.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 32m 5s
  • Tokens: 3,247,797 (3,222,214 in / 25,583 out)
  • Cost: $1.64

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

…lanning/epicQueueActions.ts` and added four regression tests. All four fail on the previous code and pass now.

I fixed both F3 and F4 in `packages/core/src/services/taskPlanning/epicQueueActions.ts` and added four regression tests. All four fail on the previous code and pass now.

**F3: skip no longer accepts an issue that already merged**
- Skip now checks whether the plan issue is `merged`, for pending and blocked rows alike, and refuses with `ALREADY_DONE`. The check happens twice: once before the write, and again inside the transactional skip update, so a merge landing between the two is also caught.
- If the guarded write changes nothing and the issue has merged by then, skip also reports `ALREADY_DONE` rather than `STATE_CHANGED`.
- The merge is still settled normally afterwards, so the dependents start.
- The same check covers a blocked row (for example one waiting for a human merge) whose plan issue merged. That case was the same defect, so it's included.

**F4: retry reserves the issue before reopening it on GitHub**
- I added a `retry_reserved_at` column to this PR's existing migration (`20261113000000_add_epic_queue_blocked_events.js`) rather than a new migration file.
- When retrying an issue closed without merge, retry first sets the reservation with a guarded write on the exact blocked row it read. Only after that does it read the plan status and call the GitHub reopen. The final write that clears the blocker requires that same reservation and removes it.
- **Competing actions:** while a reservation holds, both skip and a second retry are refused with the existing `IN_FLIGHT` code (skip checks it in its guarded update too). No new error code was needed, so the API and MCP docs are unchanged.
- **Recovery:** if the reopen fails or the row changes, the reservation is released. If the process stops partway, the reservation lapses after `RETRY_RESERVATION_MS` (5 minutes), after which skip or retry can proceed. The other blocker kinds have no outside side effect, so they don't reserve, but they still respect someone else's live reservation.
- **What this does not cover:** if GitHub accepted the reopen and the process then crashed, the issue stays reopened. That race with an external API can't be made atomic, and I didn't try to.

**Tests** (in `packages/core/test/epicQueueBlockedEvents.test.ts`)
- Skip refuses a merged prerequisite whose queue row hasn't settled, both pending and blocked.
- Skip refuses when the merge lands just before its guarded write; the test injects the merge at that point.
- A skip and a retry attempted during a retry's reopen are both refused, and the issue is reopened only once.
- A failed reopen releases the reservation, and one left behind by a stopped process lapses.

**Verification**
- All 126 core epic tests pass.
- The `mcpEpicDispatch` and `mcpIntegration` suites pass (81 tests) when run as CI does, with `NODE_ENV=test`. Without it, every test in them fails on the GitHub auth check, on the old code as well as mine.
- Typecheck and zero-warning lint on the changed source files are clean.

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

**One thing I noticed but left alone:** retry doesn't check for a merged plan issue either. That's outside F3, which only covers skip.

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

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

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds durable blocker events, notification delivery, and skip/retry controls across REST, MCP, and Planner Studio. The supplied code is merge-ready within scope, conditional on the pending checks completing successfully.

✅ Transactional event recording — Guarded issue updates and blocker transitions share a transaction; repeated identical blockers preserve their original timestamp.

✅ Recoverable notification delivery — Delivery remains pending until notification persistence and realtime publication succeed, with notification deduplication protecting replay.

✅ Explicit graph skip semantics — Skipped prerequisites remain unsatisfied unless explicitly released, and queue summaries expose waitingOnSkipped.

This was a static review of the supplied code; no commands or tests were run. Current checks report no failures and five pending checks.

Merge blockers

No merge blockers.

Suggestions

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

S2: 🟢 Cover setup event lifecycle

Add a focused event-log assertion covering creation with ready: false followed by setup completion. The new tests exercise setup retry refusal, but do not explicitly verify the corresponding setup_not_ready event and resolution lifecycle. This would strengthen coverage of the initialization boundary; it is an optional test improvement, not a demonstrated defect.

Score

The implementation has coherent transaction boundaries, recovery behavior, and substantial targeted coverage. Static review found no verified merge blocker; final readiness remains conditional on the pending checks.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 43s
  • Tokens: 102,110 (99,906 in / 2,204 out)
  • Cost: $0.98

View Task


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

Copy and edit to choose records from this review:

/fix S2

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 13, 2026
@integry
integry merged commit e654e39 into 3470-epic-scheduler-primitives-nrj Nov 13, 2026
50 checks passed
propr-dev Bot pushed a commit that referenced this pull request Nov 13, 2026
…her-numbered one is now still delivered instead of being skipped for good. `test/agentRunEventTriggers.test.ts` passes 23/23, and the 2 new tests fail on the previous code. I also reproduced the race and checked the fix against a real Postgres 18 started in `/tmp`, but those checks were a throwaway script that isn't in the repo. CI only runs the SQLite tests.

I fixed F6: a blocked event whose write commits after a higher-numbered one is now still delivered instead of being skipped for good. `test/agentRunEventTriggers.test.ts` passes 23/23, and the 2 new tests fail on the previous code. I also reproduced the race and checked the fix against a real Postgres 18 started in `/tmp`, but those checks were a throwaway script that isn't in the repo. CI only runs the SQLite tests.

**The fix.** The sweep now only reads events up to a point where no write still in progress can commit a lower id.
- **Writers** (`epicQueueBlockedEvents.ts`, `insertEvent`): each one takes a shared Postgres lock before it gets its event id and holds it until commit. Writers don't block each other.
- **The sweep:** once per sweep, `committedBlockedEventWatermark` takes the same lock exclusively. That waits for writers already in progress, then reads the newest event id. Every id at or below it is final, and every later id will be above it.
- **The query:** `listPlanIssueBlockedEventsAfter` now requires that bound (`through`) and never reads past it. The cursor, the subscription/re-enable reset, run idempotency and the admission check are unchanged.
- **If the lock can't be had within 2 s** (a long write is still open), the attempt fails. Every cursor stays where it was and the next sweep tries again. The wait is capped so the sweep can't stall queue writes behind it.
- **SQLite**, which every shipped config uses, needs no lock. It allows one writer at a time and that writer commits in id order. So the watermark there is just the newest id, and there's no extra cost for writers.

**Postgres results**
- **Old query:** with the transaction holding id 1 still open and id 2 committed, it returns only `[2]`. That is the bug.
- **New watermark:** while that transaction is open, it times out instead of reading past it. Once it commits, the watermark is 2 and the read returns `[1, 2]`.
- **Deadlock check:** one writer was waiting on a row lock held by a second writer, which was queued behind the waiting sweep. Postgres reordered the queue, both writers committed with nothing aborted, and the watermark then covered all their events.

**Tests**
- **New:** an event committed below an id the sweep already saw still runs, and the cursor never moves past it. A watermark that can't be read leaves every cursor in place and is only tried once per sweep.
- **Changed:** the existing "reset between reading a batch and admitting it" test now passes an unbounded watermark. Its event is recorded during the query, so the new bound would otherwise filter it out before the reset check it exists to test.
- **Also passing:** the blocked-event writer suites (36/36) and the scheduler suite. Typecheck and zero-warning lint pass for root and core on the changed files.

I also added one sentence to `docs/docs/features/agents.md` saying a late-committing event is still delivered.

**Found separately, not changed:**
- `listEpicQueueBlockedEvents`, the per-execution blocked-event list from #3518, pages by event id the same way. A client paging it during concurrent writes could skip a late-committing event. It predates this PR, so I left it alone.
- An event that gets its id before an automation subscribes or is re-enabled, but commits after, is treated as before the subscription and doesn't run. This is the existing "no backlog" rule.

PR: #3523
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant