front-door: gateway-attach — the provision-time step that wires front-door.nix into the gateway machine config #251
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.
Dependencies
No dependencies set.
Reference
Matou/idss#251
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
Front-door epic #219 — the attach leg its landed code slice (
27e08c0) exported but deliberately did not wire (#219 comment, 2026-07-31). Lineage: founding spec #11 (gateway role, ADR 0013) + members spec #19 (the gated door, ADRs 0074/0076), via #219.What's true today
clan.RenderFrontDoor(internal/clan/frontdoor.go, landed27e08c0) is a pure exported render: given the route set (slug → ruled host → mesh target → exempt paths) it emits the gateway'sfront-door.nixin the ADR 0102 templating layer, deterministic and seam-tested. Nothing calls it.What to build
The provision-time attach step: when the live service set or placement changes, assemble the route set (slug → ruled host from the #218 authority → mesh target from live placement → the port's exempt paths), call
clan.RenderFrontDoor, and writefront-door.nixinto the gateway machine's config under the clan single-writer (ADR 0102). The module lands only in a gateway machine dir, preserving #219 AC-4 (a non-gateway node imports none of it).Acceptance criteria
wt0) to its placed node, behindforward_authnaming its slug, exempt paths honouredfront-door.nix, no spurious single-writer churn)Task manifest
Blocks
The live wildcard smoke proving #219 AC-1/AC-3 needs this and the sibling
front-door: acme-dns-registrationticket; that smoke lives in the #183 leg B·3 arena — left unlinked from #183 for Ben to judge, per #219's own precedent.ben referenced this issue2026-08-01 00:48:09 +00:00
Landed in
14dd1c0onmain.(*clan.Adapter).AttachFrontDoor(internal/clan/frontdoor_attach.go) is now the provision-time caller ofclan.RenderFrontDoor(which #219 landed but nothing wired). It takes a fake-ableFrontDoorLiveSet(gateway node + apex + gateway-level facts + each provisioned service's live placement) and JOINS it into the render's route set:internal/hostnames, ADR 0113) — never carried; a no-hostname slug (front-door/backup-copy) or reserved label gets no route rather than a fabricated one (AC-1 host-matched forward_auth route over the mesh, exempt paths honoured);front-door.nixand writes it intomachines/<gateway>/ONLY, under the clan single-writer (ADR 0102) — a non-gateway machine gains nothing (AC-3 / #219 AC-4);Evidence: 5 attach seam tests over a real single-writer repo + a fake live set in
internal/clan/frontdoor_attach_test.go(the render itself stays seam-tested infrontdoor_test.go); full Go gate (build/vet/test/lint + broker) green. STATUS.md updated (header lead + milestone-log). Next: the live wildcard clan-lab smoke (#183 leg B·3) needs this + #252.