Skip to content

[3431 by Claude Opus 5.5] Add a "blocked" run outcome so a run that stops to report a blocker is not reported as done - #3434

Merged
integry merged 5 commits into
mainfrom
3431/claude-opus-5-5-add-a-blocked-run-outcome-20261111-1911-053
Nov 12, 2026
Merged

integry merged 5 commits into
mainfrom
3431/claude-opus-5-5-add-a-blocked-run-outcome-20261111-1911-053

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3431

Branch: 3431/claude-opus-5-5-add-a-blocked-run-outcome-20261111-1911-053
Commits: ✅ Changes committed (7da312e)


AI Processing Completed

Execution Details:

Summary:
I've added an opt-in on_blocker: report setting to .propr/workflow.yml for issue #3431. When it's on, a run that can't do the task stops and reports what blocked it, instead of being reported as done. All 23 affected test files pass (new and existing), and typecheck and eslint --max-warnings 0 are clean in each touched package.

How it works

  • The option: on_blocker: continue | report, default continue. It goes through the existing parser, the JSON schema, the propr init scaffold (as a commented-out line) and the docs page. With the key absent or set to continue, prompts are byte-for-byte unchanged (a test checks this). The blocked-run code is only loaded when the option is on.
  • Prompt: with report, the implementation and follow-up prompts tell the agent not to deliver a reduced or placeholder version, to revert partial changes, and to end its final message with a line starting PROPR_BLOCKED: followed by the explanation.
  • Detection: only in the agent's final message, and only when the run ended normally. The marker must start a top-level line, so it's ignored inside code blocks, quotes, list items, indented blocks or mid-sentence. The explanation is redacted, capped at 2,000 characters, and has HTML comments neutralised so the agent can't fake ProPR's own markers in the comment.
  • Issue runs: nothing is committed and no PR is opened. The processing label is removed, the done label is not added, and the plan issue keeps its status. The issue gets a comment quoting the explanation.
  • Follow-up and /fix runs: nothing is committed or pushed, and selected review findings stay pending. The completion comment states the blocker instead of the no-change text.
  • Leftover changes: if the agent leaves changes in the worktree anyway, they are not committed and the comment lists the files.
  • Task state: the task ends completed with the new terminal reason blocked, which shows in task history and in MCP get_task/get_task_events. It is never marked failed, so it isn't retried. The replacement policy skips it with a new reason, blocked_stop.
  • Ultrafix: a blocked fix step stops the loop with the reason fix_step_blocked and is not counted as a fix.
  • Inbox: each blocked run creates a warning with kind: 'task' and metadata.event: 'task.blocked'. The normal "completed" success notification is suppressed for these tasks.

Decisions and limits

  • I did not add blocked to AgentTerminationReason. That type marks a run as "partial but publishable", which would have sent blocked runs down the code path that commits and publishes.
  • A blocked follow-up job still finishes with status complete plus a blocked: true flag, rather than a new blocked status. A new status would have pushed an existing function past the lint complexity limit. The task's terminal reason is blocked either way.
  • One gap: if the worker restarts after the agent exits but before the blocker comment is posted, restart recovery does not check for the marker and would handle the run the normal way. Recovery also skips the check when it resumes a publication saved before the restart, because that work was already committed.

The core of the change is in packages/core/src/workflow/blockerReport.ts (marker parser and prompt text) and four new handler modules: src/jobs/blockedRun.ts, blockedRunText.ts, issueJobBlocked.ts and prCommentBlocked.ts. There are three new test files plus added cases in the existing workflow, CLI init, replacement, Ultrafix and notification tests. There's no visible UI change, so I didn't capture previews.

Detailed Logs:

  • Conversation: 249 messages
  • Session: ec77d4be-b589-4f41-810c-767991831b33

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3431-2026-11-11T19-41-16-500Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3431-2026-11-11T19-41-16-500Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I've added an opt-in `on_blocker: report` setting to `.propr/workflow.yml` for issue #3431. When it's on, a run that can't do the task stops and reports what blocked it, instead of being reported as d...


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


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

….yml` for issue #3431. When it's on, a run that can't do the task stops and reports what blocked it, instead of being reported as done. All 23 affected test files pass (new and existing), and typecheck and `eslint --max-warnings 0` are clean in each touched package.

How it works
- The option: `on_blocker: continue | report`, default `continue`. It goes through the existing parser, the JSON schema, the `propr init` scaffold (as a commented-out line) and the docs page. With the key absent or set to `continue`, prompts are byte-for-byte unchanged (a test checks this). The blocked-run code is only loaded when the option is on.
- Prompt: with `report`, the implementation and follow-up prompts tell the agent not to deliver a reduced or placeholder version, to revert partial changes, and to end its final message with a line starting `PROPR_BLOCKED:` followed by the explanation.
- Detection: only in the agent's final message, and only when the run ended normally. The marker must start a top-level line, so it's ignored inside code blocks, quotes, list items, indented blocks or mid-sentence. The explanation is redacted, capped at 2,000 characters, and has HTML comments neutralised so the agent can't fake ProPR's own markers in the comment.
- Issue runs: nothing is committed and no PR is opened. The processing label is removed, the done label is not added, and the plan issue keeps its status. The issue gets a comment quoting the explanation.
- Follow-up and `/fix` runs: nothing is committed or pushed, and selected review findings stay pending. The completion comment states the blocker instead of the no-change text.
- Leftover changes: if the agent leaves changes in the worktree anyway, they are not committed and the comment lists the files.
- Task state: the task ends `completed` with the new terminal reason `blocked`, which shows in task history and in MCP `get_task`/`get_task_events`. It is never marked failed, so it isn't retried. The replacement policy skips it with a new reason, `blocked_stop`.
- Ultrafix: a blocked fix step stops the loop with the reason `fix_step_blocked` and is not counted as a fix.
- Inbox: each blocked run creates a warning with `kind: 'task'` and `metadata.event: 'task.blocked'`. The normal "completed" success notification is suppressed for these tasks.

Decisions and limits
- I did not add `blocked` to `AgentTerminationReason`. That type marks a run as "partial but publishable", which would have sent blocked runs down the code path that commits and publishes.
- A blocked follow-up job still finishes with status `complete` plus a `blocked: true` flag, rather than a new `blocked` status. A new status would have pushed an existing function past the lint complexity limit. The task's terminal reason is `blocked` either way.
- One gap: if the worker restarts after the agent exits but before the blocker comment is posted, restart recovery does not check for the marker and would handle the run the normal way. Recovery also skips the check when it resumes a publication saved before the restart, because that work was already committed.

The core of the change is in `packages/core/src/workflow/blockerReport.ts` (marker parser and prompt text) and four new handler modules: `src/jobs/blockedRun.ts`, `blockedRunText.ts`, `issueJobBlocked.ts` and `prCommentBlocked.ts`. There are three new test files plus added cases in the existing workflow, CLI init, replacement, Ultrafix and notification tests. There's no visible UI change, so I didn't capture previews.
@propr-dev

propr-dev Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

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

@propr-dev

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

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds opt-in blocker reporting across workflow configuration, issue implementations, follow-ups, notifications, and Ultrafix. It needs localized corrections before merge.

✅ Default behavior preserved — Detection and changed publication behavior are gated by on_blocker: report, with tests covering disabled and absent settings.

✅ Publication bypass — Recognized blockers bypass commits and PR creation, preserve pending review findings, and stop Ultrafix without counting a completed fix.

✅ Bounded explanations — Blocker explanations are secret-redacted and length-limited before publication.

The supplied issue specification is truncated, so this review assesses the visible objective and changed behavior without assuming unseen requirements. No commands or tests were run. Current checks report 37 passed, none failed, and one pending.

Merge blockers

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

F1: 🔴 List continuations incorrectly trigger blocked outcomes

  • Required behavior: Only a top-level blocker marker should trigger the outcome; quoted examples and list content must not suppress publication of completed work.

  • Evidence: packages/core/src/workflow/blockerReport.ts:parseBlockerReport

    1. With reporting enabled, a successful agent summarizes an example or diagnostic as - Example diagnostic:\n PROPR_BLOCKED: Missing credentials.\n\nImplemented and verified the fix.
    2. The marker belongs to the Markdown list item, but the parser accepts its two leading spaces through /^ {0,3}\S/ and trimStart().
    3. Both issue and follow-up handlers interpret the completed run as blocked and bypass publishing its changes.

    The fence guard does not track list containers. Existing tests reject a marker on the bullet’s opening line, but do not cover continuation lines. static trace: the supplied parser and both blocker handlers establish this sequence; no execution was performed.

  • Minimum fix: Exclude markers within Markdown list continuations, including nested containers, and add a regression showing that the example above does not produce a blocker report.

F2: 🔴 Comment failures prevent recording blocked follow-ups

  • Required behavior: A recognized blocker must remain a distinct terminal blocked outcome when downstream reporting fails, rather than becoming an ordinary execution failure.

  • Evidence: src/jobs/prCommentBlocked.ts:settleBlockedFollowUp

    1. A successful follow-up returns a valid blocker marker with reporting enabled.
    2. settleBlockedFollowUp awaits publishComment(body) before recording any blocked terminal state.
    3. If GitHub rejects the comment update, the rejection escapes through settleReportedFollowUpBlocker and handlePostExecution. Neither the blocked state update nor the warning notification runs.

    The same interruption occurs if markExecutionHandoffCommentPublished rejects after GitHub accepts the comment: the external comment reports a blocker, but this path never records that outcome on the task. Unlike the new issue handler, the follow-up handler has no failure containment preserving the recognized blocker. static trace: the supplied callback and sequential awaits demonstrate both paths. Subsequent job-level error handling is not supplied; this finding does not assume a particular retry policy.

  • Minimum fix: Preserve the blocked terminal reason and explanation when comment publication or its checkpoint fails. Track any outstanding delivery separately, while retaining existing handoff ownership protections, and cover both rejection points with regression tests.

Suggestions

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

S1: 🟢 Document the terminal reason centrally

Add blocked to the terminal-reason table in docs/docs/architecture/worker.md. The feature documentation already explains it, so this is optional documentation consistency rather than a merge requirement.

Score

The implementation covers the main paths and includes useful regression tests, but false-positive detection and reporting-failure handling can still misclassify outcomes. The reported passing checks do not cover these sequences.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 1s
  • Tokens: 69,967 (68,694 in / 1,273 out)
  • Cost: $0.64

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 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 91f89c3

Addressed 1 AI review comment (IDs: 6806064043)

Addressed findings F1, F2

Summary of Changes

I fixed both findings. The new tests fail against the original code and pass with the fix, and the five related test files all pass. Typecheck and eslint --max-warnings 0 are clean for every source file I touched.

F1: a marker inside a list no longer counts as a blocker (packages/core/src/workflow/blockerReport.ts)

  • The parser now tracks open Markdown lists, the column where each item's text starts, and nested items. An indented line under an item is treated as part of that item and ignored. That covers continuation lines, blank-line-separated item paragraphs, nested items, quotes or code fences inside an item, and tab indentation.
  • A list ends at the first non-blank line indented less than its items' text. So a real PROPR_BLOCKED: line after a list, with or without a blank line before it, still counts.
  • Decision for you: a marker at column 0 straight after a bullet, with no blank line, is treated as a real blocker. Strict Markdown would read that line as part of the bullet, but agents often end a list that way, and ignoring the marker would publish a run that was actually blocked. If you'd rather follow Markdown strictly, it's a small change.
  • The new test in packages/core/test/repositoryWorkflow.test.ts covers the exact example from the review plus ordered, nested, quoted, fenced, wide-indent and tab cases. It also covers cases that must still be detected.

F2: a failed comment no longer loses the blocked outcome (src/jobs/prCommentBlocked.ts)

  • Posting the GitHub comment and recording it on the follow-up handoff are now separate steps, and each failure is caught on its own.
  • GitHub rejects the comment: the task still ends completed with terminal reason blocked and the explanation, and the warning notification still goes out. Task history gets blockerDelivery: { completionComment: 'failed', handoffCheckpoint: 'skipped', error }. The handoff is not marked as having published a comment.
  • The checkpoint fails after GitHub accepted the comment: the task still ends blocked with the comment URL, and history gets blockerDelivery: { completionComment: 'published', handoffCheckpoint: 'failed', error }.
  • Ownership protection is unchanged: if the checkpoint shows that a restart recovery has taken over the handoff, the error is re-thrown and no terminal state or notification is written. The existing job handler then stops this worker, and the recovery owns the outcome. A second check guards the state update itself.
  • I added a type-only field, followupHandoffOwnershipLost?, to PostExecutionState in src/jobs/prCommentPostExecution.ts. The object at runtime already carried it.
  • Three new tests in test/prCommentBlocked.test.ts cover the GitHub rejection, the checkpoint failure and the ownership loss.

Separate issue, not changed: when the blocker comment fails, the follow-up job still finishes normally afterwards and the handoff is retired. The "starting work" comment on the PR therefore stays as it is, and the missed delivery is recorded only in task history. I kept it that way on purpose: restart recovery doesn't check for the blocker marker, so if the handoff stayed open, recovery would post the "no code changes" text and could commit files the agent left behind.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 8m 39s
  • Tokens: 1,981,104 (1,963,743 in / 17,361 out)
  • Cost: $1.12

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

…nal code and pass with the fix, and the five related test files all pass. Typecheck and `eslint --max-warnings 0` are clean for every source file I touched.

I fixed both findings. The new tests fail against the original code and pass with the fix, and the five related test files all pass. Typecheck and `eslint --max-warnings 0` are clean for every source file I touched.

**F1: a marker inside a list no longer counts as a blocker** (`packages/core/src/workflow/blockerReport.ts`)
- The parser now tracks open Markdown lists, the column where each item's text starts, and nested items. An indented line under an item is treated as part of that item and ignored. That covers continuation lines, blank-line-separated item paragraphs, nested items, quotes or code fences inside an item, and tab indentation.
- A list ends at the first non-blank line indented less than its items' text. So a real `PROPR_BLOCKED:` line after a list, with or without a blank line before it, still counts.
- **Decision for you:** a marker at column 0 straight after a bullet, with no blank line, is treated as a real blocker. Strict Markdown would read that line as part of the bullet, but agents often end a list that way, and ignoring the marker would publish a run that was actually blocked. If you'd rather follow Markdown strictly, it's a small change.
- The new test in `packages/core/test/repositoryWorkflow.test.ts` covers the exact example from the review plus ordered, nested, quoted, fenced, wide-indent and tab cases. It also covers cases that must still be detected.

**F2: a failed comment no longer loses the blocked outcome** (`src/jobs/prCommentBlocked.ts`)
- Posting the GitHub comment and recording it on the follow-up handoff are now separate steps, and each failure is caught on its own.
- **GitHub rejects the comment:** the task still ends `completed` with terminal reason `blocked` and the explanation, and the warning notification still goes out. Task history gets `blockerDelivery: { completionComment: 'failed', handoffCheckpoint: 'skipped', error }`. The handoff is not marked as having published a comment.
- **The checkpoint fails after GitHub accepted the comment:** the task still ends blocked with the comment URL, and history gets `blockerDelivery: { completionComment: 'published', handoffCheckpoint: 'failed', error }`.
- **Ownership protection is unchanged:** if the checkpoint shows that a restart recovery has taken over the handoff, the error is re-thrown and no terminal state or notification is written. The existing job handler then stops this worker, and the recovery owns the outcome. A second check guards the state update itself.
- I added a type-only field, `followupHandoffOwnershipLost?`, to `PostExecutionState` in `src/jobs/prCommentPostExecution.ts`. The object at runtime already carried it.
- Three new tests in `test/prCommentBlocked.test.ts` cover the GitHub rejection, the checkpoint failure and the ownership loss.

**Separate issue, not changed:** when the blocker comment fails, the follow-up job still finishes normally afterwards and the handoff is retired. The "starting work" comment on the PR therefore stays as it is, and the missed delivery is recorded only in task history. I kept it that way on purpose: restart recovery doesn't check for the blocker marker, so if the handoff stayed open, recovery would post the "no code changes" text and could commit files the agent left behind.

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

propr-dev Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@github-actions

Copy link
Copy Markdown

Full Test Suite Results

Validation failed during: Shard coverage verification.

  • Dependency install: success
  • Workspace build: success
  • Docs validation: success
  • Shard coverage verification: failure
  • Hosted native Electron units: success
  • Shard 1/4: no output uploaded (failed early, cancelled or skipped)
  • Shard 2/4: no output uploaded (failed early, cancelled or skipped)
  • Shard 3/4: no output uploaded (failed early, cancelled or skipped)
  • Shard 4/4: no output uploaded (failed early, cancelled or skipped)

View Workflow
View uploaded artifacts

@propr-dev

propr-dev Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Analysis Summary

I didn't change any code: this CI failure came from GitHub's artifact upload, not the tests or the PR.

What happened in run 43094804482 (commit 91f89c3b9):

  • All four shards passed their tests. In shards 1/4 through 4/4, the "Run Full Test Suite shard" step succeeded, and the "Fail Job" step, which only runs when tests fail, was skipped every time.
  • Saving their results failed. Each shard tried to upload its results as an artifact, which took about 10 minutes, then retried once for another 10. The retry failed in shards 1, 3 and 4. Shard 2's retry step is marked as passing, but its output never arrived either.
  • The coverage check failed as a result. It checks that every test ran exactly once, using a summary.json from each shard. None arrived, so it stopped with "No shard summaries were uploaded". That's why the comment says "no output uploaded" for every shard.

The fix is to re-run the full test suite once GitHub's artifact service is healthy again. Re-running the failed jobs is enough, since the workflow uploads fresh output for each re-run shard. When I looked, the shard jobs still showed as in progress and the final jobs were queued again, so a re-run may already be under way.

No previews were created because nothing on screen changed. I also saved a memory note so this pattern gets recognised faster next time.

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


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 3m 44s
  • Tokens: 394,122 (391,012 in / 3,110 out)
  • Cost: $0.31

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

@propr-dev

propr-dev Bot commented Nov 11, 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: 91f89c3b93ca (91f89c3b93ca5bff0dda6a7cf737fa8394e65bcf)
  • Details: View CI failure

Failure evidence

.github:21
Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

@propr-dev

propr-dev Bot commented Nov 11, 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: 91f89c3b93ca (91f89c3b93ca5bff0dda6a7cf737fa8394e65bcf)
  • Details: View CI failure

Failure evidence

No failure output was provided by the CI service.

@propr-dev

propr-dev Bot commented Nov 11, 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: 91f89c3b93ca (91f89c3b93ca5bff0dda6a7cf737fa8394e65bcf)
  • Details: View CI failure

Failure evidence

.github:21
Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

.github:21
Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

.github:9
First unsigned validation target upload failed; retrying once after a short pause.

@propr-dev

propr-dev Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 3/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 3/4
  • Result: failure
  • Commit: 91f89c3b93ca (91f89c3b93ca5bff0dda6a7cf737fa8394e65bcf)
  • Details: View CI failure

Failure evidence

.github:23
Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

.github:23
Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

.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 11, 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: 91f89c3b93ca (91f89c3b93ca5bff0dda6a7cf737fa8394e65bcf)
  • Details: View CI failure

Failure evidence

.github:23
Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

.github:23
Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

.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 11, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 4/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 4/4
  • Result: failure
  • Commit: 91f89c3b93ca (91f89c3b93ca5bff0dda6a7cf737fa8394e65bcf)
  • Details: View CI failure

Failure evidence

.github:23
Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

.github:23
Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

.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 11, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Analysis Summary

I didn't change any code. These three failures, and the other jobs in the same runs, came from GitHub's artifact storage being down, not from this branch.

Evidence:

  • The checks themselves passed. In all four "Validate unsigned" jobs (linux-x64, linux-arm64, darwin-x64 and darwin-arm64), every build, test, packaging, launch and install step succeeded. That includes "Typecheck and test unsigned desktop runtime", "Make Linux/macOS validation packages", and the install, deep-link, relaunch and removal steps.
  • Only the uploads failed.
    • On linux-arm64, darwin-x64 and darwin-arm64, the first "Upload unsigned validation target" attempt was reported as success but didn't upload; the workflow then printed "First unsigned validation target upload failed; retrying once". The retry failed with Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON. That means the artifact service sent back an HTML error page instead of a normal response.
    • On linux-x64, the same CreateArtifact error hit the "Publish mandatory packaged desktop acceptance evidence" upload, after the visual, accessibility and setup-cancellation checks had passed.
  • The full test suite run failed the same way. Shards 1, 3 and 4 failed only at "Retry shard output upload"; shard 2 passed. That's why the summary comment says "no output uploaded" and "Shard coverage verification: failure".
  • The branch doesn't touch this area. It changes no desktop, Electron or .github/ files.

What's needed: the failed jobs just need to be re-run. I tried gh run rerun 43094804377 --failed, but it was refused with "Resource not accessible by integration". Someone with Actions write access needs to use "Re-run failed jobs" on run 43094804377 (package validation) and run 43094804482 (full test suite).

This is a CI-only problem, so there's no visual preview.

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


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 3m 6s
  • Tokens: 215,554 (213,858 in / 1,696 out)
  • Cost: $0.24

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: 6806945507✓, 6806948956✓, 6806950890✓

@propr-dev

propr-dev Bot commented Nov 11, 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: 91f89c3b93ca (91f89c3b93ca5bff0dda6a7cf737fa8394e65bcf)
  • Details: View CI failure

Failure evidence

.github:21
Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

.github:21
Failed to CreateArtifact: Failed to make request after 5 attempts: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

.github:9
First unsigned validation target upload failed; retrying once after a short pause.

@propr-dev

propr-dev Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Run Full Test Suite

Please investigate and fix this CI failure.

Failure evidence

.github:68
Process completed with exit code 1.

.github:67
Shard coverage verification finished with result 'failure'.

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

@propr-dev

propr-dev Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Analysis Summary

I didn't change any code: these failures were caused by GitHub's artifact storage being down, not by this branch. All the tests passed, and the jobs failed only when uploading their results.

What the job steps show:

  • Full Test Suite Shards 1, 3 and 4: install, build, Chromium setup, Redis and "Run Full Test Suite shard" all succeeded. Only the "Retry shard output upload" step failed, with Failed to CreateArtifact: ... Unexpected token '<', "<!DOCTYPE "... is not valid JSON. That error means the artifact service sent back an HTML error page instead of JSON. Shard 2 passed completely.
  • Run Full Test Suite: this is the job that collects the shard results, and it failed only because shards 1, 3 and 4 had uploaded no results. That's why its summary says "no output uploaded" for every shard and blames shard coverage verification, even though the tests ran and passed.
  • Validate unsigned darwin-arm64 package: the typecheck/test and install/relaunch lifecycle steps succeeded. The upload failed on the first try and on the retry with the same error. The linux-arm64 package job in that run failed at the same step for the same reason.

What to do: re-run the failed jobs in workflow runs 43094804482 and 43094804377 once the artifact service is back. They should pass with no code changes.

I also added a line to my saved notes on this kind of CI failure: the desktop package-validation jobs can fail the same way during an outage.

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


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 3m 12s
  • Tokens: 219,707 (217,942 in / 1,765 out)
  • Cost: $0.24

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: 6806952131✓, 6806952565✓, 6806952917✓, 6806958863✓, 6806966572✓

@propr-dev

propr-dev Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds an opt-in blocked outcome across configuration, issue processing, follow-ups, notifications, and Ultrafix. It needs a localized parser correction before merge.

✅ Default behavior preserved — Configuration validation accepts only continue and report, and blocker handling is gated by the run’s workflow snapshot.

✅ Distinct downstream handling — Recognized blockers bypass publication and done-label handling, preserve selected review findings, and stop Ultrafix without counting a completed fix.

✅ Focused regression coverage — Added tests cover blocked outcomes, leftover changes, notification suppression, and follow-up delivery failures.

The original issue specification is truncated, so requirements assessment is limited to its visible portion. This review uses the supplied code without executing commands. Current checks show no failures and three pending checks.

Merge blockers

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

F3: 🔴 Recognize fences opened inside list items

  • Required behavior: A normally completed run with a genuine top-level blocker marker must end blocked rather than enter the successful no-change completion path.

  • Evidence: packages/core/src/workflow/blockerReport.ts:parseBlockerReport — fence detection runs before list handling and does not recognize fences opened on the list-marker line.

    1. With on_blocker: report, an issue agent returns a successful response containing a diagnostic fenced inside a list: lines - ~~~text, diagnostic output, and ~~~, followed by a blank line and PROPR_BLOCKED: Missing credentials.
    2. The opening - ~~~text is recognized only as a list item; it does not set fence.
    3. The closing ~~~ matches fenceMatch. Because fence is still null, the parser treats this closing delimiter as an opening fence.
    4. The genuine top-level blocker marker is consequently ignored, and detection returns null.
    5. Issue post-processing proceeds to the normal commit path. With no changes, handleNoCodeChanges reports implementation complete, adds the done label, and can mark the linked plan issue merged.

    static trace: This follows directly from the parser’s branch ordering and the supplied issue post-processing and no-change completion paths. The workflow gate does not prevent it because reporting is enabled. Existing nested-fence tests put the opening delimiter on its own continuation line, so they do not exercise this valid Markdown form. proposed regression: Add the exact list-contained fence followed by a real blocker marker and assert that the issue remains blocked.

  • Minimum fix: Track fenced blocks opened in list-item content so their closing delimiters cannot open a new top-level fence; add a regression asserting that the subsequent top-level blocker is detected.

Suggestions

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

S2: 🟢 Document the terminal reason centrally

The worker architecture’s terminal-reason table still omits blocked, although the repository workflow documentation describes it. Adding the entry would make the central lifecycle reference consistent. This is optional documentation cleanup.

Score

The implementation covers the principal downstream behaviors well, and current checks show no failures. A reproducible parser false negative still permits a reported blocker to be marked complete.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 55s
  • Tokens: 74,278 (73,055 in / 1,223 out)
  • Cost: $0.66

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 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 2387098

Addressed 1 AI review comment (IDs: 6807887293)

Addressed finding F3

Summary of Changes

I fixed F3. The blocker parser now tracks fences opened on a list-marker line, so the closing ~~~ no longer opens a fake top-level fence that hid the real PROPR_BLOCKED: line. The scenario from the finding (a list-item fence, then a top-level blocker) now ends blocked instead of going down the "no code changes needed" path.

The fix is in packages/core/src/workflow/blockerReport.ts:

  • An open fence now remembers the content column of the list item or container it was opened in.
  • Fences are now recognised on list-marker lines, including nested ones like - ~~~ and - - ~~~, and in list continuation lines.
  • A closing delimiter only counts at that column.
  • A non-blank line indented less than that column ends both the list item and its fence, as in CommonMark. So an unclosed fence inside a list item can't hide a later top-level marker.
  • Top-level fence handling and everything else the parser does are unchanged.

Other callers: issue post-processing (src/jobs/issueJobBlocked.ts) and PR follow-ups (src/jobs/prCommentBlocked.ts) both detect blockers through this one parser. That means both are fixed, and I found no other copy of the fence logic.

New tests:

  • packages/core/test/repositoryWorkflow.test.ts: the exact case from the finding; fences opened on ordered, nested and same-line nested list items, each followed by a real top-level marker; an unclosed fence in a list item followed by a top-level marker. Two negative cases where a marker inside a fence on a list line, or on a later item's continuation line, is still ignored.
  • test/issueJobBlocked.test.ts: the finding's exact message through performPostProcessing. It checks that nothing is committed, handleNoCodeChanges is not called, the blocked result has the right explanation, and the blocker comment is posted.

Checks run:

  • repositoryWorkflow, issueJobBlocked and prCommentBlocked all pass (57 tests).
  • With the original parser put back, the two affected tests fail, so they do catch the bug.
  • eslint --max-warnings 0 on the changed source file and tsc --noEmit for packages/core are clean.
  • The two changed test files aren't covered by any ESLint config, so they weren't linted, which was already the case before this change.

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


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 5m 55s
  • Tokens: 771,450 (761,197 in / 10,253 out)
  • Cost: $0.60
  • Subscription usage: Weekly +3%, Fable +6%

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

…a list-marker line, so the closing ` ~~~` no longer opens a fake top-level fence that hid the real `PROPR_BLOCKED:` line. The scenario from the finding (a list-item fence, then a top-level blocker) now ends blocked instead of going down the "no code changes needed" path.

I fixed F3. The blocker parser now tracks fences opened on a list-marker line, so the closing `  ~~~` no longer opens a fake top-level fence that hid the real `PROPR_BLOCKED:` line. The scenario from the finding (a list-item fence, then a top-level blocker) now ends blocked instead of going down the "no code changes needed" path.

**The fix** is in `packages/core/src/workflow/blockerReport.ts`:
- An open fence now remembers the content column of the list item or container it was opened in.
- Fences are now recognised on list-marker lines, including nested ones like `  - ~~~` and `- - ~~~`, and in list continuation lines.
- A closing delimiter only counts at that column.
- A non-blank line indented less than that column ends both the list item and its fence, as in CommonMark. So an unclosed fence inside a list item can't hide a later top-level marker.
- Top-level fence handling and everything else the parser does are unchanged.

**Other callers:** issue post-processing (`src/jobs/issueJobBlocked.ts`) and PR follow-ups (`src/jobs/prCommentBlocked.ts`) both detect blockers through this one parser. That means both are fixed, and I found no other copy of the fence logic.

**New tests:**
- `packages/core/test/repositoryWorkflow.test.ts`: the exact case from the finding; fences opened on ordered, nested and same-line nested list items, each followed by a real top-level marker; an unclosed fence in a list item followed by a top-level marker. Two negative cases where a marker inside a fence on a list line, or on a later item's continuation line, is still ignored.
- `test/issueJobBlocked.test.ts`: the finding's exact message through `performPostProcessing`. It checks that nothing is committed, `handleNoCodeChanges` is not called, the `blocked` result has the right explanation, and the blocker comment is posted.

**Checks run:**
- `repositoryWorkflow`, `issueJobBlocked` and `prCommentBlocked` all pass (57 tests).
- With the original parser put back, the two affected tests fail, so they do catch the bug.
- `eslint --max-warnings 0` on the changed source file and `tsc --noEmit` for `packages/core` are clean.
- The two changed test files aren't covered by any ESLint config, so they weren't linted, which was already the case before this change.

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

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

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

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds an opt-in blocked outcome across issue implementations, follow-ups, and Ultrafix. The supplied code supports merging, conditional on the remaining checks passing.

✅ Default behavior preserved — Configuration validation accepts only continue and report; blocker detection and handling are gated behind report.

✅ Publication bypassed — Blocked runs bypass normal commit/publication handling, preserve pending review findings, and avoid issue final validation that could recreate a PR.

✅ Distinct terminal handling — The implementation records blocked, excludes provider replacement, and stops Ultrafix without counting the blocked fix.

The linked issue specification is explicitly truncated, so compliance with its unseen acceptance criteria cannot be assessed. This was a static review; no commands or tests were run. Current checks show no failures and four pending checks.

Merge blockers

No merge blockers.

Suggestions

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

S3: 🟢 Exercise blocked handoff recovery

Add restart-recovery coverage between agent exit, blocker-comment publication, and terminal-state persistence. prCommentBlocked.ts uses normal completion handoff markers, while the supplied handoff contract persists successful agent exits for recovery. Testing these boundaries would strengthen confidence that recovery retains the blocked outcome. The supplied recovery excerpts do not establish a concrete defect, so this is optional.

S4: 🟢 Cover history-only notification projection

Extend the notification test to omit payload.metadata.terminalReason while retaining blocked in persisted history. Other supplied projection tests exercise events without metadata, whereas the new suppression helper reads the reason directly from the payload. This would clarify behavior for reconstructed events; the supplied context does not demonstrate a production path that loses this field.

Score

The changed paths have focused coverage and consistently distinguish blocked work from successful completion. No merge blocker was verified; remaining checks and the unavailable acceptance-criteria text limit confidence.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 52s
  • Tokens: 74,088 (73,182 in / 906 out)
  • Cost: $0.65

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

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 11, 2026
@integry

integry commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Please extend this PR so a blocked run is handled correctly when the issue is the head of a sequential epic queue.

Problem. A blocked issue run leaves the plan issue untouched (correct: it must not be marked merged or closed). But when that issue is the current head of an active epic execution queue, the queue then stays on it with no blocked_reason, so the plan page shows the epic as active with no explanation.

Required behaviour.

  • When an issue run ends with the blocked outcome and the issue is the current head of an active, sequential epic execution queue, set the queue's blocked_reason to a clear message, for example: "Issue #N stopped on a blocker reported by the agent; resolve the blocker and request processing again to continue this epic." The write must be guarded like the other queue writes (same execution_id, status: 'active' and cursor).
  • The queue must not advance past a blocked head, under either advance policy (merged or terminal). A blocked issue is not a terminal plan-issue status.
  • The blocked head must not be re-dispatched automatically by the queue's recovery or reconcile paths. Check startEpicQueueHead, dispatchPendingQueueHead, reconcileQueueHead and reconcileTerminalInProgressIssues, and add a test that a reconcile pass after a blocked run neither restarts the issue nor changes its plan status.
  • When processing is requested again for that issue and the new run proceeds normally, the blocked_reason is cleared and the queue continues as usual (advancing on merge, or on the no-change completion).
  • Parallel epic executions: a blocked child does not count as terminal, so the execution does not complete; surface the same reason.
  • A genuine no-change completion (successful run, no diff, no blocker marker) keeps today's behaviour: the plan issue is marked merged and the queue advances. Add a regression test for this with on_blocker: report enabled.
  • The blocked reason is visible wherever the queue's blockedReason is already shown (plan API / summarizeEpicQueue, MCP get_plan).

Where. packages/core/src/services/taskPlanning/epicExecutionQueue.ts (advanceEpicQueue, startEpicQueueHead, isAwaitingHumanMergeReason), src/jobs/issueJobBlocked.ts, src/jobs/issueJob/completion.ts, src/jobs/noChangeCompletion.ts.

Keep default behaviour unchanged when on_blocker is absent or continue.

@propr-dev

propr-dev Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit a9630a7

Summary of Changes

A blocked run now holds a sequential epic queue on its head and explains why, instead of leaving the epic showing as active with no reason. Default behaviour (no on_blocker, or continue) is unchanged. The new tests and the affected existing test files all pass, and typecheck and eslint --max-warnings 0 are clean in core and root.

What happens now

  • Setting the reason: when an issue run ends blocked, markTaskComplete (in completion.ts) calls a new helper in issueJobBlocked.ts. If the issue is the head of an active sequential queue, or a child of a parallel one, the queue's blocked_reason becomes: "Issue #N stopped on a blocker reported by the agent; resolve the blocker and request processing again to continue this epic." The write is guarded by execution_id, status: 'active' and cursor. The queue logic is in a new file, epicQueueBlockedHead.ts. The message appears wherever blockedReason is already shown (plan API / summarizeEpicQueue, MCP get_plan, the plan page).
  • No advance, no re-dispatch: the plan issue stays in progress, so neither advance policy moves past it. startEpicQueueHead keeps the blocker reason (it used to clear any reason on a non-pending head) and never re-dispatches that head. The claim in dispatchPendingQueueHead also refuses a head carrying the reason, which covers the case where the plan issue is still pending.
  • A real bug in reconcile: reconcileTerminalInProgressIssues treated a completed task with no PR as abandoned and closed its plan issue. That would have closed every blocked head on the next recovery pass, and under the terminal policy the queue would then have advanced past it. Tasks with the blocked terminal reason are now skipped.
  • Continuing: when processing is requested again and the run ends without a blocker, the reason is cleared. Only that exact message is removed; other reasons, such as "Waiting for human merge", stay. The queue then advances on merge or on the no-change completion, as before.
  • Parallel executions: a blocked child is not terminal, so the execution stays active and shows the same reason. It completes once that child merges or closes.

Tests

  • New packages/core/test/epicQueueBlockedHead.test.ts runs the real reconcile code. It covers:
    • both advance policies through a reconcile pass long after the dispatch claim expired: no restart, plan status unchanged, cursor stays 0, reason kept.
    • a blocked head still pending is not re-dispatched.
    • an ordinary run that finished without a PR is still closed by reconcile.
    • clearing on a later normal run, then advancing on merge.
    • the guarded writes, and the parallel case.
  • I checked the core tests against the code: removing the reconcile guard or the start guard makes them fail.
  • The no-change regression with on_blocker: report is in test/noChangePlanIssueCompletion.test.ts: a successful no-diff rerun of a previously blocked head is still marked merged, which advances the queue. Completion-level cases are in test/issueJobBlockedCompletion.test.ts and test/issueJobBlocked.test.ts.
  • I added a short epic-queue paragraph to docs/docs/features/repository-workflow.md.

I didn't capture a preview: no UI code changed, and the plan page only shows a different reason string in the existing bar.

The earlier CI "Shard coverage verification: failure" with no output from any shard looks like an artifact-upload timeout rather than a test failure, so a re-run should clear it.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 12m 40s
  • Tokens: 5,799,010 (5,763,612 in / 35,398 out)
  • Cost: $2.45
  • Subscription usage: Weekly +2%, Fable +1%

Undo Changes • View Task Execution


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

🤖 Generated by ProPR
Processing comment ID: 6808346111✓

… and explains why, instead of leaving the epic showing as active with no reason. Default behaviour (no `on_blocker`, or `continue`) is unchanged. The new tests and the affected existing test files all pass, and typecheck and `eslint --max-warnings 0` are clean in core and root.

A blocked run now holds a sequential epic queue on its head and explains why, instead of leaving the epic showing as active with no reason. Default behaviour (no `on_blocker`, or `continue`) is unchanged. The new tests and the affected existing test files all pass, and typecheck and `eslint --max-warnings 0` are clean in core and root.

**What happens now**
- **Setting the reason:** when an issue run ends `blocked`, `markTaskComplete` (in `completion.ts`) calls a new helper in `issueJobBlocked.ts`. If the issue is the head of an active sequential queue, or a child of a parallel one, the queue's `blocked_reason` becomes: "Issue #N stopped on a blocker reported by the agent; resolve the blocker and request processing again to continue this epic." The write is guarded by `execution_id`, `status: 'active'` and `cursor`. The queue logic is in a new file, `epicQueueBlockedHead.ts`. The message appears wherever `blockedReason` is already shown (plan API / `summarizeEpicQueue`, MCP `get_plan`, the plan page).
- **No advance, no re-dispatch:** the plan issue stays in progress, so neither advance policy moves past it. `startEpicQueueHead` keeps the blocker reason (it used to clear any reason on a non-pending head) and never re-dispatches that head. The claim in `dispatchPendingQueueHead` also refuses a head carrying the reason, which covers the case where the plan issue is still `pending`.
- **A real bug in reconcile:** `reconcileTerminalInProgressIssues` treated a completed task with no PR as abandoned and closed its plan issue. That would have closed every blocked head on the next recovery pass, and under the `terminal` policy the queue would then have advanced past it. Tasks with the `blocked` terminal reason are now skipped.
- **Continuing:** when processing is requested again and the run ends without a blocker, the reason is cleared. Only that exact message is removed; other reasons, such as "Waiting for human merge", stay. The queue then advances on merge or on the no-change completion, as before.
- **Parallel executions:** a blocked child is not terminal, so the execution stays active and shows the same reason. It completes once that child merges or closes.

**Tests**
- New `packages/core/test/epicQueueBlockedHead.test.ts` runs the real reconcile code. It covers:
  - both advance policies through a reconcile pass long after the dispatch claim expired: no restart, plan status unchanged, cursor stays 0, reason kept.
  - a blocked head still `pending` is not re-dispatched.
  - an ordinary run that finished without a PR is still closed by reconcile.
  - clearing on a later normal run, then advancing on merge.
  - the guarded writes, and the parallel case.
- I checked the core tests against the code: removing the reconcile guard or the start guard makes them fail.
- The no-change regression with `on_blocker: report` is in `test/noChangePlanIssueCompletion.test.ts`: a successful no-diff rerun of a previously blocked head is still marked merged, which advances the queue. Completion-level cases are in `test/issueJobBlockedCompletion.test.ts` and `test/issueJobBlocked.test.ts`.
- I added a short epic-queue paragraph to `docs/docs/features/repository-workflow.md`.

I didn't capture a preview: no UI code changed, and the plan page only shows a different reason string in the existing bar.

The earlier CI "Shard coverage verification: failure" with no output from any shard looks like an artifact-upload timeout rather than a test failure, so a re-run should clear it.

PR: #3434
Comment by: @integry (ID: 6808346111)
Model: Claude Opus 5.5

integry commented Nov 11, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=10

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

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

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR implements the opt-in blocked outcome across issue runs, follow-ups, notifications, and epic queues. It needs a localized correction before merge: parallel executions can lose their blocker explanation while a child remains blocked.

✅ Publication bypass — Both issue and follow-up paths detect blockers before committing; blocked fixes leave selected review findings pending.

✅ Sequential queue protection — Dispatch guards prevent automatically restarting a blocked head, and terminal-history reconciliation preserves its plan status.

The original issue’s acceptance criteria are truncated in the supplied context; this review assesses the visible objective and complete authorized follow-up requirements. Current checks report no failures, with one check pending. Verification was static; no commands were run.

Merge blockers

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

F4: 🔴 Preserve remaining parallel child blockers

  • Required behavior: Parallel epic executions must surface the blocker reason while a child remains blocked.

  • Evidence: packages/core/src/services/taskPlanning/epicQueueBlockedHead.ts:markEpicQueueHeadBlocked and clearEpicQueueHeadBlocked; src/jobs/issueJobBlocked.ts:syncEpicQueueBlocker.

    1. An active parallel execution contains issues A and B. A reports a blocker; markEpicQueueHeadBlocked stores A’s reason.
    2. B also reports a blocker. The same function unconditionally replaces blocked_reason with B’s reason. Both plan issues remain in progress.
    3. Processing is requested again for B, and B successfully opens a PR. Its normal completion calls syncEpicQueueBlocker with blocked: false.
    4. clearEpicQueueHeadBlocked finds B’s matching reason and sets it to null, although A still has an unresolved blocked outcome.

    The execution remains active without a blocker explanation, recreating the misleading plan-page state the follow-up explicitly addresses. Execution-ID, status, cursor, and exact-reason guards all pass in this sequential scenario; none checks whether another parallel child remains blocked. The added parallel test covers only one blocked child.

    static trace: traced the unconditional reason overwrite and matching clear through the normal-completion caller. proposed regression: block two parallel children, successfully rerun the last one recorded, and assert that the queue still exposes the other child’s blocker.

  • Minimum fix: When clearing a parallel child’s blocker, retain or reconstruct a reason for any other child whose latest outcome remains blocked. Add the two-child regression; keep the sequential behavior unchanged.

Suggestions

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

No suggestions.

Score

The implementation has substantial targeted coverage and no reported current-head failures, but the parallel blocker-state defect leaves an explicit follow-up requirement unmet. The correction appears localized.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 37s
  • Tokens: 81,919 (81,101 in / 818 out)
  • Cost: $0.72

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

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Addressed 1 AI review comment (IDs: 6809034126)

Addressed finding F4

Summary of Changes

I fixed F4. When a child of a parallel epic run stops being blocked, its blocker explanation is no longer just wiped. If another child is still blocked, that child's explanation now shows on the queue instead, so the epic doesn't sit "active" with no reason given.

The fix is in clearEpicQueueHeadBlocked (packages/core/src/services/taskPlanning/epicQueueBlockedHead.ts). The queue only stores one blocker reason, so for a parallel run the function now checks the other children before clearing. It looks at each one that hasn't been merged or closed yet, in queue order, and reads the latest saved history of its current run. If that run completed and was marked terminalReason: 'blocked', its reason is written to the queue. Otherwise the reason is set to null as before. It uses the same blocked check as the existing stale-run reconcile in planIssueTrigger.ts. The write still has all the earlier guards: same execution, still active, same cursor, and the clearing issue's exact reason. Sequential runs work exactly as before.

Tests added to packages/core/test/epicQueueBlockedHead.test.ts:

  • The finding's scenario: children #10 and #30 both report a blocker, so the queue shows #30's reason. #30 is run again and opens a PR, and its normal completion clears its blocker. The queue stays active and now shows #10's reason. Once #10 also settles normally, the reason clears. This test fails on the old code and passes with the fix.
  • Siblings that shouldn't take over: a child that is already merged, or whose latest run ended without a blocker, doesn't keep a reason in place.

Checks run: epicQueueBlockedHead.test.ts passes 10/10, and the four other epic-queue test files in core all pass (52 tests). Core typecheck is clean, and eslint --max-warnings 0 passes on the changed source file. ESLint's config skips core test files, so the new test file wasn't linted. I didn't run the root test/issueJobBlocked.test.ts: it replaces the function being changed with a mock, and its signature didn't change.

Remaining gap: if a sibling's blocked result hasn't been saved to the run history yet when the clear runs, that sibling isn't found and the reason is cleared. A sibling that reports its blocker after the clear sets the reason again itself. This change doesn't make the check and the write a single atomic step.

There's nothing visible to preview: this changes server-side queue state only.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 4m 39s
  • Tokens: 740,262 (733,598 in / 6,664 out)
  • Cost: $0.56

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

… blocked, its blocker explanation is no longer just wiped. If another child is still blocked, that child's explanation now shows on the queue instead, so the epic doesn't sit "active" with no reason given.

I fixed F4. When a child of a parallel epic run stops being blocked, its blocker explanation is no longer just wiped. If another child is still blocked, that child's explanation now shows on the queue instead, so the epic doesn't sit "active" with no reason given.

**The fix** is in `clearEpicQueueHeadBlocked` (`packages/core/src/services/taskPlanning/epicQueueBlockedHead.ts`). The queue only stores one blocker reason, so for a parallel run the function now checks the other children before clearing. It looks at each one that hasn't been merged or closed yet, in queue order, and reads the latest saved history of its current run. If that run completed and was marked `terminalReason: 'blocked'`, its reason is written to the queue. Otherwise the reason is set to `null` as before. It uses the same blocked check as the existing stale-run reconcile in `planIssueTrigger.ts`. The write still has all the earlier guards: same execution, still active, same cursor, and the clearing issue's exact reason. Sequential runs work exactly as before.

**Tests added** to `packages/core/test/epicQueueBlockedHead.test.ts`:
- **The finding's scenario:** children #10 and #30 both report a blocker, so the queue shows #30's reason. #30 is run again and opens a PR, and its normal completion clears its blocker. The queue stays active and now shows #10's reason. Once #10 also settles normally, the reason clears. This test fails on the old code and passes with the fix.
- **Siblings that shouldn't take over:** a child that is already merged, or whose latest run ended without a blocker, doesn't keep a reason in place.

**Checks run:** `epicQueueBlockedHead.test.ts` passes 10/10, and the four other epic-queue test files in core all pass (52 tests). Core typecheck is clean, and `eslint --max-warnings 0` passes on the changed source file. ESLint's config skips core test files, so the new test file wasn't linted. I didn't run the root `test/issueJobBlocked.test.ts`: it replaces the function being changed with a mock, and its signature didn't change.

**Remaining gap:** if a sibling's blocked result hasn't been saved to the run history yet when the clear runs, that sibling isn't found and the reason is cleared. A sibling that reports its blocker after the clear sets the reason again itself. This change doesn't make the check and the write a single atomic step.

There's nothing visible to preview: this changes server-side queue state only.

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

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

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR implements opt-in blocker reporting across issue runs, follow-ups, Ultrafix, and epic queues. No merge-blocking defect was verified from the supplied code. It is merge-ready within the visible scope, conditional on the remaining validation check passing.

✅ Publication is bypassed — Blocked issue and follow-up runs exit before commit and push operations; selected review findings remain pending.

✅ Queue recovery preserves blockers — Blocked task history is excluded from abandoned-work reconciliation, and dispatch guards prevent restarting a blocked queue head.

✅ Default behavior is covered — Tests exercise disabled reporting, genuine no-change completion, both sequential advance policies, and parallel executions.

The original issue specification is explicitly truncated, so compliance with its unseen acceptance criteria cannot be assessed. This was a static review; no commands or tests were run. The supplied current-head status reports 37 passed checks, none failed, and one pending.

Merge blockers

No merge blockers.

Suggestions

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

S5: 🟢 Cover notifications without payload metadata

The new notification suppression checks payload.metadata.terminalReason, while existing projection tests exercise completion events whose details come from persisted history. Add a blocked-run case with the reason present only in history to establish the intended behavior for that input. This is additional coverage rather than a verified blocker: the supplied context does not establish a production caller that delivers blocked completions without their terminal reason.

S6: 🟢 Document the terminal reason centrally

Add blocked to the terminal-reason table in docs/docs/architecture/worker.md. The repository-workflow documentation already explains it accurately, so this is an optional documentation consistency improvement.

Score

The implementation has broad, targeted regression coverage and no verified actionable defect. Current checks are favorable, with final validation still pending.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 14s
  • Tokens: 84,559 (82,947 in / 1,612 out)
  • Cost: $0.78

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

🤖 Review by ProPR

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a "blocked" run outcome so a run that stops to report a blocker is not reported as done

1 participant