repo-blueprint.yaml declares two phases that take a site from nothing
to live on stage and prod, documented. Run them one at a time with
--phase <name>, or the whole sequence unattended with --resume. There is
no umbrella workflow and no per-phase document: a phase is a selection on one
artifact, which is what makes running one alone, months later, from a fresh
container the same operation as running them all.
Each phase follows the same contract:
place its modules → brand them → check them in the box and land them as one pull request → watch the convergence that merge triggers (auto-resumed) → verify the outcome over HTTP.
The run's task set-up — the epic, a milestone per phase, a task per landing
— runs in the background from the start; the first hook that needs it, the
phase's task, waits for it.
Run from the baseline checkout (the blueprint's source is path: .); the
site's repository is wherever --out points.
Since cirrus-baseline's baseline-v22 the whole product lands as ONE pull
request and ONE convergence on main deploys it. Before that a bootstrap paid
a landing's fixed cost per layer — place, open a PR, wait for its checks,
merge, wait for the convergence to start — for order the plan can carry by
itself. This baseline is built that way from the start: 01-product places
every module, and 02-docs records what went live.
| what has to come first | how the plan holds it |
|---|---|
| infrastructure before anything that reads its wiring | a component reading an infra component's WIRING_* declares dependsOn on it, mode: enforced on github-push-main (advisory on pull requests). This site has no infra — WordPress is the owner's site it reads, not infrastructure it applies — so nothing waits: web deploys to stage and prod side by side |
| stage before prod | deferred for the bootstrap (promotion.mjs --defer), restored by 02-docs |
| dev's verify lanes on main | deferred for the bootstrap (dev-lanes.mjs --defer), restored by 02-docs; pull requests keep them throughout |
The phase number is the EXECUTION order, and each phase's requires.phases
states it in the document: the engine refuses a phase whose predecessor is not
placed, and names it.
Every landing is a pull request on a branch named for its task
(orun/BASE-<n>-<phase>), checked before it is pushed: orun validate, then
orun plan as the pull request and as the merge would plan it, in the box,
in under a second (checks: local). Then it merges; nothing waits for the
PR's CI. On those branches ci.yml runs plan only — the intent, every
component and every composition resolve — and skips the lanes, because the
merge runs them on main a minute later, for real, and that convergence is
what the phase watches. The site carries no other workflow: the baseline's
own CI (Tier 2) installs, renders the fixture, type-checks, lints, tests and
builds each landing before a tag is cut. A site's later pull requests run
ci.yml's verify lanes, which build and dry-deploy it and do not lint or
run the tests.
| phase | lands | verified by |
|---|---|---|
01-product |
the GitHub repo created, then the WHOLE site in one PR: intent, CI, tooling, identity, apps/web + tests/web — one convergence deploys it to stage and prod |
convergence green (build, deploy, smoke) + the site answers on both URLs |
02-docs |
the live-deployment record; the promotion gate and dev lanes put back | committed manifest matches probed reality |
There is no custom-domain phase. Attaching a domain to a Worker needs zone
permissions the platform's brokered workers-deploy token does not carry, so
it is an owner's step after the bootstrap — the site's README, "Custom
domain", says how.
There is no WordPress phase either. WordPress is not a provider the platform brokers, so no phase can create or connect one: the site is built, deployed and verified WITHOUT one — it serves bundled sample posts under a "no WordPress site is connected" notice — and its owner connects a WordPress afterwards (the site's README, "Connecting WordPress": one optional secret, a redeploy, and a Worker secret for the revalidation webhook).
01-product takes the site's identity once and writes it into the repo
(.rebrand/values.json); 02-docs reads it back from the placed tree. But
the blueprint's required inputs — reponame, productname,
githuborg — are validated before any phase runs, so they must be supplied
on every invocation, single-phase ones included. A --values file is easier
than repeating --set.
-
productdomain— NOT ASKED, default empty. The site goes live on workers.dev; empty brands the reserved placeholder<reponame>.example.comintoBASE_DOMAIN, for an owner to replace when they attach a domain (the site's README, "Custom domain"). Pass it only for a site that already has its domain. -
subdomain— the workers.dev subdomain of the Cloudflare account you deploy into. It is in every URL the phases probe and in the URL the deploy's smoke reads. A console or--from bst_…build reads it from the Cloudflare connection; pass it only for a hand-run build. -
orunWorkspace— workspace id (ws_…). Unset, it is the workspace the build runs in (from: workspace); with none anywhere, a placeholder that fails loudly rather than silently claiming another tenant's workspace. -
epicSlug(defaultcms-wordpress-baselining) — the epic every phase clubs its task under. Found by slug, so a fresh run and a resumed run find the same work. -
repoPrivate(defaulttrue) — the repository's visibility at creation.
orun new --blueprint repo-blueprint.yaml \
--out $HOME/sites/acme-notes --run-hooks --phase 01-product \
--values ~/acme-notes.values.yamlDrop --run-hooks (or add --status) to preview. Without it a phase places
files and stops: no repo, no landing, no convergence watch, and no probe —
which is exactly what makes a dry instantiation of this baseline possible in
CI with no workspace and no provider (testing/placement.test.sh,
testing/e2e.test.sh).
Placement writes the baseline's files as they are here. Before the phase
lands, its post hooks make them the site's:
retouch— one# orun: redeploy 01-product <stamp>line at the end of each component.yaml its task contract names, so a re-run after a failed convergence still has a diff to land and redeploys exactly those components.git init,git add— the rebrand enumerates withgit ls-files.rebrand→ the intent'sworkspace:→work-tree --strip→ the two deferrals →git add→rebrand --verify— the identity rename over the whole tree, the re-tenant, and a sweep that fails on any of this baseline's identity left behind.repo,link, the brokered credentials in onesecretsreconcile,task(the first hook that waits for the background task set-up), andland, its commit checked in the box (checks: local).
There is no lockfile step: the baseline's complete lockfile is placed as it
is, and the lanes install it with --frozen-lockfile.
- Before it lands (a probe that timed out, a rebrand residue, a refused link): nothing was merged. Fix what the message names and re-run the phase.
- After it lands (the convergence went red): the files are on main.
orun.run/watch@v1has already resumed the run up to three times. Re-run the phase (--phase 01-product,--redo 01-productunder--resume, or the console's Retry): itsretouchhook gives the landing a diff and the site redeploys.