Skip to content

RG8: the turso v8 shape — one secrets hook per provider, no Checks, docs in the catalog, tasks in the background, landings checked here - #10

Merged
ruehowl merged 1 commit into
mainfrom
claude/funny-cerf-9totyb
Oct 25, 2026
Merged

ruehowl merged 1 commit into
mainfrom
claude/funny-cerf-9totyb

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

What

The turso-starter v8 shape, adapted to this repository (the same changes sourceplane/saas-starter took in #9 and #10):

  • One secrets hook per provider. The five single-key reconciles become secrets-cloudflare (three keys) and secrets-supabase (two keys), in the secrets: [{key, template}] form. Same keys, templates and order as the card.
  • No Checks workflow. checks.yml is deleted. testing/e2e.test.sh runs the same six commands from its own LANDING_CHECKS list, and the leak gate no longer requires the file.
  • Docs in the catalog. All seven components attach their generated overview, architecture and runbook in spec.docs. web-tests and db-tests get descriptions, and their overviews are regenerated.
  • No domain/component clash. apps/web's domain is now app instead of web (no component is named app).
  • The fast shape on orun v2.88.0.
    • The task set-up runs in the background.
    • Each phase finds its task in post, just before its landing.
    • Both landings use checks: local.
    • The watch polls every 5 s.
    • The lockfile hook is gone.
    • The wiring await is gone (see Why).
    • 02-docs has no final probe and no narrate.await.
    • The deployment record makes no platform calls.
  • Times. expectedMinutes go from 18 + 2 to 17 + 1, so the card goes from 20 to 18 ("about eighteen minutes"). These are estimates.
  • Floor. baseline.yml pins v2.88.0 for the blueprint and product tiers; ci.yml's lane pin (v2.78.4) stays. The blueprint job's setup-node gets package-manager-cache: false.

Why

  • The bootstrap waited on things it did not need:

    • a runner planning a tree that is already in the box;
    • the task plane, before anything that reads it;
    • one platform round trip per secret key;
    • up to 40 s after the run went green.
  • The wiring await is dropped for all four keys:

    • SUPABASE_PROJECT_REF and SUPABASE_DB_PASSWORD are read by cloudflare-hyperdrive and db-migrate.
    • SUPABASE_DB_URL is read by db-migrate.
    • WIRING_CLOUDFLARE_HYPERDRIVE is read by web's deploy.

    Each reader resolves its key at job start from its component.yaml secretEnv, on stage and prod, and waits for the publisher on main. A missing key fails that lane, so a green convergence already proves every key. phases.test.sh now holds this rule key by key: a key nothing reads must be awaited.

  • The catalog showed no docs, and the web domain hid the web component.

  • No unit tests or lint on a product PR. A product PR's lanes do not run the typecheck, lint or test scripts. The baseline's e2e tier runs them before each tag, and the READMEs now tell developers to run them before they push.

Verified locally

All of these ran on the released orun v2.88.0:

  • orun new --blueprint repo-blueprint.yaml --status with the card's required inputs reads the blueprint.
  • Contract tests: manifest, phases, coverage, rebrand, retouch and bootstrap-defer all pass; gen-component-docs.py --check passes.
  • Leak gate: passes.
  • Placement: passes. The offline bootstrap, the product's own push-to-main plan (supabase → cloudflare-hyperdrive → db-migrate → web, enforced) and a --resume that changes nothing.
  • e2e: passes. Install, fixture render, typecheck, lint, test and build on the landing, then migrations into a local Postgres with pgvector, the stage lane's build and dry deploy in the staged tree, and the Worker served and answering from a document.

Generated by Claude Code

…ocs in the catalog, tasks in the background, landings checked here

What sourceplane/turso-starter became across baseline-v6, v7 and v8,
adapted to this repository's two providers and seven components (the
same shape sourceplane/saas-starter took in SA8/SA9).

