diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da2accc..3c361c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,22 @@ on: push: branches: [main] pull_request: + # ON-DEMAND DEPLOY (intent.yaml, `github-dispatch`). The selection is the + # plan: orun reads these inputs through the binding's `components` and + # `environments` paths, so nothing here hand-builds a `--component` list. + workflow_dispatch: + inputs: + component: + description: 'Component id, or several comma-separated (e.g. api-edge, or api-edge,web-console-next)' + required: true + type: string + environment: + description: Environment to deploy into + required: true + type: choice + options: + - stage + - prod # PR runs share a group per ref and superseded runs are cancelled (each # push re-plans anyway), which stops stale fan-outs from starving the @@ -51,7 +67,7 @@ jobs: fi - uses: sourceplane/orun-action@v1.2.0 with: - version: v2.78.4 + version: v2.89.0 - env: # Surface the best-effort catalog auto-sync (execution.state.autopushCatalog). # A successful push prints "✓ pushed catalog …"; ORUN_VERBOSE also makes @@ -65,8 +81,14 @@ jobs: --event-file "$GITHUB_EVENT_PATH" --intent intent.yaml --output plan.json - --changed ) + # A dispatch IS its scope (`scope: selected`), so a diff flag has + # nothing to say about it: orun ignores `--changed` on such a plan + # and prints a line saying so. Not passing it keeps the log honest + # about what decided the plan. + if [ "$GITHUB_EVENT_NAME" != "workflow_dispatch" ]; then + plan_args+=(--changed) + fi orun plan "${plan_args[@]}" # One matrix entry per LANE (execution.lanes in intent.yaml). A plan @@ -147,7 +169,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - uses: sourceplane/orun-action@v1.2.0 with: - version: v2.78.4 + version: v2.89.0 # exec-id is the RUN id alone (no attempt suffix): a `gh run rerun # --failed` then RESUMES the same orun execution — jobs that succeeded in # a prior attempt stay completed, so re-run lanes' cross-job dependencies diff --git a/blueprint.yaml b/blueprint.yaml index fae2796..4f1a03d 100644 --- a/blueprint.yaml +++ b/blueprint.yaml @@ -22,7 +22,7 @@ metadata: description: > Cloudflare + Supabase multi-tenant SaaS: 12 bounded-context Workers behind one edge API, Next.js console, terraform data plane, migrations, - CI that converges on merge. Budgeted at 45 minutes to live on stage+prod. + CI that converges on merge. Live on stage+prod in 18 measured minutes. tags: [saas, cloudflare, supabase, nextjs] spec: source: @@ -179,13 +179,19 @@ spec: # the registry row names THIS file, the console card; it is not the build. blueprint: repo-blueprint.yaml # The sum of the phases' own `expectedMinutes` in repo-blueprint.yaml; - # `testing/manifest.test.sh` holds the two equal. Re-budgeted from the - # measured runs once the duplicate PR verify pass was dropped, the fleet - # stopped deploying twice and prod stopped waiting out stage - # (docs/phases/TIMINGS.md has the arithmetic, phase by phase). No build - # has been timed end to end under these numbers yet, so this is a budget, - # not a measurement. - expectedMinutes: 45 + # `testing/manifest.test.sh` holds the two equal. + # + # MEASURED, not budgeted, and this is the first version of this card that + # can say so: pullely/multi-tenant-saas-2 built in 18 minutes end to end + # (2026-10-26, 13:14 → 13:32 UTC), and each phase's number is that run's + # own elapsed rounded to the nearest minute. docs/phases/TIMINGS.md has + # the run, phase by phase, and what it overturned — the 45 these replace + # was arithmetic, and it was 2.5x the truth. + # + # ONE RUN IS ONE SAMPLE. It was a fresh account with no cached anything, + # which is the slow case rather than the fast one, but a second run on a + # bad day for Supabase or Cloudflare will be slower than 18. + expectedMinutes: 18 tokenChannel: ORUN_TOKEN_FILE # how a runner hands over its refreshed token verify: urls: diff --git a/docs/components/REVIEW.md b/docs/components/REVIEW.md new file mode 100644 index 0000000..975bff4 --- /dev/null +++ b/docs/components/REVIEW.md @@ -0,0 +1,164 @@ +# Component review — what each one declares, and how fully it is documented + +Every one of lumen's **45 components**, scored on five measurable +signals. Generated against the tree, not typed by hand, so a number here is a +fact about the repository rather than an impression of it. + +## The rubric + +One point each, out of five: + +| | signal | why it is the bar | +|---|---|---| +| 1 | `docs/overview.md` exists | the catalog's primary page for the component | +| 2 | `metadata.description` is set | without it the catalog row has no summary; orun emits the `Repo` entity from `description` alone | +| 3 | the overview carries 3+ headings | a title and one paragraph is a stub, however well written | +| 4 | the overview runs to 100+ words | enough to say what it is, what it needs and what breaks | +| 5 | 2+ further `docs.pages` are declared (architecture, runbook) | somewhere to put what the overview should not carry | + +A 5 is not a ceiling on quality and a 3 is not a failing component — a small +pure package may deserve a short page. The scores are here to show **where the +documentation is thinnest**, not to rank the code. + +## Scores + +| component | domain | type | score | overview words | headings | description | +|---|---|---|---|---|---|---| +| `api-edge` | starter-runtime | cloudflare-worker-turbo | **5/5** | 209 | 3 | yes | +| `billing-worker` | starter-runtime | cloudflare-worker-turbo | **5/5** | 108 | 3 | yes | +| `integrations-worker` | starter-runtime | cloudflare-worker-turbo | **5/5** | 108 | 3 | yes | +| `membership-worker` | starter-runtime | cloudflare-worker-turbo | **5/5** | 166 | 3 | yes | +| `policy-worker` | starter-runtime | cloudflare-worker-turbo | **5/5** | 158 | 3 | yes | +| `projects-worker` | starter-runtime | cloudflare-worker-turbo | **5/5** | 108 | 3 | yes | +| `cloudflare-domain` | infra | terraform | **4/5** | 65 | 3 | yes | +| `cloudflare-hyperdrive` | infra | terraform | **4/5** | 87 | 3 | yes | +| `cloudflare-kv` | infra | terraform | **4/5** | 52 | 3 | yes | +| `supabase` | infra | terraform | **4/5** | 74 | 3 | yes | +| `contracts` | starter-contracts | turbo-package | **4/5** | 263 | 2 | yes | +| `db` | starter-data | turbo-package | **4/5** | 212 | 2 | yes | +| `admin-worker` | starter-runtime | cloudflare-worker-turbo | **4/5** | 58 | 3 | yes | +| `config-worker` | starter-runtime | cloudflare-worker-turbo | **4/5** | 72 | 3 | yes | +| `events-worker` | starter-runtime | cloudflare-worker-turbo | **4/5** | 82 | 3 | yes | +| `identity-worker` | starter-runtime | cloudflare-worker-turbo | **4/5** | 95 | 3 | yes | +| `metering-worker` | starter-runtime | cloudflare-worker-turbo | **4/5** | 75 | 3 | yes | +| `notifications-worker` | starter-runtime | cloudflare-worker-turbo | **4/5** | 85 | 3 | yes | +| `webhooks-worker` | starter-runtime | cloudflare-worker-turbo | **4/5** | 73 | 3 | yes | +| `admin-worker-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `api-edge-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `billing-worker-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `config-worker-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `contracts-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `db-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `identity-worker-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `integrations-worker-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `membership-worker-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `metering-worker-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `notifications-client-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `notifications-worker-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `platform-limits-tests` | starter-tests | turbo-package | **4/5** | 321 | 2 | yes | +| `policy-engine-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `policy-worker-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `projects-worker-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `web-console-next-tests` | starter-tests | turbo-package | **4/5** | 122 | 2 | yes | +| `db-migrate` | infra | db-migrate | **3/5** | 56 | 2 | yes | +| `cli` | starter-cli | turbo-package | **3/5** | 32 | 2 | yes | +| `sdk` | starter-sdk | turbo-package | **3/5** | 60 | 2 | yes | +| `notifications-client` | starter-shared | turbo-package | **3/5** | 57 | 2 | yes | +| `policy-engine` | starter-shared | turbo-package | **3/5** | 52 | 2 | yes | +| `shared` | starter-shared | turbo-package | **3/5** | 38 | 2 | yes | +| `testing` | starter-shared | turbo-package | **3/5** | 42 | 2 | yes | +| `webhook-verifier` | starter-shared | turbo-package | **3/5** | 53 | 2 | yes | +| `web-console-next` | starter-ui | cloudflare-workers-assets-turbo | **3/5** | 52 | 2 | yes | + +Distribution: **5/5**: 6 · **4/5**: 30 · **3/5**: 9. + +## What this pass changed + +- **16 test overviews said `Verification suite for \`None\``** — a generator's + absent field interpolated as the string `None`, committed, and inherited by + every product built from this baseline. Each now names its real target + component and lists its real gates, read from its own `component.yaml`. +- **23 components had no `metadata.description`** — every test component and + all seven shared packages. All 45 now have one. +- **The seven shared packages opened with one interchangeable sentence** + ("Shared workspace package. A shared package of the lumen workspace, + consumed by the components below at build time"), which is true of all seven + and says nothing about any. Each now opens with what it actually is. + +## The finding that is not a documentation problem + +**26 components subscribe with `profile: quick-check`, and that profile runs no +tests.** **Observed directly**, on the pull request that added this page — lumen's own +CI, not an inherited note. The `db-tests · dev · Verify` lane +([run 40296065423](https://github.com/sourceplane/lumen/actions/runs/40296065423)) +ran four steps and stopped: + +``` +01 setup-pnpm 6.3s +02 setup-node 13.4s +03 install-workspace-dependencies 4.1s +04 verify-package-structure 0.0s +✓ Verify completed · 21.8s + steps 4 passed, 0 failed, 0 skipped +``` + +`projects-worker-tests`, in the same lane, ran the same four. The suite's own +`preBuildCommand` — `pnpm exec turbo run test --filter=./` — never executed, +and `verify-package-structure` took 0.0s. + +**The lane is named `· Verify`**, which is why nobody noticed: the check that +appears on a pull request, goes green, and satisfies branch protection is +titled Verify whatever profile it ran. + +This repository had already written the finding down, in +`.github/workflows/baseline.yml`: + +> It used to ride a `tests/flows` component whose `quick-check` profile runs +> setup, install and a package-structure check — and no tests (observed live +> on cirrus: `4 passed, 0 failed`, none of them a test). + +Sixteen of the 26 are test suites whose tests live in `preBuildCommand`, which +`quick-check` skips. + +The fix is one word per component — `profile: verify` — and it is **not in this +change on purpose**: flipping it turns on sixteen suites that have never run in +CI, and the right place to absorb that is a change that can watch what it +turns on, not one that is also moving the build's timings. orun-cloud hit the +identical hole and recorded it as the `packages/db` lesson (#1536); its test +components now say `verify` for exactly this reason. + +Components on `quick-check`: `admin-worker-tests`, `api-edge-tests`, `billing-worker-tests`, `cli`, `config-worker-tests`, `contracts`, `contracts-tests`, `db`, `db-tests`, `identity-worker-tests`, `integrations-worker-tests`, `membership-worker-tests`, `metering-worker-tests`, `notifications-client`, `notifications-client-tests`, `notifications-worker-tests`, `platform-limits-tests`, `policy-engine`, `policy-engine-tests`, `policy-worker-tests`, `projects-worker-tests`, `sdk`, `shared`, `testing`, `web-console-next-tests`, `webhook-verifier`. + +## Declared product URLs + +Both environment doors and their links, probed 2026-10-26: + +| URL | answer | +|---|---| +| `lumen-web-console-next-stage…workers.dev` | **200** | +| `lumen-web-console-next-prod…workers.dev` | 404 | +| `lumen-api-edge-stage…workers.dev` | 404 | +| `lumen-api-edge-stage…workers.dev/health` | 404 | +| `lumen-api-edge-prod…workers.dev` | 404 | +| `lumen-api-edge-prod…workers.dev/health` | 404 | + +**The declarations are not wrong; the fleet is not deployed.** These are +`environments..url` and `links` in `intent.yaml`, which `rebrand.mjs` +rewrites per product — a product's own edge answers after `05-edge`, as the +measured build's probe confirms ("Both /health endpoints answered"). What the +404s say is that *this* repository's own fleet is absent from the Cloudflare +account it names, which is also why its convergence is red on the console +smoke. Rewriting the URLs would propagate a transient fact into every product. + +The `github-dispatch` binding added in this change is the move that fixes it: +deploy `api-edge` to `stage` on its own, without a commit or a full +convergence. + +## Catalog ref collisions (orun v2.89.0) + +v2.89.0 refuses a domain, system or environment whose name gives it a +component's catalog ref — the component would be hidden in Orunbase. lumen is +clean: its domains are `infra, starter-cli, starter-contracts, starter-data, starter-runtime, starter-sdk, starter-shared, starter-tests, starter-ui`, +and no component shares a name with any of them. Nothing to change; checked so +that the next person does not have to. + diff --git a/docs/phases/README.md b/docs/phases/README.md index 89412fa..de87943 100644 --- a/docs/phases/README.md +++ b/docs/phases/README.md @@ -137,7 +137,7 @@ modes are the same files. ## Unattended: `--resume` `--resume` places every phase not already derived as done, in dependency -order, honouring each barrier. Budget **45 minutes** — the sum of the +order, honouring each barrier. **18 measured minutes** — the sum of the phases' `expectedMinutes`, which the card carries — against the ~73 minutes measured for phases 01–06 under the shell layer this replaced. The worker fleet (~31m) and the console build (~16m) dominate; Supabase project creation diff --git a/docs/phases/TIMINGS.md b/docs/phases/TIMINGS.md index 354ef2c..d7db482 100644 --- a/docs/phases/TIMINGS.md +++ b/docs/phases/TIMINGS.md @@ -1,19 +1,26 @@ -# Bootstrap timings — what to budget, and where the numbers come from - -**Provenance matters here.** No bootstrap has been measured end to end under -the current numbers. The budgets below are arithmetic on measured runs — the -runs themselves are described under the table — and the second item that used -to head this page, *"every landing waits for its PR's CI again"*, is no longer -true: a bootstrap landing's pull request runs `plan` alone -(`.github/workflows/ci.yml`) and the landing is checked locally before it is -pushed (`checks: local`), so nothing waits for a runner to re-do work the -merge is about to do for real. - -What remains true from that header: **phase 03 is two landings** — the flows -landed supabase, kv, hyperdrive and db-migrate in one PR without waiting on -it, while the blueprint lands supabase and kv, waits for the apply, then -lands hyperdrive and db-migrate (see -[03-infrastructure.md](03-infrastructure.md)). +# Bootstrap timings — what a build takes, and where the number comes from + +**This page used to open by admitting that no bootstrap had been measured end +to end.** One has: `pullely/multi-tenant-saas-2` built on 2026-10-26, 13:14 → +13:32 UTC, in **18 minutes**, and every number below is that run's own elapsed +rather than arithmetic on older ones. + +The 45 these replace was honest arithmetic and **2.5x the truth**. Two of its +line items were not just conservative but wrong about the shape of the build, +and the run says which: + +- **"Supabase project creation, 5–7m, is the floor and nobody can shorten + it."** `03-infrastructure`, which creates the Supabase project *and* the KV + namespace per environment and applies Terraform, took **2m5s** in total. The + floor was not where the page thought it was. +- **`04-workers` at 14.** The twelve-worker fleet deployed to both + environments in **3m53s**. The budget carried the memory of two convergences + (a strip and a restore); there is one. + +What the run confirms, as designed: **eight landings and no ninth** (PR #1 +through #8 — `04-workers-restore` is gone), and `06-console` at **2m29s** +rather than the ~13 a cold Next.js build took, which is the fetched console +artifact doing what it was built to do. ## Per-phase budget @@ -23,37 +30,44 @@ holds them equal). The phases' lines no longer quote it: a build page shows one short line per step, and the budget is the engine's fact (`.meta.expectedMinutes`), not prose. -**These are re-budgeted, not re-measured.** The 84 they replace was the sum -under the old shape; three changes took time out of every phase, and the -column on the right is the arithmetic, from the measured runs below and from -`pullely/multi-tenant-saas` (2026-10-25, baseline before these changes). +**These are measured.** The column on the right is what the run took; the +declared number is that, rounded to the nearest whole minute. `08-docs` +finished inside the minute it started, and the card's reader requires a +positive number, so it declares 1. -| phase | was | now | why | +| phase | budgeted | declared | measured on multi-tenant-saas-2 | |---|---|---|---| -| `01-scaffold` | 2 | **2** | unchanged. Measured ~2m (vela), 1m35s (multi-tenant-saas) | -| `02-foundation` | 9 | **5** | vela's 9m was PR verify lanes 3m29s + convergence 3m56s. The PR pass is gone (`plan` only on a bootstrap branch) | -| `03-infrastructure` | 9 | **8** | Supabase project creation, 5–7m, is the floor and nobody can shorten it. The PR pass (1m28s on multi-tenant-saas) is gone | -| `03-infrastructure-database` | 6 | **5** | measured 7m20s on multi-tenant-saas, of which its PR pass was 1m25s | -| `04-workers` | 31 | **14** | vela's 31m was PR lanes ~7m + strip convergence 13m18s + restore convergence 10m54s. One fleet deploy and no PR pass leaves the 13m18s | -| `04-workers-restore` | 5 | **gone** | the fleet deploys once, with its bindings (`tooling/deploy/fleet-stubs.mjs`) | -| `05-edge` | 5 | **4** | measured 5m22s (vela) / 5m03s (ambient) including its PR pass | -| `06-console` | 16 | **5** | measured 15m37s / 14m01s, nearly all of it the cold Next.js build. The console is now FETCHED, not built (saas-console-artifact CA4): the Cloudflare-only baseline measured the build step at 0.6s and the whole console job at 1m13s–1m22s, two environments | -| `08-docs` | 1 | **2** | it also restores the promotion gate and dev's lanes now | -| **total** | **84** | **45** | | +| `01-scaffold` | 2 | **1** | 1m15s | +| `02-foundation` | 5 | **3** | 2m30s | +| `03-infrastructure` | 8 | **2** | 2m5s | +| `03-infrastructure-database` | 5 | **3** | 3m2s | +| `04-workers` | 14 | **4** | 3m53s | +| `05-edge` | 4 | **2** | 2m21s | +| `06-console` | 5 | **2** | 2m29s | +| `08-docs` | 2 | **1** | under a minute | +| **total** | **45** | **18** | **18m wall clock** (17m35s of phases) | + +**ONE RUN IS ONE SAMPLE**, and this page should not be read as a promise. What +makes it worth declaring anyway: it was a *fresh* account — no Supabase +project, no KV namespace, no Cloudflare worker, nothing cached — which is the +slow case rather than the fast one. What could still make a build slower than +18: Supabase or Cloudflare having a bad day, a GitHub Actions queue, and the +one condition on `06-console` below. A second measured run belongs on this +page beside the first rather than replacing it. + +**One condition on `06-console`'s 2.** The console is fetched only when the +baseline tag being built from has a published artifact for exactly these +sources — `.github/workflows/tag.yml` publishes one as part of cutting a tag. +Without one, or when a product's console sources have changed, the pin is +absent or stale and the component builds from source: the phase is then its +old ~13 again, and nothing fails. 2 is the tagged case, which is every build +a product actually makes, and the measured run is one of them. Not counted, because they are seconds rather than minutes, and real: the task plane opened in the background (~23s per build), each landing checked locally instead of by a runner (~24s per landing, eight of them), and the convergence watch reading every 5s instead of 40 (~20s per landing). -**One condition on `06-console`'s 5.** The console is fetched only when the -baseline tag being built from has a published artifact for exactly these -sources — `.github/workflows/tag.yml` publishes one as part of cutting a tag. -Without one, or when a product's console sources have changed, the pin is -absent or stale and the component builds from source exactly as before: the -phase is then its old ~13 again, and nothing fails. The budget is for the -tagged case, which is every build a product actually makes. - **What the earlier measurements were.** Two real Lumen bootstraps, both under the shell layer that `repo-blueprint.yaml` replaced, and both before any of the changes above: diff --git a/intent.yaml b/intent.yaml index 2908bbe..719641d 100644 --- a/intent.yaml +++ b/intent.yaml @@ -98,6 +98,44 @@ automation: on: provider: local + # ON-DEMAND DEPLOY OF ONE COMPONENT (orun >= v2.84.0, `scope: selected`). + # + # Everything else here plans from a diff: a pull request verifies what + # changed, a merge converges what changed. Neither can answer "put + # api-edge back on stage" — the most common thing anyone actually wants + # from a deployed fleet, and the reason a build whose edge is missing has + # no move short of an empty commit. + # + # A dispatch IS its scope: the components and environments named in the + # event are the whole plan, `--changed` is ignored, and an empty selection + # or an unknown component name is an error rather than "everything" (which + # is what a hand-written `--component` branch in ci.yml would have given + # on a typo). + # + # `autopush: false` because a one-component deploy is not a statement + # about the catalog: the convergence on main owns that, and a dispatch + # that pushed a partial snapshot would make the catalog describe a plan + # nobody ran. + # + # `requireRule` is DELIBERATELY off. Turning it on means a component is + # dispatchable only if one of its `profileRules` names this binding — + # safer, and 45 components' worth of opt-in. The guard that matters here + # is the environment list below: a dispatch can only reach an environment + # that activates this binding, so dev (verify-only) cannot be deployed + # into by anybody. + github-dispatch: + description: Deploy named components to one environment, on demand + on: + provider: github + event: workflow_dispatch + branches: + - main + plan: + scope: selected + components: inputs.component + environments: inputs.environment + autopush: false + environments: dev: description: Verify-only. Pull requests plan and verify here; nothing is deployed, so there is no door. @@ -132,6 +170,7 @@ environments: triggerRefs: - github-pull-request - github-push-main + - github-dispatch parameterDefaults: terraform: lane: verify @@ -155,6 +194,7 @@ environments: triggerRefs: - github-pull-request - github-push-main + - github-dispatch promotion: dependsOn: - environment: stage diff --git a/packages/contracts/component.yaml b/packages/contracts/component.yaml index 7897eaa..824b9ce 100644 --- a/packages/contracts/component.yaml +++ b/packages/contracts/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: contracts + description: The wire contracts every worker and the console share — request and response shapes, error envelopes, and the ids they are keyed on. spec: docs: overview: docs/overview.md diff --git a/packages/contracts/docs/overview.md b/packages/contracts/docs/overview.md index 943450b..d754042 100644 --- a/packages/contracts/docs/overview.md +++ b/packages/contracts/docs/overview.md @@ -1,6 +1,6 @@ # contracts -Shared workspace package. +The wire contracts every worker and the console share: request and response shapes, error envelopes, and the ids they are keyed on. A shared package of the lumen workspace, consumed by the components below at build time. diff --git a/packages/db/component.yaml b/packages/db/component.yaml index 52d13a2..061a333 100644 --- a/packages/db/component.yaml +++ b/packages/db/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: db + description: Postgres access for the fleet — branded ids, the typed query layer, and the repositories each bounded context reads through. spec: docs: overview: docs/overview.md diff --git a/packages/db/docs/overview.md b/packages/db/docs/overview.md index e49c645..e26b0ea 100644 --- a/packages/db/docs/overview.md +++ b/packages/db/docs/overview.md @@ -1,6 +1,6 @@ # db -Shared workspace package. +Postgres access for the fleet — branded ids, the typed query layer, and the repositories each bounded context reads through. A shared package of the lumen workspace, consumed by the components below at build time. diff --git a/packages/notifications-client/component.yaml b/packages/notifications-client/component.yaml index 08f29ff..374d8d4 100644 --- a/packages/notifications-client/component.yaml +++ b/packages/notifications-client/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: notifications-client + description: Best-effort internal client for `notifications-worker`, posting the V1 enqueue contract over its service binding. spec: docs: overview: docs/overview.md diff --git a/packages/notifications-client/docs/overview.md b/packages/notifications-client/docs/overview.md index 751412d..ae67a6b 100644 --- a/packages/notifications-client/docs/overview.md +++ b/packages/notifications-client/docs/overview.md @@ -1,6 +1,6 @@ # notifications-client -Shared workspace package. +Best-effort internal client for `notifications-worker`, posting the V1 enqueue contract over its service binding. A shared package of the lumen workspace, consumed by the components below at build time. diff --git a/packages/policy-engine/component.yaml b/packages/policy-engine/component.yaml index bcef5b7..05d6918 100644 --- a/packages/policy-engine/component.yaml +++ b/packages/policy-engine/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: policy-engine + description: The pure authorization decision function the policy worker and its callers evaluate, with no I/O of its own. spec: docs: overview: docs/overview.md diff --git a/packages/policy-engine/docs/overview.md b/packages/policy-engine/docs/overview.md index 0ad2388..34308ed 100644 --- a/packages/policy-engine/docs/overview.md +++ b/packages/policy-engine/docs/overview.md @@ -1,6 +1,6 @@ # policy-engine -Shared workspace package. +The pure authorization decision function the policy worker and its callers evaluate, with no I/O of its own. A shared package of the lumen workspace, consumed by the components below at build time. diff --git a/packages/shared/component.yaml b/packages/shared/component.yaml index 579d65e..ba90e1b 100644 --- a/packages/shared/component.yaml +++ b/packages/shared/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: shared + description: The small things every component needs and none should re-implement — error types and id helpers. spec: docs: overview: docs/overview.md diff --git a/packages/shared/docs/overview.md b/packages/shared/docs/overview.md index 7054ba4..2768f67 100644 --- a/packages/shared/docs/overview.md +++ b/packages/shared/docs/overview.md @@ -1,6 +1,6 @@ # shared -Shared workspace package. +The small things every component needs and none should re-implement: error types and id helpers. A shared package of the lumen workspace, consumed by the components below at build time. diff --git a/packages/testing/component.yaml b/packages/testing/component.yaml index dc7103c..49310e2 100644 --- a/packages/testing/component.yaml +++ b/packages/testing/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: testing + description: Fixtures and id helpers the suites share, so two tests never disagree about what a valid record looks like. spec: docs: overview: docs/overview.md diff --git a/packages/testing/docs/overview.md b/packages/testing/docs/overview.md index f41f51f..780c833 100644 --- a/packages/testing/docs/overview.md +++ b/packages/testing/docs/overview.md @@ -1,6 +1,6 @@ # testing -Shared workspace package. +Fixtures and id helpers the suites share, so two tests never disagree about what a valid record looks like. A shared package of the lumen workspace, consumed by the components below at build time. diff --git a/packages/webhook-verifier/component.yaml b/packages/webhook-verifier/component.yaml index fe66f08..57a36ff 100644 --- a/packages/webhook-verifier/component.yaml +++ b/packages/webhook-verifier/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: webhook-verifier + description: Zero-dependency HMAC-SHA256 verifier for outbound webhook deliveries, on WebCrypto alone so it runs verbatim on Workers, Bun, Node and browsers. spec: docs: overview: docs/overview.md diff --git a/packages/webhook-verifier/docs/overview.md b/packages/webhook-verifier/docs/overview.md index ce43dec..a966114 100644 --- a/packages/webhook-verifier/docs/overview.md +++ b/packages/webhook-verifier/docs/overview.md @@ -1,6 +1,6 @@ # webhook-verifier -Shared workspace package. +Zero-dependency HMAC-SHA256 verifier for outbound webhook deliveries, on WebCrypto alone so it runs verbatim on Workers, Bun, Node and browsers. A shared package of the lumen workspace, consumed by the components below at build time. diff --git a/repo-blueprint.yaml b/repo-blueprint.yaml index 92b1ec0..b22df68 100644 --- a/repo-blueprint.yaml +++ b/repo-blueprint.yaml @@ -941,7 +941,7 @@ phases: - name: 01-scaffold title: The repo is born description: Root manifests, tooling, compositions, and the rebrand values file. - expectedMinutes: 2 + expectedMinutes: 1 # THE LINES A BUILD PAGE SHOWS, and why every phase's are this short. # # The console's build panel prints each hook's `narrate:` verbatim as the @@ -1174,7 +1174,7 @@ phases: - name: 02-foundation title: The shared packages - expectedMinutes: 5 + expectedMinutes: 3 narrate: start: 'Placing the shared packages every worker builds on.' # After the convergence is green: built, not "building". @@ -1286,7 +1286,7 @@ phases: - name: 03-infrastructure title: The data infrastructure - expectedMinutes: 8 + expectedMinutes: 2 narrate: start: 'Creating a Supabase Postgres project and a KV namespace per environment.' done: 'Supabase and KV are up on stage and prod, their outputs published, in {{ .meta.elapsed }}.' @@ -1464,7 +1464,7 @@ phases: # the product, landed in two PRs. - name: 03-infrastructure-database title: The database is migrated and reachable - expectedMinutes: 5 + expectedMinutes: 3 narrate: start: 'Adding the schema migrations and a Hyperdrive pool per environment.' done: 'The schema is applied and Hyperdrive''s ids are published for the workers, in {{ .meta.elapsed }}.' @@ -1566,10 +1566,10 @@ phases: - name: 04-workers title: The worker fleet - expectedMinutes: 14 + expectedMinutes: 4 narrate: start: 'Deploying the twelve-worker fleet, the longest stretch of the build.' - done: 'Twelve workers are live on stage and prod, minus two bindings the next phase restores, in {{ .meta.elapsed }}.' + done: 'Twelve workers are live on stage and prod, with their bindings, in {{ .meta.elapsed }}.' failed: 'The fleet did not deploy; the failing step says why.' modules: [admin-worker, admin-worker-tests, billing-worker, billing-worker-tests, config-worker, config-worker-tests, events-worker, events-worker-tests, identity-worker, identity-worker-tests, integrations-worker, integrations-worker-tests, membership-worker, membership-worker-tests, metering-worker, metering-worker-tests, notifications-worker, notifications-worker-tests, policy-worker, policy-worker-tests, projects-worker, projects-worker-tests, webhooks-worker, webhooks-worker-tests] requires: @@ -1678,7 +1678,7 @@ phases: - name: 05-edge title: The API edge - expectedMinutes: 4 + expectedMinutes: 2 narrate: start: 'Deploying the API edge in front of the twelve services.' done: 'The edge is live on stage and prod, answering /health, in {{ .meta.elapsed }}.' @@ -1795,7 +1795,7 @@ phases: # gap so 08-docs keeps its name. - name: 06-console title: The web console - expectedMinutes: 5 + expectedMinutes: 2 narrate: start: 'Building and deploying the web console.' done: 'The console is live on stage and prod, in {{ .meta.elapsed }}.' @@ -1912,7 +1912,7 @@ phases: # and why its verify is the same probe 06-console ends on. - name: 08-docs title: The deployment, recorded - expectedMinutes: 2 + expectedMinutes: 1 narrate: start: 'Recording the live deployment in the repository.' done: 'ai/context/deployment.md records the live deployment, from probed facts.' diff --git a/tests/admin-worker/component.yaml b/tests/admin-worker/component.yaml index c558f6c..8fccd10 100644 --- a/tests/admin-worker/component.yaml +++ b/tests/admin-worker/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: admin-worker-tests + description: Verification suite for `admin-worker` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/admin-worker/docs/overview.md b/tests/admin-worker/docs/overview.md index 8016547..7a80367 100644 --- a/tests/admin-worker/docs/overview.md +++ b/tests/admin-worker/docs/overview.md @@ -1,12 +1,19 @@ # admin-worker-tests -Verification suite for `None`. +Verification suite for `admin-worker`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `admin-worker` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/api-edge/component.yaml b/tests/api-edge/component.yaml index 6052479..590f5d0 100644 --- a/tests/api-edge/component.yaml +++ b/tests/api-edge/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: api-edge-tests + description: Verification suite for `api-edge` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/api-edge/docs/overview.md b/tests/api-edge/docs/overview.md index 2334ac9..4cfa79d 100644 --- a/tests/api-edge/docs/overview.md +++ b/tests/api-edge/docs/overview.md @@ -1,12 +1,19 @@ # api-edge-tests -Verification suite for `None`. +Verification suite for `api-edge`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `api-edge` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/billing-worker/component.yaml b/tests/billing-worker/component.yaml index 397c6f2..e5e5ec1 100644 --- a/tests/billing-worker/component.yaml +++ b/tests/billing-worker/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: billing-worker-tests + description: Verification suite for `billing-worker` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/billing-worker/docs/overview.md b/tests/billing-worker/docs/overview.md index 581a29c..a55069b 100644 --- a/tests/billing-worker/docs/overview.md +++ b/tests/billing-worker/docs/overview.md @@ -1,12 +1,19 @@ # billing-worker-tests -Verification suite for `None`. +Verification suite for `billing-worker`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `billing-worker` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/config-worker/component.yaml b/tests/config-worker/component.yaml index 38dd565..4f4a020 100644 --- a/tests/config-worker/component.yaml +++ b/tests/config-worker/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: config-worker-tests + description: Verification suite for `config-worker` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/config-worker/docs/overview.md b/tests/config-worker/docs/overview.md index 19c8271..f33c02b 100644 --- a/tests/config-worker/docs/overview.md +++ b/tests/config-worker/docs/overview.md @@ -1,12 +1,19 @@ # config-worker-tests -Verification suite for `None`. +Verification suite for `config-worker`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `config-worker` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/contracts/component.yaml b/tests/contracts/component.yaml index cb765d1..7731681 100644 --- a/tests/contracts/component.yaml +++ b/tests/contracts/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: contracts-tests + description: Verification suite for `contracts` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/contracts/docs/overview.md b/tests/contracts/docs/overview.md index 891bcb2..2dc539f 100644 --- a/tests/contracts/docs/overview.md +++ b/tests/contracts/docs/overview.md @@ -1,12 +1,19 @@ # contracts-tests -Verification suite for `None`. +Verification suite for `contracts`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `contracts` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/db/component.yaml b/tests/db/component.yaml index 9208dc8..0df8b5d 100644 --- a/tests/db/component.yaml +++ b/tests/db/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: db-tests + description: Verification suite for `db` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/db/docs/overview.md b/tests/db/docs/overview.md index d445571..365270d 100644 --- a/tests/db/docs/overview.md +++ b/tests/db/docs/overview.md @@ -1,12 +1,19 @@ # db-tests -Verification suite for `None`. +Verification suite for `db`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `db` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/identity-worker/component.yaml b/tests/identity-worker/component.yaml index c2b6c3d..cb87793 100644 --- a/tests/identity-worker/component.yaml +++ b/tests/identity-worker/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: identity-worker-tests + description: Verification suite for `identity-worker` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/identity-worker/docs/overview.md b/tests/identity-worker/docs/overview.md index bf8e316..a2a0d72 100644 --- a/tests/identity-worker/docs/overview.md +++ b/tests/identity-worker/docs/overview.md @@ -1,12 +1,19 @@ # identity-worker-tests -Verification suite for `None`. +Verification suite for `identity-worker`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `identity-worker` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/integrations-worker/component.yaml b/tests/integrations-worker/component.yaml index 7e2d040..712dc24 100644 --- a/tests/integrations-worker/component.yaml +++ b/tests/integrations-worker/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: integrations-worker-tests + description: Verification suite for `integrations-worker` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/integrations-worker/docs/overview.md b/tests/integrations-worker/docs/overview.md index 24c9257..3590fb7 100644 --- a/tests/integrations-worker/docs/overview.md +++ b/tests/integrations-worker/docs/overview.md @@ -1,12 +1,19 @@ # integrations-worker-tests -Verification suite for `None`. +Verification suite for `integrations-worker`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `integrations-worker` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/membership-worker/component.yaml b/tests/membership-worker/component.yaml index eb8f3c0..5ea23b2 100644 --- a/tests/membership-worker/component.yaml +++ b/tests/membership-worker/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: membership-worker-tests + description: Verification suite for `membership-worker` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/membership-worker/docs/overview.md b/tests/membership-worker/docs/overview.md index 55e639a..501a2ca 100644 --- a/tests/membership-worker/docs/overview.md +++ b/tests/membership-worker/docs/overview.md @@ -1,12 +1,19 @@ # membership-worker-tests -Verification suite for `None`. +Verification suite for `membership-worker`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `membership-worker` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/metering-worker/component.yaml b/tests/metering-worker/component.yaml index 7e63cd5..949fa2b 100644 --- a/tests/metering-worker/component.yaml +++ b/tests/metering-worker/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: metering-worker-tests + description: Verification suite for `metering-worker` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/metering-worker/docs/overview.md b/tests/metering-worker/docs/overview.md index 25773bc..e4824d2 100644 --- a/tests/metering-worker/docs/overview.md +++ b/tests/metering-worker/docs/overview.md @@ -1,12 +1,19 @@ # metering-worker-tests -Verification suite for `None`. +Verification suite for `metering-worker`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `metering-worker` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/notifications-client/component.yaml b/tests/notifications-client/component.yaml index 3141a35..890f1d9 100644 --- a/tests/notifications-client/component.yaml +++ b/tests/notifications-client/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: notifications-client-tests + description: Verification suite for `notifications-client` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/notifications-client/docs/overview.md b/tests/notifications-client/docs/overview.md index f90e1ad..cb8065e 100644 --- a/tests/notifications-client/docs/overview.md +++ b/tests/notifications-client/docs/overview.md @@ -1,12 +1,19 @@ # notifications-client-tests -Verification suite for `None`. +Verification suite for `notifications-client`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `notifications-client` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/notifications-worker/component.yaml b/tests/notifications-worker/component.yaml index 9639dad..b71e77a 100644 --- a/tests/notifications-worker/component.yaml +++ b/tests/notifications-worker/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: notifications-worker-tests + description: Verification suite for `notifications-worker` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/notifications-worker/docs/overview.md b/tests/notifications-worker/docs/overview.md index 665b96e..99b84a3 100644 --- a/tests/notifications-worker/docs/overview.md +++ b/tests/notifications-worker/docs/overview.md @@ -1,12 +1,19 @@ # notifications-worker-tests -Verification suite for `None`. +Verification suite for `notifications-worker`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `notifications-worker` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/policy-engine/component.yaml b/tests/policy-engine/component.yaml index bdb773b..e4a704a 100644 --- a/tests/policy-engine/component.yaml +++ b/tests/policy-engine/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: policy-engine-tests + description: Verification suite for `policy-engine` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/policy-engine/docs/overview.md b/tests/policy-engine/docs/overview.md index f053559..00a7308 100644 --- a/tests/policy-engine/docs/overview.md +++ b/tests/policy-engine/docs/overview.md @@ -1,12 +1,19 @@ # policy-engine-tests -Verification suite for `None`. +Verification suite for `policy-engine`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `policy-engine` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/policy-worker/component.yaml b/tests/policy-worker/component.yaml index 024074d..463c1ac 100644 --- a/tests/policy-worker/component.yaml +++ b/tests/policy-worker/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: policy-worker-tests + description: Verification suite for `policy-worker` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/policy-worker/docs/overview.md b/tests/policy-worker/docs/overview.md index 73707ef..042242f 100644 --- a/tests/policy-worker/docs/overview.md +++ b/tests/policy-worker/docs/overview.md @@ -1,12 +1,19 @@ # policy-worker-tests -Verification suite for `None`. +Verification suite for `policy-worker`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `policy-worker` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/projects-worker/component.yaml b/tests/projects-worker/component.yaml index 9b9f711..80481b6 100644 --- a/tests/projects-worker/component.yaml +++ b/tests/projects-worker/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: projects-worker-tests + description: Verification suite for `projects-worker` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/projects-worker/docs/overview.md b/tests/projects-worker/docs/overview.md index 2b0300b..0143f0b 100644 --- a/tests/projects-worker/docs/overview.md +++ b/tests/projects-worker/docs/overview.md @@ -1,12 +1,19 @@ # projects-worker-tests -Verification suite for `None`. +Verification suite for `projects-worker`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `projects-worker` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself diff --git a/tests/web-console-next/component.yaml b/tests/web-console-next/component.yaml index 1bbf929..d740088 100644 --- a/tests/web-console-next/component.yaml +++ b/tests/web-console-next/component.yaml @@ -2,6 +2,7 @@ apiVersion: sourceplane.io/v1 kind: Component metadata: name: web-console-next-tests + description: Verification suite for `web-console-next` — build, typecheck and its own tests, run on every plan that includes it. spec: docs: overview: docs/overview.md diff --git a/tests/web-console-next/docs/overview.md b/tests/web-console-next/docs/overview.md index dac56d6..27e4156 100644 --- a/tests/web-console-next/docs/overview.md +++ b/tests/web-console-next/docs/overview.md @@ -1,12 +1,19 @@ # web-console-next-tests -Verification suite for `None`. +Verification suite for `web-console-next`. -A verify-only component: its lane runs this suite against -its target component on every plan that -includes it. Nothing deploys from here — a red lane blocks the +A verify-only component: its lane runs this suite against `web-console-next` on every +plan that includes it. Nothing deploys from here — a red lane blocks the convergence, which is the point. +> **This suite does not run in CI today.** The component subscribes to `dev` +> with the `quick-check` profile, which runs setup, install and a +> package-structure check — and no tests. See +> [docs/components/REVIEW.md](../../../docs/components/REVIEW.md); the fix is +> one word (`verify`) and belongs in a change that can watch what it turns on. + ## Gates -- (none) +- `pnpm exec turbo run build --filter=./` — build +- `pnpm exec turbo run typecheck --filter=./` — typecheck +- `pnpm exec turbo run test --filter=./` — the suite itself