founding connect: a home machine behind a router FAILS "Visitors can reach it" as CGNAT — the check probes the box's private NIC address, and the same address would be wired to the community's name #1585
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
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1585
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?
What is wrong
A machine at your place, dialled IN on founding's Connect section, is probed for "Visitors can reach it" against its own network-card address, not the public address of the line it sits on. Behind a household router that address is private (
192.168.x.x), the prober refuses every non-public address as the CGNAT lane before dialling, the check fails, and Continue is blocked. Every ordinary home machine — the exact case DDR 0240's dial-in door exists for — is told it is behind CGNAT when it is not.Found by code review (2026-09-18 founding device-check review), not yet reproduced live: nothing in the suite or the drives exercises a NATed box.
The chain
internal/hostprobe/prober.go:178—Prober.Networkreads the default-route interface's own address. On a home LAN that is the RFC 1918 address.enroll.NetworkFacts.Addressis commented "public IP in CIDR form" — true on a cloud box, false behind a router.internal/founding/connectcheck.go:236—AwaitDialIntakesstripCIDR(view.Network.Address)as the device'snetAddr.internal/founding/connectcheck.go:285—CheckDevicehands that too.reach.Probe.internal/reachability/prober.go:156—!isPublicRoutable(parsed)(ip.IsPrivate()) →Reachable:false, the CGNAT guidance →CheckFail→passed=false.The same read feeds the rest of the self-hosted public path:
knownGatewayIP(internal/founding/standup.go:1176) resolvesst.GatewayIPfromview.Network, andst.GatewayIPis whatRunReachabilityprobes (standup.go:873) and whatwireNamepoints the community's name at (standup.go:886). A home gateway would have its name wired to a private address.When no Network facts were captured (a VM/LAN join),
netAddris empty and the check falls to a warn ("Couldn't check inbound reachability") — so the step passes without having tested anything. Both outcomes are wrong in opposite directions.What was lost
The pre-check this replaced (
internal/dns/resolver.go:119, DDR 0139) learned the line's real public-facing address by the OpenDNS reflection query (dns.PublicIP), which is NAT-correct. It measured the wrong machine (the app's line — #326), so DDR 0240 moved the check onto the device — but the move dropped the public-address discovery. The address heartbeat (ADR 0136, #330) already reusesdns.PublicIPto observe a gateway's address from behind NAT, so the read exists and is proven.Why nothing caught it
internal/founding/connectcheck_test.go:218scripts the dial-in probe with198.51.100.7/24— a public address.--target selfhosteddrive box (#1450 leg 10) is a DigitalOcean droplet whose NIC carries its public address.cgnat-blocksleg simulates the failure with a cloud firewall, not a router.Acceptance criteria
NetworkFacts.Addresskeeps its takeover meaning; its "public IP" comment is corrected.CheckDeviceprobes the public-facing address. A machine on192.168.x.xbehind a router with a public WAN address no longer fails the CGNAT lane.100.64.0.0/10still fails, with the CGNAT wording — the one blocking case stands (ADR 0026).knownGatewayIPprefers the public-facing address for the S10 probe and forwireName; a private address is never wired to a community's name (fail loud, ADR 0100).100.64/10reflected address fails CGNAT;knownGatewayIPtable gains the NATed row.Related
Siblings from the same review (2026-09-18): #1587 is the vantage ticket referred to above (WHERE the probe dials from); #1586 takes the visitors check off helpers entirely. This one is independent of both and can land first.
swarm-claim host=bens-mac-04 run=26656
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1585 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
Correction from real hardware — AC3 cannot be met as written: a reflected address NEVER shows CGNAT (2026-09-18)
Read-only probe of
elitebook-03(Starlink, a known CGNAT line):192.168.1.122/24tracepath)100.64.0.1— carrier-grade NAT, confirmedmyip.opendns.com)179.65.135.74— a PUBLIC addressThe reflection returns the carrier's public egress address, not the router's WAN-side address. It is therefore never in
100.64.0.0/10, on any CGNAT line. So:internal/dns/resolver.go:119, DDR 0139) had the same hole all along: on this Starlink line it would have answered "Your connection has a public address that can accept visitors." Its CGNAT branch is dead code in practice, and its unit test passes only because the test hands it a100.64address directly.What can honestly detect CGNAT:
100.64.0.0/10hop on the machine's own outbound path (as above), or the router's external address over UPnP/NAT-PMP differing from the reflected one. Cheap, local, and lets the screen say "this looks like CGNAT" before the operator spends an evening in their router. Warn-grade (ADR 0015), never the verdict.Amended AC3: the reflected address is recorded as the machine's public-facing address and is what gets probed; CGNAT is NOT inferred from it. A
100.64/10hop on the machine's outbound path raises a CGNAT warn naming what was seen. The blocking CGNAT verdict belongs to the outside-in probe (#1587 + #1588).elitebook-03is a standing real-world fixture for exactly this — see the hardware-drive note on #1450.