founding: real Reachability adapter — the outside-in check (P1-S10) #193

Closed
opened 2026-07-30 20:52:38 +00:00 by ben · 1 comment
Owner

Parent

Split out of #191 per the swarm's re-scoping investigation (Ben confirmed 2026-07-30). Engine-adapters close-out #183 needs founding's own-VPS lane (P1-S10) real.

What to build

The real Reachability adapter behind founding's port (internal/founding/standup.go — currently FakeReachability only): the Matou-side outside-in check that probes the candidate gateway from the outside (ports open, service answering) so P1-S10's reachability verdict is honest. Failure verdicts stay operator-legible (ports / firewall / CGNAT lanes per the flow).

Acceptance criteria

  • Given a reachable clan-lab droplet gateway, When the check runs, Then it passes with a real outside-in probe — no fake in the path (ADR 0100)
  • Given an unreachable candidate (closed port / filtered), When the check runs, Then the verdict is a legible failure matching P1-S10's troubleshooting lanes, never a masked pass

Task manifest

task: founding:reachability-adapter
implements_seam: "founding's Reachability port (spec #11, P1-S10) + ADR 0100"
interface: "the outside-in reachability check founding's standup drives"
seam: "internal/founding standup seam; provable against a clan-lab droplet"
acceptance:
  - given: a lab droplet gateway; when: the reachability check runs; then: real pass/fail verdicts with legible failure lanes
depends_on: []
out_of_scope: [DNSResolver (sibling ticket), the app packaging (#191), real-hardware journey (#183)]
needs_human_decision: []

Blocks

#183 — leg B·1 (found on the VPS: S10 reachability).

## Parent Split out of #191 per the swarm's re-scoping investigation (Ben confirmed 2026-07-30). Engine-adapters close-out #183 needs founding's own-VPS lane (P1-S10) real. ## What to build The real **Reachability** adapter behind founding's port (`internal/founding/standup.go` — currently `FakeReachability` only): the Matou-side outside-in check that probes the candidate gateway from the outside (ports open, service answering) so P1-S10's reachability verdict is honest. Failure verdicts stay operator-legible (ports / firewall / CGNAT lanes per the flow). ## Acceptance criteria - [ ] Given a reachable clan-lab droplet gateway, When the check runs, Then it passes with a real outside-in probe — no fake in the path (ADR 0100) - [ ] Given an unreachable candidate (closed port / filtered), When the check runs, Then the verdict is a legible failure matching P1-S10's troubleshooting lanes, never a masked pass ## Task manifest ```yaml task: founding:reachability-adapter implements_seam: "founding's Reachability port (spec #11, P1-S10) + ADR 0100" interface: "the outside-in reachability check founding's standup drives" seam: "internal/founding standup seam; provable against a clan-lab droplet" acceptance: - given: a lab droplet gateway; when: the reachability check runs; then: real pass/fail verdicts with legible failure lanes depends_on: [] out_of_scope: [DNSResolver (sibling ticket), the app packaging (#191), real-hardware journey (#183)] needs_human_decision: [] ``` ## Blocks #183 — leg B·1 (found on the VPS: S10 reachability).
Author
Owner

Done in 07cbf0d (on origin/main).

Built the real Reachability adapter behind founding's port (internal/reachability.Prober → founding.Reachability, ADR 0100), replacing FakeReachability in a shipped build. Probe(ctx, ip) dials the now-known gateway IP FROM OUTSIDE on the web ports (80/443, the ports ADR 0049 gates name-wiring on) and returns an honest verdict — a pass only when the address actually answers, otherwise a legible failure on one of P1-S10's three troubleshooting lanes, never a masked pass:

  • ports — the address answered but the web ports refused (nothing listening)
  • firewall — the probe was silently dropped/filtered (a firewall / router port-forwarding)
  • CGNAT — a non-public address (CGNAT shared range or RFC 1918 private) no outside-in dial can ever reach (decided from the address alone, no dial attempted)

AC1 (reachable droplet → real pass, no fake) and AC2 (unreachable → legible failure, never a masked pass) are proven at the seam by deterministic contract tests over every lane (internal/reachability/prober_test.go, green) plus a real outside-in smoke (control-plane/cmd/smoke-reachability + scripts/smoke-reachability.sh) that drives the real prober against a clan-lab droplet: a listener on node1:80 behind the host's 80/443 forward for the reachable pass, the listener stopped for the ports-closed fail, plus the deterministic CGNAT and filtered lanes. The clan-lab-droplet form of the smoke is the driver's arc-gating run (clan-lab infra is not provisioned in the swarm sandbox).

Wiring reachability.New() into the helper's wiring_prod.go stays #191/the compose ticket's job — the helper still fails loud on the Reachability seam until then (ADR 0100). go build ./.../vet/gofmt + the Go suite clean. Blocks #183 leg B·1.

Done in 07cbf0d (on origin/main). Built the real **Reachability** adapter behind founding's port (`internal/reachability.Prober` → `founding.Reachability`, ADR 0100), replacing `FakeReachability` in a shipped build. `Probe(ctx, ip)` dials the now-known gateway IP FROM OUTSIDE on the web ports (80/443, the ports ADR 0049 gates name-wiring on) and returns an honest verdict — a pass only when the address actually answers, otherwise a legible failure on one of P1-S10's three troubleshooting lanes, never a masked pass: - **ports** — the address answered but the web ports refused (nothing listening) - **firewall** — the probe was silently dropped/filtered (a firewall / router port-forwarding) - **CGNAT** — a non-public address (CGNAT shared range or RFC 1918 private) no outside-in dial can ever reach (decided from the address alone, no dial attempted) **AC1** (reachable droplet → real pass, no fake) and **AC2** (unreachable → legible failure, never a masked pass) are proven at the seam by deterministic contract tests over every lane (`internal/reachability/prober_test.go`, green) **plus a real outside-in smoke** (`control-plane/cmd/smoke-reachability` + `scripts/smoke-reachability.sh`) that drives the real prober against a clan-lab droplet: a listener on node1:80 behind the host's 80/443 forward for the reachable pass, the listener stopped for the ports-closed fail, plus the deterministic CGNAT and filtered lanes. The clan-lab-droplet form of the smoke is the driver's arc-gating run (clan-lab infra is not provisioned in the swarm sandbox). Wiring `reachability.New()` into the helper's `wiring_prod.go` stays #191/the compose ticket's job — the helper still fails loud on the Reachability seam until then (ADR 0100). `go build ./...`/vet/gofmt + the Go suite clean. Blocks #183 leg B·1.
ben closed this issue 2026-07-30 21:16:38 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#193
No description provided.