provision: assemble the real GatewayLiveSet — thread founding→enrollment facts, retire the baseline-only placeholder (#351's AC2) #354
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#354
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?
The slice
The gateway half of the live-set orchestrator — AC2 split out of #351 by Ben's ruling (option A, 2026-08-09): #351 delivered the helper-role path (
e4c7970: P4 files-deploy drives the realAttachFiles, phantomclan-corewrite retired); this ticket assembles the realGatewayLiveSetand retires the enrollment placeholder.What to build
AttachGateway's live modules need are absent fromEnrollRequest/GatewayFacts(whose own doc notes "Task 9 fills it from founding"): the community apex, mesh targets, IdP host, delegated zone, and secret file paths. Founding has all of them; carry them through.GatewayLiveSetfrom what is actually placed — front-door / acme-dns / code / mail (and the Files slot once #352 lands): a productionFrontDoorLiveSetassembly (today only tests build one), each slot live iff placed, nothing fabricated.enrollment.go:265's baseline-only placeholder — the composition that admits "the enrollment path assembles no service live set yet".Acceptance
AttachGatewaywith the live set derived from fleet state + founding facts; the placeholder comment and empty live set are gone.configuration.nix(the S13 dead-text trap stays closed).configuration.niximports the real live set.Relations
_acme-challengebroker wiring depends on this assembly (per STATUS.md).Landed on origin/main as
56c5a5c(AC2 split from #351, Ben's option A).The real GatewayLiveSet is assembled; the baseline-only placeholder is retired.
GatewayFacts.Public *PublicGatewayFacts(internal/clan/clan.go) carries the publicly-exposed gateway's apex, IP, control-plane gate URL, and loopback-kanidm cert/key/port: the inputs the front door + self-hosted acme-dns need thatEnrollRequest/GatewayFactsdid not carry.assembleGatewayLiveSet(internal/clan/gateway_attach.go) is theFrontDoorLiveSetassembly the tree lacked (only tests built one). Front door live iff an apex is placed; acme-dns joins once the public IP is known; code/mail left to the fleet's later colocation (#352). The IdP login host and the delegated zone/NS/mailbox are DERIVED from the apex (ADR 0113), never carried — new authorityhostnames.IDP→id.<apex>, withidreserved. Missing inputs are honest refusals, never fabricated defaults (the apex posture #351 set).enrollment.go's configure stage derives the live set from the founding facts and drivesAttachGatewaywith it; theGatewayLiveSet{Gateway: node}literal and its "assembles no service live set yet" comment are gone. The private VM demo leavesPublicnil (kanidm binds localhost — no public front door to compose), documented atfounding/privatepath.go's enroll site.Acceptance evidence (
internal/clan/gateway_liveset_test.go,internal/hostnames/hostnames_test.go):AttachGatewaywith the derived live set; placeholder gone ✅configuration.nix— proven by the whole-composition test: production assembly →AttachGateway→ aconfiguration.niximporting the realfront-door.nix+acme-dns.nix, parseable Nix (nix-instantiate --parse) ✅Publicrefused; acme-dns withheld until the IP is known, never fabricated) ✅Unblocks #324 (
_acme-challengebroker wiring) and #352 (headroom colocation).go build/vet/test+ gofmt + golangci-lint green (full pre-push gate passed). STATUS.md updated (header + milestone log).