Skip to content

CS5: the console asks for no domain — the domain is set later - #7

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

Why

The console's Product step asked for the blog's domain, and its help text said the domain did not need to exist. Nothing in the build needs one:

  • the blog answers on workers.dev from its first deploy;
  • it renders no absolute link to itself. The share-image base URL is the Sanity Settings document's metadataBase, which is set in the Studio;
  • the only place the repository names the domain is BASE_DOMAIN in intent.yaml, for dev, stage and prod.

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 only for the blog's name.
  • repo-blueprint.yaml: productdomain is optional, with an empty default. A hand-run build can still pass --set productdomain= for a blog that already has its domain. No hook, probe or when: reads it. Only the .rebrand/values.json template does, and it writes "".
  • tooling/rebrand/rebrand.mjs: productdomain is no longer required. When it is empty, the rebrand writes the reserved placeholder <reponame>.example.com wherever the domain goes. RFC 2606 reserves that name, so it can never be someone else's domain. Setting the real domain later means replacing that one string.
  • The product's README ("Custom domain") and ai/context/operations.md: both ship with the blog. They now tell the owner to attach the domain in Cloudflare, add it to the Sanity CORS origins, and replace the placeholder in BASE_DOMAIN.
  • 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.
    • The fixture's slug ends in the baseline's own slug. Its placeholder, acme-cms-sanity.example.com, therefore contains the baseline's cms-sanity.example.com.
    • testing/rebrand.test.sh pins the placeholder in four cases: an absent domain, an empty domain, that containing placeholder over three passes, and --verify with the values.
    • baseline.yml's blueprint read sets no domain.
  • Factory docs: BOOTSTRAP.md, README.md and docs/phases/README.md drop --set productdomain= and list three required inputs.
  • Records: new milestone CS5 with task CS-7, written up as tagged baseline-v3.

Verified locally

check result
testing/{manifest,phases,coverage,rebrand,retouch,bootstrap-defer}.test.sh all exit 0. rebrand.test.sh has 39 checks; the 4 new ones fail against the old rebrand.mjs
gen-component-docs.py --check exit 0 (2 components)
orun new --status (orun v2.58.11) with no productdomain exit 0; 01-product pending, 97 files
testing/leak.test.sh (orun v2.58.11) ok; 97 files derived, 97 read, no factory path named
testing/placement.test.sh (orun v2.78.4) ok with the no-domain fixture; 97 files placed, the blog's own orun plan green, --resume places nothing again and un-brands nothing
the offline-bootstrapped blog, kept and read .rebrand/values.json has "productdomain": "". BASE_DOMAIN: acme-cms-sanity.example.com appears in all 3 environments, and the README and operations.md name the same string (5 lines, 3 files). rebrand --verify finds no leftovers
orun task check CS-7 complete yes

testing/e2e.test.sh was not run locally because nothing in it 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.
  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
The blog goes live on workers.dev from its first deploy and nothing in the
build needs a domain, 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 intent.yaml, dev/stage/prod), so setting it later is
  replacing one string
- 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 (absent, empty, and a slug whose placeholder contains the
  baseline's); baseline.yml's blueprint read sets no domain
- records: CS5 / CS-7, tagged baseline-v3

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 04:01
@ruehowl
ruehowl merged commit 4d796a1 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