From d792d851d6fec0877766911907db165620aca786 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 25 Oct 2026 07:15:17 +0000 Subject: [PATCH] =?UTF-8?q?TU11:=20a=20faster=20bootstrap=20on=20orun=20v2?= =?UTF-8?q?.88.0=20=E2=80=94=20tasks=20in=20the=20background,=20landings?= =?UTF-8?q?=20checked=20here?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Measured on the last todo build (newdsfdfd, v6, orun v2.87.0): 5:14 from the box's boot, of which about a minute was waiting on nothing the build needed. On the orun v2.88.0 floor: - the task set-up (epic, both milestones, both tasks) runs in the background (`background: true`); each phase finds its task just before its landing, in `post`, so the provider check, placement, rebrand, repository and secrets run beside it (~23 s); - both landings check their commit in the box (`checks: local`: orun validate, then orun plan as the PR and as the merge) and merge without waiting for a runner's `plan` (~24 s + ~18 s); - the convergence watch reads every 5 s instead of the action's 40; - no `wiring` await: db-migrate and the site resolve WIRING_CLOUDFLARE_D1 in the convergence from where every later run looks, so a green run already says it is there; - no `pnpm-lockfile` hook: the shipped lockfile is installed frozen by the lanes and by the baseline's own e2e tier; - 02-docs: no final probe (its render probes as it writes, and the landing redeploys nothing), and the render asks the platform nothing — the workspace slug, three secret listings and the integrations listing were five sequential CLI calls; the record names the secrets the deployment uses and points to the console for the rest; - expectedMinutes 4 + 1 (card 5, "about five minutes"), from the measurement rather than the old 14 + 2. phases.test.sh holds the fast shape: every preInstantiate hook in the background, no phase `pre` hook, every landing `checks: local`, the watch at most 10 s; narrate.await only where a phase awaits. BOOTSTRAP floor and baseline.yml pins v2.88.0; docs/phases, BOOTSTRAP, the context pages updated. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CJuLwDKfEaQGAEuBpJvN5Q --- .baseline/product/README.md | 2 +- .github/workflows/baseline.yml | 11 +-- BOOTSTRAP.md | 41 +++++---- ai/context/deployment.md | 2 +- ai/context/operations.md | 2 +- blueprint.yaml | 9 +- docs/phases/01-product.md | 25 +++--- docs/phases/02-docs.md | 7 +- docs/phases/README.md | 18 ++-- hooks/render-deployment-docs.sh | 64 +++++--------- repo-blueprint.yaml | 149 +++++++++++++++++--------------- testing/e2e.test.sh | 2 +- testing/lib/bootstrap.sh | 4 +- testing/phases.test.sh | 78 ++++++++++++----- testing/placement.test.sh | 7 +- 15 files changed, 230 insertions(+), 191 deletions(-) diff --git a/.baseline/product/README.md b/.baseline/product/README.md index e6e5ec2..cf96b15 100644 --- a/.baseline/product/README.md +++ b/.baseline/product/README.md @@ -10,7 +10,7 @@ environment and whose schema is applied by migrations before every deploy. Not recorded yet. The bootstrap's last phase writes the live URLs, the -workspace and the secrets inventory into +workspace and the secrets the site uses into [ai/context/deployment.md](ai/context/deployment.md); how the site deploys and how to operate it is in [ai/context/operations.md](ai/context/operations.md). diff --git a/.github/workflows/baseline.yml b/.github/workflows/baseline.yml index a8beac8..c326c9f 100644 --- a/.github/workflows/baseline.yml +++ b/.github/workflows/baseline.yml @@ -76,7 +76,7 @@ jobs: - uses: actions/checkout@v6 - uses: sourceplane/orun-action@v1.2.0 with: - version: v2.87.0 + version: v2.88.0 - uses: pnpm/action-setup@v4 with: version: 10.12.1 @@ -104,11 +104,12 @@ jobs: # dependsOn edge's `modeRules` (advisory on a PR, enforced on main). The # test refuses an orun older than the pin rather than assert the wrong # CLI's plan. The offline bootstrap before it reads the blueprint, which - # takes the bootstrap floor (v2.87.0, the one `secrets` reconcile), so + # takes the bootstrap floor (v2.88.0: the task set-up in the background, + # the landings checked in the box), so # this tier runs the floor, which is newer than the lane pin. - uses: sourceplane/orun-action@v1.2.0 with: - version: v2.87.0 + version: v2.88.0 - name: placement — the offline bootstrap, and the product's own plan run: | git config --global user.email ci@example.invalid @@ -120,7 +121,7 @@ jobs: # (the live wiring render included), output check and dry deploy in the tree # orun stages, the migration lane's plan and apply (against a stand-in D1 # API), and the built Worker served and smoke-tested with the component's - # own smoke command. Pinned at the bootstrap floor (v2.87.0): the offline + # own smoke command. Pinned at the bootstrap floor (v2.88.0): the offline # bootstrap reads the blueprint, and the floor is newer than the product's # lane pin (v2.78.4), which is all the lane steps need. site: @@ -129,7 +130,7 @@ jobs: - uses: actions/checkout@v6 - uses: sourceplane/orun-action@v1.2.0 with: - version: v2.87.0 + version: v2.88.0 - uses: pnpm/action-setup@v4 with: version: 10.12.1 diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md index 9972c93..22474f4 100644 --- a/BOOTSTRAP.md +++ b/BOOTSTRAP.md @@ -11,22 +11,25 @@ not separate workflows. The console card the platform renders is brokered secrets and the programme, and `testing/manifest.test.sh` holds it to what the build document does. -Target wall-clock: **about sixteen minutes** — an estimate summed from the -phases until a bootstrap measures it: ONE landing whose pull request waits on -`plan`, then one convergence — per environment the D1 -database applied, then its migrations, then the site built with its id and -deployed, stage and prod side by side — then a short docs landing that -restores the promotion gate. +Target wall-clock: **about five minutes** from the build box's boot, summed +from the phases (4 + 1). A v6 build measured 5:14; v8 takes about a minute +out of it. The shape: the task set-up in the background while ONE landing is +placed, branded and checked in the box (`orun validate` and `orun plan`, no +runner waited for), then one convergence — per environment the D1 database +applied, then its migrations, then the site built with its id and deployed, +stage and prod side by side — then a short docs landing that restores the +promotion gate. ## 0. What you need - GitHub org access (repository creation) and a machine with `git`, `node` (≥ 22), `pnpm` (10.12.1), `python3` with PyYAML, `curl`, and the `orun` - CLI **≥ v2.87.0** — the floor for RUNNING the bootstrap (the phase overlay, - landings that commit per phase and wait on the PR's whole CI run, - `githubOwner` on the doctor probe, `environments` on the secrets probe, a - probe deferred for a project not yet created, `from: workspace`, and the - deploy credentials minted in one `secrets` reconcile). The product's own + CLI **≥ v2.88.0** — the floor for RUNNING the bootstrap (the phase overlay, + landings that commit per phase, `githubOwner` on the doctor probe, a probe + deferred for a project not yet created, `from: workspace`, the deploy + credentials minted in one `secrets` reconcile, the task set-up run in the + background (`background: true`), and landings checked in the box before + they merge (`checks: local`)). The product's own `ci.yml` pins its lanes separately (v2.78.4). - A Cloudflare account (the free plan is enough for one Worker with static assets and a D1 database per environment) and its **Account API token** @@ -81,8 +84,8 @@ phase whose files are present but branded derives as `drifted`, and | phase | what it lands | verified by | |---|---|---| -| `01-product` | the repository, created and linked; the WHOLE product in one PR — intent, CI, tooling, identity, the D1 root, the migrations, the site and its tests; the brokered Cloudflare secrets (the deploy token, the D1 token, the account id) | its PR's checks green and merged; the convergence green (D1 applied, then migrated, then the site built, deployed, smoke-tested); `WIRING_CLOUDFLARE_D1` on stage and prod; both workers.dev URLs answering | -| `02-docs` | `ai/context/deployment.md` from probed facts; prod's promotion gate and dev's push lanes restored | the final probe | +| `01-product` | the repository, created and linked; the WHOLE product in one PR — intent, CI, tooling, identity, the D1 root, the migrations, the site and its tests; the brokered Cloudflare secrets (the deploy token, the D1 token, the account id) | its commit validated and planned in the box (as the PR and as the merge), then merged; the convergence green (D1 applied, then migrated — which resolves `WIRING_CLOUDFLARE_D1` — then the site built, deployed, smoke-tested); both workers.dev URLs answering | +| `02-docs` | `ai/context/deployment.md` from probed facts; prod's promotion gate and dev's push lanes restored | the render's own probes, recorded; the commit checked in the box and merged | ```bash orun new --blueprint repo-blueprint.yaml --out ~/sites/acme-todos --run-hooks \ @@ -134,9 +137,9 @@ per environment: - A job resolves its secrets when it STARTS, so `WIRING_CLOUDFLARE_D1` is there when the migrations begin, and `WIRING_CLOUDFLARE_D1_` when the deploy does. -- The landing's `await` then asks the platform that the wiring exists on - stage and prod (`orun.secrets/exists@v1`) — every later migration and - deploy reads it. +- Both readers resolve the document from the place every later run looks + (their `component.yaml` secret refs), so a green convergence already says + it is there: a missing one fails their lane. There is no separate check. `testing/phases.test.sh` fails if a component that reads a wiring document does not wait for its publisher this way, or if a deployable that binds the @@ -241,12 +244,14 @@ at the tag and refuses the whole catalogue if it 404s. | db-migrate lane: `Checksum mismatch for already-applied migrations` | an applied migration's file was edited; restore it and put the change in a new migration | | web lane fails resolving `WIRING_CLOUDFLARE_D1_` | that environment's D1 apply failed — read its lane; the web lane waits on it | | the smoke fails on a "no `todos` table" notice | the migrations did not reach the database the Worker binds — read the db-migrate lane for that environment | -| `wiring` await stops: `WIRING_CLOUDFLARE_D1` missing on stage or prod | the convergence was green but the apply published nothing: the D1 component lost its `secretOutputs`, or its lane was not in the plan. Re-run the phase; its retouch marker re-plans the D1 root | +| db-migrate or web lane: `WIRING_CLOUDFLARE_D1` not found | that environment's D1 apply published nothing: the D1 component lost its `secretOutputs`, or its lane was not in the plan. Re-run the phase; its retouch marker re-plans the D1 root | +| `land` stops: `the landing's own check failed — orun plan for …` | the product's tree does not plan — the line after it is orun's own error (an unknown component type, a composition that does not resolve). Nothing was pushed. Fix the tree (or the baseline) and re-run the phase | +| `land` waits on CI after all | the product's repository requires a status check on `main` (branch protection or a ruleset), so GitHub refused the early merge; the landing waits for the check as a `checks: ci` landing would, then merges | | Convergence failed AFTER the PR merged; re-running lands nothing | expected on its own — the files are on main. Re-run the phase (`--phase 01-product`, `--redo 01-product`, or the console's Retry): its `retouch` hook gives the landing a diff and the D1 root, the migrations and the site re-plan; applied migrations are skipped | | The product's `intent.yaml` says `workspace: ws_SET_ME` | `orunWorkspace` was empty and the build ran outside a workspace; set it and re-run `01-product` | | A bootstrap stopped before `02-docs`; prod no longer waits on stage | the gate is deferred, not dropped: run `02-docs`, or `node tooling/bootstrap/promotion.mjs --restore --file /intent.yaml` | | `✕ input "productname" is required` | all three required inputs (`reponame`, `productname`, `githuborg`) must be set on every invocation, single-phase ones included | -| `unknown flag: --phase`, `has no parameter "secrets"` or another parse error in the blueprint | the CLI is below the v2.87.0 floor | +| `unknown flag: --phase`, `has no parameter "checks"`, `has no parameter "secrets"` or another parse error in the blueprint | the CLI is below the v2.88.0 floor | | web lane `verify-app-structure` fails on `wrangler.jsonc` | the config is not committed. It is the fixture render of `wrangler.template.jsonc`: `pnpm run wire:fixture` and commit it | | web lane `build-app`: `Symlink apps/web/node_modules/next is invalid, it points out of the filesystem root` | the product's intent pins stack-tectonic ≥ 0.20.0, whose lane-scoped install links each job's node_modules out of its tree, which Next 16's Turbopack refuses. Pin 0.19.0 (`intent.yaml` says why) | | the convergence reported green, then `verify` got 404 | a second workflow ran on the push to main and the watch took its run. Only `ci.yml` may run on a push to main | diff --git a/ai/context/deployment.md b/ai/context/deployment.md index 4a47cc4..507ee6b 100644 --- a/ai/context/deployment.md +++ b/ai/context/deployment.md @@ -2,6 +2,6 @@ > Not rendered yet. The bootstrap's `02-docs` phase probes every live URL and > regenerates this file from what answered — the workspace, the URLs and -> their status, and the secrets inventory by name. Until then, nothing here +> their status, and the secrets the site uses, by name. Until then, nothing here > claims the site is live. The operating contract is > [operations.md](operations.md). diff --git a/ai/context/operations.md b/ai/context/operations.md index d34d086..4891fa5 100644 --- a/ai/context/operations.md +++ b/ai/context/operations.md @@ -1,7 +1,7 @@ # turso-starter — operating contract (for humans and agents) This is the standing guide to how this site is deployed and operated. -Instance facts (live URLs, workspace, secrets inventory) live in +Instance facts (live URLs, workspace, the secrets it uses) live in [deployment.md](deployment.md), rendered from probed reality by the bootstrap's `02-docs` phase; this file is the contract that stays true between deployments. It is written to give an agent with repository read diff --git a/blueprint.yaml b/blueprint.yaml index 57ba08a..efeed5d 100644 --- a/blueprint.yaml +++ b/blueprint.yaml @@ -24,7 +24,7 @@ metadata: D1 database Terraform provisions per environment, its schema applied by db-migrate, and CI that applies the database, migrates it and deploys the site to stage and prod on merge. One provider, one consent. Live in about - fifteen minutes, in one landing. + five minutes, in one landing. tags: [todos, d1, sqlite, cloudflare, nextjs] spec: source: @@ -147,9 +147,10 @@ spec: # THE BUILD DOCUMENT. There is no umbrella workflow and no agent brief: # every phase is declared in it and orun runs it. blueprint: repo-blueprint.yaml - # Summed from the phases' expectedMinutes. An estimate until a bootstrap - # measures it. - expectedMinutes: 16 + # Summed from the phases' expectedMinutes (4 + 1), which come from a + # measured build: 5:14 from the box's boot on v6, less the minute v8 takes + # out of it. + expectedMinutes: 5 tokenChannel: ORUN_TOKEN_FILE # how a runner hands over its refreshed token verify: urls: diff --git a/docs/phases/01-product.md b/docs/phases/01-product.md index 1f0245f..b1873e0 100644 --- a/docs/phases/01-product.md +++ b/docs/phases/01-product.md @@ -16,22 +16,24 @@ waits. ## What runs +The run's task set-up — the epic, both milestones, both tasks — runs in the +background from the start (`background: true`), so every hook up to `task` +runs beside it; `task` is the first that waits for it. + | hook | what it does | |---|---| -| `task` (pre) | finds the phase's task and yields its key | | `retouch` | the redeploy marker on the components `.baseline/tasks/01-product.TaskContract.yaml` names: `cloudflare-d1`, `db`, `db-migrate`, `db-tests`, `web`, `web-tests` | | `git-init`, `stage`, `rebrand` | the tree becomes a repository, then the product's | | `orun-workspace` | intent.yaml's `workspace:` becomes the product's (or `ws_SET_ME`, which fails loudly) | | `work-tree` | intent.yaml's `work:` block — this repository's epics and tasks — is removed | | `promotion`, `dev-lanes` | prod's promotion gate and dev's push-to-main activation deferred until `02-docs` | | `restage`, `rebrand-verify` | the sweep: no identity of this baseline left anywhere | -| `pnpm-lockfile` | confirms the baseline's complete lockfile against the placed tree | | `repo` | `orun.repo/ensure@v1` creates `/` (or finds it) | | `link` | the repository becomes the workspace's; `orun cloud check` is the gate | | `secrets` | `orun.integrations/reconcile@v1`, the three keys in one hook, created side by side: `CLOUDFLARE_API_TOKEN` from the `workers-deploy` template (Workers Scripts, the site's deploy); `CLOUDFLARE_D1_TOKEN` from `d1-edit` (D1, for the database's apply and the migrations — the deploy token cannot touch D1); `CLOUDFLARE_ACCOUNT_ID`, the connection fact all three bind | -| `land` | one PR bound to the task, merged once its check (`plan`) is green | -| `converge` (await) | `orun.run/watch@v1` on the merge commit's run; resumes it up to three times | -| `wiring` (await) | `orun.secrets/exists@v1` — `WIRING_CLOUDFLARE_D1` exists on stage and prod | +| `task` | finds the phase's task and yields its key — waiting, if it must, for the background set-up | +| `land` | one PR bound to the task, its commit checked in the box first (`checks: local`: `orun validate`, then `orun plan` as the PR and as the merge would plan it, under a second); merged without waiting for the PR's CI | +| `converge` (await) | `orun.run/watch@v1` on the merge commit's run, read every 5 s; resumes it up to three times | | `verify` (await) | `orun.http/probe@v1` on both workers.dev URLs | ## What the convergence does @@ -47,14 +49,16 @@ by side: | `stage · web` / `prod · web` | that environment's D1 apply and its migrations (`dependsOn` both, `mode: enforced` on main) | resolves `WIRING_CLOUDFLARE_D1_`, renders `wrangler.jsonc` with the real database id, builds with OpenNext, deploys `-web-`, and smoke-tests it: `/` must render the list's row count (`data-todos="N"`), which only the Worker querying its migrated database can | `web-tests`, `db-tests` and `db` verify on dev only, on a pull request. The -landing's own pull request runs `plan` alone: the baseline's own CI ran their -checks on this exact tree before the tag was cut, and every later pull -request in the product runs them. +landing's own pull request runs `plan` alone, and nothing waits for it — the +same plan ran in the box before the push: the baseline's own CI ran the +lanes' checks on this exact tree before the tag was cut, and every later +pull request in the product runs them. ## Verified -The convergence run for the merge commit is green; `WIRING_CLOUDFLARE_D1` -exists on stage and prod; `https://-web-{stage,prod}..workers.dev` +The convergence run for the merge commit is green — its migrations and the +site resolved `WIRING_CLOUDFLARE_D1` from stage and prod, where every later +run reads it; `https://-web-{stage,prod}..workers.dev` answer. ## Troubleshooting @@ -64,6 +68,7 @@ answer. | parks on the `providers` probe | GitHub (on the repository's owner) or Cloudflare is not connected to the workspace. Connect it (console → Integrations), then re-run the phase — the probe is a wait, not a failure | | stops at `link` | the repository is not linked to the workspace and the credential cannot link it. Allow-list it (console → Settings → Git repos) and re-run the phase | | D1 lane: a database with this name already exists | `adopt.tf` imports a database of the same name; if it was removed, restore it. Two products with the same `reponame` in one account share a name — use a distinct `reponame` | +| `land`: `the landing's own check failed — orun plan for …` | the placed tree does not plan; the next line is orun's error. Nothing was pushed. Fix it and re-run the phase | | D1 or db-migrate lane: Authentication error (10000) | the connection's token cannot mint D1 Edit (`d1-edit`). Re-issue it with the permission groups the console's Connect recipe lists, re-connect, re-run the phase | | deploy lane: Authentication error (10000) | the connection's token lacks Workers Scripts write (`workers-deploy`); same fix | | db-migrate lane: `No D1 database id` | the job started without `WIRING_CLOUDFLARE_D1` — that environment's D1 apply failed or never ran, or the `dependsOn` edge is gone from `infra/db-migrate/component.yaml` | diff --git a/docs/phases/02-docs.md b/docs/phases/02-docs.md index 1eef3dc..aa26635 100644 --- a/docs/phases/02-docs.md +++ b/docs/phases/02-docs.md @@ -11,12 +11,11 @@ no phase may require this one.) | hook | what it does | |---|---| -| `task` (pre) | finds the phase's task and yields its key | | `promotion` | restores `environments.prod.promotion` — from now on prod deploys only after stage | | `dev-lanes` | restores dev's activation on pushes to main | -| `render` | `hooks/render-deployment-docs.sh`: probes `/` on both environments (and whether each page rendered its D1-backed list), lists the secrets by name and the workspace's integrations, and regenerates `ai/context/deployment.md` and the README's live-deployment section | -| `land` | one PR, waited for and merged. It touches no component, so it deploys nothing | -| `verify` (await) | the same probe `01-product` ended on | +| `render` | `hooks/render-deployment-docs.sh`: probes `/` on both environments (and whether each page rendered its D1-backed list) and regenerates `ai/context/deployment.md` — the identity, the probed URLs, the secrets the deployment uses by name — and the README's live-deployment section. It asks the platform nothing: what the workspace holds right now is on the console's Secrets and Integrations pages, which the record points to | +| `task` | finds the phase's task and yields its key | +| `land` | one PR, its commit checked in the box (`checks: local`) and merged. It touches no component, so it deploys nothing — and there is nothing after it to wait for: the render's probes are the phase's check | ## Re-running it diff --git a/docs/phases/README.md b/docs/phases/README.md index 82f99a7..f3e3cd1 100644 --- a/docs/phases/README.md +++ b/docs/phases/README.md @@ -9,9 +9,13 @@ container the same operation as running them all. The product phase follows the contract every deploying phase does: -> **place its modules → brand them → land them as one pull request → watch -> the convergence that merge triggers (auto-resumed) → check what the -> convergence published → verify the outcome over HTTP.** +> **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. @@ -20,7 +24,7 @@ site's repository is wherever `--out` points. | phase | lands | verified by | |---|---|---| -| [`01-product`](01-product.md) | **the GitHub repo created** and the whole product in ONE pull request: intent, CI, tooling, identity, the D1 root, the migrations, the site and its tests | the convergence green (D1 applied, then migrated, then the site built, deployed and smoke-tested), `WIRING_CLOUDFLARE_D1` on stage and prod, both URLs answering | +| [`01-product`](01-product.md) | **the GitHub repo created** and the whole product in ONE pull request: intent, CI, tooling, identity, the D1 root, the migrations, the site and its tests | the convergence green (D1 applied, then migrated, then the site built, deployed and smoke-tested), both URLs answering | | [`02-docs`](02-docs.md) | the live-deployment record; the promotion gate and dev's lanes put back | committed manifest matches probed reality | **One landing, not three.** Before the one-landing shape a site like this @@ -37,8 +41,10 @@ pull request the edges are advisory: nothing applies or deploys. checks the product's own plan honours them. Every landing is a pull request on a branch named for its task -(`orun/BASE--`). On those branches `ci.yml` runs `plan` only — the -intent, every component and every composition resolve — and skips the lanes, +(`orun/BASE--`), 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 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 product carries no other workflow: the baseline's own CI (Tier 2) installs, renders the fixture, diff --git a/hooks/render-deployment-docs.sh b/hooks/render-deployment-docs.sh index 1313ce0..36e6ddf 100755 --- a/hooks/render-deployment-docs.sh +++ b/hooks/render-deployment-docs.sh @@ -10,15 +10,22 @@ # What it writes (in ): # ai/context/deployment.md — REGENERATED: URLs with live probe results (and # whether each page rendered its D1-backed -# list), identity, the D1 wiring, secrets -# inventory BY NAME, integrations +# list), identity, the D1 wiring, and the +# secrets the deployment uses BY NAME # ai/context/operations.md — healed from the baseline's copy if absent # (the static operating contract; never rewritten) # README.md — the section between # is replaced (appended after the title if the # README predates the markers) # -# No secret VALUE is ever read or written here — inventories are names only. +# No secret VALUE is ever read or written here — secrets are named, not read. +# +# IT ASKS THE PLATFORM NOTHING. The record used to carry the workspace's slug, +# its secrets listed per rung and its integrations — five CLI calls, one after +# another, from the build box — and all of it is what the console shows live +# and this file could only show as it was the day it was written. The record +# keeps what the repository is the right place for: the identity the code +# names, what answered at the URLs, and where to look for the rest. set -euo pipefail out="${1:?usage: render-deployment-docs.sh }" @@ -36,10 +43,6 @@ sub="$(val subdomain)"; [ -n "$sub" ] || sub="your-workers-subdomain" [ -n "$ws" ] || ws="$(sed -n 's/^[[:space:]]*workspace:[[:space:]]*\([^[:space:]#]*\).*/\1/p' intent.yaml | head -1)" [ -n "$ws" ] || ws="?" -# Workspace slug via the direct backend read; tolerate failure. -slug="$( { orun workspace "$ws" 2>/dev/null || true; } | sed -n 's/^ *slug: *//p' | head -1)" -[ -n "$slug" ] || slug="?" - # CI lane pin (what version the deploy lanes run). lanepin="$(sed -n 's/^ *version: *\(v[0-9.]*\) *$/\1/p' .github/workflows/ci.yml 2>/dev/null | head -1)" [ -n "$lanepin" ] || lanepin="?" @@ -79,17 +82,6 @@ for pair in "stage|$stage_url" "prod|$prod_url"; do rows+="| site (${env}) | ${url} | $(badge "$(probe "$url/")") |"$'\n' done -secrets_list() { { orun secrets list --org "$ws" "$@" 2>/dev/null || true; } | awk 'NR>1 && NF {print " - "$1}'; } -secrets_proj="$(secrets_list --project)"; [ -n "$secrets_proj" ] || secrets_proj=" - (listing unavailable to this credential)" -secrets_stage="$(secrets_list --env stage)"; [ -n "$secrets_stage" ] || secrets_stage=" - (listing unavailable to this credential)" -secrets_prod="$(secrets_list --env prod)"; [ -n "$secrets_prod" ] || secrets_prod=" - (listing unavailable to this credential)" -integrations="$( { orun integrations list --org "$ws" --json 2>/dev/null || true; } | python3 -c " -import json,sys -try: rows=json.load(sys.stdin) -except Exception: rows=[] -out=[f\" - {r.get('provider','?')}: {r.get('status','?')}\" for r in rows] -print('\n'.join(out) if out else ' - (listing unavailable to this credential)')" )" - now="$(date -u +%Y-%m-%dT%H:%M:%SZ)" # Heal the static operating contract when the site predates it. @@ -106,15 +98,14 @@ cat > ai/context/deployment.md < GENERATED by the \`02-docs\` phase on ${now}; re-run it to refresh > (idempotent; see [operations.md](operations.md)). Hand-edits here are -> overwritten. No secret values appear in this file — inventories are names -> only. +> overwritten. No secret values appear in this file — secrets are named only. ## Identity | | | |---|---| | repository / project slug | \`${repo}\` | -| Orun workspace | \`${ws}\` (slug \`${slug}\`) | +| Orun workspace | \`${ws}\` | | declared in | \`intent.yaml\` → \`execution.state.workspace\` | | Workers | \`${brand}-web-stage\`, \`${brand}-web-prod\` on \`${sub}.workers.dev\` | | D1 databases | \`stg-${repo}-stage\`, \`prod-${repo}-prod\` (\`infra/terraform/cloudflare-d1\`); their ids reach the migrations and the Workers as \`WIRING_CLOUDFLARE_D1\` on each environment | @@ -129,26 +120,19 @@ ${rows} The \`dev\` environment is verify-only by design — no deployed URL and no database. -## Secrets inventory (names only) - -Project rung: -${secrets_proj} +## Secrets (names only) -Environment \`stage\`: -${secrets_stage} - -Environment \`prod\`: -${secrets_prod} - -Provider secrets are BROKERED (minted per run from the workspace's Cloudflare -connection; no long-lived values at rest): \`CLOUDFLARE_API_TOKEN\` deploys, -\`CLOUDFLARE_D1_TOKEN\` applies the database and its migrations. -\`WIRING_CLOUDFLARE_D1\` is written by the D1 root's apply and holds ids, not -credentials. - -## Workspace integrations +| secret | where | what it is | +|---|---|---| +| \`CLOUDFLARE_API_TOKEN\` | the workspace | BROKERED from its Cloudflare connection (\`workers-deploy\`): deploys the Worker | +| \`CLOUDFLARE_D1_TOKEN\` | the workspace | BROKERED (\`d1-edit\`): applies the database and runs its migrations | +| \`CLOUDFLARE_ACCOUNT_ID\` | the workspace | the connection's account id — a fact, not a credential | +| \`WIRING_CLOUDFLARE_D1\` | \`${repo}\` on stage and on prod | written by the D1 root's apply: the database's id and name, not a credential | -${integrations} +Brokered secrets are minted per run, so no long-lived value is at rest. What +the workspace holds right now (every secret by name, and its integrations +and their health) is on the console's Secrets and Integrations pages for +\`${ws}\`. ## How this deployment changes @@ -163,7 +147,7 @@ python3 - <<'PY' import re begin, end = "", "" body = f"""{begin} -This site is **live**. Verified URLs, identity and the secrets inventory are +This site is **live**. Verified URLs, identity and the secrets it uses are recorded in [ai/context/deployment.md](ai/context/deployment.md) (re-rendered by the `02-docs` phase); how it deploys and how to operate it: [ai/context/operations.md](ai/context/operations.md). diff --git a/repo-blueprint.yaml b/repo-blueprint.yaml index 3992afb..dd9cd25 100644 --- a/repo-blueprint.yaml +++ b/repo-blueprint.yaml @@ -182,8 +182,10 @@ modules: source: baseline from: pnpm-workspace.yaml to: pnpm-workspace.yaml - # The baseline's complete lockfile: the whole tree lands at once, so the - # `pnpm-lockfile` hook only confirms it. + # The baseline's complete lockfile, as it is: the whole tree lands at once + # and the lockfile carries no identity, so there is nothing to re-resolve — + # the lanes install it with --frozen-lockfile, and the baseline's own CI + # (testing/e2e.test.sh) does the same on this exact tree before a tag. - name: root-pnpm-lock mode: copy source: baseline @@ -333,16 +335,25 @@ modules: # new milestone after the last, and a task naming a milestone the epic does # not have yet would create it out of order. # -# Each phase's own `pre` hook runs `orun.task/ensure@v1` on its task again. -# Same identity, so it finds rather than creates, and it is how the phase gets -# the task's KEY for its landing. The MILESTONE keeps the phase's name: it is -# the identity the engine's phase events, the plane's evidence and the -# console's rows all meet on, and the card's `programme.milestones` names the -# same list. +# IN THE BACKGROUND (orun >= v2.88.0, `background: true` on every hook here). +# Nothing a phase does before its landing reads the task plane — the provider +# check, the placement, the rebrand, the repository, the secrets — so the +# whole list runs beside 01-product instead of before it, in order. A hook +# that works on the plane (`orun.task/ensure@v1`, `orun.pr/land@v1`) waits +# for it to finish; a failure here stops the build at the next hook. +# +# Each phase's own `task` hook runs `orun.task/ensure@v1` on its task again, +# just before its landing. Same identity, so it finds rather than creates, +# and it is how the phase gets the task's KEY for its landing; it sits in +# `post` rather than `pre` so that everything before it overlaps with this +# list. The MILESTONE keeps the phase's name: it is the identity the engine's +# phase events, the plane's evidence and the console's rows all meet on, and +# the card's `programme.milestones` names the same list. hooks: preInstantiate: - id: epic uses: orun.task/ensure@v1 + background: true with: kind: epic slug: "{{ .inputs.epicSlug }}" @@ -358,6 +369,7 @@ hooks: owner: me - id: m01 uses: orun.task/ensure@v1 + background: true with: kind: milestone epic: "{{ .inputs.epicSlug }}" @@ -369,6 +381,7 @@ hooks: - the site built, deployed and answering on stage and prod - id: m02 uses: orun.task/ensure@v1 + background: true with: kind: milestone epic: "{{ .inputs.epicSlug }}" @@ -378,6 +391,7 @@ hooks: - prod waits on stage again - id: t01 uses: orun.task/ensure@v1 + background: true with: kind: task epic: "{{ .inputs.epicSlug }}" @@ -394,6 +408,7 @@ hooks: contract: .baseline/tasks/01-product.TaskContract.yaml - id: t02 uses: orun.task/ensure@v1 + background: true with: kind: task epic: "{{ .inputs.epicSlug }}" @@ -431,10 +446,13 @@ phases: - name: 01-product title: The product, built in one landing description: The whole tree — manifests, CI, tooling, the D1 root, the migrations, the site and its tests — branded, landed as one pull request, and provisioned, migrated and deployed by one convergence. - # An estimate until a bootstrap measures it: the pull request's `plan`, - # the merge, the D1 apply, the migrations, then the site's build, deploy - # and smoke on stage and prod side by side. - expectedMinutes: 14 + # Measured: 4:50 to the end of this phase on a v6 build (newdsfdfd, orun + # v2.87.0), of which v8 takes out about a minute — the task set-up in the + # background (~23 s), the landing checked here instead of by a runner + # (~24 s), the watch reading every 5 s instead of 40 (~20 s). The rest is + # the merge's convergence: the D1 apply, the migrations, then the site's + # build, deploy and smoke, stage and prod side by side. + expectedMinutes: 4 narrate: start: "Creating the repository and landing the whole product in one pull request — intent, CI, tooling, the D1 database, its migrations and the todo list with its tests. Then one convergence applies the database, migrates it and deploys the site on stage and prod. Usually about {{ .meta.expectedMinutes }} minutes." await: "One convergence is deploying the product, per environment: the D1 database first, then its migrations, then the site built with its id — stage and prod side by side. The Next.js build is the long pole; nothing is stuck." @@ -459,19 +477,6 @@ phases: waitSeconds: 600 pollSeconds: 20 hooks: - pre: - # The epic, the milestones and the tasks already exist (the run-level - # list above). This finds the task and yields its key, which the - # landing binds the pull request to. - - id: task - uses: orun.task/ensure@v1 - with: - kind: task - epic: "{{ .inputs.epicSlug }}" - milestone: "{{ .phase.name }}" - name: "Build the product in one landing" - prefix: BASE - contract: .baseline/tasks/01-product.TaskContract.yaml # The whole tree is placed when these run. rebrand.mjs enumerates it # with `git ls-files`, so the output has to be a git repository with a # populated index BEFORE it runs. `git add -A` only stages; the landing @@ -544,11 +549,6 @@ phases: run: ["git", "add", "-A"] - id: rebrand-verify run: ["node", "{{ .baseline.dir }}/tooling/rebrand/rebrand.mjs", "--verify", "--values", ".rebrand/values.json"] - # root-pnpm-lock places the baseline's complete lockfile and the whole - # tree is here, so this only confirms it; the lanes install with - # --frozen-lockfile. The lockfile carries no identity. - - id: pnpm-lockfile - run: ["pnpm", "install", "--lockfile-only"] # The repo has to exist before there is anywhere to land. - id: repo uses: orun.repo/ensure@v1 @@ -594,12 +594,29 @@ phases: - { key: CLOUDFLARE_API_TOKEN, template: workers-deploy } - { key: CLOUDFLARE_D1_TOKEN, template: d1-edit } - { key: CLOUDFLARE_ACCOUNT_ID, template: account-id } - # THE PRODUCT IS A PULL REQUEST THAT IS CHECKED, THEN MERGED. This - # landing waits for its PR's whole CI run (orun >= v2.58.6): `plan` — - # the intent, every component and every composition resolve. On a - # bootstrap branch (`orun/BASE-…`) the lanes are skipped (ci.yml), - # because the merge runs every one of them on main a minute later, for - # real, and that convergence is what `await` watches. + # The task this landing closes, and its key. The run-level list above + # opens it in the background; this is the first hook that needs it, + # so it is the one that waits for that list (orun >= v2.88.0) — every + # hook before it ran while the task plane was still being set up. + - id: task + uses: orun.task/ensure@v1 + with: + kind: task + epic: "{{ .inputs.epicSlug }}" + milestone: "{{ .phase.name }}" + name: "Build the product in one landing" + prefix: BASE + contract: .baseline/tasks/01-product.TaskContract.yaml + # THE PRODUCT IS A PULL REQUEST THAT IS CHECKED, THEN MERGED — checked + # HERE (`checks: local`, orun >= v2.88.0): `orun validate`, then + # `orun plan` as the pull request and as the merge to main plan it, + # on the commit, before it is pushed. That is what the PR's `plan` + # job checks (the intent, every component and every composition + # resolve), plus the merge's own plan, in under a second instead of a + # runner's ~25 s. A tree that fails is never pushed. The PR's CI still + # runs (`plan` alone on a bootstrap branch, `orun/BASE-…`, ci.yml); + # nothing waits for it. The merge runs every lane on main a minute + # later, for real, and that convergence is what `await` watches. - id: land uses: orun.pr/land@v1 narrate: "The product is merged into main." @@ -608,6 +625,7 @@ phases: epic: "{{ .inputs.epicSlug }}" branchSlug: "{{ .phase.name }}" title: "feat: {{ .inputs.productname }}, the whole product from the turso-starter baseline" + checks: local await: - id: converge uses: orun.run/watch@v1 @@ -620,19 +638,15 @@ phases: repo: "{{ .inputs.githuborg }}/{{ .inputs.reponame }}" resumeBudget: 3 waitSeconds: 1800 - # The D1 root's apply lease-publishes its wiring document to the - # project's ENVIRONMENT rungs (stage and prod), not to the workspace; - # every later migration and deploy of the site reads it back. Asked of - # the platform directly, because a green convergence says the lanes - # passed, not that the document a FUTURE run needs is where it will - # look. - - id: wiring - uses: orun.secrets/exists@v1 - narrate: "The D1 wiring the migrations and the site's deploys read is published on stage and prod." - with: - keys: [WIRING_CLOUDFLARE_D1] - project: "{{ .inputs.reponame }}" - environments: [stage, prod] + # Read every 5 s, not the action's 40: the build goes on the + # moment the run is green instead of up to 40 s after it. + pollSeconds: 5 + # NO SEPARATE WIRING CHECK. The D1 root's apply lease-publishes its + # wiring document to the project's stage and prod rungs, and both its + # readers resolve it in this convergence from the place every later + # run looks (their component.yaml secret refs): db-migrate before it + # migrates, the site before it renders its config. A missing document + # fails their lane, so a green run already says it is there. - id: verify uses: orun.http/probe@v1 narrate: "The site answered on stage and prod." @@ -642,31 +656,21 @@ phases: - "https://{{ .inputs.reponame }}-web-prod.{{ .inputs.subdomain }}.workers.dev" # Places nothing. It records what 01-product built, from PROBED facts rather - # than from what the blueprint intended — which is why it runs last and why - # its verify is the probe 01-product ends on. + # than from what the blueprint intended — which is why it runs last. Its + # render probes every URL as it writes the record, and this landing + # redeploys nothing, so there is no probe after it to wait for. - name: 02-docs title: The deployment, recorded description: The live-deployment manifest, rendered from probed reality, and the promotion gate and dev's lanes put back. - expectedMinutes: 2 + expectedMinutes: 1 narrate: start: "Now recording what was actually built — probing every URL and writing the deployment manifest into the repository." - await: "Probing the live endpoints one last time." done: "ai/context/deployment.md now records the live deployment, written from probed facts, and prod waits on stage again. {{ .meta.elapsed }}." failed: "The deployment record did not land. The site is still live; only the write-up is missing." modules: [] requires: phases: [01-product] hooks: - pre: - - id: task - uses: orun.task/ensure@v1 - with: - kind: task - epic: "{{ .inputs.epicSlug }}" - milestone: "{{ .phase.name }}" - name: "Record the live deployment" - prefix: BASE - contract: .baseline/tasks/02-docs.TaskContract.yaml post: # THE SITE GOES LIVE WITH ITS PROMOTION GATE. 01-product deferred # `prod.promotion.dependsOn: [stage]`; this, the last landing, puts it @@ -681,6 +685,16 @@ phases: run: ["node", "{{ .baseline.dir }}/tooling/bootstrap/dev-lanes.mjs", "--restore"] - id: render run: ["bash", "{{ .baseline.dir }}/hooks/render-deployment-docs.sh", ".", "{{ .inputs.orunWorkspace }}", "{{ .baseline.dir }}"] + - id: task + uses: orun.task/ensure@v1 + with: + kind: task + epic: "{{ .inputs.epicSlug }}" + milestone: "{{ .phase.name }}" + name: "Record the live deployment" + prefix: BASE + contract: .baseline/tasks/02-docs.TaskContract.yaml + # Checked here and merged, as 01-product's landing is. - id: land uses: orun.pr/land@v1 narrate: "The deployment record is merged into main." @@ -689,11 +703,4 @@ phases: epic: "{{ .inputs.epicSlug }}" branchSlug: "{{ .phase.name }}" title: "docs(deployment): record the live deployment state" - await: - - id: verify - uses: orun.http/probe@v1 - narrate: "Every live URL answered on the final probe." - with: - urls: - - "https://{{ .inputs.reponame }}-web-stage.{{ .inputs.subdomain }}.workers.dev" - - "https://{{ .inputs.reponame }}-web-prod.{{ .inputs.subdomain }}.workers.dev" + checks: local diff --git a/testing/e2e.test.sh b/testing/e2e.test.sh index 6b92ff7..56fe1cc 100755 --- a/testing/e2e.test.sh +++ b/testing/e2e.test.sh @@ -6,7 +6,7 @@ # This proves it WORKS, by doing to it what its own pipelines will: # # 1. at the 01-product landing (the commit its one pull request merges), -# install with the lockfile the phase confirmed, render the wrangler +# install with the lockfile the product ships, render the wrangler # fixture and check the committed config IS that render, typecheck, # lint, test, build. The landing's own PR runs `plan` alone (an # `orun/BASE-*` branch), so THIS is where a product those steps refuse diff --git a/testing/lib/bootstrap.sh b/testing/lib/bootstrap.sh index 43bfd4e..44466cb 100644 --- a/testing/lib/bootstrap.sh +++ b/testing/lib/bootstrap.sh @@ -14,8 +14,8 @@ # workspace; # - `{{ .inputs.* }}` render from the fixture. # Everything else — the rebrand, the re-tenant, the work-tree strip, the -# deferrals and their restore, the retouch marker, the lockfile seed and -# prune, the deployment-docs render — runs exactly as declared. +# deferrals and their restore, the retouch marker, the deployment-docs +# render — runs exactly as declared. # # Needs: orun, node, pnpm, python3 (+PyYAML), git. diff --git a/testing/phases.test.sh b/testing/phases.test.sh index 3219b0d..52b74c0 100755 --- a/testing/phases.test.sh +++ b/testing/phases.test.sh @@ -10,11 +10,17 @@ # then its migrations, then the Worker that binds it — is carried by the plan # instead, and this file checks the edges that carry it: every component that # reads a wiring document waits, on a merge to main, for the infra component -# that publishes it; every deployable that binds a migrated database waits for -# its migrations; and the landing's await checks the document exists -# afterwards. A module that drifts into another phase, or an edge that goes -# missing, fails at landing time, live, with nothing in this repository -# having looked wrong. +# that publishes it; and every deployable that binds a migrated database waits +# for its migrations. Each reader resolves its document in the convergence +# from the place every later run looks, so a green convergence says the +# document is there — no separate check. A module that drifts into another +# phase, or an edge that goes missing, fails at landing time, live, with +# nothing in this repository having looked wrong. +# +# And the shape that keeps a bootstrap fast (orun >= v2.88.0): the run-level +# task set-up runs in the background, each phase finds its task just before +# its landing, each landing checks its commit here (`checks: local`), and the +# convergence watch reads every few seconds. # # Adapted from sourceplane/cirrus-baseline's testing/phases.test.sh: the # narration rules and the hook-only rule are Cirrus's, unchanged. @@ -54,16 +60,18 @@ PARTITION = { HOOK_ONLY = {"02-docs"} # The phases that DEPLOY, and so must give a re-run something to land. DEPLOYS = {"01-product"} -# Each phase's post and await hooks, in order — the one-landing recipe. The -# brokered keys are one `secrets` reconcile, and the `wiring` await is -# expected only when infra publishes wiring; both are checked below. +# Each phase's pre, post and await hooks, in order — the one-landing recipe. +# The brokered keys are one `secrets` reconcile (checked below). No phase has +# a `pre` hook: the task is found in `post`, just before the landing, so that +# everything before it runs beside the background task set-up. +PRE = {"01-product": [], "02-docs": []} POST = { "01-product": ["retouch", "git-init", "stage", "rebrand", "orun-workspace", "work-tree", - "promotion", "dev-lanes", "restage", "rebrand-verify", "pnpm-lockfile", - "repo", "link", "secrets", "land"], - "02-docs": ["promotion", "dev-lanes", "render", "land"], + "promotion", "dev-lanes", "restage", "rebrand-verify", + "repo", "link", "secrets", "task", "land"], + "02-docs": ["promotion", "dev-lanes", "render", "task", "land"], } -AWAIT = {"01-product": ["converge", "wiring", "verify"], "02-docs": ["verify"]} +AWAIT = {"01-product": ["converge", "verify"], "02-docs": []} by_name = {p["name"]: p for p in phases} names = [p["name"] for p in phases] @@ -143,6 +151,11 @@ for p in phases: f"commit it merged (orun.run/watch@v1 with sha: mergeSha)") # ── the hooks run in the one-landing order ──────────────────────────────── +for name, want in PRE.items(): + got = [h.get("id") for h in ((by_name.get(name, {}).get("hooks") or {}).get("pre") or [])] + if got != want: + bad(f"phase {name}'s pre hooks are {got}; want {want} — a task found in `pre` waits " + f"for the background task set-up before the phase has done anything") for name, want in POST.items(): got = [h.get("id") for h in ((by_name.get(name, {}).get("hooks") or {}).get("post") or [])] if got != want: @@ -228,18 +241,30 @@ for mname, keys in migrators.items(): if not enforced_on_main(spec, mname): bad(f"{rel} binds the database {mname} migrates and does not wait for it on a merge to main — " f"declare dependsOn {mname} with mode: enforced and a modeRules advisory on github-pull-request") -# …and the landing's await asks the platform that every one of them exists. + +# ── THE FAST SHAPE (orun >= v2.88.0) ────────────────────────────────────── +# The run-level list is the task set-up, all of it in the background: the +# first phase's provider check, placement, rebrand, repository and secrets +# run while it opens the epic, the milestones and the tasks. +for h in run_hooks: + if not h.get("background"): + bad(f"hooks.preInstantiate {h.get('id')} is not `background: true` — the first phase " + f"waits for it before doing anything, though nothing before its landing reads it") +# Every landing checks its commit here and merges, instead of waiting ~25 s +# for a runner to plan the tree this box just wrote. for p in phases: - if p["name"] not in DEPLOYS: - continue - exists = [h for h in ((p.get("hooks") or {}).get("await") or []) - if (h.get("uses") or "").startswith("orun.secrets/exists@")] - keys = {k for h in exists for k in ((h.get("with") or {}).get("keys") or [])} - envs = {e for h in exists for e in ((h.get("with") or {}).get("environments") or [])} - if set(publishes) - keys: - bad(f"phase {p['name']} does not await the wiring {sorted(set(publishes) - keys)} with orun.secrets/exists@v1") - if publishes and envs != {"stage", "prod"}: - bad(f"phase {p['name']} awaits the wiring on {sorted(envs)}, not stage and prod") + for h in hooks_of(p): + if (h.get("uses") or "").startswith("orun.pr/land@") and (h.get("with") or {}).get("checks") != "local": + bad(f"phase {p['name']} lands with checks {(h.get('with') or {}).get('checks', 'ci')!r}, " + f"not 'local' — it waits for a runner to plan a tree that is here") +# The convergence watch reads every few seconds, not the action's default 40. +for p in phases: + for h in ((p.get("hooks") or {}).get("await") or []): + if (h.get("uses") or "").startswith("orun.run/watch@"): + every = (h.get("with") or {}).get("pollSeconds") + if not isinstance(every, int) or every > 10: + bad(f"phase {p['name']} watches its convergence every {every or 40} s; at most 10 — " + f"the build goes on that much after the run is green") # ── every phase's task is one the run-level list opens, in the same order ─ def task_names(hooks): @@ -334,8 +359,15 @@ def check_line(where, line, slot, hook_ids): for p in phases: n = p.get("narrate") or {} ids = {h.get("id") for h in hooks_of(p)} + awaits = bool((p.get("hooks") or {}).get("await")) for slot in ("start", "await", "done", "failed"): line = n.get(slot) + if slot == "await" and not awaits: + # A phase that waits on nothing never says its await line. + if line: + bad(f"phase {p['name']} declares narrate.await and has no await hooks — " + f"nobody would ever read it") + continue if not line: bad(f"phase {p['name']} declares no narrate.{slot}") continue diff --git a/testing/placement.test.sh b/testing/placement.test.sh index 0391ec0..d015519 100755 --- a/testing/placement.test.sh +++ b/testing/placement.test.sh @@ -12,7 +12,7 @@ # 2. THE OFFLINE BOOTSTRAP (testing/lib/bootstrap.sh) — both phases placed in # order onto what the previous one landed, finished by the blueprint's OWN # `run:` hooks (retouch, rebrand, re-tenant, work-tree strip, the -# deferrals and their restore, the lockfile, the deployment record), each +# deferrals and their restore, the deployment record), each # landing a commit; # 3. the product it ends with: branded with no residue — the page, the # Worker, the D1 database names, the migration runner and every secret @@ -32,9 +32,8 @@ # testing/e2e.test.sh goes on from here: it installs, builds and serves the # product and runs its smoke against it. # -# Needs: orun, node, pnpm, python3 (+PyYAML), git. No credential. The pnpm -# lockfile check and the deployment-record probes reach the network if they -# can, and pass without it. +# Needs: orun, node, pnpm, python3 (+PyYAML), git. No credential. The +# deployment-record probes reach the network if they can, and pass without it. set -euo pipefail here="$(cd "$(dirname "$0")" && pwd)" root="$(cd "$here/.." && pwd)"