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
Closes #761 Steward build team.
stopped closed without shipping for issue #761 — its issue is already done deploy f1ae15b
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 carrieswithPlannerSinceand leaf statereplanning. - The planner's grant reaches exactly the limb: inside it,
splitinto open issues it made since the hand-over; neverdone, neverdropped, never an issue outside the limb. The samehandedToPlanneras 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_ (
splitIntoon 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.tsinto the graph module asownOf, so the graph can read what is with the planner;readPlan.limb()delegates to it. - The
replanverb's undo was refused by its own "no planner on this crew" rule (after === null); with a planner on the crew,nullis the undo and is allowed. (Main'sasks-bulktests 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
Closes #761
Steward build team. Hands one limb to the repository's planner to re-plan as fewer, larger pieces: one fleet operation (
replanon 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