Repository navigation
[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
Conversation
….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.
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe 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 ✅ 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 blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 List continuations incorrectly trigger blocked outcomes
F2: 🔴 Comment failures prevent recording blocked follow-ups
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Document the terminal reason centrallyAdd ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 91f89c3
Summary of ChangesI 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 F1: a marker inside a list no longer counts as a blocker (
F2: a failed comment no longer loses the blocked outcome (
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
💡 ProPR Slash Commands
🤖 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
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
Full Test Suite ResultsValidation failed during: Shard coverage verification.
|
|
ℹ️ Analyzed the follow-up request by @github-actions[bot] Analysis SummaryI 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
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
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Validate unsigned linux-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Validate unsigned linux-arm64 package Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Validate unsigned darwin-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Full Test Suite Shard 3/4 Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Full Test Suite Shard 1/4 Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Full Test Suite Shard 4/4 Please investigate and fix this CI failure.
Failure evidence
|
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI 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:
What's needed: the failed jobs just need to be re-run. I tried 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
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Validate unsigned darwin-arm64 package Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI 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:
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
💡 ProPR Slash Commands
🤖 Generated by ProPR |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe 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 ✅ 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 blockersEvery finding below was introduced by this PR and must be resolved before merging. F3: 🔴 Recognize fences opened inside list items
SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Document the terminal reason centrallyThe worker architecture’s terminal-reason table still omits ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 2387098
Summary of ChangesI fixed F3. The blocker parser now tracks fences opened on a list-marker line, so the closing The fix is in
Other callers: issue post-processing ( New tests:
Checks run:
There's no visual change, so I made no previews. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 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
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe 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 ✅ 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 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 blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Exercise blocked handoff recoveryAdd restart-recovery coverage between agent exit, blocker-comment publication, and terminal-state persistence. S4: 🟢 Cover history-only notification projectionExtend the notification test to omit ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
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 Required behaviour.
Where. Keep default behaviour unchanged when |
|
✅ Applied the requested follow-up changes in commit a9630a7 Summary of ChangesA 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 What happens now
Tests
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
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… 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
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe 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 blockersEvery finding below was introduced by this PR and must be resolved before merging. F4: 🔴 Preserve remaining parallel child blockers
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 9fdc2dc
Summary of ChangesI 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 Tests added to
Checks run: 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
💡 ProPR Slash Commands
🤖 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
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe 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 blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S5: 🟢 Cover notifications without payload metadataThe new notification suppression checks S6: 🟢 Document the terminal reason centrallyAdd ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3431
Branch:
3431/claude-opus-5-5-add-a-blocked-run-outcome-20261111-1911-053Commits: ✅ Changes committed (7da312e)
AI Processing Completed
Execution Details:
Summary:
I've added an opt-in
on_blocker: reportsetting to.propr/workflow.ymlfor 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 andeslint --max-warnings 0are clean in each touched package.How it works
on_blocker: continue | report, defaultcontinue. It goes through the existing parser, the JSON schema, thepropr initscaffold (as a commented-out line) and the docs page. With the key absent or set tocontinue, prompts are byte-for-byte unchanged (a test checks this). The blocked-run code is only loaded when the option is on.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 startingPROPR_BLOCKED:followed by the explanation./fixruns: nothing is committed or pushed, and selected review findings stay pending. The completion comment states the blocker instead of the no-change text.completedwith the new terminal reasonblocked, which shows in task history and in MCPget_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.fix_step_blockedand is not counted as a fix.kind: 'task'andmetadata.event: 'task.blocked'. The normal "completed" success notification is suppressed for these tasks.Decisions and limits
blockedtoAgentTerminationReason. That type marks a run as "partial but publishable", which would have sent blocked runs down the code path that commits and publishes.completeplus ablocked: trueflag, rather than a newblockedstatus. A new status would have pushed an existing function past the lint complexity limit. The task's terminal reason isblockedeither way.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.tsandprCommentBlocked.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:
ec77d4be-b589-4f41-810c-767991831b33Log files stored at:
/usr/src/app/logs/executions/issue-3431-2026-11-11T19-41-16-500Z-conversation.json/usr/src/app/logs/executions/issue-3431-2026-11-11T19-41-16-500Z-output.txtLatest Conversation Messages
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!