cpm-planner
v0.8.0Critical Path Method scheduling and lock-aware parallel cohorts for MCP agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
plan.release.compile
Compile version-1 bounded release metadata into an ordinary lint-clean PlanGraph. Expands protected PR/check/approval/merge hops, producer retries, retained receipts and central acceptance. Every collection declares cardinality or a bounded retained source. Pure offline operation: never executes, accepts, submits or baselines work.
plan.release.diff
Compare a retained compiled graph with current version-1 workflow/promotion policy. Reports policy_changed, added/removed/changed ids and stale; includes retained-history estimate drift. Read-only: apply accepted changes through normal plan.sync or plan.revise.
plan.submit
Submit a plan graph and receive a plan_id. Idempotent: identical graphs return the same plan_id. With `name` (and optional `project`/`variant`, variant defaults to "main"), registers a named variant instead: project defaults to the discovered project root.
| Parameter | Type | Description |
|---|---|---|
graph * | object | |
name | string | Plan line name; when present the graph is synced as a named variant. |
project | string | Project key; required with `name` when no project root is discovered. |
variant | string | Variant name of a named plan (default "main"). |
plan.acquire_cohort
Acquire up to max_count ready deliverables with no conflicting file claims atomically. Returns the cohort plus per-deliverable locks. A deliverable explicitly marked failed 3 times is circuit-broken to failed instead of re-leased; leases lost environmentally (TTL lapse, no terminal mark) never trip that breaker but are bounded separately (LAPSE_LIMIT at 10). Optional ttl_seconds sets the lease TTL (clamped to the server maximum). Optional ids targets specific deliverables and filter.metadata narrows by metadata equality; deliverables with metadata.kind = "manual" or "gate" are never leased. id…
| Parameter | Type | Description |
|---|---|---|
caller_id * | string | |
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
affinity_seconds | integer | Defer to another caller's thread: a ready deliverable whose thread another caller advanced less than this many seconds ago is held back and reported in blocked with code AFFINITY_HOLD. Default 0 (no h… |
filter | object | |
ids | array | |
max_count | integer | Most deliverables to lease. Default: the number of ids, else 1. |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
thread | string | Offer this metadata.thread's ready deliverables first (a token of 1..64 ASCII letters, digits, '.', '_' and '-', starting with a letter or digit; INVALID_VALUE otherwise). Without it, the threads this… |
ttl_seconds | integer |
plan.heartbeat
Refresh the TTL on a held lock; LOCK_NOT_HELD or LOCK_EXPIRED on failure. Optional ttl_seconds sets the new TTL (clamped to the server maximum); without it the lease is never shortened. Select the plan by plan_id, plan line name, or active: true.
| Parameter | Type | Description |
|---|---|---|
caller_id * | string | |
deliverable_id * | string | |
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
ttl_seconds | integer |
plan.mark_status
Set a deliverable's status. Complete/Failed releases the lock; caller_id mismatch yields LOCK_NOT_HELD. Without a lock, Complete, Ready or InProgress requires all prerequisites complete (PREREQUISITES_INCOMPLETE) and is audited; other lockless marks are audited too, and an already-complete deliverable cannot be changed (LOCK_NOT_HELD). A lockless in_progress persists across restarts and is not leasable; hand it back with a lockless ready (or other status) mark. plan.force_release does not affect it. Optional earned-value progress: earned_pct (0..100, only with in_progress; ignored with complet…
| Parameter | Type | Description |
|---|---|---|
caller_id * | string | |
deliverable_id * | string | |
status * | object | Internally-tagged: {"status":"pending|ready|in_progress|complete"} or {"status":"failed","reason":"..."} |
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
actual_effort_hours | number | Total effort spent so far, in hours; replaces the stored value and takes precedence over leased hours for actual cost. |
earned_pct | integer | Percent complete (used by the weighted earning rule). Only with status in_progress; accepted and ignored with complete. |
evidence | One evidence entry, appended to the deliverable's evidence list (at most 100 entries): a note (<= 2048 chars) or an evidence record object. A record whose scope may not close the deliverable is EVIDEN… | |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
plan.status
Read-only snapshot: per-deliverable [id, status, attempt_count, failure_count, lapse_count] rows, critical_path (one real chain, always from __start__ to __finish__), critical_ids, per-deliverable schedule (es/ef/ls/lf/float, hours; synthetic __start__/__finish__ rows have synthetic=true), the ready set in float-ascending order (smallest float first, then smallest latest start, then id), plan_complete, milestones (per milestone: id, critical_path from __start__, hours, complete), and held locks. Select the plan by plan_id, plan line name, or active: true.
| Parameter | Type | Description |
|---|---|---|
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
plan.get
Return the stored PlanGraph (deliverables, estimates, files, metadata) for a plan selected by plan_id, plan line name, or active: true.
| Parameter | Type | Description |
|---|---|---|
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
plan.force_release
Operator escape hatch — release a lock regardless of caller. Emits an audit event carrying `reason`. Select the plan by plan_id, plan line name, or active: true.
| Parameter | Type | Description |
|---|---|---|
deliverable_id * | string | |
reason * | string | |
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
reset_counters | boolean | Also clear lapse and failure counters (revives a circuit-broken deliverable). |
plan.accept
Manager/owner acceptance: mark a deliverable Complete without holding its lease. Requires all prerequisites Complete and evidence (a note or an evidence record object; records are checked as on plan.mark_status); audited. A live lease held by someone else is refused (LOCK_HELD) unless override_lock is true. Select the plan by plan_id, plan line name, or active: true.
| Parameter | Type | Description |
|---|---|---|
accepted_by * | string | |
deliverable_id * | string | |
evidence * | Acceptance evidence: a note or an evidence record object (for example scope manual_approval, or gate for a gate deliverable), appended to the deliverable's evidence list and the audit event. | |
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
override_lock | boolean | Take over a live lease held by another caller. |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
plan.lint
Lint a graph, stored plan, or plan file without creating one: cycles (with the loop), redundant edges, edges without rationale, interface edges not targeting a contract, deliverables feeding no milestone, and unordered file overlaps. Linting by plan_id also adds NO_BASELINE (warning) when the plan is executable and has recorded progress but no earned-value baseline. Provide exactly one of graph, plan_id, or path.
| Parameter | Type | Description |
|---|---|---|
graph | object | An inline plan graph to analyse. Provide exactly one of graph, plan_id, or path. |
path | string | A plan file path of the form .cpm-planner/plans/<name>/<variant>.json, relative to the project root. Provide exactly one of graph, plan_id, or path. |
plan_id | string | A stored plan (from plan.submit/plan.sync) to analyse instead of an inline graph. Provide exactly one of graph, plan_id, or path. |
plan.schedule
Level a graph or stored plan against resource capacities (`metadata.owner` by default; metadata.resources can claim several pools concurrently): makespan, per-deliverable start/finish, per-resource load, the driving chain (dependency vs named resource waits), and project/feeding buffers. A deliverable with duration_hours plus metadata.wall_clock_only:true advances elapsed time but consumes no capacity. Provide exactly one of graph or plan_id. capacities is required: every resource that carries work needs at least 1 unit (otherwise INVALID_CAPACITIES: lists the missing resources). plan.schedule…
| Parameter | Type | Description |
|---|---|---|
capacities * | object | Units available per resource name. Every resource claimed by a nonzero-duration deliverable needs enough units; metadata.resources may claim multiple pools concurrently. A missing, zero, or undersized… |
calendar | object | Place the schedule on working calendars (the resource clock): hours become wall-clock hours from `start`, each deliverable advances only inside its resource's windows, and rows add start_at, finish_at… |
graph | object | An inline plan graph to analyse. Provide exactly one of graph, plan_id, or path. |
plan_id | string | A stored plan (from plan.submit/plan.sync) to analyse instead of an inline graph. Provide exactly one of graph, plan_id, or path. |
project_buffer_pct | number | Project buffer as a percentage of the driving chain (default 25). |
resource_key | string | Metadata key naming a deliverable's resource (default "owner"). |
start | string | RFC 3339 plan start hour 0 refers to, with a calendar; defaults to now. Ignored without a calendar. |
plan.simulate
Read-only what-if for a graph, stored plan, or plan file (nothing is persisted): lint, critical path, schedule, milestones, optional resource schedule and Monte Carlo, and the scorecard. Provide exactly one of graph, plan_id, or path. schedule takes the plan.schedule inputs (capacities required; INVALID_CAPACITIES: when a working resource has none). monte_carlo takes iterations (1..50000, default 2000) and seed (default 0xC0FFEE); iterations × (deliverables + prerequisite edges) must not exceed 200000000. plan.simulate rejects what plan.submit rejects; lint errors or an invalid graph are INVA…
| Parameter | Type | Description |
|---|---|---|
calendar | object | Place the schedule on working calendars (the resource clock): hours become wall-clock hours from `start`, each deliverable advances only inside its resource's windows, and rows add start_at, finish_at… |
graph | object | An inline plan graph to analyse. Provide exactly one of graph, plan_id, or path. |
monte_carlo | object | Seeded Monte Carlo over three-point estimates. iterations × (deliverables + prerequisite edges) must not exceed 200000000. |
path | string | A plan file path of the form .cpm-planner/plans/<name>/<variant>.json, relative to the project root. Provide exactly one of graph, plan_id, or path. |
plan_id | string | A stored plan (from plan.submit/plan.sync) to analyse instead of an inline graph. Provide exactly one of graph, plan_id, or path. |
schedule | object | Level the plan (same inputs as plan.schedule). |
start | string | RFC 3339 plan start hour 0 refers to, with a calendar; defaults to now. Ignored without a calendar. |
plan.sync
Register or update one variant of a named plan line from a plan file (`path`) or an inline `graph`. A path is read from .cpm-planner/plans/<name>/<variant>.json and tracked by content hash for drift detection. An inline graph requires `name`; `variant` defaults to "main". `project` defaults to the discovered project root. `force` releases live locks of removed deliverables.
| Parameter | Type | Description |
|---|---|---|
force | boolean | Release live locks of removed deliverables instead of refusing. |
graph | object | |
name | string | Plan line name (required with an inline graph). |
path | string | A plan file path of the form .cpm-planner/plans/<name>/<variant>.json, relative to the project root. Provide exactly one of graph, plan_id, or path. |
project | string | Project key; defaults to the discovered project root. |
variant | string | Variant name (default "main" for an inline graph). |
plan.list
List every plan line of `project` (default: the discovered project root), sorted by name with each line's variants sorted by variant. Archived lines and variants are omitted unless include_archived. With active: true, return only the project's active lines.
| Parameter | Type | Description |
|---|---|---|
active | boolean | Return only the project's active lines (unarchived, incomplete); mutually exclusive with include_archived. |
include_archived | boolean | Include archived lines and variants (default false). |
project | string | Project key; defaults to the discovered project root. |
plan.export
Write the head graph of `plan_id` under the project root and return its root-relative path: to `path` when given (confined to .cpm-planner/plans/<name>/<variant>.json), else to its own variant file. Refuses (INVALID_PATH) another variant's tracked plan file, or the variant's own file while it holds local edits never synced, unless force. The written file is not synced; exporting to the variant's own tracked file records its hash, so drift is false.
| Parameter | Type | Description |
|---|---|---|
plan_id * | string | |
force | boolean | Overwrite another variant's tracked file or unsynced local edits. |
path | string | A plan file path of the form .cpm-planner/plans/<name>/<variant>.json, relative to the project root. Provide exactly one of graph, plan_id, or path. |
plan.revise
Replace a plan's graph in place, carrying progress over: unchanged deliverables keep status and counters; changed or reopened ones are re-derived. Removed deliverables holding live locks are refused (LOCK_HELD) unless force. Returns the new revision and the diff.
| Parameter | Type | Description |
|---|---|---|
graph * | object | |
plan_id * | string | |
force | boolean | Release live locks of removed deliverables instead of refusing. |
plan.fork
Copy the head graph of a named variant, apply `edits` in order, and register the result as a new draft (not selected) variant of the same line. Fails if the variant already exists.
| Parameter | Type | Description |
|---|---|---|
plan_id * | string | The named variant to copy. |
variant * | string | Name of the new draft variant. |
edits | array | Structured graph edits applied in order. Each edit is an object tagged by `op`: remove_edge {from,to}, add_edge {from,to,consumes?}, set_effort {id,hours}, set_duration {id,hours?}, set_estimate {id,e… |
plan.select
Make the named variant owning `plan_id` its line's selected (the only executable) variant. Progress carries over from the previously selected variant. Live locks on the previous variant refuse selection with LOCK_HELD unless force releases them (audited).
| Parameter | Type | Description |
|---|---|---|
plan_id * | string | |
force | boolean | Release live locks on the previously selected variant. |
plan.archive
Archive (archived defaults to true) or unarchive a whole plan line (`variant` omitted) or one variant. Archived variants stay readable but are hidden from plan.list unless include_archived, and refuse sync, selection and execution (ARCHIVE_REFUSED).
| Parameter | Type | Description |
|---|---|---|
name * | string | Plan line name. |
archived | boolean | False unarchives (default true). |
force | boolean | Release live locks on the selected variant when archiving a line. |
project | string | Project key; defaults to the discovered project root. |
variant | string | One variant; omitted archives the whole line. |
plan.compare
Compare stored plans on the scorecard, returning the Pareto front, weighted rank and a recommended plan. Give exactly one of `plan_ids` (2 to 16 distinct plans) or `plan` (a line name in `project`: every non-archived variant, at most 16). Read-only. Weights must be finite and >= 0. With monte_carlo, iterations × (deliverables + prerequisite edges) summed over all variants must not exceed 200000000.
| Parameter | Type | Description |
|---|---|---|
monte_carlo | object | Run Monte Carlo on every variant (P80 then comes from it). |
plan | string | Plan line name; compares every live variant. |
plan_ids | array | |
project | string | Project key of `plan`; defaults to the discovered project root. |
schedule | object | Level every variant (same inputs as plan.schedule). |
weights | object | Per-criterion weights for the combined score (lower is better). Each must be finite and >= 0. |
plan.baseline
Freeze the plan's current CPM schedule (earliest start/finish), or with capacities its levelled schedule, and budgets (effort basis x metadata.cost_rate) as its next numbered baseline for earned value. The first baseline is number 1; re-baselining needs a non-blank `reason` (INVALID_GRAPH otherwise) and keeps actuals and snapshots. Without `calendar`, a re-baseline keeps the previous baseline's calendar (the first baseline counts wall-clock hours); `calendar: null` clears it, and a map with a `default` entry gives each resource its own calendar. capacities, resource_key and project_buffer_pct…
| Parameter | Type | Description |
|---|---|---|
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
backfill_from | string | RFC 3339 instant to use as the baseline's start, marking it backfilled; must not be in the future or before the plan's creation time. |
calendar | object | null | Working-time calendar. Omitted: the previous baseline's calendar (wall-clock hours on the first baseline). null: wall-clock hours, clearing a previous calendar. One calendar {hours_per_day, day_start,… |
capacities | object | Freeze the capacity-levelled schedule plan.schedule computes for these units per resource (INVALID_CAPACITIES as there). Omitted on a re-baseline: the previous levelled baseline's capacities. |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
project_buffer_pct | number | Project buffer percentage 0..100 (default 25), recorded and reported, never added to PV. INVALID_VALUE outside 0..100 or when it has no effect. |
reason | string | Why the plan is re-baselined; required when a baseline exists. |
resource_key | string | Metadata key naming a deliverable's resource (default "owner"); also selects per-resource calendar entries. INVALID_VALUE when it has no effect. |
schedule | string | Force the frozen schedule: levelled needs capacities (given or inherited); cpm drops levelling and refuses capacities. Omitted: levelled when capacities resolve, else cpm. |
start | string | RFC 3339 instant the PV clock starts from; defaults to now. |
plan.ev
Earned-value report against the plan's latest baseline as of `as_of` (default now). `as_of` is the PV status date; EV and AC reflect progress and actuals recorded up to the moment the call runs. Returns BAC, PV, EV, AC, SV, CV, SPI, CPI, EAC, ETC, VAC, TCPI, per-deliverable rows (a baselined deliverable later removed by plan.revise has status `removed` and keeps the percent it had earned: 100 if complete), critical float consumed, SPI_BELOW_0_9 / CPI_BELOW_0_9 alerts from the two latest stored non-backfilled snapshots (by as_of) of the current baseline, and deliverables added since the baselin…
| Parameter | Type | Description |
|---|---|---|
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
as_of | string | RFC 3339 PV status date; defaults to now. EV and AC are always as recorded when the call runs. |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
plan.snapshot
Compute the earned-value report (as plan.ev) and append it as a snapshot. `as_of` is the PV status date; EV and AC are the progress recorded when the call runs, so a snapshot whose as_of is more than an hour before its taken_at is marked `backfilled: true` and ignored by alerts. Returns the snapshot summary (alerts consider this snapshot and the latest earlier non-backfilled one by as_of of the current baseline) and an export of the newest 100 snapshots by as_of, oldest first (an older backfill is counted but not listed): a list of summaries (format json, default) or a Markdown table with colu…
| Parameter | Type | Description |
|---|---|---|
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
as_of | string | RFC 3339 PV status date; defaults to now. EV and AC are always as recorded when the call runs. |
format | string | Export format (default json). |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
plan.review
Optional AI review of a graph, stored plan, or plan file (read-only; provide exactly one of graph, plan_id, or path). Lint always runs; lint errors return status invalid_graph without calling the judge. Otherwise one batched call to Jev (calibrated judgments, via OpenRouter) asks up to max_questions (1..64, default 64) questions about likely false or missing dependencies, split and interface-split candidates and crash options; findings carry advisory probabilities. Proposals are plan.fork edit lists, each verified by simulate (lint clean, makespan shorter) and ranked by hours_saved / max(cost,…
| Parameter | Type | Description |
|---|---|---|
capacities | object | Optional: level the plan so makespans account for resources (same rules as plan.schedule capacities). |
graph | object | An inline plan graph to analyse. Provide exactly one of graph, plan_id, or path. |
max_questions | integer | Question cap for the single Jev call (default 64); extra candidates are dropped and truncated is true. |
path | string | A plan file path of the form .cpm-planner/plans/<name>/<variant>.json, relative to the project root. Provide exactly one of graph, plan_id, or path. |
plan_id | string | A stored plan (from plan.submit/plan.sync) to analyse instead of an inline graph. Provide exactly one of graph, plan_id, or path. |
project_buffer_pct | number | Project buffer percentage (default 25); requires capacities. |
resource_key | string | Metadata key naming a deliverable's resource (default "owner"); requires capacities. |
scope | string | full (default) asks every kind. critical_path asks only false_dependency, only on edges between zero-float deliverables; re-run after applying a fix until the reported critical_path stops changing. |
plan.overview
Read-only, deterministic snapshot of one plan at as_of (default now): what plan.status, plan.get and plan.ev say, joined (schema cpm-planner/overview/v1): plan identity, counts, the EV headline, critical_path_hours, and bounded sections {total, omitted, items} for critical_path (remaining hours, milestones fed), milestones, ready (action acquire/accept/operator, float, file_conflicts), blocked (class dependency/manual/external/gate, waiting_on, root_blockers), leases, attention, and stale_evidence; every entry carries its evidence status (current/stale/unknown/unbound/none). detail brief (defa…
| Parameter | Type | Description |
|---|---|---|
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
as_of | string | RFC 3339 instant of the whole snapshot (EV status date; leases judged against it); defaults to now. |
detail | string | brief (default) or full. |
evidence_target | object | Evidence identity: the inputs a verification result depends on, compared byte for byte. |
filter | object | Narrow the lists; counts, EV and critical_path_hours still describe the whole plan. |
format | string | json (default): the schema-versioned value. markdown: {format: "markdown", markdown: <text>} rendering the same value. |
limit | integer | Most entries per list (default 10 brief, 100 full); out of range is INVALID_VALUE. |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
plan.explain
Read-only, deterministic: why one deliverable is not moving and what completing it changes (schema cpm-planner/explain/v1). With deliverable_id: its state (complete/leased/in_progress/ready/blocked/failed), the blocker class, waiting_on, root_blockers and the driving chain, unlocks (what becomes ready when it completes), the milestones it feeds with slack_hours, and a one-sentence critical_path_impact. Always: next_work, every ready or blocked deliverable in exactly one class (ready_critical, ready_slack, blocked_dependency, blocked_manual, blocked_external, blocked_gate, file_conflicting). An…
| Parameter | Type | Description |
|---|---|---|
active | boolean | Resolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id. |
as_of | string | RFC 3339 snapshot instant; defaults to now. |
deliverable_id | string | The deliverable to explain; omitted, the response has only next_work. |
format | string | json (default): the schema-versioned value. markdown: {format: "markdown", markdown: <text>} rendering the same value. |
limit | integer | Most entries per list (default 10); out of range is INVALID_VALUE. |
plan | string | Plan line name; resolves to its selected variant. Use instead of plan_id. |
plan_id | string | A stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active. |
project | string | Project for plan or active; default the discovered root. |
plan.optimize
Offline, deterministic plan optimization (read-only; no model, provider or network call; provide exactly one of graph, plan_id, or path). Proposes plan.fork edit lists that make the plan shorter, cheaper or simpler: merge (same-owner deliverables sharing a file), false_dependency, parallel_cohort, gate_consolidation and gate_bypass. Each proposal is checked by lint, the schedule and simulate, keeps every acceptance criterion, gate, milestone, approval, interface contract and owned file, never lengthens the makespan (the leveled one with capacities) or adds effort, and is ranked by score; rejec…
| Parameter | Type | Description |
|---|---|---|
capacities | object | Units available per resource name. Every resource claimed by a nonzero-duration deliverable needs enough units; metadata.resources may claim multiple pools concurrently. A missing, zero, or undersized… |
graph | object | An inline plan graph to analyse. Provide exactly one of graph, plan_id, or path. |
max_proposals | integer | Most proposals returned (default 32); truncated is true when more were found. |
path | string | A plan file path of the form .cpm-planner/plans/<name>/<variant>.json, relative to the project root. Provide exactly one of graph, plan_id, or path. |
plan_id | string | A stored plan (from plan.submit/plan.sync) to analyse instead of an inline graph. Provide exactly one of graph, plan_id, or path. |
project_buffer_pct | number | Project buffer percentage (default 25); requires capacities. |
resource_key | string | Metadata key naming a deliverable's resource (default "owner"); requires capacities. |