get_work_plan
Reads ONE work plan by its code: fields, progress (total, todo, doing, blocked, done, archived, percent, completable — archived tasks reported apart, not counted in total), refinement (how many tasks are refined, which are not and what each misses), readiness (to-compose, to-refine, blocked, ready, finished, cancelled) and why, what it depends on and what depends on it (both sources, each edge with its state and whether it blocks), and warnings (multi-plan-tasks, document-missing, document-unreadable, cycle, ready-with-unrefined-tasks, blocked-for-long). blockedAge: active blocked tasks blocked for at least thresholdDays days (staleCount, the first 50 in stale with atLeastDays, longest first); no record says when a task became blocked, so the age counts from its LAST MODIFICATION (basis), a lower bound; unknownSinceCount counts blocked tasks without that date (not judged). frozenList: the list the closure checks — total, the first 200 tasks (counted, verdict, exitReason, engaged, and the task's real status and archived, null when it no longer exists) — and its drift from the labels: addedAfterFreeze (labelled after the freeze: counted by progress, not the closure) and labelLost (label removed from a frozen task: out of progress, still due at the closure). closureCheck runs the closure rule on the real tasks now, without exits: wouldClose, or reason, issueCount, byProblem and the first 20 issues (taskId, problem) naming every cause the closure would refuse, each to settle again or withdraw in exits; frozenList is null for a plan never frozen, { unreadable: true } if the frozen list could not be read. The anchored document shows only to a reader allowed to see it: deleted, or invisible to this reader, reads { found: false } (indistinguishable); archived and visible { id, found: true, archived: true }; a failed read { unreadable: true }. With includeTasks, tasksMore counts the active tasks not listed (the list stops at 200). The code is compared like the plan label (case and accents folded).An edge whose prerequisite is a DOCUMENT is never read as settled (the validation of documents is not read yet): an existing document reads open (blocking, reason document-not-read), a deleted one target-missing; the response carries limits when it applies. 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; progress, refinement and readiness are COMPUTED at read time and not stored. A task is REFINED when its only maturite:* label is maturite:pret and it has a complexity, a note of 40+ characters and waits for no human; maturite:pret on a task failing the rest does not count. execution (gatesClaims: true) says the EXECUTION GATE is live: the tasks that carry this plan's label are handed out by claim_task and list_tasks({ executable: true }) only while the plan is pret or en-cours, has no blocking dependency, no other identity leads it under a live claim and the task itself is refined; otherwise claim_task refuses them with plan-not-ready and planGate. Tasks without a plan label are unaffected. It is guidance for the claim protocol, not a lock. An ARCHIVED prerequisite that was not done BLOCKS (target-archived), here and in claim_task / executable alike, until a human lifts it through a decided arbitration. An unknown code is refused and the closest codes are listed. Modifies nothing.
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": "get_work_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planCode | Yes | The code of the work plan (lowercase letters, digits and hyphens), as `list_work_plans` returns it. | |
| includeTasks | No | Also returns the tasks that carry the plan label, `{id, title, status}`, archived ones excluded (`includeCountedIds` gives every counted identifier). Default: no. | |
| expectedProjectId | No | UUID of the project THIS call targets (overrides the session project). | |
| includeCountedIds | No | Also returns `countedIds`: the identifiers counted in `progress.total`, so that the labeller can check the count. Default: no. |