Skip to content

SS6: read the workers.dev subdomain from the Cloudflare connection - #8

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

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

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Why

The console card's subdomain input was typed by hand, but it belongs to the Cloudflare account the same way its id does, and it has exactly one right answer. A wrong value only showed up after deploy: in the Site URL and redirect allow-list the Supabase project's Auth is given, the smoke checks and the verify URLs. cirrus-baseline reads it from the Cloudflare connection since baseline-v23 (sourceplane/cirrus-baseline#30); this brings supabase-starter in line.

What changes

  • blueprint.yaml: subdomain now declares from: connection.cloudflare.workersSubdomain (key, label, pattern, help and example unchanged).
    • The console renders no field for it.
    • The bootstrap door fills it from the Cloudflare connection the build is bound to, the same one CLOUDFLARE_ACCOUNT_ID and the deploy tokens are minted from.
    • An account with no workers.dev subdomain is refused at the door, with the fix named.
  • testing/manifest.test.sh: cirrus-baseline's check, byte for byte. It accepts the new source and requires the source's provider to be listed in spec.requires.integrations (this card lists [github, cloudflare, supabase]).
  • Docs: BOOTSTRAP.md, docs/phases/README.md (the inputs list; 01-product.md has no inputs table here) and repo-blueprint.yaml's description say that only a hand-run orun new still passes --set subdomain. The input and its default stay in repo-blueprint.yaml.
  • Epic records: SS-8 joins the SS6 milestone (epic.yaml, tasks/SS-8.TaskContract.yaml). IMPLEMENTATION-STATUS, the epic README, the epics index, the plan, ai/context/current.md and decisions.md record SS6 (SS6: the cirrus standard — no kiox, generated component docs, the context pack #7 and this PR) as baseline-v3. There is no subdomain risk entry to close in this repo.

Nothing a product runs changes: no app, Terraform, test-package or tooling file is touched.

Verified locally

  • Contract tests manifest, phases, coverage, rebrand, retouch and bootstrap-defer all exit 0. gen-component-docs.py --check exits 0 (3 components).
  • At v2.58.11, the blueprint job's pin:
    • orun new --blueprint repo-blueprint.yaml --status exits 0.
    • testing/leak.test.sh exits 0: 112 files derived, 104 text files read.
    • testing/placement.test.sh exits 0: 112 tracked files, and supabase → web is enforced on stage and prod. --resume changes nothing.
  • orun task check SS-8 reports complete yes. With --base origin/main, affects is ok.
  • Mutation check: I removed cloudflare from spec.requires.integrations. manifest.test.sh then exits 1 with one finding: inputs[subdomain].from is 'connection.cloudflare.workersSubdomain' but spec.requires.integrations does not list cloudflare — there is no connection to read it from. With the file restored (byte-identical), it exits 0.

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 every component
  (web, supabase, web-tests) from what it 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 SS5 (shipped, tagged baseline-v2) and SS4's plan entry
  (shipped, tagged baseline-v1; the plan gains its missing SS5 section),
  and record SS6 (SS-7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
This milestone's own record (the status file, the plan, epic.yaml, the
task contract, ai/context) says that kiox was removed, so "no file names
kiox" could never hold literally. The criterion is now that nothing
outside this milestone's own record names kiox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
The generator now lays tables out the way prettier does (an app whose lint
is `prettier --check` accepts the pages as written), lists the WIRING_*
failure only for Workers that take wiring, and no longer claims a package
holds no credentials.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
The generator now reads `optionalSecretEnv` (listed as "(optional)") and
secrets declared per environment under `subscribe.environments[]`, so a
page no longer leaves out a secret its component declares. Its tables are
laid out as prettier lays them out, the WIRING_* failure is listed only
for Workers that take wiring, and a package is no longer said to hold no
credentials. Every starter now carries the identical generator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
- blueprint.yaml: the subdomain input declares
  `from: connection.cloudflare.workersSubdomain`; the console fills it from
  the connection the build is bound to (the one CLOUDFLARE_ACCOUNT_ID and
  the deploy tokens mint from) and renders no field for it
- testing/manifest.test.sh: cirrus-baseline's check, byte for byte — a
  `connection.<provider>.<fact>` source is accepted only when
  spec.requires.integrations lists the provider (mutation-checked)
- repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/README.md: a hand-run
  build still passes --set subdomain
- records: SS-8 joins SS6; status, plan, epic index, current.md and
  decisions.md say SS6 ships as baseline-v3

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:18
@ruehowl
ruehowl merged commit 5fe8f5a into main Oct 21, 2026
6 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