Skip to content

SS7: the console asks for no domain — the domain is set later - #9

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

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

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

The console's Product step asked for the product's domain, with help text that said it did not need to exist. Nothing in the build needs one:

  • the app answers on workers.dev from its first deploy;
  • the app's origin is SITE_URL when an environment sets it, and the environment's workers.dev URL when it does not. That origin is what the build bakes into its absolute links and what the Supabase project's Auth Site URL and redirect allow-list are built from;
  • the only place the repository names the domain is BASE_DOMAIN under each environment's env: in intent.yaml, and nothing builds a URL from it.

Attaching a domain is an owner's step after the bootstrap, so the form no longer asks for it. Everything that uses a domain stays in place until one is set.

What changes

  • blueprint.yaml: the card no longer declares productdomain. The Product step asks for the product's name alone.
  • repo-blueprint.yaml: productdomain is optional, with an empty default. No hook, probe or when: reads it; the .rebrand/values.json template writes "". A hand-run build can still pass --set productdomain= for a product that already has its domain.
  • tooling/rebrand/rebrand.mjs: productdomain is no longer required. When it is empty, the rebrand writes the reserved placeholder <reponame>.example.com (RFC 2606, so it can never be someone else's domain) wherever the domain goes: BASE_DOMAIN in dev, stage and prod. Setting the real domain later means replacing that one string.
  • Auth is unchanged: main.tf still builds Auth's Site URL and redirect allow-list from SITE_URL, falling back to https://<repo>-web-<env>.<subdomain>.workers.dev. The placeholder never reaches Auth.
  • The product's README ("Custom domain") and ai/context/operations.md both ship with the product. They now say to replace the placeholder in BASE_DOMAIN, alongside the SITE_URL that moves the app's links and Auth onto the domain. They also say that BASE_DOMAIN on its own is a record and moves nothing.
  • Tests and CI
    • testing/fixtures/acme.json carries no domain, so the leak gate, the offline bootstrap and e2e run with exactly what a console build supplies.
    • testing/rebrand.test.sh pins the placeholder for both an absent and an empty domain.
    • baseline.yml's blueprint read sets no domain.
  • Records: new milestone SS7 with task SS-9, written up as tagged baseline-v4.

Verified locally

check result
testing/{manifest,phases,coverage,rebrand,retouch,bootstrap-defer}.test.sh all exit 0 (rebrand: 31 checks, 2 new)
gen-component-docs.py --check exit 0, 3 components
orun new --status with no domain (orun v2.58.11) exit 0; 01-product pending, 112 files
testing/leak.test.sh (orun v2.58.11) ok; 112 files derived, 104 text files read
testing/placement.test.sh (orun v2.58.11) ok, with the no-domain fixture; 112 tracked files; supabase → web enforced on stage and prod; --resume places nothing again and un-brands nothing
offline bootstrap of the fixture (v2.58.11) "productdomain": ""; acme-supabase.example.com in 3 BASE_DOMAIN lines + README + operations.md (5 lines, 3 files); 0 lines of supabase-starter.example.com left
orun task check SS-9 complete yes

e2e (v2.78.4) was not run locally because no assertion there reads the domain. CI runs it.


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.
- Generate docs/{overview,architecture,runbook}.md for every component
  (web, supabase, 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).
- Close out SS5 (shipped, tagged baseline-v2) and SS4's plan entry
  (shipped, tagged baseline-v1; the plan gains its missing SS5 section),
  and record SS6 (SS-7).

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`; 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: SS-8 joins SS6; status, plan, epic index, current.md and
  decisions.md say SS6 ships as baseline-v3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
The app goes live on workers.dev from its first deploy and nothing in the
build needs a domain — its origin is SITE_URL, else workers.dev — so the
console's Product step no longer asks for one. The logic that uses a domain
stays where it is, waiting for one.

- blueprint.yaml: no productdomain input
- repo-blueprint.yaml: productdomain is optional, default empty
- rebrand.mjs: productdomain no longer required; empty brands the reserved
  placeholder <reponame>.example.com (RFC 2606) where the domain goes
  (BASE_DOMAIN in dev, stage and prod), so setting it later is replacing
  one string; Auth's Site URL and redirects still follow SITE_URL
- the product README and ai/context/operations.md say how to set it
- testing/fixtures/acme.json carries no domain; rebrand.test.sh pins the
  placeholder; baseline.yml's blueprint read sets no domain
- records: SS7 / SS-9, tagged baseline-v4

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 22, 2026 03:55
@ruehowl
ruehowl merged commit 1861544 into main Oct 22, 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