Repository navigation
feat: the turso v8 shape — one secrets hook, docs in the catalog, tasks in the background, landings checked here - #34
Merged
Conversation
…ks in the background, landings checked here
sourceplane/turso-starter went from baseline-v5 to baseline-v8 (TU9-TU11);
it descends from this repository, so the same changes land here, adapted to
cirrus's 43 components, its 01-product / 08-docs phases and its own tests.
The bootstrap floor moves from v2.58.11 to orun v2.88.0.
A. One secrets hook. The three single-template reconciles
(secret-workers-deploy, secret-d1-edit, secret-account-id) are one
`secrets` hook (provider cloudflare, `secrets: [{key, template}]`, v2.87.0):
same keys, templates and order as the card. manifest.test.sh reads the
`secrets` form beside `keys`; BOOTSTRAP.md and docs/phases name the one hook.
B. Docs in the catalog. There is no checks.yml here, so the workflow half is
a no-op. Every component.yaml now attaches its generated overview,
architecture and runbook pages in `spec.docs`; the 23 packages and test
suites without a description get one. No domain equals a component name
(9 domains, none clash), so nothing is renamed. coverage.test.sh holds both
rules (spec.domain and labels.domain). The overview pages are regenerated
with tooling/catalog/gen-component-docs.mjs, whose product name now comes
from .baseline/identity.json: it said "cirrus", which rebrand does not
rename, so a regenerated page would have shipped the old name into every
product. Architecture pages are left as they were: their drift predates this
change, and regenerating them would claim a policy-worker service binding
for api-edge and notifications-worker that their Worker configs do not have.
C. The fast shape on v2.88.0.
- Every hooks.preInstantiate hook is `background: true`; each phase's
`task` moves from `pre` to `post`, just before `land`.
- Both landings are `checks: local`; the convergence watch polls every 5 s.
- The `wiring` await (orun.secrets/exists@v1) is gone, for both keys: in
the same convergence db-migrate (stage, prod), api-edge and the eleven
D1-bound fleet workers resolve WIRING_CLOUDFLARE_D1, and api-edge
resolves WIRING_CLOUDFLARE_KV, through `secretEnv` refs, fail-closed, each
waiting for its publisher on main. No key stays awaited. phases.test.sh
replaces the await with that rule: every published WIRING_* document
needs such a reader on stage and prod (enforced on main, advisory on a
PR), or it must be awaited again.
- No `pnpm install --lockfile-only` hook. cirrus has no e2e tier, so
placement.test.sh now checks the BRANDED tree against the shipped
lockfile, frozen and offline (baseline.yml sets up pnpm 10.12.1 for it).
- 08-docs has no final probe; its render asks the platform nothing (no
workspace, secrets or integrations calls) and writes a names-only
Secrets table with where each key lives; the Workers' runtime secrets
are read from the product's own optionalSecretEnv.
- expectedMinutes 13 + 2 -> 12 + 1 (card 15 -> 13, "about thirteen
minutes"), estimates from turso's measured savings, not timed here.
- phases.test.sh: pre/post/await lists for both phases and the fast-shape
rules. cirrus authors no narrate.await by design (BV4), so the narration
rule is adapted: optional where a phase waits, refused where it does not.
- baseline.yml pins v2.88.0; BOOTSTRAP.md states the floor and why, with
rows for `has no parameter "checks"`/"secrets" and the landing's local
check.
Every testing/*.test.sh passes under the released v2.88.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CJuLwDKfEaQGAEuBpJvN5Q
Contributor
Author
|
Generated by Claude Code |
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
Brings cirrus to the shape turso-starter reached in baseline-v6 to v8 (turso was adapted from this repo), and moves the bootstrap floor from orun v2.58.11 to v2.88.0.
orun.integrations/reconcile@v1hooks are now onesecretshook (secrets: [{key, template}], cloudflare). Keys, templates and order are the same as the card.component.yamlfiles attach their overview, architecture and runbook pages inspec.docs. The 23 packages and test suites that had no description get one. No domain shares a component's name, so nothing is renamed. There is nochecks.ymlhere, so turso's workflow removal doesn't apply.preInstantiatehook isbackground: true, and each phase'staskhook moves frompretopost, just beforeland.checks: local, and the convergence watch polls every 5 s.pnpm install --lockfile-onlyhook is gone.wiringawait is removed, for both keys.WIRING_CLOUDFLARE_D1is resolved in the same convergence by db-migrate (stage and prod), api-edge and the eleven fleet workers that bind D1.WIRING_CLOUDFLARE_KVis resolved by api-edge.secretEnvrefs, which fail the lane if missing, and each reader waits for its publisher on main. No key stays awaited.Why
The same reasons as turso's TU9–TU11. The secrets are minted side by side. The task set-up no longer runs before the first phase. No landing waits for a runner. A green convergence already shows the wiring is published. And the deployment record no longer copies what the console shows live.
Where cirrus is built differently:
placement.test.shchecks the branded tree against the shipped lockfile instead (frozen, offline).baseline.ymlnow sets up pnpm 10.12.1 for that step.gen-component-docs.mjsnow takes the product name from.baseline/identity.json. It said "cirrus", which rebrand doesn't rename, so a regenerated page would have shipped the old name into every product. Only the overview pages are regenerated. The architecture pages' drift predates this PR, and regenerating them would claim a policy-worker binding for api-edge and notifications-worker that their Worker configs don't have.narrate.awaiton purpose (BV4). So that rule stays optional where a phase waits, and is refused where a phase waits on nothing.phases.test.shreplaces the wiring await with a rule: every publishedWIRING_*document must have a reader on stage and prod (enforced on main, advisory on a PR), or it must be awaited again.Verified locally (orun v2.88.0, the released binary)
orun new --blueprint repo-blueprint.yaml --statuswith the three required--sets reads the blueprint. orun 2.85.0 refuses it withhas no parameter "secrets", which is the BOOTSTRAP troubleshooting row.cilanding, the watch at 40 s, a task back inpre, KV with no reader, db-migrate advisory on main, a domain named like a component, a missing page, and a template or key drifting from the card.orunstub on PATH and made no calls to it.orun validateand both event plans pass on a branded product commit. These are the commandschecks: localruns.Generated by Claude Code