From cb7b0c0e7a3fddd0f925c94225a62bf29e692373 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 23 Oct 2026 08:33:54 +0000 Subject: [PATCH] SS8: the build reads true in the panel, and every product ships AGENTS.md orun-cloud saas-build-panel BV4, this baseline's share. The console's build panel shows each hook's narrate: verbatim as progress and a phase's waiting line as what it waits on, and ends by handing the owner a prompt to clone the repository with a coding agent. - repo-blueprint.yaml: the repo line reads the hook's own outputs and says when this build created the repository; each landing names its PR or says there was nothing to land, with label: Product / Docs; link, the four brokered keys, the deployment record and the run-level epic each leave a line; start/done/failed are one clause and claim only what the phase established; the 02-docs re-probe is quiet: true. No phase authors an await line: the engine says ": <reason>" itself, also while the connection probe waits. - AGENTS.md in every product (module root-agents, from .baseline/product/), and the product README points at it. - No product file says it is built on Lumen (intent.yaml description, operations.md, two supabase root comments). - testing/lib/__pycache__ untracked; __pycache__/ and *.pyc ignored. The blueprint's ignore also keeps per-mode/per-environment .env and .dev.vars files (all but .example), every Terraform state file and bytecode out. - Tests: phases.test.sh pins the panel rules (mutation-checked); the leak gate and placement hold AGENTS.md; manifest.test.sh's stale `domain`. - Records: milestone SS8, task SS-10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CJuLwDKfEaQGAEuBpJvN5Q --- .baseline/product/AGENTS.md | 68 +++++++++++++++ .baseline/product/README.md | 3 + .gitignore | 4 + ai/context/current.md | 6 +- ai/context/decisions.md | 2 + ai/context/operations.md | 2 +- docs/phases/01-product.md | 5 +- docs/phases/02-docs.md | 4 +- docs/phases/README.md | 19 +++++ infra/terraform/supabase/component.yaml | 7 +- infra/terraform/supabase/terraform/main.tf | 8 +- intent.yaml | 2 +- repo-blueprint.yaml | 78 ++++++++++++++---- .../supabase-starter/IMPLEMENTATION-STATUS.md | 66 +++++++++++++++ specs/epics/supabase-starter/epic.yaml | 6 ++ .../supabase-starter/implementation-plan.md | 24 ++++++ tasks/SS-10.TaskContract.yaml | 30 +++++++ testing/leak.test.sh | 15 +++- .../fake-supabase-api.cpython-313.pyc | Bin 30457 -> 0 bytes testing/manifest.test.sh | 14 ++-- testing/phases.test.sh | 60 +++++++++++++- testing/placement.test.sh | 11 ++- 22 files changed, 389 insertions(+), 45 deletions(-) create mode 100644 .baseline/product/AGENTS.md create mode 100644 tasks/SS-10.TaskContract.yaml delete mode 100644 testing/lib/__pycache__/fake-supabase-api.cpython-313.pyc diff --git a/.baseline/product/AGENTS.md b/.baseline/product/AGENTS.md new file mode 100644 index 0000000..8c89e33 --- /dev/null +++ b/.baseline/product/AGENTS.md @@ -0,0 +1,68 @@ +# supabase-starter — notes for coding agents + +You are in the repository of a live product. Read this before you change +anything; `README.md` is the same product told for the person who runs it. + +## What this is + +A Next.js app with Supabase Auth — email and password sign-up, sign-in, +password reset, sessions in cookies refreshed by a proxy, a protected page — +built by OpenNext into one Cloudflare Worker, with a Supabase project per +environment (`stage`, `prod`) created by Terraform. Orun deploys it: a merge +to `main` converges what it changed, the Supabase project before the app and +stage before prod. `dev` only verifies. + +| component | path | what it is | +|---|---|---| +| `web` | `apps/web` | the app and its Worker build (`component.yaml`, `next.config.ts`, `wrangler.template.jsonc`) | +| `supabase` | `infra/terraform/supabase` | the Supabase project per environment and its Auth settings | +| `web-tests` | `tests/web` | the vitest suite | + +`intent.yaml` declares the environments, the workspace and how CI plans; each +`component.yaml` declares one component and what it depends on. + +## Read first + +1. `README.md` — what is where, running it locally, "Email", "Your first + table", "Custom domain". +2. `ai/context/operations.md` — how a deploy works, the secrets model, + row-level security, the common operations. +3. `ai/context/deployment.md` — the live URLs, the workspace and the secrets, + by name, as last probed. +4. `apps/web/lib/supabase` — the browser and server clients, the session + proxy, and what the auth forms say when Supabase refuses. +5. `infra/terraform/supabase` — `component.yaml` (its parameters and what it + publishes) and `terraform/main.tf`. + +## How a change lands + +- Work is tracked as tasks on the Orun workspace (`orun task list`). One task, + one branch, one pull request against `main` — `orun pr open` names the + branch after the task and records it in the pull request. +- Before you push: `pnpm install`, `pnpm run wire:fixture`, `pnpm typecheck`, + `pnpm lint`, `pnpm test`, `pnpm build`. `checks.yml` runs the same on the + pull request; `orun validate` and `orun plan` show what `ci.yml` will plan. +- Merging is deploying. Watch the run on `main`, then probe the URLs in + `ai/context/deployment.md`: a run that planned nothing deployed nothing. +- A table in `public` gets row-level security and `auth.uid()` policies in the + statement that creates it — the publishable key is public by design. +- A new component is a directory under `apps/`, `infra/` or `packages/` with a + `component.yaml`, declaring `dependsOn` on any infrastructure whose + published secrets it reads. + +## Do not touch + +- `execution.state.workspace` in `intent.yaml`: every remote operation and + every CI credential is scoped to it. +- `apps/web/wrangler.jsonc` by hand: edit `wrangler.template.jsonc` and run + `pnpm run wire:fixture`. Never commit a real project's URL or key. +- `ai/context/deployment.md`, and the README between `<!-- 02-docs:begin -->` + and `<!-- 02-docs:end -->`: both are rendered from probes. +- The Auth URLs in the Supabase dashboard: the apply owns the Site URL, the + redirect allow-list and `mailer_autoconfirm`, and undoes a dashboard edit. +- Secret values, anywhere — the repository, `ai/context/`, a log, GitHub. + Provider credentials are brokered per run; secrets are inspected by name. +- `checks.yml` on pull requests only: on `main`, `ci.yml` is the one run a + commit has. +- The last line of a `component.yaml` (`# orun: redeploy …`) is a deploy + trigger; change it only to redeploy that component. diff --git a/.baseline/product/README.md b/.baseline/product/README.md index 96564c5..23b848e 100644 --- a/.baseline/product/README.md +++ b/.baseline/product/README.md @@ -29,6 +29,9 @@ deploys and how to operate it is in | The Supabase project (stage, prod) and its Auth settings | `infra/terraform/supabase` | | Tests | `tests/web` (vitest) | +A coding agent starts at [AGENTS.md](AGENTS.md): what to read first, how a +change lands, and what not to touch. + ## Getting started ```bash diff --git a/.gitignore b/.gitignore index 812fa30..6d6350c 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,10 @@ coverage/ plan.json next-env.d.ts +# Python bytecode +__pycache__/ +*.pyc + # Terraform .terraform/ *.tfstate diff --git a/ai/context/current.md b/ai/context/current.md index 25191ef..a6d5e9e 100644 --- a/ai/context/current.md +++ b/ai/context/current.md @@ -19,6 +19,7 @@ environment), then records what went live (`02-docs`). | | | |---|---| | Latest tag | `baseline-v4` (SS7 — the domain is set later: the console asks for no domain, and a product is born with the placeholder `<reponame>.example.com` in `BASE_DOMAIN` for an owner to replace); `baseline-v3` is SS6 (the cirrus standard), `baseline-v2` SS5, `baseline-v1` SS4 | +| In review | SS8 (SS-10) — the build reads true in the console's build panel (saas-build-panel BV4): honest, short step lines, no authored await line (the engine says what a phase waits on), labelled landings, a quiet docs re-probe, and an `AGENTS.md` in every product. Untagged | | Proven live | No. Nothing has been applied against a real Supabase organization: no Terraform apply, no live deploy, no live bootstrap (risk SS-I). Everything short of the platform is proven offline in Baseline CI, against a local Supabase stand-in | ## Where to read @@ -33,7 +34,10 @@ environment), then records what went live (`02-docs`). ## Next -1. Bootstrap one product from `baseline-v4` against a workspace with a +1. Cut `baseline-v5` once SS8 merges, so the registry can pin a build whose + lines the panel reads true (the labels and the quiet re-probe take effect + with orun v2.86; earlier releases ignore them). +2. Bootstrap one product from the latest tag against a workspace with a Supabase connection, and record its timings — the apply, the brokered token's reach to the API-keys and Auth-config endpoints, a sign-up on the first deploy (closes SS-I). diff --git a/ai/context/decisions.md b/ai/context/decisions.md index cba65a8..ebf76ad 100644 --- a/ai/context/decisions.md +++ b/ai/context/decisions.md @@ -20,3 +20,5 @@ reads in order. | 12 | Component docs are generated from the manifests and checked in CI | A hand-written copy of the dependency graph, bindings and published outputs drifts silently | `tooling/catalog/gen-component-docs.py` | | 13 | The console card reads `subdomain` from the Cloudflare connection (`from: connection.cloudflare.workersSubdomain`); only a hand-run build passes it | It belongs to the account like its id and has one right answer; a typed one could only be wrong, and wrong showed up after deploy (cirrus-baseline since baseline-v23) | `blueprint.yaml`, IMPLEMENTATION-STATUS (SS-8) | | 14 | The console asks for no domain; an empty `productdomain` brands the placeholder `<reponame>.example.com` | The app goes live on workers.dev and nothing in the build needs a domain (the origin is `SITE_URL`, else workers.dev); attaching one is an owner's step, and the placeholder keeps the place the domain goes in the repository, ready to replace | `repo-blueprint.yaml`, `tooling/rebrand/rebrand.mjs`, IMPLEMENTATION-STATUS (SS-9) | +| 15 | No phase authors an await line, and every step line holds for each outcome its hook can have | The build panel shows hook lines verbatim as progress and a phase's waiting line as what the build waits on — also while a connection probe waits. Only the engine knows what that is, and with no authored line it says it ("<title>: <reason>"); its reasons are whole clauses, so an authored frame such as "Waiting on {{ .meta.waitingOn }}." read "Waiting on waiting for …". And a line written for one outcome ("merged" when there was nothing to land) lies in the other (saas-build-panel BV4) | `repo-blueprint.yaml`, `testing/phases.test.sh`, IMPLEMENTATION-STATUS (SS-10) | +| 16 | Every product ships `AGENTS.md`, from `.baseline/product/` like its README | The build ends by handing the owner a prompt to clone the repository with a coding agent; the agent needs to know what to read and what not to touch. At this repository's root it would brief this repository's agents about the product | `repo-blueprint.yaml` (`root-agents`), IMPLEMENTATION-STATUS (SS-10) | diff --git a/ai/context/operations.md b/ai/context/operations.md index 184e3a0..ad29122 100644 --- a/ai/context/operations.md +++ b/ai/context/operations.md @@ -154,7 +154,7 @@ orun integrations list --org <ws> --json && orun cloud check --org <ws> |---|---| | deploy a change | merge to `main`; watch the run; failed lanes → `gh run rerun --failed` | | require email confirmation | SMTP first, then `authEmailConfirmation: "true"` (above) | -| add a table | create it with `enable row level security` and `auth.uid()` policies (above); the day the product has migrations, Lumen's `packages/db` + `db-migrate` is the shape, reading `SUPABASE_DB_URL` | +| add a table | create it with `enable row level security` and `auth.uid()` policies (above); the day the product has migrations, they go in a component under `packages/` with a migrate step that reads `SUPABASE_DB_URL` (Evolution, below) | | redeploy without a change | edit the last line of the component's `component.yaml` (`# orun: redeploy <reason> <stamp>`) and merge — it is a deploy trigger, nothing reads it | | serve a custom domain | attach it to the Worker in Cloudflare (README, "Custom domain"), set `SITE_URL` under `environments.prod.env` in `intent.yaml`, replace the placeholder `supabase-starter.example.com` in `intent.yaml`'s `BASE_DOMAIN` with it (a record; nothing builds a URL from it), and touch the redeploy line of both `apps/web/component.yaml` and `infra/terraform/supabase/component.yaml` in the same PR (an `intent.yaml` change alone plans nothing) | | headless credentials | `ORUN_TOKEN` (workspace-scoped) + `GITHUB_TOKEN` | diff --git a/docs/phases/01-product.md b/docs/phases/01-product.md index 58b09dc..511ec1c 100644 --- a/docs/phases/01-product.md +++ b/docs/phases/01-product.md @@ -5,7 +5,8 @@ provisions and deploys it on stage and prod: the Supabase project, its Auth pointed at the app, and then the app — in that order, per environment. **Places** every module `repo-blueprint.yaml` declares: the root manifests, -CI, tooling and identity; the discovery roots; `infra/terraform/supabase`; +the product's README and `AGENTS.md` (where a coding agent starts), CI, +tooling and identity; the discovery roots; `infra/terraform/supabase`; `apps/web`; and `tests/web`. `testing/phases.test.sh` holds the set. **Requires** three live connections, probed and waited for (up to ten @@ -43,7 +44,7 @@ main and reads the order off it: `supabase → web`. | `repo` | `orun.repo/ensure@v1`: creates (or finds) `<githuborg>/<reponame>` | | `link` | the repository becomes the workspace's (`orun cloud link`, best effort; `orun cloud check` is the gate). Every convergence lane authenticates over GitHub OIDC through that link | | `secret-*` | four `orun.integrations/reconcile@v1` hooks, one key and one scope each: `CLOUDFLARE_API_TOKEN` (workers-deploy), `CLOUDFLARE_ACCOUNT_ID` (account-id), `SUPABASE_ACCESS_TOKEN` (management-access), `SUPABASE_ORG_ID` (org-id). Keys that exist are kept | -| `land` | one PR, checked (Checks, and `plan` alone on a bootstrap branch), then merged | +| `land` | one PR, checked (Checks, and `plan` alone on a bootstrap branch), then merged; labelled `Product` in the build panel | | `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_SUPABASE`, `SUPABASE_PROJECT_REF`, `SUPABASE_DB_PASSWORD` and `SUPABASE_DB_URL` on stage and prod | | `verify` (await) | `orun.http/probe@v1`: `/` and `/api/health` on both workers.dev URLs | diff --git a/docs/phases/02-docs.md b/docs/phases/02-docs.md index 78d80fe..e91fe85 100644 --- a/docs/phases/02-docs.md +++ b/docs/phases/02-docs.md @@ -15,8 +15,8 @@ no phase may require this one.) | `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 `/` and `/api/health` on both environments, reads from the health check whether sign-up is open and whether it asks for email confirmation, 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 | +| `land` | one PR, waited for and merged, labelled `Docs` in the build panel. It touches no component, so it deploys nothing | +| `verify` (await) | the same probe `01-product` ended on, `quiet`: it files no second set of addresses | ## Re-running it diff --git a/docs/phases/README.md b/docs/phases/README.md index 521edaf..122b288 100644 --- a/docs/phases/README.md +++ b/docs/phases/README.md @@ -49,6 +49,25 @@ domain needs zone permissions the brokered `workers-deploy` token does not carry, so it is an owner's step after the bootstrap (the product's README, "Custom domain"). +## What a phase says + +The console's build panel shows a hook's `narrate:` verbatim as the build's +progress and a phase's `narrate.await` as what it is waiting on; from orun +v2.86 the engine's facts pin the repository, the epic, each pull request and +the live addresses beside them. So every line says one true thing about the +world, briefly, and no line asserts a state (`testing/phases.test.sh`): + +- neither phase authors an `await` line: the engine says what a phase waits + on — "<title>: <reason>" — which is also the line while `01-product`'s + probe waits for a connection, and only the engine knows the reason; +- a line holds for every outcome its hook can have: the repository's says + whether this build created it, a landing names its pull request or says + there was nothing to land, a brokered key's holds whether it was minted now + or kept; +- each landing carries a `label:` (`Product`, `Docs`), and `02-docs`'s + re-probe is `quiet: true`, so the panel gets one set of addresses. orun + releases before v2.86 ignore both keys. + ## Inputs `01-product` takes the product's identity once and writes it into the repo diff --git a/infra/terraform/supabase/component.yaml b/infra/terraform/supabase/component.yaml index 89dc921..6860064 100644 --- a/infra/terraform/supabase/component.yaml +++ b/infra/terraform/supabase/component.yaml @@ -34,9 +34,10 @@ spec: # project sends email (the product's README, "Email"). authEmailConfirmation: "false" # SEC-JOB: post-apply, these outputs are queued on the runner's sink and - # lease-published onto the project/{{env}} rung by the runner. Lumen's - # three database credentials, and WIRING_SUPABASE — the project URL and - # the publishable (anon) key, the one document the app's deploy reads. + # lease-published onto the project/{{env}} rung by the runner. The + # project's three database credentials, and WIRING_SUPABASE — the project + # URL and the publishable (anon) key, the one document the app's deploy + # reads. # The service-role key is never published. secretOutputs: "SUPABASE_PROJECT_REF=project_ref,SUPABASE_DB_PASSWORD=database_password,SUPABASE_DB_URL=connection_uri,WIRING_SUPABASE=wiring" diff --git a/infra/terraform/supabase/terraform/main.tf b/infra/terraform/supabase/terraform/main.tf index 8b71805..9df96db 100644 --- a/infra/terraform/supabase/terraform/main.tf +++ b/infra/terraform/supabase/terraform/main.tf @@ -165,10 +165,10 @@ resource "supabase_project" "this" { # # Credentials leave this module ONLY through the outputs component.yaml's # `secretOutputs` names, which the runner lease-publishes onto the project's -# environment rung after the apply (never argv, never a log). Lumen's three -# database credentials below are published for the owner and for any later -# step that migrates the database; the app reads the `wiring` document further -# down. No Secrets Manager. +# environment rung after the apply (never argv, never a log). The project's +# three database credentials below are published for the owner and for any +# later step that migrates the database; the app reads the `wiring` document +# further down. No Secrets Manager. output "project_ref" { description = "Supabase project reference ID" diff --git a/intent.yaml b/intent.yaml index b9ad726..a767610 100644 --- a/intent.yaml +++ b/intent.yaml @@ -3,7 +3,7 @@ kind: Intent metadata: name: supabase-starter - description: Vercel's Next.js + Supabase starter (Supabase Auth with cookie sessions, protected routes) ported to Cloudflare Workers + Static Assets with a Terraform-provisioned Supabase project, on the Lumen baseline conventions + description: Vercel's Next.js + Supabase starter (Supabase Auth with cookie sessions, protected routes) on Cloudflare Workers + Static Assets, with a Supabase project per environment provisioned by Terraform and deployed through Orun namespace: sourceplane execution: diff --git a/repo-blueprint.yaml b/repo-blueprint.yaml index f74655a..2e590ca 100644 --- a/repo-blueprint.yaml +++ b/repo-blueprint.yaml @@ -124,18 +124,29 @@ ignore: - plan.json - "**/*.tsbuildinfo" - "**/next-env.d.ts" + # Terraform state and what sits beside it: the `.backup`, the timestamped + # backups and the local lock (`.terraform.tfstate.lock.info`). - "**/*.tfstate" - - "**/*.tfstate.backup" + - "**/*.tfstate.*" + # Python bytecode, should a tool ever run beside a shipped file. + - __pycache__ + - "**/*.pyc" # `orun new` snapshots the WORKING TREE, not the git index: an operator's # local environment files would otherwise be copied into somebody else's # repository. `.env.example` and `.dev.vars.example` are not among them, - # and ship — which is why this names `.dev.vars` and `.dev.vars.local` - # rather than `.dev.vars.*`. + # and ship — which is why this is not `.env*` and `.dev.vars*`. Every other + # name is: the bare file, a `.local` override, and a per-mode or + # per-environment file (`.env.production`, `.dev.vars.stage`). `[^e]` is + # path.Match's "any character but e", so only a suffix that starts with + # `e` gets past these, and testing/leak.test.sh lets only `.example` ship. - "**/.env" - "**/.env.local" - "**/.env.*.local" + - "**/.env.[^e]*" - "**/.dev.vars" - "**/.dev.vars.local" + - "**/.dev.vars.*.local" + - "**/.dev.vars.[^e]*" # THE FACTORY'S OWN LANES. `github-workflows` copies the whole of `.github`, # so without these two entries every product built from this baseline would # carry them — `baseline.yml` runs `testing/*.sh`, which no module places, @@ -214,6 +225,17 @@ modules: source: baseline from: .baseline/product/README.md to: README.md + # The product's guide for a coding agent, at the root where agents look + # first. The build's last screen hands the owner a prompt that ends "Then + # clone <repo> and start building on it"; this is what the agent finds + # there: what the product is, what to read, how a change lands, what not + # to touch. The product's, like the README: this repository's own agents + # read ai/context/current.md. + - name: root-agents + mode: copy + source: baseline + from: .baseline/product/AGENTS.md + to: AGENTS.md - name: github-workflows mode: copy source: baseline @@ -323,6 +345,7 @@ hooks: preInstantiate: - id: epic uses: orun.task/ensure@v1 + narrate: 'Epic {{ .hooks.epic.outputs.key }} is open.' with: kind: epic slug: "{{ .inputs.epicSlug }}" @@ -411,12 +434,17 @@ phases: title: The product, built in one landing description: The whole tree — manifests, CI, tooling, the Supabase root, the app and its tests — branded, landed as one pull request, and provisioned and deployed by one convergence. expectedMinutes: 13 + # The console's build panel shows these lines verbatim, and the hooks' + # own `narrate:` below as its progress, so each says one true thing, + # briefly. NO `await` LINE, in either phase: a wait is also what the + # `requires.probe` below does while a connection is missing, and with no + # authored line the engine says it itself — "<title>: <what it waits + # on>" — where an authored one could only guess. narrate: - start: "Creating the repository and landing the whole product in one pull request — the app and the Terraform for a Supabase project per environment. Then one convergence provisions the projects and deploys the app. Usually about {{ .meta.expectedMinutes }} minutes." - await: "One convergence is running per environment: the Supabase project first (five to seven minutes to come up), its Auth pointed at the app, then the app. Nothing is stuck." - done: "{{ .inputs.reponame }} is live on stage and prod — {{ .meta.files }} files on main, branded as {{ .inputs.productname }}, sign-up open on its own Supabase project. That took {{ .meta.elapsed }}." - failed: "The product did not come up. The failing lane above names the component — supabase or web — and the provider's own error is in its log; whatever was provisioned is still there." - modules: [ai-deployment, ai-operations, discovery-roots, github-workflows, rebrand-values, root-gitignore, root-intent, root-package-json, root-pnpm-lock, root-pnpm-workspace, root-readme, root-turbo, supabase, tooling-eslint, tooling-tsconfig, tooling-wire, vscode, web, web-tests] + start: "Landing the whole product as one pull request, then deploying it to stage and prod — about {{ .meta.expectedMinutes }} minutes." + done: "{{ .inputs.productname }} is live on stage and prod, each on its own Supabase project ({{ .meta.elapsed }})." + failed: "The product is not up. The step above names what stopped it; whatever it already created is still there." + modules: [ai-deployment, ai-operations, discovery-roots, github-workflows, rebrand-values, root-agents, root-gitignore, root-intent, root-package-json, root-pnpm-lock, root-pnpm-workspace, root-readme, root-turbo, supabase, tooling-eslint, tooling-tsconfig, tooling-wire, vscode, web, web-tests] # THE PLATFORM MUST BE ABLE TO SEE THE REPOSITORY BEFORE IT EXISTS. Every # phase lands a pull request that files under its task, and the platform # learns of a PR only through the GitHub App installation on the account @@ -528,7 +556,7 @@ phases: # The repo has to exist before there is anywhere to land. - id: repo uses: orun.repo/ensure@v1 - narrate: "The repository exists at {{ .inputs.githuborg }}/{{ .inputs.reponame }}." + narrate: '{{ .hooks.repo.outputs.fullName }} is ready{{ if eq .hooks.repo.outputs.created "true" }} — created for this build{{ end }}.' with: owner: "{{ .inputs.githuborg }}" name: "{{ .inputs.reponame }}" @@ -541,6 +569,7 @@ phases: # so it is best effort and `check` is the gate — an unlinked # repository stops here, naming the fix, instead of in every lane. - id: link + narrate: "The repository is linked to the workspace, so its CI can sign in." run: - bash - -c @@ -565,26 +594,34 @@ phases: # No Hyperdrive, D1, KV or R2 token and no db-migrate bundle: the app # reaches Supabase over HTTPS with the publishable key, which the # supabase apply publishes in WIRING_SUPABASE itself. + # + # Each line is static: a hook id with a `-` cannot be named in a + # template, and the line is true whether the key was minted now or + # kept from an earlier run. - id: secret-workers-deploy uses: orun.integrations/reconcile@v1 + narrate: "CLOUDFLARE_API_TOKEN, for Workers deploys, is in place from the Cloudflare connection." with: provider: cloudflare keys: [CLOUDFLARE_API_TOKEN] template: workers-deploy - id: secret-account-id uses: orun.integrations/reconcile@v1 + narrate: "CLOUDFLARE_ACCOUNT_ID is in place from the Cloudflare connection." with: provider: cloudflare keys: [CLOUDFLARE_ACCOUNT_ID] template: account-id - id: secret-supabase-access uses: orun.integrations/reconcile@v1 + narrate: "SUPABASE_ACCESS_TOKEN, for the Supabase projects, is in place from the Supabase connection." with: provider: supabase keys: [SUPABASE_ACCESS_TOKEN] template: management-access - id: secret-supabase-org uses: orun.integrations/reconcile@v1 + narrate: "SUPABASE_ORG_ID is in place from the Supabase connection." with: provider: supabase keys: [SUPABASE_ORG_ID] @@ -595,9 +632,12 @@ phases: # 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 # the convergence after the merge is what this phase watches to green. + # A landing succeeds only once its PR is merged; `landed` is "false" + # when main already had every file (a re-run with nothing to land). - id: land uses: orun.pr/land@v1 - narrate: "The product is merged into main." + label: Product + narrate: '{{ if eq .hooks.land.outputs.landed "true" }}PR #{{ .hooks.land.outputs.number }} is merged into main.{{ else }}Nothing new to land; main already has it.{{ end }}' with: task: "{{ .phase.hooks.task.outputs.key }}" epic: "{{ .inputs.epicSlug }}" @@ -606,7 +646,7 @@ phases: await: - id: converge uses: orun.run/watch@v1 - narrate: "The Supabase project and then the app went out on stage and prod, and the convergence run came back green." + narrate: "The convergence run is green: Supabase, then the app, on stage and prod." with: # The run for the commit THIS landing merged (an unpinned watch # reads the previous push's run). The budget is roughly three @@ -624,7 +664,7 @@ phases: # change adds. - id: wiring uses: orun.secrets/exists@v1 - narrate: "The Supabase project's URL and publishable key, and its database credentials, are published on stage and prod." + narrate: "WIRING_SUPABASE and the database credentials are published on stage and prod." with: keys: [WIRING_SUPABASE, SUPABASE_PROJECT_REF, SUPABASE_DB_PASSWORD, SUPABASE_DB_URL] project: "{{ .inputs.reponame }}" @@ -647,10 +687,9 @@ phases: description: The live-deployment manifest, rendered from probed reality, and the promotion gate and dev's lanes put back. expectedMinutes: 2 narrate: - start: "Now recording what was actually built — probing every URL, noting whether sign-up asks for email confirmation, 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 product is still live; only the write-up is missing." + start: "Probing the live URLs and writing down what answered." + done: "The deployment record is on main, and prod waits on stage again ({{ .meta.elapsed }})." + failed: "The step above names what stopped it. This phase changes nothing the product runs." modules: [] requires: phases: [01-product] @@ -678,18 +717,23 @@ phases: - id: dev-lanes run: ["node", "{{ .baseline.dir }}/tooling/bootstrap/dev-lanes.mjs", "--restore"] - id: render + narrate: "ai/context/deployment.md and the README's live section are written from what each URL answered." run: ["bash", "{{ .baseline.dir }}/hooks/render-deployment-docs.sh", ".", "{{ .inputs.orunWorkspace }}", "{{ .baseline.dir }}"] - id: land uses: orun.pr/land@v1 - narrate: "The deployment record is merged into main." + label: Docs + narrate: '{{ if eq .hooks.land.outputs.landed "true" }}PR #{{ .hooks.land.outputs.number }} is merged into main.{{ else }}Nothing new to land; main already has it.{{ end }}' with: task: "{{ .phase.hooks.task.outputs.key }}" epic: "{{ .inputs.epicSlug }}" branchSlug: "{{ .phase.name }}" title: "docs(deployment): record the live deployment state" await: + # The addresses 01-product's probe recorded; quiet, so this re-probe + # files no second set of them. - id: verify uses: orun.http/probe@v1 + quiet: true narrate: "Every live URL answered on the final probe." with: urls: diff --git a/specs/epics/supabase-starter/IMPLEMENTATION-STATUS.md b/specs/epics/supabase-starter/IMPLEMENTATION-STATUS.md index f3d851c..8fca567 100644 --- a/specs/epics/supabase-starter/IMPLEMENTATION-STATUS.md +++ b/specs/epics/supabase-starter/IMPLEMENTATION-STATUS.md @@ -13,6 +13,7 @@ the code departed from `design.md` or from the upstream template. | SS5 — the product's own origin | ✅ Shipped | [#6](https://github.com/sourceplane/supabase-starter/pull/6) (SS-6), tagged `baseline-v2` | | SS6 — the cirrus standard | ✅ Shipped | [#7](https://github.com/sourceplane/supabase-starter/pull/7) (SS-7), [#8](https://github.com/sourceplane/supabase-starter/pull/8) (SS-8), tagged `baseline-v3` | | SS7 — the domain is set later | ✅ Shipped | [#9](https://github.com/sourceplane/supabase-starter/pull/9) (SS-9), tagged `baseline-v4` | +| SS8 — the build reads true | In review (untagged) | [#10](https://github.com/sourceplane/supabase-starter/pull/10) (SS-10) | ## Departures from the upstream template @@ -308,3 +309,68 @@ domain, writes `"productdomain": ""` and brands `acme-supabase.example.com` into the product's three `BASE_DOMAIN` lines, its README and its `operations.md` (5 lines, 3 files), with no `supabase-starter.example.com` left. `orun task check SS-9` complete. + +## The build reads true (SS8, SS-10) + +orun-cloud's saas-build-panel BV4, this baseline's share. The console's build +panel shows each hook's `narrate:` verbatim as the build's progress, a phase's +`narrate.await` as what it waits on, and the engine's facts (orun v2.86, not +released when this landed) as the repository, the epic, each pull request and +the live addresses. It ends by handing the owner a prompt that clones the +repository with a coding agent. So every line had to be true and short, and a +product had to be ready for an agent to start in. + +| What | Before | After | +|---|---|---| +| the repository's line | "The repository exists at <org>/<repo>." from the inputs | from the hook's own outputs: `<fullName> is ready`, plus "— created for this build" when it was | +| each landing's line | "The product is merged into main." — also on a re-run with nothing to land | `PR #<n> is merged into main.`, or `Nothing new to land; main already has it.`; `label: Product` / `label: Docs` | +| link, the four brokered keys, the deployment record, the epic | no line | one each: the link and what it is for; each key and the connection it comes from (static, and true whether minted now or kept); what the record is written from; `Epic <key> is open.` | +| every phase's `await` | a description of the convergence ("Nothing is stuck.") or of the probe — shown, too, while the provider probe waited for a connection | none: the engine says it — "<title>: <what it waits on>" (an engine before the waiting reason, "<phase> is waiting."). Its reasons are whole clauses ("waiting for github to be connected in workspace …"), so the generic `Waiting on {{ .meta.waitingOn }}.` the review proposed read "Waiting on waiting for …" | +| phase `start` / `done` / `failed` | up to three sentences; 01-product's `done` claimed "sign-up open", which no probe checks, and its `failed` named only the convergence's lanes | one clause each, claiming only what the phase established; `failed` points at the step that stopped it | +| the 02-docs re-probe | would file the addresses a second time | `quiet: true` | +| a product's agent guide | none | `AGENTS.md` at the root (module `root-agents`, from `.baseline/product/AGENTS.md`): what the product is; read `README.md`, `ai/context/operations.md`, `ai/context/deployment.md`, `apps/web/lib/supabase`, `infra/terraform/supabase`; how a change lands; what not to touch. The README points at it | +| Lumen in the product | `intent.yaml`'s description ("on the Lumen baseline conventions"), `operations.md`'s migrations row, two comments in the supabase root | none: the description says what the product is, the migrations row says where migrations go, the comments say "the project's three database credentials" | +| `testing/lib/__pycache__/*.pyc` | tracked | removed; `__pycache__/` and `*.pyc` in `.gitignore` (which ships) and in the blueprint's `ignore` | +| the blueprint's `ignore` for local files | `.env`, `.env.local`, `.env.*.local`, `.dev.vars`, `.dev.vars.local`, `*.tfstate`, `*.tfstate.backup` | also `.env.[^e]*` and `.dev.vars.[^e]*` (a per-mode `.env.production`, a per-environment `.dev.vars.stage`; only `.example` ships), `.dev.vars.*.local`, `*.tfstate.*` (timestamped backups, the local lock) | + +The `label:` and `quiet:` keys are orun v2.86's and are ignored by earlier +releases; the blueprint parses unchanged at v2.58.11 (the bootstrap floor), +at orun main and with the v2.86 engine. No `with:` parameter was added: an +earlier orun refuses an unknown one, so the probe keeps its flat `urls` (no +labelled `targets`). + +Departures from the review: the await line. The review proposed a generic +`Waiting on {{ .meta.waitingOn }}.` in every phase; the line is removed +instead, for the reason in the table. `expectedMinutes` already agreed (card +15 = phases 13 + 2 = registry 15). The `[^e]` patterns are the nearest +`path.Match` comes to "everything but `.example`"; a local `.env.e2e` would +get past them, and the leak gate — whose local-file rule now flags every +`.env.*` and `.dev.vars.*` but `.example` — fails on it. + +- `testing/phases.test.sh` holds it: no phase authors an await line (the + per-phase requirement now skips that slot, which the engine fills), the + repo, link, secret, land and render hooks narrate, every landing has a + label, a hook-only phase's re-probe is quiet, `label`/`pin`/`quiet` have their shapes, and the run-level hooks' + lines obey the same rules. Mutation-checked: each rule fails alone, naming + the hook. +- `testing/leak.test.sh`: `AGENTS.md` ships and is read for the factory's + paths and provenance prose; `.env`/`.dev.vars` of any name but `.example`, + any Terraform state file and bytecode are local files. +- `testing/placement.test.sh`: the placed product's `AGENTS.md` is branded, + sends an agent to both context pages, and the README points at it. +- `testing/manifest.test.sh`: two comments named a `domain` input that no + longer exists. + +Verified: `testing/{manifest,phases,coverage,rebrand,retouch,bootstrap-defer}.test.sh` +green; `gen-component-docs.py --check` green (3 components); `orun new +--status` on `repo-blueprint.yaml` at v2.58.11, orun main and the v2.86 engine +(01-product pending, 113 files); `testing/leak.test.sh` (113 files derived, +105 text files read) and `testing/placement.test.sh` (113 tracked files; +supabase → web enforced on stage and prod; `--resume` changes nothing) at each +of the three; `testing/e2e.test.sh` at v2.78.4 (its Terraform step skipped: no +terraform on PATH; the root's change is two comments). Every narration line +rendered through the v2.86 engine's own narration functions with the outputs +its action returns — the repository created and found, a landing merged and +one with nothing to land — none falling back; a wait on a connection reads +"The product, built in one landing: waiting for github to be connected in +workspace …", from the engine. `orun task check SS-10 --base origin/main` complete, affects ok. diff --git a/specs/epics/supabase-starter/epic.yaml b/specs/epics/supabase-starter/epic.yaml index b162387..6a7dc65 100644 --- a/specs/epics/supabase-starter/epic.yaml +++ b/specs/epics/supabase-starter/epic.yaml @@ -61,3 +61,9 @@ spec: - "a product built without a domain is branded with the reserved placeholder <reponame>.example.com wherever the domain goes (BASE_DOMAIN), and its README says how an owner sets the real one beside SITE_URL" - "Baseline CI places, leak-checks and plans a product built with no domain" tasks: [SS-9] + - name: "SS8 — the build reads true" + exitCriteria: + - "every line the console's build panel shows from repo-blueprint.yaml is true and short: the repository, the epic, each landing, the link, each brokered key and the deployment record say what they left; no phase authors an await line, so the engine names what a phase waits on; each landing carries a label, and the docs phase's re-probe files no second set of addresses" + - "a product ships an AGENTS.md at its root that tells a coding agent what the product is, what to read first, how a change lands and what not to touch" + - "no product file says it is built on Lumen; no bytecode is tracked; the blueprint's ignore keeps local env files, Terraform state and bytecode out of a product" + tasks: [SS-10] diff --git a/specs/epics/supabase-starter/implementation-plan.md b/specs/epics/supabase-starter/implementation-plan.md index f85b116..95f01d5 100644 --- a/specs/epics/supabase-starter/implementation-plan.md +++ b/specs/epics/supabase-starter/implementation-plan.md @@ -134,6 +134,30 @@ owner sets the real one, beside the `SITE_URL` that moves the app's links and the Supabase project's Auth; Baseline CI places, leak-checks and plans a product built with no domain. Shipped in `baseline-v4`. +## SS8 — the build reads true (SS-10) + +orun-cloud's saas-build-panel BV4, this baseline's share. The console's build +panel shows each hook's `narrate:` line verbatim as the build's progress and +a phase's `await` line as what it waits on, and it ends by handing the owner a +prompt to point a coding agent at the repository. + +**Done when** +- the repo line reads the repository from the hook's own outputs and says + when this build created it; each landing names its pull request, or says + there was nothing to land; the link, each brokered key and the deployment + record leave a line; the run-level epic says it is open +- no phase authors a `narrate.await`: the engine says what a phase waits on + ("<title>: <reason>"), a missing connection included; every `start` is one + clause, and no line claims what its step did not establish +- both landings carry a `label:` (Product, Docs) and the 02-docs re-probe is + `quiet: true` — keys orun v2.86 reads and earlier releases ignore +- a product ships `AGENTS.md`, and its README points at it +- no shipped file says the product is built on Lumen; the committed bytecode + is gone and ignored; the blueprint's `ignore` keeps every local env file, + all Terraform state and Python bytecode out of a product +- `testing/phases.test.sh`, the leak gate and the offline bootstrap hold all + of it + ## Sequencing note SS1 and SS2 are independent files but SS1's component already names the diff --git a/tasks/SS-10.TaskContract.yaml b/tasks/SS-10.TaskContract.yaml new file mode 100644 index 0000000..3507d11 --- /dev/null +++ b/tasks/SS-10.TaskContract.yaml @@ -0,0 +1,30 @@ +apiVersion: orun.io/v1 +kind: TaskContract +metadata: + name: SS-10 + title: "The build reads true in the panel" +spec: + goal: "Every line the console's build panel shows from repo-blueprint.yaml is true and short (orun-cloud saas-build-panel BV4): the repo, land, link, secret and render steps each say what they left, the epic says it is open, every phase leaves its waiting line to the engine, which names what it waits on, each landing carries a label and the docs phase's re-probe is quiet. And a product is ready for an agent to start in: it ships an AGENTS.md at its root, says nothing of being built on Lumen, and carries no local env file, Terraform state or bytecode" + affects: + - repo-blueprint.yaml + - .baseline/product/** + - .gitignore + - intent.yaml + - ai/context/** + # The supabase component, by the key `orun task check --base` compares: + # two of its comments no longer name Lumen. + - default/supabase-starter/supabase + - infra/terraform/supabase/component.yaml + - infra/terraform/supabase/terraform/main.tf + - testing/** + - docs/phases/** + - specs/** + - tasks/** + doneWhen: + - "no phase authors a narrate.await (the engine says what it waits on), every start line is one clause, and the repo, link, secret-*, land and render hooks and the run-level epic narrate what they left (testing/phases.test.sh, mutation-checked)" + - "both landings carry a label (Product, Docs) and the 02-docs re-probe is quiet; the blueprint still parses with orun v2.58.11 and with orun main" + - "a product ships AGENTS.md at its root, branded, sending an agent to README.md, ai/context/operations.md and ai/context/deployment.md, and the README points at it (testing/leak.test.sh, testing/placement.test.sh)" + - "no shipped file says the product is built on Lumen; testing/lib/__pycache__ is untracked and ignored; the blueprint's ignore keeps every .env and .dev.vars but the two .example files, all Terraform state and Python bytecode out of a product" + - the contract tests, the docs check, the leak gate and the offline bootstrap are green + gates: + - checks diff --git a/testing/leak.test.sh b/testing/leak.test.sh index 6fbb65c..a9964b8 100755 --- a/testing/leak.test.sh +++ b/testing/leak.test.sh @@ -80,10 +80,12 @@ for p in placed: # ── nothing local and nothing built ─────────────────────────────────────── # `.env.example` and `.dev.vars.example` ship (they document the keys); a -# real `.env`, `.dev.vars` or Terraform state never does. -LOCAL = re.compile(r"(^|/)(\.env(\.[^/]*\.local|\.local)?|\.dev\.vars(\.local)?|node_modules|\.next|" - r"\.open-next|\.wrangler|\.turbo|\.orun|\.terraform|[^/]*\.tfstate(\.backup)?|" - r"next-env\.d\.ts|[^/]*\.tsbuildinfo|dist)(/|$)") +# real `.env` or `.dev.vars` of any other name — a `.local` override, a +# per-mode `.env.production`, a per-environment `.dev.vars.stage` — never +# does, nor Terraform state, nor Python bytecode. +LOCAL = re.compile(r"(^|/)(\.env(\.(?!example$)[^/]+)?|\.dev\.vars(\.(?!example$)[^/]+)?|node_modules|\.next|" + r"\.open-next|\.wrangler|\.turbo|\.orun|\.terraform|[^/]*\.tfstate(\.[^/]+)?|" + r"next-env\.d\.ts|[^/]*\.tsbuildinfo|dist|__pycache__|[^/]*\.pyc)(/|$)") for p in placed: if LOCAL.search(p): bad(f"{p} would ship — a local or built file of whoever ran the bootstrap") @@ -91,6 +93,10 @@ for p in placed: # ── what a product cannot run without ───────────────────────────────────── if "README.md" not in placed: bad("README.md would not ship") +# The build's last screen tells the owner to point a coding agent at the +# repository; this is what the agent reads first. +if "AGENTS.md" not in placed: + bad("AGENTS.md would not ship — a coding agent starts there") MUST = ( ".github/workflows/ci.yml", ".github/workflows/checks.yml", ".rebrand/values.json", "apps/web/component.yaml", "apps/web/lib/site.ts", "apps/web/lib/supabase/errors.ts", @@ -153,6 +159,7 @@ PROVENANCE = re.compile( re.I, ) SOURCES = {"README.md": ".baseline/product/README.md", + "AGENTS.md": ".baseline/product/AGENTS.md", "ai/context/operations.md": "ai/context/operations.md", "ai/context/deployment.md": "ai/context/deployment.md", "apps/web/README.md": "apps/web/README.md"} diff --git a/testing/lib/__pycache__/fake-supabase-api.cpython-313.pyc b/testing/lib/__pycache__/fake-supabase-api.cpython-313.pyc deleted file mode 100644 index 32ae3e7d592fad359d8d7c423fbb1a569881aea2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 30457 zcmcJ23v?UTncm<@5C931ASsEG$Pq<}gv2+g7paFSJ|xN#MPmp_7AZpz0g;qQfF6K) z(1};cb{on`S5zHGbmP`^;;re%J!Uq0Hu84QF}+C}Wj8$;XygSmtGezs-E(x>(<4XT zCe7*V`|n@|AP7m$IopwN@64S$_wnEV{;&Jr%SU;6b`ICiTjLihk8|9ArU&iHP2N1( zY2monxGkK(iJV{%jL#ZG1B;EKk;Nv_#A35(VX;-TvN%V~VX;lLu{c-EWwBkfv)Caz zSnL#?EY1`2S?m&BLj{%GklkCUH6|4cCNziJVNg@VqQ~SiQ!ddhShBxw$J@Ym?lE;_ z|HkW4>r4*?i`EjsREHN->v6zHED@~POZf+@+4`88ONVm2_33R??<+YWNBcrtJ7n`V zXU${N@_2Wwey=5o>xJB*qI|B!C~gq!kLf2yNH7YHdZW0pffLJzDu#H$S&c#)IdRia zC7$x=X~^O2SzS{lr`J_A<Zd+x`9oU-7k&jpx!$9z^S4@s!ZPlH`GP^L7K(;ykZ((? zS#VRD=n;yCDw8QCEM=QeiuXog4SU)?v<=W%E39K!=k%^!U4E)P8hn12yh0h_hOoZg ztbHxk3LC^aVWU_tl(Sw@Yb#i58dwU?QXA2)O)RxZsAMhP%$}NsD%PV)e6@w8v<O?1 zUzmkzmeR^nY8V_mEM<qV4S7^pJPwN6S<annIY6Ygj1%gHEZ*>Hcz7pQr|mGQY2u!t z(wgM!KtD#f8gsdBsC0)h`Mzza&3kF}_kyAAGG-+}1&q3~`aN1yk1wZJzwv%~b()4h zgryqPd2Z+cN@*CXrBtC&Xxd{$TJ|1(Wp$ZC^H5Q%acGa$6YuY@&ZE`Kb0bDi%hdk? z8SUVsu|POjHx}m4M?^k08sdei$-uclG{lF(!O6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H4NQt diff --git a/testing/manifest.test.sh b/testing/manifest.test.sh index 5374cb5..4b2154b 100755 --- a/testing/manifest.test.sh +++ b/testing/manifest.test.sh @@ -321,10 +321,10 @@ for path in manifests: # refused. # # ONE DIRECTION ONLY. The blueprint declares more than this file does — - # `githuborg`, `epicSlug`, `domain`, `orunWorkspace` and the identity - # defaults are how a BUILD is driven, not what a product is configured - # with. What must hold is that nothing this file declares arrives at an - # engine that cannot take it. + # `epicSlug`, `productdomain`, `orunWorkspace`, `repoPrivate` and the + # identity defaults are how a BUILD is driven, not what a product is + # configured with. What must hold is that nothing this file declares + # arrives at an engine that cannot take it. if bp is not None: bp_inputs = set((bp.get("inputs") or {}).keys()) if not bp_inputs: @@ -338,9 +338,9 @@ for path in manifests: # ── …AND THE OTHER DIRECTION, for REQUIRED inputs only ─────────────── # # The check above is one-directional on purpose: the blueprint declares - # more than this card does, because `epicSlug`, `domain` and the identity - # defaults are how a BUILD is driven rather than what a product is - # configured with. That tolerance had no floor, and `githuborg` fell + # more than this card does, because `epicSlug`, `productdomain` and the + # identity defaults are how a BUILD is driven rather than what a product + # is configured with. That tolerance had no floor, and `githuborg` fell # through it — `required: true` in the blueprint, absent from this card, # so a platform build resolved the card's inputs, handed them to the # runner and died on its first step: diff --git a/testing/phases.test.sh b/testing/phases.test.sh index 478ccae..ecb2cf7 100755 --- a/testing/phases.test.sh +++ b/testing/phases.test.sh @@ -46,7 +46,7 @@ if not phases: sys.exit("repo-blueprint.yaml declares no phases — this check has gone blind") PRODUCT = ["ai-deployment", "ai-operations", "discovery-roots", "github-workflows", - "rebrand-values", "root-gitignore", "root-intent", + "rebrand-values", "root-agents", "root-gitignore", "root-intent", "root-package-json", "root-pnpm-lock", "root-pnpm-workspace", "root-readme", "root-turbo", "supabase", "tooling-eslint", "tooling-tsconfig", "tooling-wire", "vscode", "web", "web-tests"] @@ -325,13 +325,25 @@ def check_line(where, line, slot, hook_ids): else: bad(f"{where} names .{ref}; narration may reference phase, inputs, meta and hooks") +# The run-level hooks are reported under no phase, and read only their own +# outputs. +run_ids = {h.get("id") for h in run_hooks} +for h in run_hooks: + if h.get("narrate"): + check_line(f"hooks.preInstantiate {h.get('id')} narrate", h["narrate"], "start", run_ids) + +# `await` is the one slot a phase leaves to the engine: with no authored +# line, a waiting event reads "<title>: <what it waits on>" in the engine's +# own words (an older engine says "<phase> is waiting."). An authored one is +# refused below. for p in phases: n = p.get("narrate") or {} ids = {h.get("id") for h in hooks_of(p)} for slot in ("start", "await", "done", "failed"): line = n.get(slot) if not line: - bad(f"phase {p['name']} declares no narrate.{slot}") + if slot != "await": + bad(f"phase {p['name']} declares no narrate.{slot}") continue check_line(f"phase {p['name']} narrate.{slot}", line, slot, ids) for h in ((p.get("hooks") or {}).get("await") or []): @@ -346,6 +358,49 @@ for p in phases: if h.get("narrate"): check_line(f"phase {p['name']} hook {h.get('id')} narrate", h["narrate"], "start", ids) +# ── what the build panel reads (orun-cloud saas-build-panel BV4) ───────── +# The console shows each hook's `narrate:` verbatim as the build's progress +# and a phase's waiting line as what it waits on. So: no phase authors an +# `await` line — a wait is also a `requires.probe` asking for a connection, +# and only the engine knows what it waits on (the line it generates is +# "<title>: <reason>"; the reasons are whole clauses, so no authored frame +# around `.meta.waitingOn` reads true); every step a reader should see +# says what it left behind; every landing names its pull request for the +# reader (`label`); and a hook-only phase's re-probe files no second set of +# addresses (`quiet`). `label`, `pin` and `quiet` are orun >= v2.86 keys that +# earlier releases ignore — their shapes are checked here. +NARRATED = {"01-product": ["repo", "link", "secret-*", "land"], + "02-docs": ["render", "land"]} +for p in phases: + if (p.get("narrate") or {}).get("await"): + bad(f"phase {p['name']} authors narrate.await — leave it to the engine, which " + f"says what the phase waits on (\"<title>: <reason>\"), a connection included") + for h in hooks_of(p): + if "label" in h and not (isinstance(h["label"], str) and h["label"].strip()): + bad(f"phase {p['name']} hook {h.get('id')} label must be a non-empty string") + for key in ("pin", "quiet"): + if key in h and not isinstance(h[key], bool): + bad(f"phase {p['name']} hook {h.get('id')} {key} must be true or false") + if (h.get("uses") or "").startswith("orun.pr/land@") and not h.get("label"): + bad(f"phase {p['name']} landing {h.get('id')} has no label — the panel names " + f"each pull request by it") +for name, want in NARRATED.items(): + post = ((by_name.get(name) or {}).get("hooks") or {}).get("post") or [] + for tok in want: + hooks = [h for h in post if (h.get("id") == tok or + (tok.endswith("*") and (h.get("id") or "").startswith(tok[:-1])))] + if not hooks: + bad(f"phase {name} has no {tok} hook to narrate") + for h in hooks: + if not h.get("narrate"): + bad(f"phase {name} hook {h.get('id')} declares no narrate — the panel " + f"shows nothing for it") +for name in HOOK_ONLY: + for h in ((by_name.get(name) or {}).get("hooks") or {}).get("await") or []: + if (h.get("uses") or "").startswith("orun.http/probe@") and h.get("quiet") is not True: + bad(f"phase {name} re-probes with {h.get('id')} and is not quiet — the " + f"addresses would be filed a second time") + # ── what a baseline of this shape never grows back ──────────────────────── if (root / "flows").exists(): bad("flows/ exists — the bootstrap is the blueprint; every mechanism is a typed orun action") @@ -359,6 +414,7 @@ if problems: placed_n = sum(len(p.get("modules") or []) for p in phases) narrated = sum(len(p.get("narrate") or {}) for p in phases) narrated += sum(1 for p in phases for h in hooks_of(p) if h.get("narrate")) +narrated += sum(1 for h in run_hooks if h.get("narrate")) print(f" {len(phases)} phases, {placed_n} modules (all in 01-product), {len(HOOK_ONLY)} hook-only — in execution order") print(f" the hook chain in order; 01-product awaits {sorted(published)} on stage and prod") print(f" {narrated} authored narration lines, every reference resolving") diff --git a/testing/placement.test.sh b/testing/placement.test.sh index fd70585..35e10c2 100755 --- a/testing/placement.test.sh +++ b/testing/placement.test.sh @@ -216,10 +216,19 @@ if "GENERATED by the `02-docs` phase" not in dep or f"https://{repo}-web-prod.{s readme = (tree / "README.md").read_text() if not readme.startswith(f"# {repo}\n") or "This product is **live**" not in readme: bad("README.md is not the product's, or its live-deployment section was not rendered") +# The coding agent's first page: at the root, branded, and the README points at it. +agents = (tree / "AGENTS.md").read_text() if (tree / "AGENTS.md").is_file() else "" +if "AGENTS.md" not in tracked or not agents.startswith(f"# {repo} "): + bad("AGENTS.md is not the product's, branded with its name") +if "(AGENTS.md)" not in readme: + bad("README.md does not point a coding agent at AGENTS.md") +for page in ("ai/context/operations.md", "ai/context/deployment.md"): + if page not in agents: + bad(f"AGENTS.md does not send an agent to {page}") # Provenance prose, over the BRANDED files. PROV = re.compile(r"\bfork(ed)? (of|from)\b|\bbaseline (repo|repository|commit|tag)\b|repo-blueprint|BOOTSTRAP\.md", re.I) -for rel in ("README.md", "ai/context/operations.md", "ai/context/deployment.md"): +for rel in ("README.md", "AGENTS.md", "ai/context/operations.md", "ai/context/deployment.md"): for n, line in enumerate((tree / rel).read_text().splitlines(), 1): if PROV.search(line): bad(f"{rel}:{n} speaks of the factory: {line.strip()[:70]}")