Skip to content

SP8: 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

This brings the baseline up to what turso-starter became in baseline-v6 to v8, adapted to this repo's Cloudflare and Supabase providers. saas-starter#9 was the closest sibling to copy from.

  • A. One secrets hook per provider. The four single-key reconciles are now two hooks in the secrets: form: secrets-cloudflare (CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID) and secrets-supabase (SUPABASE_ACCESS_TOKEN, SUPABASE_ORG_ID). The keys, templates and the card's order are unchanged.
  • B. No Checks workflow, docs in the catalog, no domain/component clash.
    • checks.yml is deleted. The e2e tier runs the landing's checks from its own LANDING_CHECKS list.
    • All six components attach their generated overview, architecture and runbook pages in spec.docs.
    • The two test suites get descriptions, and their overviews were regenerated.
    • apps/web's domain is app, not web. coverage.test.sh holds both rules.
  • C. The fast shape on orun v2.88.0.
    • The task set-up runs in the background, and each phase finds its task in post, just before landing.
    • Both landings use checks: local.
    • The watch polls every 5 s instead of 40 s.
    • The lockfile hook is gone.
    • 02-docs has no final probe and no narrate.await. Its render makes none of its five platform CLI calls any more: the record names the secrets the product uses and where they live, and points to the console for the rest.
    • The wiring (orun.secrets/exists) await is removed entirely. All four keys are resolved fail-closed, in the same convergence, by a job that waits for the supabase apply: the three SUPABASE_* keys by db-migrate, and WIRING_SUPABASE by web's per-environment secretEnv.
    • phases.test.sh replaces the rule that required the await. It also reads a subscription's own secretEnv, because this repo's web reads its wiring there and not at the component level.
  • Floor. Both blueprint-reading tiers in baseline.yml now use v2.88.0. ci.yml's lane pin stays at v2.78.4. The blueprint job's setup-node sets package-manager-cache: false (the nuxt-boilerplate#6 fix).
  • expectedMinutes. The phases go from 16 + 2 to 15 + 1. The card said 20, which did not match its phases; it is now their sum, 16 ("about sixteen minutes"). These are estimates, not measurements.

Why

The bootstrap was waiting on things it does not need to wait for:

  • a runner planning a tree that is already in the build box;
  • the task plane being set up;
  • one platform round trip per key;
  • a check of secrets that the convergence has already resolved.

The catalog also attached no component docs, and the web domain hid the web component.

One thing to know: a product PR's quick-check lanes only install and check structure. With Checks gone, nothing in a product's CI runs typecheck, lint or the tests. The baseline's e2e tier still runs them on the landing before every tag, and the READMEs now say so.

Verified locally

All of these ran with orun v2.88.0.

  • orun new --blueprint repo-blueprint.yaml --status …, using baseline.yml's --sets: reads the blueprint.
  • Tier 0 (manifest, phases, coverage, rebrand, retouch, bootstrap-defer, gen-component-docs.py --check): pass.
  • Tier 1 (leak.test.sh, placement.test.sh): pass.
  • Tier 2 (e2e.test.sh): pass in 3m50s. The landing was installed, wire-fixtured, type-checked, linted, tested and built. db-migrate applied the migrations to a local Supabase (the real GoTrue and PostgREST), and a second apply applied nothing. The stage web lane ran in its staged tree. Under wrangler dev, the smoke, every route, and a sign-up, sign-out and sign-in passed, and 0 of 5 public tables were without RLS.

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, one Terraform root and six
components (sourceplane/saas-starter's SA8 is the nearest sibling).

A. One secrets hook per provider (turso TU9). The four 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_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`.

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` (no component is named `app`): a domain and
a component share one name space in the catalog. 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 (it had the action's 40); 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. Each of its four keys is resolved
in the same convergence, fail-closed at job start, by a job that waits
for the supabase apply on main: SUPABASE_PROJECT_REF,
SUPABASE_DB_PASSWORD and SUPABASE_DB_URL by db-migrate (its secretEnv,
per environment), WIRING_SUPABASE by web's deploy (each environment's
own subscription `secretEnv`). 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. Unlike
saas, whose app reads its wiring at the component level, this rule also
reads a subscription's own `secretEnv` (orun merges both into the job).

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
nothing in it runs pnpm, and setup-node v5's own pnpm cache fails the
job in its post step when no earlier cache exists (nuxt-boilerplate#6).

expectedMinutes 16 + 2 → 15 + 1. The card said 20 ("16 + 2, with room",
"Live in about twenty minutes"), which the phases never summed to; it is
now their sum, 16, "about sixteen minutes" in the card and BOOTSTRAP.md.
Estimates, not measurements — no bootstrap of this baseline has been
timed. The context pack's "twenty minutes" and "secrets inventory"
follow.

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, so
with checks.yml gone nothing in a product's CI runs typecheck, lint or
the tests; the baseline's e2e tier still runs them on the landing before
a tag. Both READMEs now say so, and the product README tells its
developers to run the `pnpm` scripts 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 a33d22f 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