reachability: founding's "outside-in" probe dials from the operator's own computer — on the self-hosted path that is the same network, so the verdict is the router's hairpin behaviour #1587
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.
Reference
Matou/idss#1587
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
The
founding.Reachabilityseam is documented as an outside-in probe — "the real probe is a Matou-side outside-in check" (internal/founding/standup.go:110). The production implementation isreachability.New(), a plain localnet.Dialer, wired into the app's helper process (app/helper/cmd/helper/wiring_prod.go:440). So both the Connect section's "Visitors can reach it" check (DDR 0240) and the S10 reachability gate (DDR 0188) dial from the operator's own computer.For a rented or own-VPS gateway that is genuinely outside. For a machine at your place it is not: the operator's laptop is normally on the same home network as the machine, so the dial to the line's public address leaves and re-enters the same router. The verdict then reports the router's hairpin-NAT behaviour — many routers don't loop back at all (false fail), some loop back without consulting the port-forward table (false pass) — not whether a visitor on the internet can get in.
The codebase already says so.
broker/internal/broker/frontdoor.go:14: "A gateway dialling its own public address is not outside-in — hairpin NAT makes the answer unreliable, and a probe that can lie is a fabricated fact." #813 built the broker's front-door probe for exactly this reason — for the standing fleet. Founding never got the same treatment.The constraint
The broker probe (
POST /v1/subdomains/probe) is deliberately not a general dialer: it is claim-secret gated and dials only the address the broker's own record carries for a claimed host. At founding's Connect section nothing is claimed yet — the Address step is check-only and Build it claims (#1404). So the existing route cannot serve the selection-time check as it stands.Why human
One-way-door ruling — security posture. Any fix makes a Matou-run service dial an address at the request of a caller who has no claim yet. How that is bounded is a posture decision on the broker, a deployed public service.
Proposed default ruling
The broker gains a bounded selection-time probe that dials only the source address of the request itself — never a caller-supplied one — on the fixed web group (80/443), rate-limited per source. The machine makes the call (dial-in: the device agent during pairing; dial-out: the app asks the box to make it over the SSH connection it already holds), so the broker observes the machine's own line. This is not an open dialer (a caller can only ever have itself probed), needs no claim, and answers the public-address discovery question from the sibling ticket with a better source than OpenDNS reflection. The S10 gate, which runs after the claim exists, moves onto the existing #813 route. Own-domain communities with no broker relationship keep the local dial, and the surface names that vantage honestly (as the front-door card already does).
Acceptance criteria (once ruled)
Reachabilityinterface comment matches what production does.Related
The sibling ticket (the visitors check probes the machine's private NIC address) fixes WHICH address is probed; this fixes WHERE FROM. That one is unblocked by this and should land first.
The sibling ticket referred to above is #1585. Also related: #1586 (helpers should not carry the visitors check at all, which narrows this to the gateway).
Ruled: the proposed default is ACCEPTED (Ben, 2026-09-18)
Ben accepts the proposed default ruling above as written. The security-posture question this ticket was
ready-for-humanfor is closed:POST /v1/subdomains/proberoute.For the implementer: record this ruling as an ADR in the same commit as the broker route (check
origin/mainbefore minting the number), and update the affecteddocs/architecture/diagram if one draws the founding↔broker edge (ADR 0042).broker/**is a deployed-service tree, so expect thedeploy-pendingrail after merge (#1187).AC5 (a drive leg on a genuinely NATed box) needs hardware no current drive target has — it does not gate closing the code work here; it is carried by the note already on #1450.
Relabelled
ready-for-human→ready-for-agent. Blocked by #1585 (which address is probed lands first), wired as a native dependency.Landed the security-posture CORE Ben ruled; handing off AC1
Commit
fb2d2b3c(onorigin/main) implements the self-contained core of the 2026-09-18 ruling, seam-proven:POST /v1/reachability/self(broker/internal/broker/selfprobe.go,FrontDoor.ProbeSource): dials ONLY the request's own source line — the connection'sRemoteAddr, never a caller-supplied address/field/header (anX-Forwarded-Foris spoofable; trusting it would make an open dialer — AC2) — on ONLY the fixed web group (80/443). Needs no claim (a caller can only ever have itself probed), and is rate-limited per source (sourceLimiter, resets after a window). Rides the same wiredFrontDoorvantage as #813 (WithFrontDoornow registers both routes).docs/adr/0253-*.md).founding.Reachabilityinterface comment now matches production (a local dial from the app's own line: genuinely outside-in for a rented/own-VPS box, a same-network hairpin for a machine-at-your-place).ReachabilityResult/ReachStatus/DeviceCheckcarryVantage; the local prober stampsfounding.VantageThisComputeron every verdict, so the seam never presents a same-network dial as outside-in. Proven by a founding connect-seam test (vantage flows onto the visitors check, pass + fail).RemoteAddrdeploy hazard for the new route.Proof:
go build/vet+ broker + founding + reachability suites green; gofmt clean; pre-push gate "0 issues".broker/**→deploy-pending(#1187).Why human
AC1 — the MACHINE calling the route so ITS own line is measured outside-in (the device agent during dial-in pairing; the app over SSH on dial-out), and the verdict reaching the "Visitors can reach it" check and the S10 gate — rests on a design-contract decision the code tier surfaced:
This is the founding-contract meaning, not plumbing — not agent-decidable under ADR 0174 (ADR 0188 is the precedent: option (b)-style reorderings there were explicitly a human call).
Also needs-design: the vantage LINE ("checked from …") has no wireframe — the Connect/S10 screens have no design state for naming the vantage, so the AC1/AC3 UI presentation is design-gated.
Remaining engineering once the above is ruled (no further human call needed)
/v1/reachability/selfduring pairing and carry the observation inenroll.NetworkFacts(+ its OpenAPI mirror), soAwaitDialIn/CheckDeviceread the broker vantage for a same-network machine instead of local-dialing.vantageinapp/src/lib/founding.ts+FoundingConnectDevice.vue/FoundingReachability.vue(once the wireframe exists).Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.