Skip to content

CM5: read the workers.dev subdomain from the Cloudflare connection - #7

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

ruehowl merged 5 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 CM-7, the second task of CM5 — 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 deploy's smoke (its DEPLOYED_URL), 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/CM-7.TaskContract.yaml; CM5 in epic.yaml gains CM-7 and an exit criterion; IMPLEMENTATION-STATUS.md (row → CM5: the cirrus standard — no kiox, generated component docs, the context pack #6, CM5: read the workers.dev subdomain from the Cloudflare connection #7, tagged baseline-v2, plus a section for CM-7), the epic README, the epics index, implementation-plan.md, ai/context/current.md and decisions.md.

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

Verified locally

  • testing/{manifest,phases,coverage,rebrand,retouch,bootstrap-defer,wire}.test.sh — all exit 0.
  • python3 tooling/catalog/gen-component-docs.py --check — exit 0 (3 components).
  • orun v2.58.11 (the blueprint job's pin): orun new --status reads the document (01-product pending, 147 files); testing/leak.test.sh exit 0 (147 files derived; 140 shipped sources name no factory path).
  • orun v2.78.4 (the pin the workflow uses for placement): testing/placement.test.sh exit 0 — 147 files placed, two landings; the product's own plan applies cloudflare-r2 at level 0 and deploys web at level 1 on stage and prod; the 02-docs merge plans 0 jobs; --resume a no-op.
  • 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 CM-7 — 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 every component
  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 CM4 (shipped in #5, tagged baseline-v1) and record CM5 (CM-6).
- Make the docs say what CM4 built: risk CM-B and design §2/§7 no longer
  list wrangler vars or call CM-B open; the status file no longer cites a
  .dev.vars.example that CM4 folded into .env.example; the epic README's
  gate says offline is terraform validate only.

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 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: CM-7 under CM5, 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 a77112e 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