Repository navigation
feat: subdomain from the Cloudflare connection; remove the domain input - #115
Merged
Merged
Conversation
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
marked this pull request as ready for review
October 21, 2026 12:19
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two changes, one commit each, ported from cirrus-baseline (#30 and #31). This will be tagged
baseline-v30after merge, and the records already saybaseline-v30.What changes
1. The workers.dev
subdomainis read from the Cloudflare connection, not typedsubdomainwas 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:subdomaindeclaresfrom: 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 connectionCLOUDFLARE_ACCOUNT_IDand 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 listscloudflareinspec.requires.integrations.testing/manifest.test.sh: cirrus's block, copied byte for byte from cirrusmain. It accepts the new source and requires its provider inspec.requires.integrations.repo-blueprint.yaml: thesubdomaindescription says a console or--from bst_…build gets the value from the connection. Pass it with--setonly for a hand-run build. The default is unchanged.BOOTSTRAP.md: a paragraph after the firstorun newexample; the console-path bullet (onlyproductnameandproductdomainare typed now); and the troubleshooting row.docs/phases/01-scaffold.mdanddocs/phases/README.md: thesubdomainrows.specs/epics/saas-bootstrap-factory/IMPLEMENTATION-STATUS.mdis the record instead.2. The
domainon/off input is removed, and07-domainfolds into06-console07-domainwas the one conditional phase (when: inputs.domain), and it landed a single component,cloudflare-domain. That component ships parked (subscribe.environments: [], checked in itscomponent.yaml), so the phase's convergence was a green run with nothing in it. The switch turned on a component that is already off.productdomainis unchanged.repo-blueprint.yaml:domaininput is gone, along with the"domain"key in the.rebrand/values.jsontemplate.07-domainphase is deleted.cloudflare-domainjoins06-console's modules. That is the last landing that converges a deploy, and it placesweb-console-next, which the component routes anddependsOn.08-docskeeps its name.08-docsalready required06-console.blueprint.yaml: the programme now has seven milestones;07-domainand itswhen: domainare gone.docs/phases/07-domain.mdandtasks/07-domain.TaskContract.yaml.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 thesubscribeblock.ai/context/operations.md(which ships to products) says the same without naming a factory path.tasks/06-console.TaskContract.yaml: a comment explains whycloudflare-domainis not inaffects. A parked component deploys nothing.phases.test.sh: the partition expectscloudflare-domainin06-console. The file has no FOLDED map, so a comment records the move.leak.test.shandplacement.test.sh: they no longer forcedomainon. The phased sequence now places08-docsafter06-console.manifest.test.sh: comments only.tests/fixtures/acme.jsondrops"domain": false.BOOTSTRAP.md,README.md,docs/phases/README.md,docs/phases/08-docs.md,docs/phases/01-scaffold.mdanddocs/phases/TIMINGS.mdnow say nine phases and seven milestones. A one-line comment intooling/rebrand/rebrand.mjsno longer names 07-domain.domaininput, removed (2026-10-21,baseline-v30)", in the same IMPLEMENTATION-STATUS.specs/epics/saas-baseline-tracking/README.md, next to its8/8rollup.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--statusran with orun 2.58.11, the pin CI uses.main(before)testing/manifest.test.shtesting/phases.test.shtesting/coverage.test.shtesting/rebrand.test.shorun new --status(blueprint-parses)testing/leak.test.shtesting/placement.test.shdomainforced on);01 → 0701 → 08through the rebrand;--resumekeeps the brandingmainatdomain=true06-console's 186 =main's 06-console (176) + 07-domain (10)cloudflareremoved from the card'sspec.requires.integrationsmanifest.test.shexit 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:
07-domain,domain=true,inputs.domainand"domain": true/falseoutsidespecs/finds only history ("it used to be 07-domain").tooling/rebrand/rebrand.mjschanged only in a comment, andnode --checkpasses.tests/fixtures/acme.jsonis read only bytesting/*.sh. Neither is a pnpm workspace package, so the pnpm lanes and e2e were not run.Generated by Claude Code