Skip to content

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

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, the same as cirrus-baseline made in 7bd21bd (#30) and 07219ef (#31). Once merged, this is tagged baseline-v4. The records already name that tag.

What changes

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

The subdomain belongs to the Cloudflare account, just as the account id does, and it has exactly one right answer. A typed value could only be wrong, and a wrong one only showed up after deploy: in CORS, OAuth origins, smoke checks and the verify URLs.

  • blueprint.yaml: the subdomain input now declares from: connection.cloudflare.workersSubdomain, with the reason written at the field.
    • The integration reads the subdomain at connect and on its hourly health check.
    • 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.
    • An account with no workers.dev subdomain is refused at the door, before anything is created.
    • The card already requires [github, cloudflare, supabase].
  • testing/manifest.test.sh: accepts the new source and requires its provider in spec.requires.integrations. The block is copied byte for byte from cirrus-baseline.
  • repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/01-scaffold.md, docs/phases/README.md: a console or --from bst_… build never asks for the subdomain; only a hand-run build passes --set subdomain. BOOTSTRAP.md's console section said "productname, productdomain and subdomain are typed"; it now says only the first two are.
  • Records: this repo has no BE3 status entry or risk New test 2 #13 to mark superseded or answered. The change is recorded instead as a dated section, with a "Superseded" note, in specs/epics/saas-lumen-baseline/IMPLEMENTATION-STATUS.md.

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

07-domain was the one conditional phase. It landed a single component, cloudflare-domain, which ships parked (subscribe.environments: [], checked). Its convergence was a green run with nothing in it, so the switch turned on a component that was already off. productdomain is unchanged.

  • repo-blueprint.yaml:
    • The domain input and its .rebrand/values.json key are gone, and the 07-domain phase is deleted.
    • cloudflare-domain joins 06-console's modules. That is the last landing that converges a deploy, and the one that places the console the custom domain routes.
    • 08-docs already required 06-console. The numbering keeps its gap.
  • blueprint.yaml: the programme drops the conditional 07-domain milestone. There are now nine phases under seven milestones.
  • Tasks: tasks/07-domain.TaskContract.yaml is deleted. 06-console's contract leaves the parked component out of affects and says why in a comment.
  • Docs:
    • docs/phases/07-domain.md is deleted. What is still true moves to a "The custom domain — parked" section of docs/phases/06-console.md: the zone must exist first, then restore the subscribe block, finish the provider-v5 re-import, and re-run 08-docs.
    • docs/phases/README.md, 08-docs.md, 01-scaffold.md and TIMINGS.md, plus BOOTSTRAP.md, are updated.
    • ai/context/operations.md (which ships) points at infra/terraform/cloudflare-domain and names no factory path.
  • Tests:
    • phases.test.sh records 07-domain as FOLDED into 06-console, in cirrus's shape; WAS is kept as history.
    • leak.test.sh and placement.test.sh no longer force domain on.
    • The phased placement sequence now ends with 08-docs, which requires the drifted 06-console.
    • tests/fixtures/acme.json drops "domain": false.
  • Records: a "Since then" note under the epic's historical phase table in design.md, and a dated "The domain input, removed" section in the status page.

Verified locally

Leak and placement ran with orun 2.58.11, the baseline.yml pin. Every exit code was checked explicitly.

check main (unmodified) this branch
testing/manifest.test.sh exit 0 — 8 milestones exit 0 — 5 secrets, 7 milestones agree
testing/phases.test.sh exit 0 — 64 narration lines exit 0 — 58 narration lines resolve
testing/coverage.test.sh exit 0 — 44 of 44 exit 0 — 44 of 44 components placed
testing/rebrand.test.sh exit 0 exit 0
render-component-docs.py --check exit 0 — 44 up to date exit 0 — 44 up to date
orun new --status (blueprint-parses) exit 0 exit 0 — nine phases
testing/leak.test.sh exit 0 — 1083 files derived exit 0 — 1083 files derived, 2 context files, no factory paths
testing/placement.test.sh exit 0 — 1083 placed (domain forced on); 01 → 07 exit 0 — 1083 placed, 1083 product files; 01 → 08 place through the rebrand; --resume keeps the branding

Placed-file count: 1083 before (main, domain forced on) and 1083 after. The same files are placed; 06-console now places the custom-domain component.

Mutation check (subdomain): deleting cloudflare from the card's spec.requires.integrations makes manifest.test.sh fail with exit 1, naming inputs[subdomain].from is 'connection.cloudflare.workersSubdomain' but spec.requires.integrations does not list cloudflare. After git checkout -- blueprint.yaml it passes again (exit 0).

Mutation check (fold): dropping cloudflare-domain from 06-console's modules makes phases.test.sh fail with exit 1 (phase 06-console … lost ['cloudflare-domain']). Restored, it passes.

Leftover check: git grep -i '07-domain\|domain=true\|inputs.domain\|"domain": (true|false)' -- . ':!specs' only finds history notes.


Generated by Claude Code

- blueprint.yaml: the subdomain input declares
  from: connection.cloudflare.workersSubdomain, with the reason at the field;
  the card already requires [github, cloudflare, supabase]
- testing/manifest.test.sh accepts the source and requires its provider in
  spec.requires.integrations (cirrus-baseline's block, verbatim;
  mutation-checked)
- repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/01-scaffold.md and
  docs/phases/README.md: a console or --from bst_… build never asks for it;
  only a hand-run build passes --set subdomain
- saas-lumen-baseline status: dated record, with a superseded note for the
  console section that called the field typed

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

- repo-blueprint.yaml: the `domain` input, its .rebrand/values.json key and
  the 07-domain phase are gone; cloudflare-domain joins 06-console (it ships
  parked: subscribe.environments: [])
- blueprint.yaml: the programme drops the conditional 07-domain milestone
  (nine phases, seven milestones)
- tasks/07-domain.TaskContract.yaml and docs/phases/07-domain.md deleted;
  what is still true is a section of docs/phases/06-console.md and a row in
  ai/context/operations.md; 06-console's contract says why `affects` leaves
  the parked component out
- tests: phases.test.sh records 07-domain as folded into 06-console;
  leak/placement no longer force `domain` on (1083 files placed, as before);
  the phased sequence places 08-docs after the rebrand
- tests/fixtures/acme.json drops "domain": false
- docs and records: BOOTSTRAP.md, docs/phases/*, a "Since then" note on the
  epic's phase table, and a dated status section

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 aa38114 into main Oct 21, 2026
8 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. As 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 sourceplane.ai stood as the
  product domain (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
- cloudflare-domain README examples name sourceplane.ai and
  sourceplane-web-console-next, so they follow the placeholder and the
  console Worker like baseDomain/workerNamePrefix already did (cirrus #32)
- 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-lumen-baseline
  (baseline-v4, with #364)

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

- blueprint.yaml: the subdomain input declares
  from: connection.cloudflare.workersSubdomain, with the reason at the field;
  the card already requires [github, cloudflare, supabase]
- testing/manifest.test.sh accepts the source and requires its provider in
  spec.requires.integrations (cirrus-baseline's block, verbatim;
  mutation-checked)
- repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/01-scaffold.md and
  docs/phases/README.md: a console or --from bst_… build never asks for it;
  only a hand-run build passes --set subdomain
- saas-lumen-baseline status: dated record, with a superseded note for the
  console section that called the field typed

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

- repo-blueprint.yaml: the `domain` input, its .rebrand/values.json key and
  the 07-domain phase are gone; cloudflare-domain joins 06-console (it ships
  parked: subscribe.environments: [])
- blueprint.yaml: the programme drops the conditional 07-domain milestone
  (nine phases, seven milestones)
- tasks/07-domain.TaskContract.yaml and docs/phases/07-domain.md deleted;
  what is still true is a section of docs/phases/06-console.md and a row in
  ai/context/operations.md; 06-console's contract says why `affects` leaves
  the parked component out
- tests: phases.test.sh records 07-domain as folded into 06-console;
  leak/placement no longer force `domain` on (1083 files placed, as before);
  the phased sequence places 08-docs after the rebrand
- tests/fixtures/acme.json drops "domain": false
- docs and records: BOOTSTRAP.md, docs/phases/*, a "Since then" note on the
  epic's phase table, and a dated status section

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. As 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 sourceplane.ai stood as the
  product domain (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
- cloudflare-domain README examples name sourceplane.ai and
  sourceplane-web-console-next, so they follow the placeholder and the
  console Worker like baseDomain/workerNamePrefix already did (cirrus #32)
- 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-lumen-baseline
  (baseline-v4, with #364)

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