Skip to content

Add an Unattended Handoff Loop and an Attended Resume Procedure - #1806

Merged
ptr727 merged 10 commits into
developfrom
feature/unattended-handoff
Sep 25, 2026
Merged

ptr727 merged 10 commits into
developfrom
feature/unattended-handoff

Conversation

@ptr727

@ptr727 ptr727 commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • New unattended-handoff skill. A lean orchestrator runs rounds. Each round dispatches a picker subagent, which picks or creates an auto-<issue> handoff whose work needs no maintainer decision. It then dispatches a worker subagent, which fixes the issue, merges as far as the invocation scope allows, and closes the lane out. The orchestrator holds only one-line returns, so its context stays flat over a long run.
  • Scope is named at invocation. develop is the default. main also merges each round's promotion PR, and release also dispatches the release. merge-and-release recognizes this as its one standing grant.
  • Parking. A worker that meets a maintainer decision parks the lane instead of asking. It pushes the branch, files a decision issue with a recommended option, comments the lane's state on the handoff, and labels the handoff blocked.
  • "The Attended Session" in session-handoff. "Resume the handoff" alone now picks the newest open link and resolves a parked lane's decision first. It drives to a mergeable promotion PR, asks every question as a dialog with the recommendation and its reason, writes the next link, and saves memories last.
  • blocked is widened (GOVERNANCE, repo-config/README.md, labels.json) to cover a handoff parked on a decision issue in the same repository. Only a session handing the link back removes it.
  • AGENTS.md "Session Scope" now names the closed-out track. drive-pr recognizes the attended procedure's main target.

Verification

  • build_dist.py --check, prose_lint.py --diff origin/develop, docker_lint.py (7 linters), spec/validate.py, and the test_build_dist / test_prose_lint suites pass.
  • The local strict review ran over 4 recorded passes. The last pass raised 4 findings that are not yet fixed. They are answered in this PR's review loop.
  • The label description change is not applied to live repository labels yet. That is a separate fleet label-set apply.

🤖 Generated with Claude Code

ptr727 and others added 5 commits September 24, 2026 21:58
Adds the unattended-handoff skill: a lean orchestrator that loops a
picker subagent (choose or create a handoff needing no maintainer
decision) and a worker subagent (fix it, merge as far as the invocation
scope allows, close it, or park it on a decision issue under the
blocked label). Scope is develop by default, main or release when named.

Adds "The Attended Session" to session-handoff, so "resume the
handoff" alone picks the newest open link, drives to a mergeable
promotion PR, asks every question as a dialog with a reasoned
recommendation first, writes the next link, and saves memories last.

Widens the blocked label to cover a handoff parked on a decision issue
in the same repository.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Answers the local strict review: skip issues already fixed on develop,
pick only auto-* lanes, read the parking comment on resume, close an
answered decision issue, add a STOP return line, recognize the scope
grant in merge-and-release, and state the parked-handoff exceptions in
the label taxonomy.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Answers the second strict review pass: exclude any issue a develop-only
PR names, test develop against main by content and re-check before the
promotion, keep blocked on while an attended session works a lane, let
the picker clear a blocker whose decision was answered, close out a
finished auto-* lane in the attended procedure, recognize the attended
target in drive-pr, and state the closed-out track in Session Scope.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Answers the third strict review pass: only the session handing a lane
back removes blocked, a lane-only content test replaces the file-name
check and exempts the lane's own merge, the picker skips issues claimed
by a handoff or a burndown group, and a resumed worker reads the
maintainer's answer.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Deletes the lane-only promotion test, which kept failing on multi-merge
lanes and halted a run after one park. Also keeps a cleared parked
handoff blocked until a session hands it back, and carries the
maintainer's answer into the handed-back link.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 25, 2026 05:22
@coderabbitai

coderabbitai Bot commented Sep 25, 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: 8702c690-8bd5-43c4-abd2-ad22e55efbf2


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.

Answers the pre-push strict review: STOP instead of re-parking on a
promotion already waiting on a decision, bound the loop to one run per
repository, exclude the canonical-sweep issue, and keep presenting the
parked queue when an attended session closes out an auto-* lane.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

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.

Copilot review overview

🟡 Changes recommended

A few updated procedures contain avoidable ambiguities/formatting breaks that should be tightened to prevent mis-execution when followed verbatim.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 3 Low severity

Open (3)
What changed in this PR

This PR extends the fleet’s handoff workflow by adding a new unattended-handoff skill (an orchestrated picker/worker loop designed to keep orchestrator context flat), and by formalizing the attended “resume the handoff” procedure in session-handoff. It also widens the meaning of the blocked label to cover parked handoffs waiting on an in-repo decision issue, with corresponding updates to governance, label payloads, and related skills.

Changes:

  • Add the new unattended-handoff skill (source + generated distributions) describing the unattended picker/worker loop, scope grants, and parking procedure.
  • Expand session-handoff with an explicit attended resume procedure that prioritizes resolving parked decisions and driving to a mergeable promotion PR.
  • Update blocked label semantics across GOVERNANCE, label docs, and label payload; update related skills (merge-and-release, drive-pr, agent-conduct) to recognize the unattended run and attended resume flow.
