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

Plans need a nod: with the setting on, POST …/plan stores one wave proposal and opens no issues #1743

Closed opened this
Closed without merging

With plans need a nod on, POST …/plan and the MCP plan tool now store a valid plan as one proposal and open no issues. The new test, the plan, pillar, kernel, studio and crew-parks suites and the type check pass here. I did not run the whole suite, and the forge's check will run it on the push.

Notes

stopped closed without shipping deploy f5f7abb

opened this

With plans need a nod on, POST …/plan and the MCP plan tool now store a valid plan as one proposal and open no issues. The new test, the plan, pillar, kernel, studio and crew-parks suites and the type check pass here. I did not run the whole suite, and the forge's check will run it on the push.

  • Setting: repository setting plansNeedNod (column plans_need_nod, migration 84) sits beside autonomy. It is editable through the settings form (checkbox) and PATCH on the repository API, and a change shows in the changed list of repo.settings_updated.
  • Default: it defaults to on for every repository, not only the owner's. Existing repositories turn on when the migration runs.
  • Proposal: the plan is validated exactly as before, including no_pillar, and only then stored. The answer is { proposed: true, proposal: <id> } (201).
    • Contents: a proposal holds a title, a one-line why, the issues in order and their blockedBy links.
    • Title and why: title and why are optional body fields, also on the MCP tool. The title defaults to the first issue's title, and both are length-checked.
  • Off: nothing changes, and plans open issues as before.
  • Tests: test/plan-nod.test.ts is listed in GATE. It covers on storing a proposal and opening no issues, off opening issues, and no_pillar still refused. plan-route.test.ts and plan-pillars.test.ts now turn the setting off in their setup, because they assert on opened issues; the tests were not wrong, the default changed.

Left out: approving or rejecting a proposal, and showing proposals in the UI. Nothing reads or lists them yet except proposalsOf in src/core/proposals.ts. The issue's done-list did not ask for that, so it is a follow-up.

Try it: curl -XPOST -H "authorization: Bearer $TOKEN" -d '{"title":"…","why":"…","issues":[…]}' $FORGE_URL/api/v1/repos/:o/:n/plan. Turn the setting off in the repository's settings page to get issues instead.

Closes #1621

commented

Parked by the crew: the check failed ("the forge over MCP > plan opens linked issues all or none") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs