Skip to content

long-running: 馃悰 the root ends a done Orca lane with orca-gc --done - #269

Merged
yasyf merged 1 commit into
mainfrom
long-running/root-ends-done-lanes
Oct 6, 2026
Merged

yasyf merged 1 commit into
mainfrom
long-running/root-ends-done-lanes

Conversation

@yasyf

@yasyf yasyf commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Context: At 2:06 AM on October 6, 2026, the owner ruled that the root ends a done Orca lane itself (cc-notes answer edfa70e): "if a lane is done you can just terminate it no need to do this dumb signal thing". Before that ruling, O6 and R195 let the root reclaim a lane only after the lane sent worker_done. So a stood-down or superseded lane had to be messaged and asked to report completion before anything could end it.

Summary: O6 and R195 give the root a second route. Once it decides a lane in its own Run is done (stood down, superseded, or its deliverable on disk), it runs orca-gc --run <run> --done <ctx>. That call stops the worker, closes its terminal, and reclaims its worktree under the existing rules. The remote-worker paragraph keeps remote runtimes and workspaces, and points local lanes at the same route.

Motivation: The root already owns the Run and the decision. Messaging the lane to send worker_done adds a round trip and protects nothing. The other session protections are unchanged: no pkill, no signals, no bulk closes, and the runner still never ends a session.

Details: The --done verb ships in Forge-AI/monorepo's .agents/skills/orca/scripts/orca-gc. The captain-hook sessions guard change that allows a bare worker-stop from the coordinating root is yasyf/captain-hook#320. long-running goes from 0.6.153 to 0.6.154.

Claude-Session-Id: 0c0cf582-9d66-49b9-81f7-2bd1ff773bbd
@yasyf
yasyf merged commit c48b6b8 into main Oct 6, 2026
6 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.

1 participant