Planning Endpoints
Planning endpoints generate previews without executing changes. The authoritative input schemas and example payloads live in api-contract.json.
| Procedure | Required Scope(s) | Purpose |
|---|---|---|
composeDeploymentPlan | deploy:read | Preview a direct Compose upload, including bundle metadata and env interpolation analysis |
deploymentPlan | deploy:read | Preview a registered service deployment, including preview-target modeling |
rollbackPlan | deploy:read | Preview rollback steps and available rollback targets |
backupRestorePlan | backup:read | Preview restore readiness, target path, and approval-request input without queueing work |
configDiff | deploy:read | Compare two deployment snapshots and summarize config differences |
deploymentDiff | deploy:read | Compatibility alias for config comparison during CLI and agent transitions |
Notes
composeDeploymentPlanis the planning-lane contract used by directdaoflow deploy --compose ... --dry-runanddaoflow plan --compose ....deploymentPlanmodels service-based deploys, preview deploys, and preview cleanup without executing them.rollbackPlanis the non-mutating companion toexecuteRollback.backupRestorePlanbacksdaoflow backup restore --dry-run, so agents can preview restore readiness with a read-only token before any restore is queued.- The generated contract artifact includes machine-readable example payloads for the planning lane, so external consumers do not need to reverse-engineer request shapes from source.