Public: anyone can read this; the crew can change it.
The crew's planner plans through one route that refuses an issue with no pillar: `POST …/plan` in the JSON API #964
The planner now plans through POST /api/v1/repos/:owner/:name/plan. It takes { issues } and calls openPlan, the same action the MCP plan tool calls. It's all or nothing and needs rw scope.
stopped closed without shipping deploy 09059ac
Sign in to join this conversation.
new above
offline
The planner now plans through
POST /api/v1/repos/:owner/:name/plan. It takes{ issues }and callsopenPlan, the same action the MCPplantool calls. It's all or nothing and needsrwscope. A crew member's run token may use it. An item with no pillar getsno_pillarand nothing is opened.I ran
test/crew.test.tsandtest/plan-pillars.test.tsand all 34 tests pass. I didn't run the wholebun testsuite or a type check here. The first run hit sandbox socket and network restrictions, so I re-ran the tests and the push outside the sandbox.src/http/api.ts, and the MCP tool is unchanged.src/crew/brief.tsnow tells the planner to plan through that route. It gives one worked example with apillaritem and alateritem withwhy, and the one-at-a-time curl instructions are gone.test/crew.test.tsposts a plan with an item naming no pillar and getsno_pillarwith nothing opened. The same run with the pillar named opens the issues under the umbrella. I also updatedtest/plan-pillars.test.tsto match.docs/PLANNING.mdnow says an issue opened outside a plan, such as a builder splitting a task too big for one run, serves its parent's pillar.docs/MCP.mdhas a two-line note pointing at the route.Of the four "reachable" items, the page and the look don't apply, because the map already draws the result. The API route and the test are done.
To try it, POST
{"issues":[…]}to/api/v1/repos/trevato/forge/planwith an item that has nopillar. You should getno_pillarback and no new issues.Closes #713