update_work_plan
Modifies one work plan or up to 100 with the SAME patch, each one succeeding or failing ALONE: title, summary, version, due date, position, document and status (null clears an optional field). The code never changes. A work plan is a named list of tasks (a sprint, an MVP milestone): NOT the planning tool propose_plan, NOT a canvas dependency link between blocks. A task belongs to a plan by the label plan: followed by the plan code (set it with update_task addLabels); progress, refinement and readiness are COMPUTED at read time and not stored. A label that would close a dependency loop through plan membership is refused by update_task, create_tasks and import_tasks; the web task editor and move_task_to_project do not judge it, so a loop made there shows as a cycle warning when reading the plan and blocks nobody. Statuses: brouillon → raffinage → pret → en-cours → termine, or annule from any status but termine (annule is final). Allowed returns: raffinage → brouillon, pret → raffinage, en-cours → pret or raffinage, termine → en-cours. raffinage → pret is refused while a task to refine is not refined (each one is named with what it misses), and for a plan with no task to refine. termine and annule answer gatedByStatusChange; annule also stamps cancelledAt and answers dependentsNowBlocked (what waits for this plan: an edge towards a cancelled plan BLOCKS until a decided lift). FROZEN LIST: moving a plan to en-cours freezes its list (one row per live task carrying the plan label, answered in frozenList; a task awaiting triage or already in another plan in progress refuses the move by name; a plan frozen before keeps its list); settle records verdicts on tasks of that list (fait with a proof whose links are http(s) URLs or ids of the task's own deliverables, bloque with a motive), answered in settled and settleFailed; they are written after the plan's own checks (document, status move, readiness) and before the status change, and a verdict written stays written when the status change then fails or is held (that failure still lists it in settled); termine becomes a CHECKED closure answered in closure: each counted task is done with a proof, blocked with a motive (or waiting on the arbitration cited in motiveLink), or withdrawn in exits with a closed reason (an exit naming a task outside the frozen list refuses the closure; an exit clears the task's earlier verdict, proof and motive), re-checked against the real task at that moment, otherwise nothing of the closure is written (no exit, and no change to the plan from this call) and the unsettled tasks are listed; a task appears at most once per call across settle and exits; a plan that is en-cours WITHOUT a frozen list (it moved to en-cours before the checked closure existed) is refused at termine (closure-not-frozen): move it back to pret, then to en-cours to freeze it, then close it; a closure by an agent is marked decidedBy: "agent", toReValidate: true. In a project in VALIDATION mode (or whose configuration could not be read: the doubt counts as validation), exits is refused to an agent and the closure is held (closure-held-for-validation, the plan stays en-cours): withdrawing and closing are human decisions there, and NO human surface closes a plan or withdraws its tasks yet (the site has no screen for plans), so such a plan stays en-cours; a fait verdict counts only once a human has validated the task. Leaving en-cours, or annule, releases the tasks of the list. On an OAuth connection, cancelling a plan (annule) is refused, with no plan changed, until the call carries the confirmationToken that the refusal itself returned (a token issued for another call is refused); the refusal names the plan(s) to be cancelled, and the user's explicit yes comes between it and the second call that carries the token. The token shows that the refusal was read, not that the user agreed. An API key or a session is not asked for it. A plan changed by someone else while the call ran is reported failed ("changed concurrently"): resend. Writes are refused while the project is write-locked for agents.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"planCode": "<planCode>"
},
"name": "update_work_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dueOn | No | `null` clears it. | |
| exits | No | With `status: "termine"` only: the tasks that leave the frozen list with this closure, each with a closed reason (up to 500); applied only if the closure passes. A task named here is not also in `settle`; an exit clears any earlier verdict, proof and motive of the task. | |
| title | No | The title of the plan (1 to 200 characters). | |
| settle | No | Verdicts on tasks of the plan's FROZEN list (up to 100), written after the plan's own checks (document, status move, readiness) and before the status change; a verdict written stays written when the status change then fails or is held, and that failure lists it in `settled`. One plan code only; a task appears at most once per call across `settle` and `exits` (one verdict or one exit, not both). The closure re-checks each verdict against the real task. | |
| status | No | The new status. The server applies the status table and refuses a move that is not allowed. | |
| summary | No | `null` clears it. | |
| version | No | `null` clears it. | |
| planCode | Yes | The plan code, or up to 100 codes that receive the SAME patch (each one succeeds or fails alone). | |
| position | No | `null` clears it. | |
| documentId | No | `null` unlinks the document. | |
| confirmationToken | No | Only read on an OAuth connection, where cancelling a plan (`status: "annule"`) is refused until the call carries the `confirmationToken` that the refusal itself returned (up to 64 characters). A token that was not issued for this very call (this tool, this account, this project and exactly these targets) is refused. The refusal names the plan(s) concerned, and the user's explicit yes comes between that refusal and the second call that carries the token. The token shows that the refusal was read; it is not the user's agreement. An API key or a session is not asked for it and the field is ignored there. | |
| expectedProjectId | No | UUID of the project THIS call targets (overrides the session project). |