Skip to content

Promote the Unattended Worker Early-Return Fix to Main - #2649

Merged
ptr727 merged 1 commit into
mainfrom
develop
Oct 9, 2026
Merged

ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

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

…2648)

## Summary

Closes the worker early-return defect in `unattended-handoff` that #1837
records. In two unattended runs, a worker handed its
`local-strict-review` pass to a background subagent and replied `STOP`
naming 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.

- **Worker step 4** names the `local-strict-review` pass 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 returns `STOP`, 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.
- **Worker step 8** makes the reply the worker's last act: only once
nothing it started is still running.
- **Return Lines** rules `STOP` out 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 replies
`PARKED`.

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
`introduced` finding remains open.

Part of #1837. The closing keyword goes on the promotion PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 9, 2026 14:44
@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b6fa3e45-f5aa-495a-8a77-7a8ed68efcf9

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Reconcile the no-dispatch behavior with the contradictory local-strict-review contract.

0 open findings

What changed in this PR

Promotes the unattended worker early-return fix and synchronized skill distributions to main.

Changes:

  • Prevents replies before local strict review completes.
  • Clarifies STOP versus PARKED behavior.
  • Updates generated skill copies and source digest.
File Summary
.github/​skills/​unattended-handoff/​SKILL.md Generated Copilot skill copy.
.claude-plugin/​fleet-skills/​skills/​unattended-handoff/​SKILL.md Generated Claude skill copy.
.claude-plugin/​fleet-skills/​.source-digests/​unattended-handoff Updated source digest.
.agents/​skills/​unattended-handoff/​SKILL.md Canonical updates; includes wording nits and a moderate contradiction with local-strict-review requiring reconciliation.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.34%. Comparing base (6427783) to head (370d921).
⚠️ Report is 349 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2649   +/-   ##
=======================================
  Coverage   59.34%   59.34%           
=======================================
  Files          16       16           
  Lines        8282     8282           
=======================================
  Hits         4915     4915           
  Misses       3367     3367           
Flag Coverage Δ
python-3.13 59.34% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Answering the round's headline, "Reconcile the no-dispatch behavior with the contradictory local-strict-review contract", which opened no thread and named no line: there is no contradiction to reconcile.

local-strict-review "Running It" (unchanged on develop) already settles a seat under unattended-handoff that cannot run the pass itself:

The brief dispatching the seat states whether the dispatcher can continue that seat. Where the dispatcher cannot, or under unattended-handoff, the seat stops, reports, and does not push. Either way the push waits rather than the pass being quietly skipped.

Worker step 4 in this change gives that same outcome for the one case it adds, a harness that can dispatch the reviewer neither in the foreground nor in the background with a wake before reply. The worker returns STOP before dispatching, so it stops, STOP <reason> is its report, and it does not push, since a push needs a recorded pass. "Return Lines" classes it as a session state, because every later worker in the run meets the same harness, and that matches the STOP definition the same table gives. Three local strict review passes on #2648 checked this pairing specifically and found them consistent.

The file table's "wording nits" are not named in the round and open no thread, so there is nothing further to triage.

@ptr727
ptr727 merged commit 01ffaa3 into main Oct 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An Unattended Worker Backgrounded Its Review Wait and Stopped the Run on One Issue

2 participants