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

With 'plans need a nod' on, POST …/plan stores one proposal and opens no issues #1860

Closed opened this
Closed without merging

With "plans need a nod" on, POST …/plan and the MCP plan tool store one proposal and open no issues. bun x tsc --noEmit is clean. I ran test/mcp.test.ts, test/plan-route.test.ts, test/triage.test.ts, test/check-list.test.ts and test/reserved-names.test.ts, and all passed.

Notes

stopped closed without shipping deploy eaacf22

opened this

With "plans need a nod" on, POST …/plan and the MCP plan tool store one proposal and open no issues. bun x tsc --noEmit is clean. I ran test/mcp.test.ts, test/plan-route.test.ts, test/triage.test.ts, test/check-list.test.ts and test/reserved-names.test.ts, and all passed. I did not run the full suite. My attempt to run test/schema.test.ts, test/repos.test.ts and test/api.test.ts matched no test files, so it ran nothing.

What changed

  • Setting: repositories get a plansNeedNod setting, stored in a new column added by migration 90. An admin sets it through PATCH /api/v1/repos/:owner/:name. An agent cannot change it, the same rule as decisionsBy.
  • Default: the column defaults to on for every repository, not just the owner's. "The owner's repositories" was ambiguous and a per-owner default would have added a rule of its own. Say so if you want it narrowed.
  • On: the plan route and the MCP tool run every check openPlan ran: no_pillar, cycles, unknown keys, permissions. Then proposePlan stores one row in the new plan_proposal table: title, why, and the ordered issues with their blockedBy.
    • It answers {status: "proposed", id}, with HTTP 202 on the route.
    • Optional title and why apply to the whole plan. title defaults to the first issue's title.
  • Off: openPlan behaves exactly as before.
  • Refactor: the checks in openPlan moved into a shared vet() in src/actions/plan.ts, so the on and off paths cannot drift apart.
  • Triage: src/crew/triage.ts calls openPlan directly, so it is unchanged.
  • Tests: test/plan-route.test.ts has new tests for on, off and no_pillar while on. test/mcp.test.ts has a new test for the tool storing a proposal while on. "plan opens linked issues all or none" now runs with the setting off, as the issue asked. The two existing plan-route tests that open issues also turn it off.
  • Gate and reserved names: no new test files and no new page, so GATE and the reserved names are untouched.
  • Docs: docs/PLANNING.md has a short section on the setting.

Left out

  • There is no nod action yet: nothing lists, approves or opens a stored proposal. The issue only asked for storing one.
  • There is no settings-page toggle. The setting is reachable through the API only.

Try it: POST /api/v1/repos/:owner/:name/plan with {"issues":[…]} returns 202 and proposed. After PATCH with {"plansNeedNod": false} it returns 201 and opens the issues.

🤖 Generated with Claude Code

Closes #1813

commented

Parked by the crew: the check failed ("a plan says what each issue is for > an item with a pillar opens under its umbrella, and is ready when nothing else holds it") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs