founding: own-domain DNS records keep the placeholder IP — never regenerated once the gateway IP is known #323
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#323
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?
gatewayDNSRecords(internal/founding/access.go:471-487) builds the four records an own-domain operator must type at their registrar. Three of the four carry the gateway IP:When the IP is unknown the value becomes the literal string
"(your gateway's IP — filled once the access IP is known)"withIPKnown:false(access.go:473-476).On the self-hosted path no IP exists at S5 —
RunPreCheckpersists anAccessChoicewith no IP (access.go:309-312). The IP only becomes known at pairing, whereStandup.GatewayIPis set exactly once (internal/founding/standup.go:481).Nothing regenerates the records after that. A self-hosting operator on their own domain is shown three records containing a placeholder sentence and is never shown the real values, so the wildcard, apex and acme-dns glue never get set correctly.
Definition of done
Once the gateway IP is known, the operator is shown the real record set — with a decision on where that surfaces (S10 is the natural home, since it already owns name-wiring). The placeholder path stays honest for the case where the IP genuinely is not known yet.
Found 2026-08-07 while scoping home-gateway reachability (dynamic address / automatic port opening / IPv6). Full trace in
docs/research/2026-08-07-home-gateway-reachability-scope.md.Verified:
gatewayDNSRecords(domain, ip)confirmed to substitute a placeholder string and setIPKnown:falsewhenipis empty. Confirmed it's called withs.Draft.gatewayIP()at the address step, before the self-hosted path's IP is known. ConfirmedStandup.GatewayIPis set exactly once, at pairing, and grepped for any second call site recomputing the record set afterward — none found. Also confirmed the codebase already has an established "S10" screen (reachability + name-wiring) distinct from the address step where the placeholder is shown today, matching the ticket's own suggestion for where this belongs. Claim holds.Agent Brief
Category: bug
Summary: Regenerate own-domain DNS records with the real gateway IP once it's known, and surface them on the name-wiring screen.
Current behavior:
The own-domain DNS record set (apex A, wildcard A, acme-dns NS delegation, acme-dns glue A) is built once, early in founding, before the self-hosted path's gateway IP is known — so it's built with
IPKnown:falseand a placeholder sentence in place of every IP-bearing value. The gateway IP only becomes known later, once, at pairing. Nothing recomputes the record set after that point, so a self-hosting operator on their own domain is never shown the real values.Desired behavior:
Once the gateway IP is known, the operator is shown the real record set (real IP values,
IPKnown:true) on the screen that already owns reachability + name-wiring — not the earlier address-step screen, which should keep showing the honest placeholder for the case where the IP genuinely isn't known yet.Key interfaces:
gatewayDNSRecords(domain, ip)/ theDomainRecordstype it returns — reusable as-is; the gap is that nothing calls it a second time with the now-known IP.Acceptance criteria:
IPKnown:falsebehavior is unchanged (no regression on the honest-placeholder path).Out of scope:
_acme-challengeCNAME wiring (tracked separately as #324).Fixed in
1848a75(onorigin/main).The own-domain record set is now recomputed with the real gateway IP once it is known, on the S10 name-wiring screen — the screen that already owns reachability + name-wiring.
wireName(internal/founding/standup.go,AddressOwnDomaincase) recomputesgatewayDNSRecords(host, ip)with the now-knownStandup.GatewayIPand carries it on a newReachStatus.Records(deep-copied inStandup.clone). The stdio wire boundary serialises it snake→camel like every other field.FoundingReachability.vuerenders the records under the samedata-field="dns-records"row contract the S5FoundingAddressscreen uses; a sharedownDomainRecords(domain, ip)helper mirrors the Go builder in the browser fake so S5 and S10 stay in step.Acceptance:
IPKnown:false) is unchanged when the IP genuinely is not known yet. ✅TestStory323_ReachabilitySurfacesOwnDomainRecordsWithKnownIP(standup_test.go) covers pre-IP placeholder + post-IP real values; a component test infoundingSpecGateReachability.test.tscovers the S10 render (and that the subdomain path shows none). ✅Out of scope, untouched: the broker-managed subdomain path and the
_acme-challengeCNAME (#324).go build/vet/test,vue-tsc, and eslint green.