A. One secrets hook per provider (turso TU9). The five single-key
reconciles each read the workspace's connections and secrets before
their create, one after another. orun's `secrets: [{key, template}]`
declares them together: `secrets-cloudflare` (CLOUDFLARE_API_TOKEN
workers-deploy, CLOUDFLARE_HYPERDRIVE_TOKEN hyperdrive-edit,
CLOUDFLARE_ACCOUNT_ID account-id) and `secrets-supabase`
(SUPABASE_ACCESS_TOKEN management-access, SUPABASE_ORG_ID org-id). Two
hooks, not one: a reconcile reads one provider's connection, and the
two share no other parameter. Keys, templates and the card's order are
unchanged. manifest.test.sh and placement.test.sh read the `secrets`
form beside `keys`; phases.test.sh wants one `secrets-<provider>` hook
per provider and refuses two with the same parameters.

B. No Checks workflow; docs in the catalog; no domain/component clash
(turso TU10). checks.yml is gone: a product carries ci.yml alone, and a
bootstrap's landings are checked in the box. testing/e2e.test.sh runs
the landing's own checks from a LANDING_CHECKS list (the six commands
checks.yml ran), and the leak gate no longer requires checks.yml. Every
component attaches its generated overview, architecture and runbook in
`spec.docs`; web-tests and db-tests get descriptions (their overviews
regenerated with tooling/catalog/gen-component-docs.py). apps/web's
domain is `app`, not `web`: a domain and a component share one name
space in the catalog (no component is named `app`). coverage.test.sh
holds both rules.

C. The fast shape on orun v2.88.0 (turso TU11). The task set-up runs in
the background; each phase finds its task in `post`, just before its
landing; both landings are `checks: local`; the convergence watch reads
every 5 s; no `pnpm install --lockfile-only` hook; 02-docs has no final
probe and no narrate.await, and its render asks the platform nothing —
the workspace slug, three secret listings and the integrations listing
were five sequential CLI calls; the record now carries a static
names-only secrets table that says where each key lives, and points to
the console's Secrets and Integrations pages.

The `wiring` await is gone entirely: no key stays awaited. Each of its
four keys is resolved in the same convergence, fail-closed at job
start, from the readers' component.yaml secretEnv, by a job that waits
for its publisher on main: SUPABASE_PROJECT_REF and SUPABASE_DB_PASSWORD
by cloudflare-hyperdrive and db-migrate, SUPABASE_DB_URL by db-migrate,
WIRING_CLOUDFLARE_HYPERDRIVE by web's deploy (both rungs in each job). A
missing one fails its lane, so a green run already proves all four.
phases.test.sh replaces the rule that demanded the await: each published
key must be read that way on stage and prod, or else awaited — and a
key already read must not be.

The floor is v2.88.0: baseline.yml's blueprint and product tiers (both
read the blueprint; the floor is newer than ci.yml's lane pin, v2.78.4,
which stays), and BOOTSTRAP.md with its troubleshooting row. The
blueprint job's setup-node asks for no pnpm cache: with no lockfile hook
that job never runs pnpm, and setup-node v5's automatic pnpm cache fails
its post step when no earlier cache exists (sourceplane/nuxt-boilerplate#6).
expectedMinutes 18 + 2 → 17 + 1, card 20 → 18 ("about eighteen
minutes"); estimates, not measurements — no bootstrap of this baseline
has been timed. phases.test.sh holds the fast shape.

Worth knowing (true of turso and saas too): a product PR's
`quick-check` lanes (db, db-tests, web-tests) only install and check
structure, and the app's verify lane builds and dry-deploys, so with
checks.yml gone nothing in a product's CI runs the typecheck, lint or
test scripts; the baseline's e2e tier still runs them on the landing
before a tag. The READMEs say so, and tell a product's developers to run
them before they push.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CJuLwDKfEaQGAEuBpJvN5Q
@ruehowl
ruehowl merged commit ae95381 into main Oct 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants