Skip to content

SA6: the cirrus standard — no kiox, generated component docs, the context pack, subdomain from the connection - #7

Merged
ruehowl merged 2 commits into
mainfrom
claude/brave-mccarthy-4l2qxb
Oct 21, 2026
Merged

ruehowl merged 2 commits into
mainfrom
claude/brave-mccarthy-4l2qxb

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Brings the baseline to cirrus-baseline's standard, and has the console card read the workers.dev subdomain from the Cloudflare connection, as cirrus-baseline does since baseline-v23 (#30 there). Nothing about the app changes: no app code, versions, lockfile or stack-tectonic pin.

There are two commits, both under the new milestone SA6 — the cirrus standard, with tasks SA-7 and SA-8. The records are written as they will read once baseline-v2 is cut from the merge: SA6 shipped, #7 (SA-7, SA-8), tagged baseline-v2.

What changes

1. The cirrus standard (SA-7)

  • No kiox. kiox.yaml and kiox.lock pinned orun v2.15.0, but nothing ran it. Every workflow pins orun through the version: of orun-action, and those pins are untouched. Removed along with the two files:

    • the root-kiox and root-kiox-lock modules, and their entries in 01-product;
    • their entries in the testing/phases.test.sh partition;
    • the rebrand's ^kiox\.lock$ skip.
  • Generated component docs. tooling/catalog/gen-component-docs.py writes docs/{overview,architecture,runbook}.md for all seven components (apps/web, packages/db, infra/db-migrate, infra/terraform/{supabase,cloudflare-hyperdrive}, tests/{web,db}) from what each component declares. That makes 21 pages. The generator is byte-identical to the one on the 17 sibling starters. Baseline CI's baseline-contract job now runs it with --check.

  • The context pack. Adds ai/context/current.md, decisions.md (12 decisions from SA-7, each with its source; SA-8 adds a 13th) and open-risks.md (SA-M, the one risk still OPEN). These pages are this repository's own. No module places them, so a product still ships exactly operations.md and deployment.md.

  • Status matches the tags. SA5 said "🔄 In review (SA-6), this branch claude/blissful-ptolemy-c5ajf8". It now reads ✅ Shipped, #6 (SA-6), tagged baseline-v1. Updated in:

    • the status file;
    • the epic README (Status, Cluster, Shipped as, milestones);
    • specs/epics/README.md;
    • implementation-plan.md (SA5 ✅, plus a new SA6 section).

    design.md §3 and §5 now list all four migrations (020_app_secrets and 030_row_level_security were missing). They also no longer say the supabase root reads the API keys, which SA5 removed.

  • SA6 recorded. It is in epic.yaml, tasks/SA-7.TaskContract.yaml and the status sections.

2. The subdomain from the Cloudflare connection (SA-8)

  • blueprint.yaml: subdomain is now from: connection.cloudflare.workersSubdomain. The comment above it says why: the subdomain belongs to the account just as its id does, and it has exactly one right answer. A typed value could only be wrong, and a wrong one showed up only after deploy: in BASE_URL, the smoke, the probes and the verify URLs. The bootstrap door fills the input from the connection the build is bound to. The console renders no field for it. The key, label, pattern, help and example are unchanged.

  • testing/manifest.test.sh takes cirrus-baseline's rule verbatim, and the file is now byte-identical to cirrus-baseline's. A connection.<provider>.<fact> source is accepted only when spec.requires.integrations lists that provider. The card lists [github, cloudflare, supabase].

  • repo-blueprint.yaml keeps the input and its default. Its description, BOOTSTRAP.md and docs/phases/README.md now say that a console or --from bst_… build reads the value from the connection, and only a hand-run build passes --set subdomain.

  • Records:

    • SA-8 is SA6's second task, and SA6 has a fifth exit criterion;
    • tasks/SA-8.TaskContract.yaml is added;
    • the status file has a new subsection;
    • current.md now names baseline-v2 as the latest tag;
    • decisions.md gains row 13.

    No risk entry was about a hand-typed subdomain, so the risk register is unchanged.

Verified locally

  • testing/{manifest,phases,coverage,rebrand,retouch,bootstrap-defer}.test.sh are green after each commit. gen-component-docs.py --check is green (7 components, 21 pages).
  • orun new --status at v2.58.11: 01-product has 159 files (140 on main: minus the 2 kiox files, plus 21 docs pages). 02-docs is hook-only.
  • testing/leak.test.sh at v2.58.11: 159 files derived, 157 text files read. ai/context is still exactly the two declared pages, and no shipped file names a factory path.
  • testing/placement.test.sh at v2.58.11: 159 files placed, both landings. The product is branded and re-tenanted, and the record is rendered. The product's own plan orders supabase → cloudflare-hyperdrive → db-migrate → web on stage and prod, enforced. --resume changes nothing.
  • pnpm install --frozen-lockfile, wire:fixture, typecheck, lint, test and build are all green:
    • wire:fixture left the tree unchanged;
    • lint reported 0 errors and upstream's 4 warnings;
    • test ran 37 tests: 27 in tests/web and 10 in tests/db.
  • testing/e2e.test.sh at v2.78.4 is green. It covered:
    • all four migrations applied to a local Postgres with Supabase's roles, and a second apply that applied nothing;
    • the stage web lane in its staged job tree, through deploy-dry-run;
    • under wrangler dev with no Stripe key and no AUTH_SECRET: the smoke, a sign-up, the dashboard and a sign-in;
    • 0 of 5 public tables without RLS, with anon and authenticated reading none of the rows.
  • Mutation check: with cloudflare dropped from spec.requires.integrations, manifest.test.sh fails with exactly one finding, naming inputs[subdomain]. Restored, it passes.
  • orun task check SA-7 and orun task check SA-8: both complete.

