Skip to content

feat: the turso v8 shape — one secrets hook, docs in the catalog, tasks in the background, landings checked here - #34

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

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.

  • One secrets hook. The three orun.integrations/reconcile@v1 hooks are now one secrets hook (secrets: [{key, template}], cloudflare). Keys, templates and order are the same as the card.
  • Docs in the catalog. All 43 component.yaml files attach their overview, architecture and runbook pages in spec.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 no checks.yml here, so turso's workflow removal doesn't apply.
  • The fast shape:
    • Every preInstantiate hook is background: true, and each phase's task hook moves from pre to post, just before land.
    • Both landings are checks: local, and the convergence watch polls every 5 s.
    • The pnpm install --lockfile-only hook is gone.
    • 08-docs has no final probe, and its render no longer asks the platform anything.
    • expectedMinutes go from 13 + 2 to 12 + 1. The card goes from 15 to 13 ("about thirteen minutes"). These are estimates, not timed here.
  • The wiring await is removed, for both keys.
    • WIRING_CLOUDFLARE_D1 is resolved in the same convergence by db-migrate (stage and prod), api-edge and the eleven fleet workers that bind D1.
    • WIRING_CLOUDFLARE_KV is resolved by api-edge.
    • These are secretEnv refs, 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:

  • No e2e tier. Turso relies on its e2e tier to keep the shipped lockfile installable. Here, placement.test.sh checks the branded tree against the shipped lockfile instead (frozen, offline). baseline.yml now sets up pnpm 10.12.1 for that step.
  • Docs generator name. gen-component-docs.mjs now 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.
  • No await lines. Cirrus writes no narrate.await on purpose (BV4). So that rule stays optional where a phase waits, and is refused where a phase waits on nothing.
  • Wiring rule. phases.test.sh replaces the wiring await with a rule: every published WIRING_* 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 --status with the three required --sets reads the blueprint. orun 2.85.0 refuses it with has no parameter "secrets", which is the BOOTSTRAP troubleshooting row.
  • Every tier passes: manifest, phases, coverage, rebrand, retouch, console-artifact, bootstrap-defer, fleet-stubs, leak, placement. All of them also passed on unmodified main under v2.88.0, so nothing the blueprint used broke between v2.58.11 and v2.88.0.
  • Each new test rule fails when its invariant is broken. Checked by mutation: a foreground preInstantiate hook, a ci landing, the watch at 40 s, a task back in pre, 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.
  • On a placed tree, the render ran with an orun stub on PATH and made no calls to it.
  • orun validate and both event plans pass on a branded product commit. These are the commands checks: local runs.

Generated by Claude Code

…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

ruehowl commented Oct 25, 2026

Copy link
Copy Markdown
Contributor Author

stage · web-console-next · isolated went red, but this PR didn't cause it. The verify-deploy itself passed ("7 passed, 0 failed", "1 succeeded"). The job then exited 1 because "2 remote log chunk(s) could not be delivered", meaning the lane's log upload to the platform failed. This PR doesn't touch ci.yml, the lane pin or the console, and the other 99 jobs passed. There's no fix to port, so I'm re-running the failed job once.


Generated by Claude Code

@ruehowl
ruehowl merged commit 7cebc6b into main Oct 25, 2026
125 of 126 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