Skip to content

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

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 PS-7, the second task of PS5 — the cirrus standard.

What changes

The subdomain input — the account's workers.dev subdomain, not a tenant's — 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/PS-7.TaskContract.yaml; PS5 in epic.yaml gains PS-7 and an exit criterion; IMPLEMENTATION-STATUS.md (row → PS5: the cirrus standard — no kiox, generated component docs, the context pack #6, PS5: read the workers.dev subdomain from the Cloudflare connection #7, tagged baseline-v2, plus a section for PS-7), 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 91 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, 91 files); testing/leak.test.sh exit 0 (91 files derived; 85 shipped sources name no factory path).
  • orun v2.78.4 (the pin the workflow uses for placement): testing/placement.test.sh exit 0 — 91 tracked files, both landings; the product's own plan applies cloudflare-kv (level 0) before it deploys web (level 1) on stage and prod; the 02-docs merge plans 0 jobs; --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 PS-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
  (web, cloudflare-kv, 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 PS4 (shipped, tagged baseline-v1; the epic README's
  "Shipped as" was still at #4) and record PS5 (PS-6).

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 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: PS-7 under PS5, 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:20
@ruehowl
ruehowl merged commit 1de9f4e 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