Skip to content

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

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 saas-starter to the shape turso-starter reached at baseline-v8, adapted for two providers and seven components.

  • One secrets hook per provider. The five single-key reconciles become secrets-cloudflare (CLOUDFLARE_API_TOKEN, CLOUDFLARE_HYPERDRIVE_TOKEN, CLOUDFLARE_ACCOUNT_ID) and secrets-supabase (SUPABASE_ACCESS_TOKEN, SUPABASE_ORG_ID). Keys, templates and the card's order are unchanged.
  • No Checks workflow. checks.yml is deleted. The e2e tier runs the landing's own checks from a LANDING_CHECKS list, which holds the six commands checks.yml ran.
  • Docs in the catalog. Every component attaches its overview, architecture and runbook in spec.docs. The two test suites now have descriptions, and their overviews were regenerated.
  • No domain/component clash. apps/web's domain is now app instead of web.
  • The fast shape on orun v2.88.0:
    • the task set-up runs in the background (background: true)
    • each phase's task hook moves to post, just before land
    • both landings use checks: local
    • the convergence watch polls every 5 s
    • the pnpm install --lockfile-only hook is gone
    • 02-docs has no final probe and no narrate.await
    • the deployment record asks the platform nothing: it has a static, names-only secrets table and points to the console
  • The wiring await is removed completely. All four of its keys are resolved fail-closed at job start, inside the same convergence, by a job that waits for its publisher on main:
    • SUPABASE_PROJECT_REF and SUPABASE_DB_PASSWORD: cloudflare-hyperdrive and db-migrate
    • SUPABASE_DB_URL: db-migrate
    • WIRING_CLOUDFLARE_HYPERDRIVE: web's deploy
  • Floor v2.88.0. baseline.yml's blueprint and product tiers move to it. ci.yml's lane pin stays at v2.78.4.
  • expectedMinutes: 18 + 2 becomes 17 + 1, and the card goes from 20 to 18 ("about eighteen minutes"). These are estimates, not measurements.

Why

Each change saves time a bootstrap spent waiting for nothing, or makes the catalog show what the product ships. The commit message explains why each removal is safe. In short: a green convergence already proves every published key, and checks: local runs the same validate/plan the PR's own CI would run.

phases.test.sh now enforces this shape. It has one new rule: every published key must be read in the convergence on stage and prod by a job with an enforced edge to its publisher; otherwise it must be awaited. A key that is already read must not also be awaited.

One thing worth knowing, which applies to turso too: a product PR's quick-check lanes only install and check structure. With checks.yml gone, no part of a product's CI runs typecheck, lint or the tests. The baseline's e2e tier still runs them before a tag, and the product README now says they are local pnpm scripts.

Verified locally

All with orun v2.88.0:

  • orun new --blueprint repo-blueprint.yaml --status with the card's inputs: reads the blueprint.
  • manifest, phases, coverage, rebrand, retouch, bootstrap-defer: pass. I also mutation-checked the new phases and coverage rules, and each one fails when broken.
  • gen-component-docs.py --check: pass.
  • leak.test.sh, placement.test.sh: pass. Placement now checks the pull-request edges too, because the floor is newer than the lane pin.
  • e2e.test.sh: pass, in about 3 min: the landing installed, fixture-rendered, type-checked, linted, tested and built; migrations applied twice to a local Postgres; the stage web lane built and dry-deployed in its staged tree; the Worker served, smoke-tested and signed up on; RLS holds.

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.

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`.

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). apps/web's domain is `app`, not `web`: 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; no `pnpm install --lockfile-only` hook; 02-docs has no final
probe and no narrate.await, and its render asks the platform nothing
(a static names-only secrets table that says where each key lives, and
a pointer 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, 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.
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 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. The product README now says these are local `pnpm` scripts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CJuLwDKfEaQGAEuBpJvN5Q
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