Skip to content
10 changes: 10 additions & 0 deletions changelog.d/delivery-estate-vocabulary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- **Delivery pack: the estate vocabulary (ADR-0070, calls 3 to 6).** The independent `delivery`
pack registers `location.jurisdiction` (`@countries`) with `location.region` and
`location.zone` under it, `environment.stage` (`@owner`, `@purpose`, `@lifespan`),
`deployment.system` and `deployment.app` (`@locations`, `@mode`) and `provision.resource`
(`@locations`, `@replication`, `@consistency`): where systems and apps run, in the company's
own words, with no platform, product or size. It retires `environment.standing`, `.ephemeral`
and `.local` and the platform attributes of `deployment.base`, which the `railway` and
`cloudflare` packs now declare on their own deployment subtypes. Packs are TypeScript only and
unpublished (ADR-0069); core's vocabulary and `metamodelVersion` are unchanged. See
`packs/delivery/CHANGELOG.md`.
2 changes: 1 addition & 1 deletion packs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ that is not part of core, built and versioned as if it were its own repository
|---|---|---|---|
| [`config`](config/README.md) | settings groups, `@secret` / `@envName` / `@phase`, vaults (Infisical) and their scopes; `.env.example`, key manifest and `.keys-axi.toml` generators | core | TypeScript |
| [`systems`](systems/README.md) | systems, apps (service, client, job), resources | core | TypeScript |
| [`delivery`](delivery/README.md) | environments, builds, runtime processes, deployments, value bindings | `systems` | TypeScript |
| [`delivery`](delivery/README.md) | locations (jurisdiction, region, zone), `environment.stage`, `deployment.system` and `.app`, `provision.resource`, builds, runtime processes, value bindings for platform deployments | `systems` | TypeScript |
| [`railway`](railway/README.md) | `deployment.railway`; `.railway/railway.ts` (Railway Infrastructure as Code), unexpressed-facts list, secret sync, deploy and doctor scripts and a deploy skill | `delivery`, `config` | TypeScript |
| [`cloudflare`](cloudflare/README.md) | `deployment.worker`, `deployment.pages` and a Worker's D1, KV, R2, queue and rate limiting bindings; `wrangler.jsonc`, token-scoped deploy, secret sync and doctor script generators | `delivery`, `config` | TypeScript |

Expand Down
5 changes: 5 additions & 0 deletions packs/cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ This pack's own changelog (ADR-0069). The root `CHANGELOG.md` records core only.

## [0.1.0] - unreleased

- `deployment.worker` and `deployment.pages` declare `@app`, `@domains`, `@replicas`, `@region`, `@branch`, `@secrets` and
their `value.*` children themselves: the delivery pack's `deployment.base` now holds only
`@environment`, which the loader resolves through the reference facet. Environments are the
delivery pack's `environment.stage` (`@owner`, `@purpose`, `@lifespan`); the fixtures and
tests declare an `organization.company` to own them. No generated file changes.
- **First version.** `deployment.worker` (a Worker, with or without static assets) and
`deployment.pages` (a Pages site) on the delivery pack's `deployment.base`, held to its
references, and the Worker's bindings `cloudflare.d1`, `.kv`, `.r2`, `.queue` and
Expand Down
4 changes: 2 additions & 2 deletions packs/cloudflare/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ The scripts do, with `wrangler` and `keys-axi`, when someone runs them.

