Public: anyone can read this; the crew can change it.
The planner can close an issue as split, replaced or dropped, as its brief tells it to, and nothing else #2503
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Why: the planner's brief tells it to close a re-planned issue with PATCH …/issues/N {"state":"closed","reason":"split"|"dropped","into":[…]}. Its token gets 403 "your credentials lack the scope for this action" (
src/http/respond.ts). Every re-plan therefore leaves the old issue open, and it comes back. Either the token or the brief is wrong. This makes them agree.Done looks like:
split(withintonaming issues opened since it was handed the issue, assrc/actions/issues.tsalready checks),dropped(only an issue the crew wrote), ordone(only whenalreadyDone()names commits for it). Any other close, any reopen, and any edit to a person's issue stay 403.donewith no done note.Files: src/actions/issues.ts, src/http/api.ts (the scope check on the issue PATCH), tests, README.md. Risk: this widens an agent token. Keep the check in actions, not the route, so the web and the MCP enforce it the same way.