Skip to content

feat: subdomain from the Cloudflare connection; remove the domain input - #115

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

ruehowl merged 2 commits into
mainfrom
claude/brave-mccarthy-4l2qxb

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Two changes, one commit each, ported from cirrus-baseline (#30 and #31). This will be tagged baseline-v30 after merge, and the records already say baseline-v30.

What changes

1. The workers.dev subdomain is read from the Cloudflare connection, not typed

subdomain was a typed field on the console card, though it belongs to the Cloudflare account the same way its id does and has exactly one right answer. A wrong value only showed up after deploy, in CORS, OAuth origins, smoke checks and the verify URLs.

  • blueprint.yaml: subdomain declares from: connection.cloudflare.workersSubdomain. A comment above it explains why: the 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. That is 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. The card already lists cloudflare in spec.requires.integrations.
  • testing/manifest.test.sh: cirrus's block, copied byte for byte from cirrus main. It accepts the new source and requires its provider in spec.requires.integrations.
  • repo-blueprint.yaml: the subdomain description says a console or --from bst_… build gets the value from the connection. Pass it with --set only for a hand-run build. The default is unchanged.
  • Docs:
    • BOOTSTRAP.md: a paragraph after the first orun new example; the console-path bullet (only productname and productdomain are typed now); and the troubleshooting row.
    • docs/phases/01-scaffold.md and docs/phases/README.md: the subdomain rows.
  • Records: Lumen has no BE3 "not probed" note and no risk chore(deploy): cycle-break pass 2 — restore service bindings #13 to mark answered. A dated section in specs/epics/saas-bootstrap-factory/IMPLEMENTATION-STATUS.md is the record instead.

2. The domain on/off input is removed, and 07-domain folds into 06-console

07-domain was the one conditional phase (when: inputs.domain), and it landed a single component, cloudflare-domain. That component ships parked (subscribe.environments: [], checked in its component.yaml), so the phase's convergence was a green run with nothing in it. The switch turned on a component that is already off. productdomain is unchanged.

  • repo-blueprint.yaml:
    • The domain input is gone, along with the "domain" key in the .rebrand/values.json template.
    • The 07-domain phase is deleted.
    • cloudflare-domain joins 06-console's modules. That is the last landing that converges a deploy, and it places web-console-next, which the component routes and dependsOn.
    • The numbering keeps its gap, so 08-docs keeps its name. 08-docs already required 06-console.
  • blueprint.yaml: the programme now has seven milestones; 07-domain and its when: domain are gone.
  • Deleted: docs/phases/07-domain.md and tasks/07-domain.TaskContract.yaml.
    • What is still true moved to a new section, "The custom domain — parked", in docs/phases/06-console.md: the component is parked, the attachment is fenced off mid-migration to provider v5, the zone must exist first, and wiring means restoring the subscribe block.
    • ai/context/operations.md (which ships to products) says the same without naming a factory path.
  • tasks/06-console.TaskContract.yaml: a comment explains why cloudflare-domain is not in affects. A parked component deploys nothing.
  • Tests:
    • phases.test.sh: the partition expects cloudflare-domain in 06-console. The file has no FOLDED map, so a comment records the move.
    • leak.test.sh and placement.test.sh: they no longer force domain on. The phased sequence now places 08-docs after 06-console.
    • manifest.test.sh: comments only.
  • tests/fixtures/acme.json drops "domain": false.
  • Docs: BOOTSTRAP.md, README.md, docs/phases/README.md, docs/phases/08-docs.md, docs/phases/01-scaffold.md and docs/phases/TIMINGS.md now say nine phases and seven milestones. A one-line comment in tooling/rebrand/rebrand.mjs no longer names 07-domain.
  • Records:
    • A dated section, "The domain input, removed (2026-10-21, baseline-v30)", in the same IMPLEMENTATION-STATUS.
    • A "Since then" note in specs/epics/saas-baseline-tracking/README.md, next to its 8/8 rollup.

No app code, versions, lockfiles or kiox/standard files are touched.

Verified locally

The tests that baseline.yml's jobs run, with each exit code checked explicitly. Leak, placement and --status ran with orun 2.58.11, the pin CI uses.

check main (before) this branch
testing/manifest.test.sh exit 0 — 5 secrets, 8 milestones exit 0 — 5 secrets, 7 milestones
testing/phases.test.sh exit 0 — 10 phases, 65 modules exit 0 — 9 phases, 65 modules
testing/coverage.test.sh exit 0 — 45 of 45 components placed exit 0 — 45 of 45 components placed
testing/rebrand.test.sh exit 0 exit 0
orun new --status (blueprint-parses) exit 0 exit 0 — nine phases derived
testing/leak.test.sh exit 0 — 1103 files derived exit 0 — 1103 files derived, 2 context files, no factory paths
testing/placement.test.sh exit 0 — 1103 files placed (domain forced on); 01 → 07 exit 0 — 1103 files placed; 01 → 08 through the rebrand; --resume keeps the branding
derived file set compared with main at domain=true — identical: 1103 files, and 06-console's 186 = main's 06-console (176) + 07-domain (10)
mutation check: cloudflare removed from the card's spec.requires.integrations — manifest.test.sh exit 1: inputs[subdomain].from is 'connection.cloudflare.workersSubdomain' but spec.requires.integrations does not list cloudflare — there is no connection to read it from. Restored: exit 0. Ran after each commit.

Other checks:

  • The final grep for 07-domain, domain=true, inputs.domain and "domain": true/false outside specs/ finds only history ("it used to be 07-domain").
  • tooling/rebrand/rebrand.mjs changed only in a comment, and node --check passes. tests/fixtures/acme.json is read only by testing/*.sh. Neither is a pnpm workspace package, so the pnpm lanes and e2e were not run.

Generated by Claude Code

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 CORS, OAuth origins, smoke checks and
the verify URLs. Ported from cirrus-baseline #30.

- blueprint.yaml: `subdomain` declares
  `from: connection.cloudflare.workersSubdomain`; the bootstrap door fills it
  from the connection the build is bound to, so the console renders no field
- testing/manifest.test.sh: cirrus's block, byte for byte — accepts the source
  and requires its provider in spec.requires.integrations (mutation-checked)
- repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/01-scaffold.md and
  docs/phases/README.md: a hand-run build still passes --set subdomain
- saas-bootstrap-factory IMPLEMENTATION-STATUS: dated record (Lumen has no
  BE3 note or risk #13 to supersede)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
…06-console, parked

`07-domain` was the one conditional phase: off unless `--set domain=true`,
landing a single component that ships parked (`subscribe.environments: []`),
so its convergence was a green run with nothing in it. The switch turned on a
component that is already off. Ported from cirrus-baseline #31; Lumen keeps
its landings, so the component folds into 06-console, the last landing that
converges a deploy and the one that places web-console-next.

- repo-blueprint.yaml: the `domain` input, its values.json key and the
  07-domain phase are gone; cloudflare-domain joins 06-console's modules
- blueprint.yaml: the programme lists seven milestones
- docs/phases/07-domain.md and tasks/07-domain.TaskContract.yaml deleted; what
  is still true (parked, v5 fence, zone first, restore the subscribe block) is
  a section of docs/phases/06-console.md and a row in ai/context/operations.md
- 06-console's contract leaves cloudflare-domain out of `affects` (parked)
- tests: phases.test.sh expects cloudflare-domain in 06-console; leak and
  placement no longer force `domain` on (1103 files placed, the identical set);
  the phased sequence places 08-docs after 06-console
- tests/fixtures/acme.json drops "domain": false
- records: saas-bootstrap-factory IMPLEMENTATION-STATUS section; a "Since
  then" note in saas-baseline-tracking

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 850f379 into main Oct 21, 2026
7 checks passed
ruehowl pushed a commit that referenced this pull request Oct 22, 2026
The product answers on workers.dev from its first deploy and nothing in the
build needs a domain, so the console card no longer asks for one. Everything
that uses the domain stays where it is, carrying a placeholder until an owner
sets it. Ported from turso-starter #9.

- blueprint.yaml: no productdomain input, and no apibaseurl (it derived from
  {productdomain}; a card can only derive from inputs it declares)
- repo-blueprint.yaml: productdomain optional, default empty
- rebrand.mjs: productdomain no longer required; empty brands the reserved
  placeholder <reponame>.example.com where lumen.app stood (intent
  BASE_DOMAIN/CONSOLE_CUSTOM_DOMAIN, edge and identity origins, mail sender,
  billing success URLs); with no domain the CLI default is the prod edge,
  https://<brandSlug>-api-edge-prod.<subdomain>.workers.dev
- ai/context/operations.md: "Setting the domain later"
- render-deployment-docs.sh: the placeholder is no domain to probe
- tests: fixture carries no domain; placement checks the product's CLI
  default and placeholder instead of the card's derive; rebrand.test.sh
  covers no domain, an empty one and a given one; CI reads the blueprint
  with no domain
- docs: BOOTSTRAP.md, docs/phases; record in saas-bootstrap-factory
  (baseline-v30, with #115)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
ruehowl added a commit that referenced this pull request Oct 22, 2026
* feat: read the workers.dev subdomain from the Cloudflare connection

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 CORS, OAuth origins, smoke checks and
the verify URLs. Ported from cirrus-baseline #30.

- blueprint.yaml: `subdomain` declares
  `from: connection.cloudflare.workersSubdomain`; the bootstrap door fills it
  from the connection the build is bound to, so the console renders no field
- testing/manifest.test.sh: cirrus's block, byte for byte — accepts the source
  and requires its provider in spec.requires.integrations (mutation-checked)
- repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/01-scaffold.md and
  docs/phases/README.md: a hand-run build still passes --set subdomain
- saas-bootstrap-factory IMPLEMENTATION-STATUS: dated record (Lumen has no
  BE3 note or risk #13 to supersede)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha

* feat: remove the domain input — the custom-domain component lands in 06-console, parked

`07-domain` was the one conditional phase: off unless `--set domain=true`,
landing a single component that ships parked (`subscribe.environments: []`),
so its convergence was a green run with nothing in it. The switch turned on a
component that is already off. Ported from cirrus-baseline #31; Lumen keeps
its landings, so the component folds into 06-console, the last landing that
converges a deploy and the one that places web-console-next.

- repo-blueprint.yaml: the `domain` input, its values.json key and the
  07-domain phase are gone; cloudflare-domain joins 06-console's modules
- blueprint.yaml: the programme lists seven milestones
- docs/phases/07-domain.md and tasks/07-domain.TaskContract.yaml deleted; what
  is still true (parked, v5 fence, zone first, restore the subscribe block) is
  a section of docs/phases/06-console.md and a row in ai/context/operations.md
- 06-console's contract leaves cloudflare-domain out of `affects` (parked)
- tests: phases.test.sh expects cloudflare-domain in 06-console; leak and
  placement no longer force `domain` on (1103 files placed, the identical set);
  the phased sequence places 08-docs after 06-console
- tests/fixtures/acme.json drops "domain": false
- records: saas-bootstrap-factory IMPLEMENTATION-STATUS section; a "Since
  then" note in saas-baseline-tracking

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha

* feat: the console asks for no domain — the domain is set later

The product answers on workers.dev from its first deploy and nothing in the
build needs a domain, so the console card no longer asks for one. Everything
that uses the domain stays where it is, carrying a placeholder until an owner
sets it. Ported from turso-starter #9.

- blueprint.yaml: no productdomain input, and no apibaseurl (it derived from
  {productdomain}; a card can only derive from inputs it declares)
- repo-blueprint.yaml: productdomain optional, default empty
- rebrand.mjs: productdomain no longer required; empty brands the reserved
  placeholder <reponame>.example.com where lumen.app stood (intent
  BASE_DOMAIN/CONSOLE_CUSTOM_DOMAIN, edge and identity origins, mail sender,
  billing success URLs); with no domain the CLI default is the prod edge,
  https://<brandSlug>-api-edge-prod.<subdomain>.workers.dev
- ai/context/operations.md: "Setting the domain later"
- render-deployment-docs.sh: the placeholder is no domain to probe
- tests: fixture carries no domain; placement checks the product's CLI
  default and placeholder instead of the card's derive; rebrand.test.sh
  covers no domain, an empty one and a given one; CI reads the blueprint
  with no domain
- docs: BOOTSTRAP.md, docs/phases; record in saas-bootstrap-factory
  (baseline-v30, with #115)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha

---------

Co-authored-by: Claude <noreply@anthropic.com>
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