| Node | Attributes |
|---|---|
| `deployment.worker` | every `deployment.base` attribute (`@app`, `@environment`, `@domains`, `@branch`, `@secrets`, and `value.*` children), plus `@compatibilityDate` (required), `@tokenSecret` (required), `@script` (the Worker's name; absent: the app's), `@main`, `@compatibilityFlags`, `@workersDev`, `@assetsBinding`, `@notFound`, `@workerFirst` or `@workerFirstPaths`, `@jobs`, `@tokenVault`, `@extra` |
| `deployment.pages` | every `deployment.base` attribute, plus `@project` (required), `@tokenSecret` (required), `@tokenVault` |
| `deployment.worker` | `@environment` (from `deployment.base`), its own `@app`, `@domains`, `@replicas`, `@region`, `@branch`, `@secrets` and `value.*` children, plus `@compatibilityDate` (required), `@tokenSecret` (required), `@script` (the Worker's name; absent: the app's), `@main`, `@compatibilityFlags`, `@workersDev`, `@assetsBinding`, `@notFound`, `@workerFirst` or `@workerFirstPaths`, `@jobs`, `@tokenVault`, `@extra` |
| `deployment.pages` | the same deployment attributes as `deployment.worker` (`@environment` through the `value.*` children), plus `@project` (required), `@tokenSecret` (required), `@tokenVault` |
| `cloudflare.d1` | `@databaseName` (required), `@databaseId`, `@migrationsDir` |
| `cloudflare.kv` | `@namespaceId` (required) |
| `cloudflare.r2` | `@bucketName` (required) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,18 @@
}
},
{
"environment.standing": {
"name": "production"
"environment.stage": {
"name": "production",
"@owner": "acme::help::Acme",
"@purpose": "production"
}
},
{
"environment.ephemeral": {
"name": "preview"
"environment.stage": {
"name": "preview",
"@lifespan": "ephemeral",
"@owner": "acme::help::Acme",
"@purpose": "test"
}
},
{
Expand All @@ -106,15 +111,20 @@
"@domains": [
"help.example.com"
],
"@environment": "production"
"@environment": "acme::help::production"
}
},
{
"deployment.pages": {
"name": "sitePreview",
"extends": "acme::help::siteBase",
"@branch": "preview",
"@environment": "preview"
"@environment": "acme::help::preview"
}
},
{
"organization.company": {
"name": "Acme"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
{ "scope.env": { "name": "dev", "@project": "acme-deploy" } }
]
} },
{ "environment.standing": { "name": "production" } },
{ "environment.ephemeral": { "name": "preview" } },
{ "environment.stage": { "name": "production", "@owner": "Acme", "@purpose": "production" } },
{ "environment.stage": { "name": "preview", "@owner": "Acme", "@purpose": "test", "@lifespan": "ephemeral" } },
{ "deployment.pages": {
"name": "siteBase",
"abstract": true,
Expand All @@ -47,7 +47,8 @@
"@tokenSecret": "ACME_PAGES_TOKEN"
} },
{ "deployment.pages": { "name": "siteProduction", "extends": "siteBase", "@environment": "production", "@branch": "main", "@domains": ["help.example.com"] } },
{ "deployment.pages": { "name": "sitePreview", "extends": "siteBase", "@environment": "preview", "@branch": "preview" } }
{ "deployment.pages": { "name": "sitePreview", "extends": "siteBase", "@environment": "preview", "@branch": "preview" } },
{ "organization.company": { "name": "Acme" } }
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,18 @@
}
},
{
"environment.standing": {
"name": "production"
"environment.stage": {
"name": "production",
"@owner": "acme::docs::Acme",
"@purpose": "production"
}
},
{
"environment.ephemeral": {
"name": "preview"
"environment.stage": {
"name": "preview",
"@lifespan": "ephemeral",
"@owner": "acme::docs::Acme",
"@purpose": "test"
}
},
{
Expand All @@ -84,15 +89,20 @@
"@domains": [
"docs.example.com"
],
"@environment": "production"
"@environment": "acme::docs::production"
}
},
{
"deployment.pages": {
"name": "sitePreview",
"extends": "acme::docs::siteBase",
"@branch": "preview",
"@environment": "preview"
"@environment": "acme::docs::preview"
}
},
{
"organization.company": {
"name": "Acme"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
{ "scope.env": { "name": "dev", "@project": "acme-deploy" } }
]
} },
{ "environment.standing": { "name": "production" } },
{ "environment.ephemeral": { "name": "preview" } },
{ "environment.stage": { "name": "production", "@owner": "Acme", "@purpose": "production" } },
{ "environment.stage": { "name": "preview", "@owner": "Acme", "@purpose": "test", "@lifespan": "ephemeral" } },
{ "deployment.pages": {
"name": "siteBase",
"abstract": true,
Expand All @@ -39,7 +39,8 @@
"@tokenSecret": "ACME_PAGES_TOKEN"
} },
{ "deployment.pages": { "name": "siteProduction", "extends": "siteBase", "@environment": "production", "@branch": "main", "@domains": ["docs.example.com"] } },
{ "deployment.pages": { "name": "sitePreview", "extends": "siteBase", "@environment": "preview", "@branch": "preview" } }
{ "deployment.pages": { "name": "sitePreview", "extends": "siteBase", "@environment": "preview", "@branch": "preview" } },
{ "organization.company": { "name": "Acme" } }
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@
}
},
{
"environment.standing": {
"name": "production"
"environment.stage": {
"name": "production",
"@owner": "acme::trips::Acme",
"@purpose": "production"
}
},
{
Expand All @@ -178,7 +180,7 @@
"trips.example.com",
"www.trips.example.com"
],
"@environment": "production",
"@environment": "acme::trips::production",
"@jobs": [
"Trips.coverCleanup"
],
Expand Down Expand Up @@ -268,6 +270,11 @@
}
]
}
},
{
"organization.company": {
"name": "Acme"
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
{ "scope.env": { "name": "dev", "@project": "acme-deploy" } }
]
} },
{ "environment.standing": { "name": "production" } },
{ "environment.stage": { "name": "production", "@owner": "Acme", "@purpose": "production" } },
{ "deployment.worker": {
"name": "webProduction",
"@app": "Trips.web",
Expand Down Expand Up @@ -85,7 +85,8 @@
{ "value.literal": { "name": "aud", "@setting": "Access.aud", "@literal": "0000000000000000000000000000000000000000000000000000000000000000" } },
{ "value.literal": { "name": "notifyEmail", "@setting": "Notify.email", "@literal": "host@example.com" } }
]
} }
} },
{ "organization.company": { "name": "Acme" } }
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,17 @@
}
},
{
"environment.standing": {
"name": "production"
"environment.stage": {
"name": "production",
"@owner": "acme::quiz::Acme",
"@purpose": "production"
}
},
{
"environment.standing": {
"name": "staging"
"environment.stage": {
"name": "staging",
"@owner": "acme::quiz::Acme",
"@purpose": "staging"
}
},
{
Expand Down Expand Up @@ -205,7 +209,7 @@
"quiz.example.com",
"www.quiz.example.com"
],
"@environment": "production"
"@environment": "acme::quiz::production"
}
},
{
Expand All @@ -217,7 +221,7 @@
"@domains": [
"staging.quiz.example.com"
],
"@environment": "staging",
"@environment": "acme::quiz::staging",
"children": [
{
"cloudflare.d1": {
Expand All @@ -242,6 +246,11 @@
}
]
}
},
{
"organization.company": {
"name": "Acme"
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
{ "scope.env": { "name": "dev", "@project": "acme-deploy" } }
]
} },
{ "environment.standing": { "name": "production" } },
{ "environment.standing": { "name": "staging" } },
{ "environment.stage": { "name": "production", "@owner": "Acme", "@purpose": "production" } },
{ "environment.stage": { "name": "staging", "@owner": "Acme", "@purpose": "staging" } },
{ "deployment.worker": {
"name": "siteBase",
"abstract": true,
Expand Down Expand Up @@ -95,7 +95,8 @@
{ "cloudflare.kv": { "name": "rateLimit", "@namespaceId": "00000000000000000000000000000002" } },
{ "value.literal": { "name": "killSwitch", "@setting": "Limits.killSwitch", "@literal": "on" } }
]
} }
} },
{ "organization.company": { "name": "Acme" } }
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
{ "system.internal": { "name": "Shop", "children": [
{ "app.service": { "name": "site", "@needs": ["db"], "children": [ { "build.static": { "name": "assets", "@directory": "public" } } ] } },
{ "resource.database": { "name": "db" } } ] } },
{ "environment.standing": { "name": "production" } },
{ "environment.stage": { "name": "production", "@owner": "Acme", "@purpose": "production" } },
{ "deployment.worker": { "name": "siteProduction", "@app": "Shop.site", "@environment": "production", "@compatibilityDate": "2026-07-01", "@tokenSecret": "ACME_WORKERS_TOKEN", "children": [
{ "cloudflare.base": { "name": "db" } } ] } }
{ "cloudflare.base": { "name": "db" } } ] } },
{ "organization.company": { "name": "Acme" } }
]}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
{ "system.internal": { "name": "Shop", "children": [
{ "app.service": { "name": "site", "@needs": ["db"], "children": [ { "build.static": { "name": "assets", "@directory": "public" } } ] } },
{ "resource.database": { "name": "db" } } ] } },
{ "environment.standing": { "name": "production" } },
{ "environment.stage": { "name": "production", "@owner": "Acme", "@purpose": "production" } },
{ "deployment.pages": { "name": "siteProduction", "@app": "Shop.site", "@environment": "production", "@project": "shop", "@tokenSecret": "ACME_PAGES_TOKEN", "children": [
{ "cloudflare.d1": { "name": "db", "@databaseName": "shop" } } ] } }
{ "cloudflare.d1": { "name": "db", "@databaseName": "shop" } } ] } },
{ "organization.company": { "name": "Acme" } }
]}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{ "system.internal": { "name": "Shop", "children": [
{ "app.service": { "name": "site", "@needs": ["db"], "children": [ { "build.static": { "name": "assets", "@directory": "public" } } ] } },
{ "resource.database": { "name": "db" } } ] } },
{ "environment.standing": { "name": "production" } },
{ "deployment.worker": { "name": "siteProduction", "@app": "Shop.site", "@environment": "production", "@compatibilityDate": "2026-07-01", "@tokenSecret": "ACME_WORKERS_TOKEN", "@notFound": "index" } }
{ "environment.stage": { "name": "production", "@owner": "Acme", "@purpose": "production" } },
{ "deployment.worker": { "name": "siteProduction", "@app": "Shop.site", "@environment": "production", "@compatibilityDate": "2026-07-01", "@tokenSecret": "ACME_WORKERS_TOKEN", "@notFound": "index" } },
{ "organization.company": { "name": "Acme" } }
]}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{ "system.internal": { "name": "Shop", "children": [
{ "app.service": { "name": "site", "@needs": ["db"], "children": [ { "build.static": { "name": "assets", "@directory": "public" } } ] } },
{ "resource.database": { "name": "db" } } ] } },
{ "environment.standing": { "name": "production" } },
{ "deployment.worker": { "name": "siteProduction", "@app": "Shop.web", "@environment": "production", "@compatibilityDate": "2026-07-01", "@tokenSecret": "ACME_WORKERS_TOKEN" } }
{ "environment.stage": { "name": "production", "@owner": "Acme", "@purpose": "production" } },
{ "deployment.worker": { "name": "siteProduction", "@app": "Shop.web", "@environment": "production", "@compatibilityDate": "2026-07-01", "@tokenSecret": "ACME_WORKERS_TOKEN" } },
{ "organization.company": { "name": "Acme" } }
]}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
{ "system.internal": { "name": "Shop", "children": [
{ "app.service": { "name": "site", "@needs": ["db"], "children": [ { "build.static": { "name": "assets", "@directory": "public" } } ] } },
{ "resource.database": { "name": "db" } } ] } },
{ "environment.standing": { "name": "production" } },
{ "environment.stage": { "name": "production", "@owner": "Acme", "@purpose": "production" } },
{ "deployment.worker": { "name": "siteBase", "abstract": true, "@app": "Shop.site", "@tokenSecret": "ACME_WORKERS_TOKEN" } },
{ "deployment.worker": { "name": "siteProduction", "extends": "siteBase", "@environment": "production" } }
{ "deployment.worker": { "name": "siteProduction", "extends": "siteBase", "@environment": "production" } },
{ "organization.company": { "name": "Acme" } }
]}}
Loading
Loading