cpm-planner

v0.8.0
io.github.praxec/cpm-planner Checked 8 hours ago Published 18 days ago

Critical 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.

ParameterTypeDescription
graph *object
namestringPlan line name; when present the graph is synced as a named variant.
projectstringProject key; required with `name` when no project root is discovered.
variantstringVariant 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…

ParameterTypeDescription
caller_id *string
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
affinity_secondsintegerDefer 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…
filterobject
idsarray
max_countintegerMost deliverables to lease. Default: the number of ids, else 1.
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject for plan or active; default the discovered root.
threadstringOffer 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_secondsinteger

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.

ParameterTypeDescription
caller_id *string
deliverable_id *string
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject for plan or active; default the discovered root.
ttl_secondsinteger

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…

ParameterTypeDescription
caller_id *string
deliverable_id *string
status *objectInternally-tagged: {"status":"pending|ready|in_progress|complete"} or {"status":"failed","reason":"..."}
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
actual_effort_hoursnumberTotal effort spent so far, in hours; replaces the stored value and takes precedence over leased hours for actual cost.
earned_pctintegerPercent complete (used by the weighted earning rule). Only with status in_progress; accepted and ignored with complete.
evidenceOne 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…
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject 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.

ParameterTypeDescription
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject 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.

ParameterTypeDescription
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject 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.

ParameterTypeDescription
deliverable_id *string
reason *string
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject for plan or active; default the discovered root.
reset_countersbooleanAlso 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.

ParameterTypeDescription
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.
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
override_lockbooleanTake over a live lease held by another caller.
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject 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.

ParameterTypeDescription
graphobjectAn inline plan graph to analyse. Provide exactly one of graph, plan_id, or path.
pathstringA 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_idstringA 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…

ParameterTypeDescription
capacities *objectUnits 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…
calendarobjectPlace 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…
graphobjectAn inline plan graph to analyse. Provide exactly one of graph, plan_id, or path.
plan_idstringA 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_pctnumberProject buffer as a percentage of the driving chain (default 25).
resource_keystringMetadata key naming a deliverable's resource (default "owner").
startstringRFC 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…

ParameterTypeDescription
calendarobjectPlace 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…
graphobjectAn inline plan graph to analyse. Provide exactly one of graph, plan_id, or path.
monte_carloobjectSeeded Monte Carlo over three-point estimates. iterations × (deliverables + prerequisite edges) must not exceed 200000000.
pathstringA 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_idstringA stored plan (from plan.submit/plan.sync) to analyse instead of an inline graph. Provide exactly one of graph, plan_id, or path.
scheduleobjectLevel the plan (same inputs as plan.schedule).
startstringRFC 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.

ParameterTypeDescription
forcebooleanRelease live locks of removed deliverables instead of refusing.
graphobject
namestringPlan line name (required with an inline graph).
pathstringA 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.
projectstringProject key; defaults to the discovered project root.
variantstringVariant 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.

ParameterTypeDescription
activebooleanReturn only the project's active lines (unarchived, incomplete); mutually exclusive with include_archived.
include_archivedbooleanInclude archived lines and variants (default false).
projectstringProject 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.

ParameterTypeDescription
plan_id *string
forcebooleanOverwrite another variant's tracked file or unsynced local edits.
pathstringA 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.

ParameterTypeDescription
graph *object
plan_id *string
forcebooleanRelease 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.

ParameterTypeDescription
plan_id *stringThe named variant to copy.
variant *stringName of the new draft variant.
editsarrayStructured 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).

ParameterTypeDescription
plan_id *string
forcebooleanRelease 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).

ParameterTypeDescription
name *stringPlan line name.
archivedbooleanFalse unarchives (default true).
forcebooleanRelease live locks on the selected variant when archiving a line.
projectstringProject key; defaults to the discovered project root.
variantstringOne 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.

ParameterTypeDescription
monte_carloobjectRun Monte Carlo on every variant (P80 then comes from it).
planstringPlan line name; compares every live variant.
plan_idsarray
projectstringProject key of `plan`; defaults to the discovered project root.
scheduleobjectLevel every variant (same inputs as plan.schedule).
weightsobjectPer-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…

ParameterTypeDescription
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
backfill_fromstringRFC 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.
calendarobject | nullWorking-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,…
capacitiesobjectFreeze 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.
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject for plan or active; default the discovered root.
project_buffer_pctnumberProject buffer percentage 0..100 (default 25), recorded and reported, never added to PV. INVALID_VALUE outside 0..100 or when it has no effect.
reasonstringWhy the plan is re-baselined; required when a baseline exists.
resource_keystringMetadata key naming a deliverable's resource (default "owner"); also selects per-resource calendar entries. INVALID_VALUE when it has no effect.
schedulestringForce the frozen schedule: levelled needs capacities (given or inherited); cpm drops levelling and refuses capacities. Omitted: levelled when capacities resolve, else cpm.
startstringRFC 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…

ParameterTypeDescription
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
as_ofstringRFC 3339 PV status date; defaults to now. EV and AC are always as recorded when the call runs.
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject 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…

ParameterTypeDescription
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
as_ofstringRFC 3339 PV status date; defaults to now. EV and AC are always as recorded when the call runs.
formatstringExport format (default json).
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject 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,…

ParameterTypeDescription
capacitiesobjectOptional: level the plan so makespans account for resources (same rules as plan.schedule capacities).
graphobjectAn inline plan graph to analyse. Provide exactly one of graph, plan_id, or path.
max_questionsintegerQuestion cap for the single Jev call (default 64); extra candidates are dropped and truncated is true.
pathstringA 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_idstringA 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_pctnumberProject buffer percentage (default 25); requires capacities.
resource_keystringMetadata key naming a deliverable's resource (default "owner"); requires capacities.
scopestringfull (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…

ParameterTypeDescription
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
as_ofstringRFC 3339 instant of the whole snapshot (EV status date; leases judged against it); defaults to now.
detailstringbrief (default) or full.
evidence_targetobjectEvidence identity: the inputs a verification result depends on, compared byte for byte.
filterobjectNarrow the lists; counts, EV and critical_path_hours still describe the whole plan.
formatstringjson (default): the schema-versioned value. markdown: {format: "markdown", markdown: <text>} rendering the same value.
limitintegerMost entries per list (default 10 brief, 100 full); out of range is INVALID_VALUE.
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject 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…

ParameterTypeDescription
activebooleanResolve to the project's one unarchived, incomplete line (NO_ACTIVE_PLAN / AMBIGUOUS_ACTIVE_PLAN otherwise). Use instead of plan_id.
as_ofstringRFC 3339 snapshot instant; defaults to now.
deliverable_idstringThe deliverable to explain; omitted, the response has only next_work.
formatstringjson (default): the schema-versioned value. markdown: {format: "markdown", markdown: <text>} rendering the same value.
limitintegerMost entries per list (default 10); out of range is INVALID_VALUE.
planstringPlan line name; resolves to its selected variant. Use instead of plan_id.
plan_idstringA stored plan id (from plan.submit/plan.sync). Provide exactly one of plan_id, plan, or active.
projectstringProject 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…

ParameterTypeDescription
capacitiesobjectUnits 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…
graphobjectAn inline plan graph to analyse. Provide exactly one of graph, plan_id, or path.
max_proposalsintegerMost proposals returned (default 32); truncated is true when more were found.
pathstringA 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_idstringA 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_pctnumberProject buffer percentage (default 25); requires capacities.
resource_keystringMetadata key naming a deliverable's resource (default "owner"); requires capacities.