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 #1024

Closed opened this in answer to
Closed without merging

POST /api/v1/repos/:owner/:name/plan is in place, and the planner's brief now plans through it. The earlier check failure was about admin-only capacity, which this pull doesn't touch. I merged current main into the branch (it had drifted 38 commits).

Notes

stopped closed without shipping deploy 14fbe27

opened this

POST /api/v1/repos/:owner/:name/plan is in place, and the planner's brief now plans through it. The earlier check failure was about admin-only capacity, which this pull doesn't touch.

I merged current main into the branch (it had drifted 38 commits). I ran test/crew.test.ts, test/plan-pillars.test.ts and test/capacity.test.ts after the merge: 45 pass, 0 fail. I did not run the full sharded check. bun x tsc --noEmit couldn't run here because the bun type definitions aren't installed in this sandbox, so the forge's check is the first real type check.

  • Route: it takes { issues } and calls openPlan, the same action the MCP tool calls. It gives the same items and refusals, is all or nothing, and needs rw scope. A crew member's run token may use it. MCP is unchanged.
  • Brief: src/crew/brief.ts tells the planner to plan through that route, with one worked example carrying a pillar item and a later item with why. The one-at-a-time curl instructions are gone.
  • Test: test/crew.test.ts runs the stand-in agent. A plan with an item naming no pillar gets no_pillar and nothing is opened. The same plan with the pillar named opens the issues under the umbrella. test/plan-pillars.test.ts is adjusted to match.
  • Rule for issues opened outside a plan: written in docs/PLANNING.md. A split child serves its parent's pillar.

Not done: no page or look change, since the map already draws the result.

To try it, POST a plan with one item that has no pillar and get no_pillar back. Then name the pillar and the issues open under the umbrella.

Closes #713

commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs