The spec is the plan. The code is the proof.
The spec states the plan first; the map shows how far the code has come. What a parser can read is drawn without AI, what only runs in production comes from traces, and anything in the spec that isn't in the code yet is shown as planned, never as built.
Drawn on an example system. Most of it runs today, for Cloudflare Workers and Docker Compose: see How it works. What's left is on the Roadmap. The spec below is a sketch; in a repo it's your architecture/*.c4, with rules as element metadata (only_writes_from, never_calls).
Planned dashed border
A box or call in the spec, not in the code yet. Turns solid when the code lands; stale if it stays planned for 28 days.
In the code solid border
Read from code and config by a parser. Links to the file and line.
Seen in traces solid border
Seen in traces only: calls the code makes through config or discovery. Shows the call count.
Unresolved dotted border
A call the parser found but can't name the target of. Listed, not guessed, until the spec names it.
1 · Intent first · the spec is the plan
A person (or their agent) writes the plan. Domains group the boxes (on the real map, each domain is a column); a declared box or call with no code yet is planned. The map shows both gaps: planned but not built, and built but not planned.
architecture/intent.c4the plan · written by a person// the plan: what we intend
domain Checkout {
orders-api, payments-api, postgres
fraud-check // new, not built yet
orders-api -> fraud-check "screens orders"
}
domain Messaging {
notifier, order-events
}
rule only Checkout writes postgres
rule payments-api never calls orders-apiArrows the code already makes are drawn from the code. A box or call it doesn't make yet stays planned, dashed, until it does.
orders/wrangler.jsoncpayments/wrangler…hyperdrive · :18intent.c4:4 · no codetraces · 3,102 callswrangler.jsonc:31sync/wrangler.jsoncledger-sync writes postgres, but the spec says only Checkout does.
src/sync.ts:30 · rule at intent.c4:10Put ledger-sync in Checkout? It writes the same tables as orders-api.
The check portal facts fails on PR #212 until a person decides: move the write, or change the intent. The suggestion never draws a box or passes a check by itself.
2 · An existing repo · no spec yet
Code first works too: install the App and the map is there on the first push, read from the repo with no agent and no tokens. Write the intent afterwards. orders-api is selected; the panel lists each connection and how portal knows it.
orders/wrangler.jsoncpayments/wrangler…traces · 3,102 callsfetch(env.FRAUD_URL)wrangler.jsonc:31hyperdrive · :18payments · d1 · :22