founding: spec-gate-and-reachability — spec gate pass/fail, reachability before name-wire #47
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.
Blocks
Depends on
Reference
Matou/idss#47
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?
Parent
Feature spec: #11 (founding).
What to build
The shared pairing → gate → reachability backbone that all four access paths converge on after their device-end work. When pairing succeeds and probed specs meet the declared gateway minimum (2 vCPU · 4 GB RAM · 40 GB disk, ADR 0030), the spec gate (P1-S9) shows the probed hardware — S9 is the first node's approval card, wizard-implicit approval with no separate approve click (ADR 0043). A public gateway then runs the reachability test (P1-S10); the private path skips reachability and proceeds to the gateway deploy. If probed specs fall below the minimum, S9x gives guided troubleshooting (stronger machine or switch Access) and retrying returns via S4 — the enrollment state survives because the enroll seam holds the request retriable, the failure is typed, and the code is not spent. The reachability test wires the name only to an IP that provably accepts public visitors: on pass, subdomain records are pointed by the broker or own-domain records are verified by DNS polling now the IP is known (ADR 0049), then deploy begins; on fail, guided troubleshooting (ports, firewall, CGNAT) with retry, and switching Access reopens S4.
S9 is the join node the four paths meet at. This slice runs on the
foundingorchestrator (ADR 0052) over theclanEnrollment workflow, theenrollstate machine, and the fake DNS resolver.Acceptance criteria
Blocked by
Task manifest
clanpackage + fake adapter behind DDR 0010enrollpackage + in-memory fakeLanded on
origin/mainasc98ebad.The join node P1-S9 the four stand-up access paths converge on, plus the public reachability test P1-S10.
Seam (
internal/founding/standup.go,standupfmt.go,standup_test.go): thefoundingorchestrator gate face over the in-processenrollcontrol-plane face (ADR 0043) + a new outside-inReachabilityport.Pairrelays the gateway agent's PairRequest to the in-process ledger; a pass (probed specs meetGatewayFloor2 vCPU·4 GB·40 GB, ADR 0030) renders S9 and IS the first node's approval card — implicitApprove, no separate approve click (ADR 0043) — then branches public→reachability (S10) / private→deploy (S11, reachability skipped) [stories 18].enroll.SpecGateError; request stays Redeemed, code not spent, retry returns via S4 (ReopenAccess) [story 19].RunReachabilityprobes the now-known IP (Access choice's or the self-hosted probe's network facts) from outside; a pass wires the name (brokerPointSubdomainfor a reserved subdomain, or own-domain DNS-poll verify now the IP is known, ADR 0049) and the deploy begins; a fail offers ports/firewall/CGNAT troubleshooting + retry / switch-Access — no name wired to an IP that doesn't provably accept visitors [story 20].Screens (rule 2b):
FoundingSpecGate.vue(S9),FoundingSpecGateFail.vue(S9x),FoundingReachability.vue(S10), composed byFoundingStandup.vuemounted inFoundingWizard's post-created branch;standup-state/run-reachability/reopen-accessstdio bridge ops; TS lib types + faithful fake + component tests. Acceptance stories 18–20 covered bystandup_test.go+foundingSpecGateReachability.test.ts.Out of scope, unblocked next: the gateway deploy (deploy-gateway, 21–23) and seeding + enrollment handover (seed-fleet-authority, 24–26) pick up the approved request recorded on the
Standup. The Pair-relay carrier is the stand-up path slices'.Verified: root ESLint clean over all TS/Vue. Go/nix and app workspace deps are not in the Sandcastle sandbox, so
go test/vitest run in CI.clan machines update, and the droplet never comes back — reboot-vs-no-reboot contradiction (follow-on to #700) #702clan machines update, and the droplet never comes back — reboot-vs-no-reboot contradiction (follow-on to #700) #702