Skip to content

CS4: read the workers.dev subdomain from the Cloudflare connection - #6

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

The console card's 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 and 01-product's probes. This mirrors cirrus-baseline #30 (baseline-v23).

What changes

  • blueprint.yaml: the subdomain input declares from: connection.cloudflare.workersSubdomain, with the reason written at the input. 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 one CLOUDFLARE_ACCOUNT_ID and the deploy token come from. The console renders no field for it, and an account with no workers.dev subdomain is refused at the door. Key, label, pattern, help and example are unchanged; the card already lists cloudflare in spec.requires.integrations.
  • testing/manifest.test.sh: cirrus-baseline's rule, byte for byte (the file is now identical to cirrus-baseline's main). It accepts the new source and fails a card whose spec.requires.integrations does not list the provider.
  • repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/README.md: a console or --from bst_… build reads it from the connection; only a hand-run build passes --set subdomain. The default is unchanged.
  • Records: task CS-6, added to the CS4 milestone with one more exit criterion; IMPLEMENTATION-STATUS (CS4 row: CS4: the cirrus standard — no kiox, generated component docs, the context pack #5 (CS-5), CS4: read the workers.dev subdomain from the Cloudflare connection #6 (CS-6), tagged baseline-v2, plus a CS-6 subsection), epic README, epics index, implementation plan, ai/context/current.md (latest tag baseline-v2) and decisions.md (#13). No risk entry covered the subdomain, so none is changed.

Nothing a blog runs changes: no app code, versions, lockfile or stack-tectonic pin.

Verified locally

  • testing/{manifest,phases,coverage,rebrand,retouch,bootstrap-defer}.test.sh: all exit 0. gen-component-docs.py --check: exit 0 (2 components).
  • Mutation check: with cloudflare removed 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 — there is no connection to read it from. With the file restored (byte-identical), it exits 0.
  • orun new --status at v2.58.11 (the blueprint job's pin) reads repo-blueprint.yaml: 01-product pending, 97 files.
  • testing/leak.test.sh at v2.58.11: 97 files derived, 97 read, no factory path named. Exit 0.
  • testing/placement.test.sh at v2.78.4 (as baseline.yml runs it): 97 files placed, both landings, the blog's own orun plan as before, and --resume changes nothing. Exit 0.
  • orun task check CS-6: complete yes.

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.
  docs/phases/01-product.md no longer lists a kiox pin.
- Generate docs/{overview,architecture,runbook}.md for every component
  (web, 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).
- Qualify the Presentation live preview as unchanged in code but not yet
  exercised in a browser (risk CS-H, open) in the README and design.md;
  the blog's README asks its owner to check it once.
- Close out CS3 (shipped, tagged baseline-v1) and record CS4 (CS-5).

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 declares
  `from: connection.cloudflare.workersSubdomain`, with the reason at the
  input, as cirrus-baseline's card does since baseline-v23; key, label,
  pattern, help and example unchanged
- testing/manifest.test.sh: cirrus-baseline's rule, byte for byte: the
  source is accepted and its provider must be in
  spec.requires.integrations (mutation-checked)
- repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/README.md: a console or
  --from bst_… build reads it from the connection; only a hand-run build
  passes --set subdomain
- records: CS-6 under CS4; CS4 tagged 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:20
@ruehowl
ruehowl merged commit e5d6179 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