Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cloudwright design "HIPAA healthcare API on AWS with Postgres and Redis"
Cloudwright turns one line of English into a typed spec, a cost breakdown, a control-mapped compliance report,
and infrastructure code. A source estate and target become ordered migration waves, explicit costs,
and evidence gates. It covers AWS, GCP, Azure and Databricks across 114 service keys. Only `design`, `modify`,
`chat` and `adr` call a model. Every other command runs offline and needs no API key.
`chat` and `adr` call a model. The plan command needs no model API key, but it can use the network.

[Quickstart](#quickstart) · [Migrations](#migration-plans-stop-when-evidence-is-missing) · [Compliance](#every-finding-carries-the-control-id-it-violates) · [Agents](#one-mcp-server-reaches-11-coding-agents) · [Docs](docs/) · [Changelog](CHANGELOG.md)

Expand All @@ -39,7 +39,7 @@ cloudwright design "HIPAA healthcare API on AWS with Postgres and Redis"
cloudwright cost spec.yaml --workload-profile medium
cloudwright compliance spec.yaml --frameworks hipaa,soc2
cloudwright export spec.yaml --format terraform -o ./infra
cloudwright plan spec.yaml --target terraform # proves it deploys, never applies
cloudwright plan spec.yaml --target terraform # validates the export and attempts a plan
cloudwright migrate demo # packaged migration proof, fully offline
cloudwright chat --web # canvas at http://localhost:8765
```
Expand Down Expand Up @@ -84,7 +84,7 @@ when it sits on your PATH.

- `--oscal` writes an OSCAL 1.1.2 component-definition with deterministic UUIDs.
- `--traceability` prints the chain from component to resource to control to status.
- `cloudwright plan` runs `terraform validate` against the export, and never applies.
- `cloudwright plan` checks the exported configuration against provider schemas. The displayed `DEPLOYABLE` verdict can mean validation alone passed. A full plan can require cloud credentials and shows proposed changes. Only a separate apply deploys resources.

## The review needs no API key and no network

Expand Down Expand Up @@ -120,7 +120,7 @@ wants a TOML table.
The server exposes 24 tools in 10 groups: design, cost, validate, analyze, export, session, review, compliance,
plan and migration. Full matrix in [docs/integrations.md](docs/integrations.md).

## Offline commands grade, scan, compare, and plan
## Commands to grade, scan, compare, and plan

`lint` runs 10 anti-pattern checks. `score` grades 5 dimensions. `analyze` reports blast radius and single
points of failure. `policy` enforces policy-as-code with 9 built-in rules. `security` scans the spec and the
Expand Down
6 changes: 3 additions & 3 deletions docs/cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ cloudwright export spec.yaml --format sbom -o sbom.json

### `plan`

Prove the exported infrastructure is deployable. Runs `terraform validate` and optionally `terraform plan` (or `pulumi preview`). Nothing is applied.
For a Terraform export, Cloudwright runs `init -backend=false`, then `validate` to check configuration and provider schemas. Validation needs no cloud credentials and does not check remote state or provider APIs. Initialization can need network access to fetch providers or modules. [Terraform validation reference](https://developer.hashicorp.com/terraform/cli/commands/validate)

Needs Terraform or Pulumi on PATH. `--no-plan` skips the plan step that needs credentials.
The Terraform target uses OpenTofu or Terraform on PATH and attempts a plan by default. Pulumi targets run `pulumi preview`. A plan or preview can require credentials. Check `plan_ran` in JSON output to see whether it completed. The CLI can report `DEPLOYABLE` after validation alone. Deploying requires a separate apply or Pulumi update.

```bash
cloudwright plan <spec.yaml> [options]
Expand All @@ -299,7 +299,7 @@ cloudwright plan <spec.yaml> [options]
| Option | Default | Description |
|---|---|---|
| `--target` / `-t` | `terraform` | `terraform`, `pulumi-python`, `pulumi-ts` |
| `--no-plan` | off | Validate only (no credentials needed) |
| `--no-plan` | off | Skip the Terraform plan after validation (Terraform target only) |
| `--timeout` | `180` | Seconds before the plan step is aborted |

Examples:
Expand Down
12 changes: 6 additions & 6 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Getting Started

This guide gets you from zero to a deployable architecture spec in about five minutes.
This guide gets you from zero to an architecture spec in about five minutes.

Related: [CLI Reference](cli-reference.md) | [Migration Guide](migrations.md) | [Troubleshooting](troubleshooting.md) | [MCP Reference](mcp-reference.md) | [README](../README.md)

Expand Down Expand Up @@ -42,7 +42,7 @@ Needs Python 3.12 or later.

## Set your API key

`cloudwright design`, `cloudwright modify`, `cloudwright compare`, `cloudwright chat`, and `cloudwright adr` call an LLM. All other commands run offline.
`cloudwright design`, `cloudwright modify`, `cloudwright compare`, `cloudwright chat`, and `cloudwright adr` call an LLM. The plan command can use the network even without an LLM.

```bash
export ANTHROPIC_API_KEY=sk-ant-...
Expand Down Expand Up @@ -150,17 +150,17 @@ All IaC exporters apply safe defaults: S3 public-access blocks, RDS encryption a

---

## Prove the export deploys (needs Terraform or Pulumi on PATH)
## Check the export (needs Terraform, OpenTofu or Pulumi on PATH)

```bash
# Offline proof: runs terraform validate, no cloud credentials needed
# Validate the Terraform configuration without cloud credentials
cloudwright plan spec.yaml --no-plan

# Full proof: runs terraform plan with a real resource diff
# Attempt a Terraform plan to see proposed changes
cloudwright plan spec.yaml
```

Nothing is applied. The verdict is `DEPLOYABLE` or `NOT DEPLOYABLE`.
Terraform initialization can download providers and modules, even with `--no-plan`. The CLI displays `DEPLOYABLE` or `NOT DEPLOYABLE`. Validation alone can produce the first label. A plan or Pulumi preview can need cloud credentials and shows proposed changes when it succeeds. Applying those changes is a separate step.

---

Expand Down
2 changes: 1 addition & 1 deletion packages/mcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Or add to your MCP client configuration:
- **compare**: Compare architectures across cloud providers
- **review_architecture**: free, offline scorer + linter + validator critique (no LLM)
- **scan_compliance_controls**: Map findings to framework control IDs with optional OSCAL 1.1.2 output
- **plan_infrastructure**: proves exported IaC is deployable (`terraform validate`/`plan`, read-only)
- **plan_infrastructure**: validates the Terraform export by default. Set `run_plan=True` to request a Terraform plan. Pulumi targets request a preview. Both can require cloud credentials. Check `plan_ran` for completion. The tool never applies changes.
- **plan_migration**: builds dependency-ordered waves, supplied-cost economics, and acceptance gates
- **verify_migration**: rebuilds migration gates and checks evidence for a visible closure decision
- **chat_create_session**: Create a persistent multi-turn design session
Expand Down
Loading