Self-hosted founding renders no gateway — thread GatewayFacts (incl. claim secret) at the pair/deploy join point so a production self-hosted gateway boots the heartbeat ARMED (#519 follow-up) #535
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#535
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?
Symptom / gap
Phase-3 rehearsal Task 5 (#519) mirrored #505's claim-secret carriage onto the
SELF-HOSTED full-install gateway render and locked it with two CI-runnable
parity teeth. But tracing the code confirmed (as #519's earlier blocked note
did) that the self-hosted founding path never renders the gateway
founding-side at all — so a PRODUCTION self-hosted gateway does not yet carry
the claim secret, and its address heartbeat would rest.
installOwnVPS(internal/founding/ownvpspath.go) builds thefull
GatewayFacts(apex +PublicGatewayFacts+ClaimSecret+ theclaim-secret
Answer) and callso.clan.Enroll(FullInstall, Gateway: ...),which composes
control-plane.nixviawriteNodeConfig+AttachGateway.seedCommunityFlake(internal/founding/privatepath.go)does the same with
Install: VMMode.internal/founding/manualpath.go→Orchestrator.Pair→RunReachability→RunDeploy): the device runs the install command andpairs via
o.enroll.Pair(the in-process enroll ledger, NOTo.clan.Enroll);RunDeployapplieso.clan.Config().Head(). Nothing assemblesGatewayFactsor composes amachines/<node>/gateway dir for this path —the draft's apex/claim-secret are consumed only for broker name-wiring
(
wireName→broker.PointSubdomain).renderControlPlaneSurfacealready carries the claim secret + apex when thefacts set them (#505); the missing piece is the founding-side wiring that
builds those facts for the self-hosted path.
Proposed fix (proposed default ruling under ADR 0174)
Option A (from #519's blocked note): give the self-hosted founding path its
own gateway-compose leg — a self-hosted analogue of
installOwnVPSat thepair/deploy join point that assembles
GatewayFacts(apex from the draftaddress, IP from the S10 reachability probe, ports, root keys from the pairing
probe,
ClaimSecretgated onAddressSubdomain) and composes the gatewaymachine dir (
AttachGateway) in the operator's config repo BEFORERunDeployapplies
Config().Head(). ReuseclaimSecretAnswers(ownvpspath.go) for thein-memory secret feed. This mirrors #505's landed thread exactly, one path over.
The #519 parity teeth (
TestEnroll_FullInstallGatewayCarriesClaimSecret,TestSelfHostedGatewayAssembly_CarriesFullBaseline) already guard the assemblythis wiring must produce, so the change is test-provable.
Blocks
Phase-3 rehearsal Task 7 (
heartbeat-repointleg) needs a PRODUCTIONself-hosted gateway that boots the heartbeat ARMED, so the self-hosted drive
cannot green until this lands. Found while working #519 (phase-3 spec
docs/superpowers/specs/2026-08-14-183-phase-3-home-gateway-rehearsal-design.md,section c).
close-report for #535 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope