Skip to content

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

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 origin the build bakes into the page's Open Graph link, the smoke checks and the verify URLs. cirrus-baseline reads it from the Cloudflare connection since baseline-v23 (sourceplane/cirrus-baseline#30); this brings postgres-drizzle-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: PD-7 joins the PD5 milestone (epic.yaml, tasks/PD-7.TaskContract.yaml). IMPLEMENTATION-STATUS, the epic README, the epics index, the plan, ai/context/current.md and decisions.md record PD5 (PD5: the cirrus standard — no kiox, generated component docs, the context pack #6 and this PR) as baseline-v2. There is no subdomain-typed-by-hand risk to close; PD-G (an empty build-time subdomain) was already resolved and is unrelated.

Nothing a product runs changes: no app, package, Terraform, migration, test 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 (7 components).
  • At v2.58.11, the blueprint job's pin:
    • orun new --blueprint repo-blueprint.yaml --status exits 0, with 01-product at 126 files.
    • testing/leak.test.sh exits 0: 126 files derived, 123 text files read.
    • testing/placement.test.sh exits 0: 126 tracked files. --resume changes nothing.
  • orun task check PD-7 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 all seven
  components from what they declare (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 PD4 (shipped, tagged baseline-v1); give the empty metadataBase
  heading its content; label the PD1–PD3 Verified section (its 4 tests);
  add risk PD-J (OPEN) for the missing live bootstrap; record PD5 (PD-6).

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.
- Word the kiox exit criterion as it can be true: 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 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: PD-7 joins PD5; status, plan, epic index, current.md and
  decisions.md say PD5 ships as baseline-v2

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 9fa61df 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