File Description
repo-config/​README.md Updates blocked label documentation to include parked handoff semantics and exceptions.
repo-config/​labels.json Updates blocked label description text (must stay within label API constraints).
GOVERNANCE.md Adds a governance rule clarifying blocked usage for parked handoffs awaiting maintainer decisions.
AGENTS.md Clarifies handoff chain closure behavior and documents the new unattended-handoff skill in the skill map.
.github/​skills/​unattended-handoff/​SKILL.md Generated distribution copy of the new unattended-handoff skill.
.github/​skills/​session-handoff/​SKILL.md Generated distribution copy reflecting the new attended resume procedure.
.github/​skills/​merge-and-release/​SKILL.md Generated distribution copy reflecting the standing grant behavior for unattended runs.
.github/​skills/​drive-pr/​SKILL.md Generated distribution copy noting resume the handoff implies “to a mergeable promotion PR”.
.github/​skills/​agent-conduct/​SKILL.md Generated distribution copy mirroring the new blocked parked-handoff governance rule.
.claude-plugin/​fleet-skills/​skills/​unattended-handoff/​SKILL.md Plugin distribution copy of the new unattended-handoff skill.
.claude-plugin/​fleet-skills/​skills/​session-handoff/​SKILL.md Plugin distribution copy reflecting the attended resume procedure.
.claude-plugin/​fleet-skills/​skills/​merge-and-release/​SKILL.md Plugin distribution copy reflecting unattended-run standing grant behavior.
.claude-plugin/​fleet-skills/​skills/​drive-pr/​SKILL.md Plugin distribution copy reflecting attended resume implications.
.claude-plugin/​fleet-skills/​skills/​agent-conduct/​SKILL.md Plugin distribution copy mirroring the new parked-handoff blocked governance rule.
.claude-plugin/​fleet-skills/​.source-digests/​unattended-handoff New digest entry for the new skill source.
.claude-plugin/​fleet-skills/​.source-digests/​session-handoff Digest updated for the session-handoff skill source change.
.claude-plugin/​fleet-skills/​.source-digests/​merge-and-release Digest updated for merge-and-release skill source change.
.claude-plugin/​fleet-skills/​.source-digests/​drive-pr Digest updated for drive-pr skill source change.
.claude-plugin/​fleet-skills/​.source-digests/​agent-conduct Digest updated for agent-conduct skill source change.
.claude-plugin/​fleet-skills/​.claude-plugin/​plugin.json Registers the new unattended-handoff skill in the plugin manifest.
.agents/​skills/​unattended-handoff/​SKILL.md Hand-authored source for the new skill (canonical content).
.agents/​skills/​session-handoff/​SKILL.md Canonical skill source updated with “The Attended Session” procedure.
.agents/​skills/​merge-and-release/​SKILL.md Canonical skill source updated to recognize unattended-run standing grants.
.agents/​skills/​drive-pr/​SKILL.md Canonical skill source updated to treat attended resume as implying the “to main promotion PR” target.
.agents/​skills/​agent-conduct/​SKILL.md Canonical skill source updated with the parked-handoff blocked governance rule.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .agents/skills/session-handoff/SKILL.md Resolved
Comment thread repo-config/README.md Resolved
The promotion-decision STOP moves from the worker, where it left a
merged lane unrecorded, to the picker, and a parking decision issue now
names the pull request it concerns so that check can find it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 25, 2026 05:31
A parked decision now names each pull request it blocks, the open
promotion included, and reuses an open decision already asking the same
question, so the picker's promotion check finds it and no duplicate is
filed.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
ptr727 and others added 2 commits September 24, 2026 22:32
Answers Copilot on #1806: the attended pick walks the open links newest
first and takes the first one not skipped, and the README states the
cross-repository blocker and the parked-handoff differences plainly.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The attended pick now takes blocked links first, as parking promises,
and asks when every link is skipped. A reused decision issue gains a
comment naming the new handoff and every pull request it blocks.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

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.

Copilot review overview

🔵 Needs a closer look

There are documentation/formatting issues in newly added or updated prose that should be corrected for clarity and consistency before merge.

Review effort: Lite
Findings: 3 Low severity

Open (3)

Copilot AI review requested due to automatic review settings September 25, 2026 05:36

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.

Copilot review overview

🟢 Approval recommended

The changes are internally consistent across governance, label taxonomy, and skill procedures, and the updated label description remains within the enforced labels.json contract.

Review effort: Lite
Findings: None

Resolved since last review (3)

@ptr727
ptr727 merged commit e907c3b into develop Sep 25, 2026
9 checks passed
@ptr727
ptr727 deleted the feature/unattended-handoff branch September 25, 2026 06:05
ptr727 added a commit that referenced this pull request Sep 25, 2026
…rship to Main (#1827)

Promotes `develop` to `main`.

## Carried

- #1806: adds the unattended handoff loop and the attended resume
procedure.
- #1807: renames three skills and states which skill wins each shared
trigger.
- #1809: names a pin by its mechanism rather than its value, and audits
for copies.
- #1808: leads every choice with a recommendation and closes every
session in order.
- #1813: bans every version literal in the four instruction documents
and catches abbreviated SHAs, following #1809.
- #1820: refuses a coverage marker indented into a code block, per
#1725.
- #1823: states that the hub commits audit reports and that a downstream
session resyncs itself. This covers the Fleet Bootstrap section, the
host fleet block, `RESYNC.md`, `AUDIT.md`, `check-this-repo`, and
`resync-a-repo`, and settles #1822. The Fleet Bootstrap section is
byte-locked, so every carrier reports drift on it until its next resync.
- #1825: strips a tilde or unclosed fence before reading review
coverage, per #1821.

Closes #1725
Closes #1821
Closes #1822

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.

2 participants