founding: spec-gate-and-reachability — spec gate pass/fail, reachability before name-wire #47

Closed
opened 2026-07-25 04:55:46 +00:00 by ben · 1 comment
Owner

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 founding orchestrator (ADR 0052) over the clan Enrollment workflow, the enroll state machine, and the fake DNS resolver.

Acceptance criteria

  • (story 18) Given pairing succeeds and probed specs meet the declared gateway minimum (2 vCPU · 4 GB RAM · 40 GB disk, ADR 0030), when S9 renders, then the probed specs are shown — S9 is the first node's approval card (wizard-implicit approval, ADR 0043; no separate approve click).
  • (story 18) Given the gateway is public, when the spec gate passes, then the reachability test (S10) runs next.
  • (story 18) Given the private path, when the spec gate passes, then reachability is skipped and the gateway deploy (S11) begins.
  • (story 19) Given probed specs fall below the declared minimum, when S9x renders, then guided troubleshooting is offered (stronger machine or switch Access), retrying returns via S4, and the enrollment state survives — the failure is typed and the code is not spent.
  • (story 20) Given the spec gate passed on a public path, when the outside-in reachability probe passes, then the name is wired — subdomain records pointed by the broker, or own-domain records verified by DNS polling now the IP is known (ADR 0049) — and the gateway deploy begins.
  • (story 20) Given the reachability test fails, when the failure surfaces, then guided troubleshooting (ports, firewall, CGNAT) with retry is offered, and switching Access reopens S4.

Blocked by

  • #39 — the paths that feed the join node.
  • #25 — Enrollment workflow for pairing.
  • #26 — retriable request state, code→identity.

Task manifest

task: founding:spec-gate-and-reachability
implements_flow: p1-founding
implements_edge: S9→S10, S9→S11, S9x→S4, S10→S11, S10→S4
wireframe:
  - docs/ux/wireframes/p1-founding/p1-s9-spec-gate-pass.html
  - docs/ux/wireframes/p1-founding/p1-s9x-spec-gate-fail.html
  - docs/ux/wireframes/p1-founding/p1-s10-reachability-and-name.html
interface: the `founding` orchestrator's gate face over the `enroll` face (pairing, retriable request, code not spent on typed failure) and `clan` Enrollment — evaluate probed specs against the declared minimum, render S9 as the implicit-approval card, branch public→reachability / private→deploy, run the reachability probe and wire the name via the fake broker / fake DNS resolver
seam: "`founding` orchestrator seam tests (bundled helper, Go) \u2014 fake clan (Enrollment), in-memory enroll ledger + fake clock, fake DNS resolver, real brandkit"
acceptance:
  - given: pairing succeeds and specs meet the minimum (ADR 0030)
    when: S9 renders
    then: probed specs are shown; S9 is the implicit-approval card, no separate approve click (ADR 0043)
  - given: the spec gate passes
    when: the gateway is public / private
    then: public → reachability (S10); private → deploy (S11), reachability skipped
  - given: specs below the minimum
    when: S9x renders
    then: guided troubleshooting, retry returns via S4, enrollment state survives (typed failure, code not spent)
  - given: the reachability probe on a public path
    when: it passes / fails
    then: pass → name wired (broker subdomain pointing or own-domain DNS-poll verify, ADR 0049) → deploy; fail → guided troubleshooting with retry, switch Access reopens S4
depends_on: [access-and-address, bootstrap:clan-seam, bootstrap:enroll-seam]
out_of_scope:
  - "device-end install and consent (S7/S7a/S7b/S8/VAR) — the stand-up path slices'"
  - "the gateway deploy itself — deploy-gateway's (stories 21–23)"
  - "seeding and enrollment handover — seed-fleet-authority's (stories 24–26)"
