Repository navigation
Keep an Unattended Worker From Replying Before Its Review Finishes - #2648
Conversation
Worker step 4 now names the local strict review pass as a wait the worker holds its turn for, and states the reason as the orchestrator acting on the reply line at once, which the recurrence on a later run showed to be the real failure: the worker did wake, after the run had already ended on its line. Step 8 makes the reply the worker's last act, and "Return Lines" rules out STOP for anything about the worker's own issue, which parks instead. Refs #1837 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The park rule now covers only a cause particular to the worker's own issue, so a quota or label state still stops the run once rather than parking every later lane. Step 4 requires the review dispatch in the foreground and sends a background-only harness to STOP. Refs #1837 Co-Authored-By: Claude Opus 5.5 <[email protected]>
… Step 5 A background reviewer satisfies step 4 where the harness wakes the worker on its completion before any reply goes out, so only a harness with neither that wake nor a foreground dispatch stops the run. A cause particular to one issue is now stated as the maintainer's choice of how that issue proceeds, which is step 5's own parking case. Refs #1837 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs #1837 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟡 Changes recommended
The worker may still reply while its background review is running.
1 open finding
What changed in this PR
Updates unattended worker rules to prevent replies before review completion and regenerates distributed skill copies.
Changes:
- Clarifies
STOP,PARKED, and review-wait behavior. - Requires spawned work to finish before replying.
- Regenerates skill distributions and source digest.
| File | Changes |
|---|---|
.github/skills/unattended-handoff/SKILL.md |
Generated GitHub skill copy |
.claude-plugin/fleet-skills/skills/unattended-handoff/SKILL.md |
Generated plugin skill copy |
.claude-plugin/fleet-skills/.source-digests/unattended-handoff |
Updated source digest |
.agents/skills/unattended-handoff/SKILL.md |
Canonical worker rule changes |
🧠 Review effort: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2648 +/- ##
========================================
Coverage 59.34% 59.34%
========================================
Files 16 16
Lines 8282 8282
========================================
Hits 4915 4915
Misses 3367 3367
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…nning A worker that can neither dispatch the reviewer in the foreground nor be woken by its completion now returns STOP before dispatching it, so no reviewer is still running when the line reaches the orchestrator. Refs #1837 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Promotes the one change develop holds over main: `unattended-handoff` keeps a worker from replying before its local strict review reports. Worker step 4 decides how to run the review before dispatching it, either in the foreground or in the background only where the harness wakes the worker on completion, and returns `STOP` before dispatching where neither route exists. Step 8 makes the reply the worker's last act. "Return Lines" rules out `STOP` for a cause particular to one issue, which parks instead (#2648). Fixes #1837 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Summary
Closes the worker early-return defect in
unattended-handoffthat #1837 records. In two unattended runs, a worker handed itslocal-strict-reviewpass to a background subagent and repliedSTOPnaming the unfinished pass. That ended the whole run on a per-issue condition with backlog still pickable, and left the handoff neither closed nor parked. In the later run the worker then woke on the pass's completion and finished the lane after the run had already acted on its line.local-strict-reviewpass as a wait like any other. The worker replies only after its reviewer has reported, either because the reviewer ran in the foreground or because the harness woke the worker on its completion before any reply went out. A worker with neither returnsSTOP, since every later worker in the run would meet the same harness. The reason step 4 gave before ("a subagent receives no completion notification, so a wait handed to a monitor or a background task never wakes it") is replaced, because the recurrence showed a worker being woken. The real failure is that the orchestrator acts on the line the moment it arrives.STOPout for a cause particular to the worker's own issue, one a later round on another issue would not meet. Such a cause is the maintainer's choice of how that issue proceeds, which is step 5's parking case, so the worker parks and repliesPARKED.This is rule text, and #1837 left its wording for the maintainer to settle in review.
Local strict review
Four recorded passes. The first raised 2 findings plus 3 sentence-length violations, and the second raised 2 findings that the first round's wording introduced. Both edit rounds fixed everything raised. The third pass was clean, and the fourth confirmed a whitespace-only reflow. No
introducedfinding remains open.Part of #1837. The closing keyword goes on the promotion PR.
🤖 Generated with Claude Code