control-plane: service-hostnames — one slug→URL authority under the wildcard, ruled and real #218
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#218
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Founding spec #11 (ADR 0014 one-registrar-visit) + provisioning spec #17 (portal publication). Contract-gap sweep 2026-07-30, filed on Ben's request.
What's true today
cloud.,chat.,git.) is covered by the wildcard record and wildcard cert automatically" — and founding writes the wildcard A record (internal/founding/access.gogatewayDNSRecords). But no function anywhere maps a catalogue slug to a hostname:catalogue.Serviceandclan.ServiceInstancecarry no address field, and the per-service names have never been ruled.admin.<apex>is a wireframe convention only — 30+ occurrences indocs/ux/wireframes/**browser chrome and in test fixtures, fixed in no ADR, architecture doc, or code. Meanwhile the portal is placed at the apex by CONTEXT.md and ADR 0007. The apex-vs-admin.split is undocumented-but-assumed.PortalLinks.ServiceUp(service string)(internal/provision/health.go) — the port that publishes a passed service to the portal — has no production implementation, only the test fake. (The portal page itself is also unbuilt; publication should land somewhere durable the portal will later read.)What to build
A ruling first, then one authority:
admin.<apex>or otherwise), the portal at the apex, and the reserved names (get,acme,acme-dns, invite paths).PortalLinksthat records a passed service's published URL durably (state-directory ledger per ADR 0103, or config-repo doc — follow the ruling), so the portal has a truth to render when it arrives.Acceptance criteria
Task manifest
Blocks
The ingress-and-tls ticket (routes need ruled names). Filed as a native dependency.
Ruled by Ben, 2026-07-30 — slug-as-subdomain.
<slug>.<apex>for every hostable service; portal at the apex; dashboard ratified atadmin.<apex>;/getstays on the apex per ADR 0054 (the p2-s2 wireframe chrome is flagged as an erratum, not silently redrawn); reserved namesadmin,acme,acme-dns,www;front-door/backup-copyget no hostname. Recorded as ADR 0113 (docs/adr/0113-service-hostnames-slug-as-subdomain.md) — this IS the ADR the ticket asked for, so what remains is the derivation authority + real PortalLinks. Theneeds_human_decisionis resolved.Blocked on the
needs_human_decision: the canonical hostname map (an ADR). The ticket's first deliverable is a ruling — mapping each catalogue slug to a subdomain, placing the dashboard and portal, and fixing the reserved names — and no prior ruling exists in the comments. This is a genuine judgement call: the catalogue slugs (files,code,docs-editing,meetings,static-sites,mail,chat,front-door,backup-copy) do not map obviously onto ADR 0014'scloud./chat./git.examples, and theadmin.<apex>dashboard home is a wireframe convention that has never been fixed in an ADR.Asked Ben via Mattermost (2026-07-31) with a concrete proposal; no reply within the wait window. Re-arming as
ready-for-human.Proposed map to rule (confirm or adjust):
Fixed points (already implied by docs):
example.nz) — CONTEXT.md + ADR 0007Catalogue slug → subdomain (the real decision):
cloud.chat.git.docs.meet.mail.(webmail UI)sites.Reserved names:
get.<apex>→ agent/app install downloadacme.<apex>/acme-dns→ ACME delegation (ADR 0014)example.nz/invite/...) rather than a subdomain?Open questions for the human: (1) the four non-obvious slugs —
docs-editing→docs.,meetings→meet.,static-sites→sites.; (2) invites as an apex path vs aninvite.subdomain. Once ruled, the rest of the ticket (the single derivation authority + a realPortalLinkspublishing durably per ADR 0103) is straightforward implementation with no further decisions.Correction — the
needs_human_decisionis already ruled; re-armingready-for-agent. My earlier block on this issue this iteration was based on a stale view: the rulings commit2f9b93chad already landed ADR 0113 (docs/adr/0113-service-hostnames-slug-as-subdomain.md), which rules the canonical hostname map. My Mattermost ask crossed with that already-committed ruling.Ben's ruling (ADR 0113) supersedes the proposal I posted above:
<slug>.<apex>— mechanical, no mapping table (files.<apex>,chat.<apex>,code.<apex>,docs-editing.<apex>,meetings.<apex>,mail.<apex>,static-sites.<apex>).front-doorandbackup-copyhave no hostname.admin.<apex>(the wireframe convention is now the contract).https://<apex>/get(ADR 0054 stands; the p2-s2admin.<apex>/getchrome is an erratum flagged for design-verify).admin,acme,acme-dns,www.No human decision remains: this is now pure implementation — one derivation authority (the brandkit pattern) mapping slug + apex → URL per ADR 0113, and a real
PortalLinksthat publishes a passed service's URL durably (ADR 0103). Removingready-for-human, restoringready-for-agentso the next iteration implements it against ADR 0113.Done in
2922cc3(on origin/main).ADR 0113's slug-as-subdomain map is now real, per the ruling already recorded (needs_human_decision resolved):
internal/hostnames(the brandkit pattern):Service(apex, slug)→https://<slug>.<apex>mechanical,Portal→ apex,Dashboard→admin.<apex>,Install→<apex>/get,Reservedforadmin/acme/acme-dns/www;front-door/backup-copyand reserved labels derive no URL (ok=false). The sole place slug + apex → URL — no consumer invents a hostname (AC1).PortalLinks—provision.FilePortalLedgerderives a health-passed service's URL from that authority under the community apex and records it durably as ajsonstore.Filedocument (portal-links.json, ADR 0103 §1) where the portal will read it viaLinks()(AC2). A no-hostname service publishes nothing; a write fault is logged, never fabricated (ADR 0100).Wiring:
composeWholewiresWithPortalLinksover the File ledger when the community apex is present (OURCLOUD_COMMUNITY_APEX); no apex or the resting composition publishes nothing — honest resting (AC3).Seams:
internal/hostnames/hostnames_test.go(the derivation),internal/provision/portal_test.go(durable publication),control-plane/cmd/control-plane/portal_publication_test.go(the composition seam — a passed service's URL lands durably, a withheld service and the resting composition publish nothing).Out of scope as filed: the portal page itself, Caddy route generation (#219), DNS record changes. No Go toolchain in the sandbox (#198) — verified by review.
Unblocks #219 (the ingress ticket — routes now have ruled, derivable names).