Skip to content

AC7: 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 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;
  • its public origin (SITE_URL, the base for the Open Graph images) falls back to the environment's workers.dev URL until an owner sets it;
  • the smoke and the phase probes read the workers.dev URL;
  • the only place the repository names the domain is BASE_DOMAIN in intent.yaml (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, so the console asks for the product's name alone.
  • repo-blueprint.yaml: productdomain is optional, with an empty default. Nothing else in the build reads it (no hook, probe or when:), so an empty value is harmless. 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. Setting the real domain later means replacing that one string.
  • The product's README ("Custom domain", next to SITE_URL) and ai/context/operations.md: both ship with the product. They now say to replace the placeholder in BASE_DOMAIN when the domain is attached.
  • 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 AC7 with task AC-9, recorded as tagged baseline-v3.

Verified locally

check result
testing/{manifest,phases,coverage,rebrand,retouch,bootstrap-defer,wire}.test.sh all exit 0
mutation: the previous rebrand.mjs under the new rebrand.test.sh the 2 new checks fail; restored, all pass
gen-component-docs.py --check exit 0 (8 components)
orun new --status with no productdomain (orun v2.58.11) exit 0; 01-product pending, 294 files
testing/leak.test.sh (orun v2.58.11) exit 0; 294 files derived, 287 text files read
testing/placement.test.sh (orun v2.78.4) exit 0; 294 files placed with the no-domain fixture; the plan orders supabase → cloudflare-hyperdrive → db-migrate → web and cloudflare-r2 → web; --resume places nothing again
offline bootstrap of the fixture .rebrand/values.json productdomain is ""; BASE_DOMAIN: acme-chatbot-hq.example.com in all 3 environments, plus the README and operations.md; no line names ai-chatbot.example.com
orun task check AC-9 complete yes

The e2e tier was not run locally. Its URLs come from reponame and subdomain, not the domain, and 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 all eight components
  from what each 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 AC5 (shipped, tagged baseline-v1) and record AC6 (AC-7).
- design.md: mark what AC5 superseded — Workers AI is the default model
  (the gateway only with AI_GATEWAY_API_KEY), AUTH_SECRET is optional (the
  database's key), wrangler.jsonc is committed, the Supabase root publishes
  three outputs; risk AC-C notes the lookups are now gateway-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
Nothing outside this milestone's own record names kiox — the record of
the removal necessarily does.

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 is `from:
  connection.cloudflare.workersSubdomain`, as cirrus-baseline since
  baseline-v23 (#30); the console renders no field for it
- testing/manifest.test.sh: cirrus's rule verbatim, accepting the source
  only when spec.requires.integrations lists its provider (mutation-checked)
- repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/README.md: only a hand-run
  build passes --set subdomain
- records: AC-8 under AC6, status, plan, epic index, ai/context

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, so the console 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, every environment), so setting it later is
  replacing one string
- the product README ("Custom domain", beside SITE_URL) 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: AC7 / AC-9, 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:02
@ruehowl
ruehowl merged commit 9255ca7 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