Skip to content

BL5: 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 smoke checks and the verify URLs. cirrus-baseline reads it from the Cloudflare connection since baseline-v23 (sourceplane/cirrus-baseline#30); this brings blob-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]).
  • 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: BL-7 joins the BL5 milestone (epic.yaml, tasks/BL-7.TaskContract.yaml). IMPLEMENTATION-STATUS, the epic README, the epics index, the plan, ai/context/current.md and decisions.md record BL5 (BL5: the cirrus standard — no kiox, generated component docs, the context pack, SVG uploads closed #6 and this PR) as baseline-v2.
    • ai/context/open-risks.md said BL-L (SVG uploads) was resolved "for products built from a later tag than baseline-v1". It now names baseline-v2.
    • There is no subdomain risk entry to close in this repo.

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

Verified locally

  • Contract tests manifest, phases, coverage, rebrand, retouch, bootstrap-defer and wire 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, with 01-product at 81 files.
    • testing/leak.test.sh exits 0: 81 files derived, and 74 shipped sources name no factory path.
  • At v2.78.4, the placement step's pin: testing/placement.test.sh exits 0. It places 81 tracked files, plans cloudflare-r2 → web, and --resume changes nothing.
  • orun task check BL-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, SVG uploads closed

- Close a stored XSS: uploads accepted any image/*, SVG included, and
  /api/blob served it from the app's own origin. Uploads are now raster
  images only (PNG, JPEG, GIF, WebP, AVIF; media type without parameters,
  case-insensitive), one list in lib/blob/content-types.ts shared by the
  route and the uploader's accept/check. /api/blob answers every object
  with `Content-Security-Policy: default-src 'none'; sandbox` beside
  nosniff, and its comment no longer claims to authenticate. tests/web
  (16 tests, was 11) and testing/e2e.test.sh assert both (risk BL-L).
- 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 BL4 (shipped, tagged baseline-v1), note the footer's Vercel
  logo the page-copy section left out, and record BL5 (BL-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: BL-7 joins BL5; status, plan, epic index, current.md and
  decisions.md say BL5 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 79193e5 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