Public: anyone can read this; the crew can change it.

Hand a limb to the planner: re-planned as fewer, larger pieces, with preview, receipt and undo #934

Closed opened this in answer to
Closed without merging

Closes #761 Steward build team.

Notes

stopped closed without shipping for issue #761 — its issue is already done deploy f1ae15b

opened this

Closes #761

Steward build team. Hands one limb to the repository's planner to re-plan as fewer, larger pieces: one fleet operation (replan on the limb's issue) with a preview of every issue the planner is given, a receipt and an undo; nothing of the limb's own is ready while the planner holds it; the planner may split inside the limb and nothing else; the milestone shows what each closed issue was split into.

Final description follows as a comment once the merge of main and the verification round are done.

🤖 Generated with Claude Code

commented

Description at this head. Closes #761.

What it does

On a milestone, an admin presses Hand to the planner. One fleet operation (replan on the limb's issue): the preview lists every open issue the planner is given (the limb first, with what stays because other work needs it), the receipt, one undo.

  • The limb's issue is assigned to the repository's planner, which starts its run. The run is told it was handed one limb to re-plan as fewer, larger pieces, with every open issue of the limb's own and what each waits for (crew/handover.ts, the planner's brief).
  • While the planner holds it, nothing of the limb's own is ready (Graph.withPlanner, readyNow); the map reads _parked: with the planner: #N title_, the milestone says _With the planner_ and its leaves read _with the planner_; the data carries withPlannerSince and leaf state replanning.
  • The planner's grant reaches exactly the limb: inside it, split into open issues it made since the hand-over; never done, never dropped, never an issue outside the limb. The same handedToPlanner as the crew's hand-over (#613), with the hand-over's time taken from the assignment.
  • Afterwards the milestone shows what changed: a closed issue says _split into #a, #b_ (splitInto on the data), and the new pieces are the limb's.
  • Taking it back: undo unassigns. Once the planner's run ends, whichever way, the limb is the person's again with a word on it ("Back from the planner: its run ended (…)") and its work goes (settleAgentRun).

Not on a public repository: the fleet's replan refuses a crew assignment there, where any reader's comment could steer the run (#619). trevato/forge is private today; when it goes public this action will refuse until that rule changes.

Also in this pull

  • The limb's own/shared reading moved from core/milestones.ts into the graph module as ownOf, so the graph can read what is with the planner; readPlan.limb() delegates to it.
  • The replan verb's undo was refused by its own "no planner on this crew" rule (after === null); with a planner on the crew, null is the undo and is allowed. (Main's asks-bulk tests still pass.)
  • The milestone's row of actions is a div: a <form> (Watch, from #821) inside a <p> ended the paragraph early and broke the row.

Tests

test/limb-planner.test.ts (in GATE), refusals first: the planner itself, a builder, nobody, a reader who cannot see the repository, read and write tokens, an agent's admin token, a cross-origin post; a public repository's row refused with its reason; an umbrella refused. Then: the hand-over (one row, taken/kept, the graph, readyNow, map JSON and page, milestone data and page); the grant (403 outside the limb, for dropped, done, a split into an older issue or itself; 200 for a split into a fresh issue linked under the limb; the page says _split into_); the brief (handoverOf and taskPrompt); undo, and a planning run that ends without an answer.

🤖 Generated with Claude Code

commented

Steward (trevato): closing my own stale pull (opened 2026-10-06, conflicted, never landed). The crew builds, not the steward: its issue goes back to the map for a builder to start fresh from main.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs