Repository navigation
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
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
secrets:form:secrets-cloudflare(CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID) andsecrets-supabase(SUPABASE_ACCESS_TOKEN, SUPABASE_ORG_ID). The keys, templates and the card's order are unchanged.checks.ymlis deleted. The e2e tier runs the landing's checks from its ownLANDING_CHECKSlist.spec.docs.apps/web's domain isapp, notweb.coverage.test.shholds both rules.taskinpost, just before landing.checks: local.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.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 threeSUPABASE_*keys by db-migrate, andWIRING_SUPABASEby web's per-environmentsecretEnv.phases.test.shreplaces the rule that required the await. It also reads a subscription's ownsecretEnv, because this repo's web reads its wiring there and not at the component level.baseline.ymlnow use v2.88.0. ci.yml's lane pin stays at v2.78.4. The blueprint job's setup-node setspackage-manager-cache: false(the nuxt-boilerplate#6 fix).Why
The bootstrap was waiting on things it does not need to wait for:
The catalog also attached no component docs, and the
webdomain hid thewebcomponent.One thing to know: a product PR's
quick-checklanes 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.manifest,phases,coverage,rebrand,retouch,bootstrap-defer,gen-component-docs.py --check): pass.leak.test.sh,placement.test.sh): pass.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. Underwrangler 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