Worth knowing

  • Upstream's invitation-email TODO stays (design.md §7, out of scope).
  • cirrus-baseline #30 notes that it needs the orun-cloud change that adds the connection.cloudflare.workersSubdomain source. baseline-v2 should be cut only once that change is live.

Generated by Claude Code

…text pack

- Remove kiox.yaml/kiox.lock and their two blueprint modules: nothing ran
  the kiox pin (v2.15.0); every workflow pins orun through orun-action.
- Generate docs/{overview,architecture,runbook}.md for all seven components
  from what each declares (tooling/catalog/gen-component-docs.py), and fail
  Baseline CI when they drift (--check).
- Add ai/context/{current,decisions,open-risks}.md (this repository's own;
  nothing places them).
- Close out SA5 (shipped, tagged baseline-v1), bring design.md's migration
  list and supabase root line up to SA5, and record SA6 (SA-7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
- blueprint.yaml: `subdomain` is `from: connection.cloudflare.workersSubdomain`,
  as cirrus-baseline since baseline-v23 — the console renders no field for
  it; the bootstrap door fills it from the connection the build is bound to.
- testing/manifest.test.sh takes cirrus-baseline's rule verbatim: the source
  is accepted only when spec.requires.integrations lists its provider
  (mutation-checked).
- repo-blueprint.yaml, BOOTSTRAP.md and docs/phases/README.md say only a
  hand-run build passes --set subdomain.
- Record it as SA-8, SA6's second task; SA6 ships as baseline-v2 (#7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
@ruehowl
ruehowl marked this pull request as ready for review October 21, 2026 12:16
@ruehowl
ruehowl merged commit 9d6713e into main Oct 21, 2026
6 checks passed
ruehowl added a commit that referenced this pull request Oct 22, 2026
* SA6: the cirrus standard — no kiox, generated component docs, the context pack

- Remove kiox.yaml/kiox.lock and their two blueprint modules: nothing ran
  the kiox pin (v2.15.0); every workflow pins orun through orun-action.
- Generate docs/{overview,architecture,runbook}.md for all seven components
  from what each declares (tooling/catalog/gen-component-docs.py), and fail
  Baseline CI when they drift (--check).
- Add ai/context/{current,decisions,open-risks}.md (this repository's own;
  nothing places them).
- Close out SA5 (shipped, tagged baseline-v1), bring design.md's migration
  list and supabase root line up to SA5, and record SA6 (SA-7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha

* SA6: read the workers.dev subdomain from the Cloudflare connection

- blueprint.yaml: `subdomain` is `from: connection.cloudflare.workersSubdomain`,
  as cirrus-baseline since baseline-v23 — the console renders no field for
  it; the bootstrap door fills it from the connection the build is bound to.
- testing/manifest.test.sh takes cirrus-baseline's rule verbatim: the source
  is accepted only when spec.requires.integrations lists its provider
  (mutation-checked).
- repo-blueprint.yaml, BOOTSTRAP.md and docs/phases/README.md say only a
  hand-run build passes --set subdomain.
- Record it as SA-8, SA6's second task; SA6 ships as baseline-v2 (#7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha

* SA7: the console asks for no domain — the domain is set later

The app goes live on workers.dev from its first deploy and nothing in the
build needs a domain — Stripe's redirects return to BASE_URL, the
workers.dev URL until an owner sets it — so the console's Product step no
longer asks for one. The logic that uses a domain stays where it is,
waiting for one.

- blueprint.yaml: no productdomain input
- repo-blueprint.yaml: productdomain is optional, default empty
- rebrand.mjs: productdomain no longer required; empty brands the reserved
  placeholder <reponame>.example.com (RFC 2606) where the domain goes
  (BASE_DOMAIN in dev, stage and prod), so setting it later is replacing
  one string; Stripe's URLs still follow BASE_URL
- the product README and ai/context/operations.md say how to set it
- testing/fixtures/acme.json carries no domain; rebrand.test.sh pins the
  placeholder; baseline.yml's blueprint read sets no domain
- records: SA7 / SA-9, tagged baseline-v3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha

---------

Co-authored-by: Claude <noreply@anthropic.com>
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