needs_human_decision: []
## 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 `founding` orchestrator (ADR 0052) over the `clan` Enrollment workflow, the `enroll` state machine, and the fake DNS resolver. ## Acceptance criteria - [ ] (story 18) Given pairing succeeds and probed specs meet the declared gateway minimum (2 vCPU · 4 GB RAM · 40 GB disk, ADR 0030), when S9 renders, then the probed specs are shown — S9 is the first node's approval card (wizard-implicit approval, ADR 0043; no separate approve click). - [ ] (story 18) Given the gateway is public, when the spec gate passes, then the reachability test (S10) runs next. - [ ] (story 18) Given the private path, when the spec gate passes, then reachability is skipped and the gateway deploy (S11) begins. - [ ] (story 19) Given probed specs fall below the declared minimum, when S9x renders, then guided troubleshooting is offered (stronger machine or switch Access), retrying returns via S4, and the enrollment state survives — the failure is typed and the code is not spent. - [ ] (story 20) Given the spec gate passed on a public path, when the outside-in reachability probe passes, then the name is wired — subdomain records pointed by the broker, or own-domain records verified by DNS polling now the IP is known (ADR 0049) — and the gateway deploy begins. - [ ] (story 20) Given the reachability test fails, when the failure surfaces, then guided troubleshooting (ports, firewall, CGNAT) with retry is offered, and switching Access reopens S4. ## Blocked by - #39 — the paths that feed the join node. - #25 — Enrollment workflow for pairing. - #26 — retriable request state, code→identity. ## Task manifest ```yaml task: founding:spec-gate-and-reachability implements_flow: p1-founding implements_edge: S9→S10, S9→S11, S9x→S4, S10→S11, S10→S4 wireframe: - docs/ux/wireframes/p1-founding/p1-s9-spec-gate-pass.html - docs/ux/wireframes/p1-founding/p1-s9x-spec-gate-fail.html - docs/ux/wireframes/p1-founding/p1-s10-reachability-and-name.html interface: the `founding` orchestrator's gate face over the `enroll` face (pairing, retriable request, code not spent on typed failure) and `clan` Enrollment — evaluate probed specs against the declared minimum, render S9 as the implicit-approval card, branch public→reachability / private→deploy, run the reachability probe and wire the name via the fake broker / fake DNS resolver seam: "`founding` orchestrator seam tests (bundled helper, Go) \u2014 fake clan (Enrollment), in-memory enroll ledger + fake clock, fake DNS resolver, real brandkit" acceptance: - given: pairing succeeds and specs meet the minimum (ADR 0030) when: S9 renders then: probed specs are shown; S9 is the implicit-approval card, no separate approve click (ADR 0043) - given: the spec gate passes when: the gateway is public / private then: public → reachability (S10); private → deploy (S11), reachability skipped - given: specs below the minimum when: S9x renders then: guided troubleshooting, retry returns via S4, enrollment state survives (typed failure, code not spent) - given: the reachability probe on a public path when: it passes / fails then: pass → name wired (broker subdomain pointing or own-domain DNS-poll verify, ADR 0049) → deploy; fail → guided troubleshooting with retry, switch Access reopens S4 depends_on: [access-and-address, bootstrap:clan-seam, bootstrap:enroll-seam] out_of_scope: - "device-end install and consent (S7/S7a/S7b/S8/VAR) — the stand-up path slices'" - "the gateway deploy itself — deploy-gateway's (stories 21–23)" - "seeding and enrollment handover — seed-fleet-authority's (stories 24–26)" needs_human_decision: [] ```
Author
Owner

Landed on origin/main as c98ebad.

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): the founding orchestrator gate face over the in-process enroll control-plane face (ADR 0043) + a new outside-in Reachability port.

  • Pair relays the gateway agent's PairRequest to the in-process ledger; a pass (probed specs meet GatewayFloor 2 vCPU·4 GB·40 GB, ADR 0030) renders S9 and IS the first node's approval card — implicit Approve, no separate approve click (ADR 0043) — then branches public→reachability (S10) / private→deploy (S11, reachability skipped) [stories 18].
  • A shortfall renders S9x from the typed enroll.SpecGateError; request stays Redeemed, code not spent, retry returns via S4 (ReopenAccess) [story 19].
  • RunReachability probes the now-known IP (Access choice's or the self-hosted probe's network facts) from outside; a pass wires the name (broker PointSubdomain for 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 by FoundingStandup.vue mounted in FoundingWizard's post-created branch; standup-state/run-reachability/reopen-access stdio bridge ops; TS lib types + faithful fake + component tests. Acceptance stories 18–20 covered by standup_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.

Landed on `origin/main` as c98ebad. 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`): the `founding` orchestrator gate face over the in-process `enroll` control-plane face (ADR 0043) + a new outside-in `Reachability` port. - `Pair` relays the gateway agent's PairRequest to the in-process ledger; a pass (probed specs meet `GatewayFloor` 2 vCPU·4 GB·40 GB, ADR 0030) renders S9 and IS the first node's approval card — implicit `Approve`, no separate approve click (ADR 0043) — then branches public→reachability (S10) / private→deploy (S11, reachability skipped) [stories 18]. - A shortfall renders S9x from the typed `enroll.SpecGateError`; request stays Redeemed, code not spent, retry returns via S4 (`ReopenAccess`) [story 19]. - `RunReachability` probes the now-known IP (Access choice's or the self-hosted probe's network facts) from outside; a pass wires the name (broker `PointSubdomain` for 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 by `FoundingStandup.vue` mounted in `FoundingWizard`'s post-created branch; `standup-state`/`run-reachability`/`reopen-access` stdio bridge ops; TS lib types + faithful fake + component tests. Acceptance stories 18–20 covered by `standup_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.
ben closed this issue 2026-07-26 03:42:06 +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#47
No description provided.