Skip to content

SP6: 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

Mirrors cirrus-baseline #30 (baseline-v23). Task SP-8, the second task of SP6 — the cirrus standard.

What changes

The subdomain input was typed by hand, though it belongs to the Cloudflare account the same way its id does and has exactly one right answer. A wrong value surfaced only after deploy — in the origin Stripe and Supabase Auth send visitors back to, the deploy's smoke, the phase probes and the console's verify URLs.

  • blueprint.yaml (the console card): subdomain declares from: connection.cloudflare.workersSubdomain. The Cloudflare integration reads the subdomain at connect and on its hourly health check, and the bootstrap door fills the input from the connection the build is bound to — the same connection CLOUDFLARE_ACCOUNT_ID and the deploy tokens mint from. The console renders no field for it; an account with no workers.dev subdomain is refused at the door with the fix named. Key, label, pattern, help and example are unchanged.
  • testing/manifest.test.sh: cirrus-baseline's rule, byte for byte — the new source is accepted, and only when spec.requires.integrations lists its provider (cloudflare is listed).
  • repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/README.md: a console or --from bst_… build gets the subdomain from the connection; only a hand-run build passes --set subdomain. The input and its default stay.
  • Records: tasks/SP-8.TaskContract.yaml; SP6 in epic.yaml gains SP-8 and an exit criterion; IMPLEMENTATION-STATUS.md (row → SP6: the cirrus standard — no kiox, generated component docs, the context pack #7, SP6: read the workers.dev subdomain from the Cloudflare connection #8, tagged baseline-v2, plus a section for SP-8), the epic README, the epics index, implementation-plan.md, ai/context/current.md and decisions.md.

Nothing a product carries changes: none of these files ship, and the leak gate still derives the same 181 files.

Verified locally

  • testing/{manifest,phases,coverage,rebrand,retouch,bootstrap-defer}.test.sh — all exit 0.
  • python3 tooling/catalog/gen-component-docs.py --check — exit 0 (6 components).
  • orun v2.58.11 (the blueprint job's pin, which also runs placement here): orun new --status reads the document (01-product pending, 181 files); testing/leak.test.sh exit 0 (181 files derived, 174 text files read); testing/placement.test.sh exit 0 — 181 files placed, both landings; the product's own plan orders supabase → db-migrate → web on stage and prod; --resume changes nothing.
  • Mutation: with cloudflare dropped from spec.requires.integrations, manifest.test.sh exits 1 with exactly one finding — inputs[subdomain].from is 'connection.cloudflare.workersSubdomain' but spec.requires.integrations does not list cloudflare; restored, it exits 0.
  • orun task check SP-8 — complete yes.
  • No app code, versions, lockfile or stack-tectonic pin touched, so pnpm checks and e2e were not re-run.

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 six 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 SP5 (shipped, tagged baseline-v1) and record SP6 (SP-7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
Nothing outside this milestone's own record names kiox — the record of
the removal necessarily does.

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 is `from:
  connection.cloudflare.workersSubdomain`, as cirrus-baseline since
  baseline-v23 (#30); the console renders no field for it
- testing/manifest.test.sh: cirrus's rule verbatim, accepting the source
  only when spec.requires.integrations lists its provider (mutation-checked)
- repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/README.md: only a hand-run
  build passes --set subdomain
- records: SP-8 under SP6, status, plan, epic index, ai/context

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:19
@ruehowl
ruehowl merged commit 1ce1edd 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