rehearsal-3: thin manual port walkthrough — seam + screen (per-port truth, re-check loop) #518

Closed
opened 2026-08-14 06:20:38 +00:00 by ben · 2 comments
Owner

Part of rehearsal phase 3 — gateway from home (spec docs/superpowers/specs/2026-08-14-183-phase-3-home-gateway-rehearsal-design.md, plan docs/superpowers/plans/2026-08-14-183-phase-3-home-gateway-rehearsal.md).
The plan section below is the work, verbatim; its Interfaces block names what neighbouring tasks consume — keep those names exact.

Global constraints (apply to every step)

  • Use the domain glossary's vocabulary (CONTEXT.md) in ALL copy, comments,
    commit messages: founding, gateway, agent, install command,
    enrollment code — never installer/daemon/token/join-key.
  • Fail loud, never fabricate (ADR 0100): a missing artifact/secret/seam is an
    error with the real reason, never a silent skip or a made-up value.
  • x86_64 only at v1; full install is the consented mode (ADR 0024); the
    install command is a doorway, not a kept tool (ADR 0028).
  • Never write closes #NNN (or any close keyword) in commits or issue bodies
    for the standing drive issue family — say "advances #NNN". Even DESCRIBING a
    close can auto-close (2026-08-10 lesson, twice).
  • Commits that change project state update STATUS.md in the same commit
    (CLAUDE.md rule); the drive-issue minting commit (Task 9) carries the
    STATUS + runbook update for the whole arc.
  • TDD: each step's test is written and seen red before its implementation.
  • Secrets never enter .sandcastle/.env (it forwards into worker containers);
    host-only secrets live in the executor's rehearsal-env.sh (2026-07-11
    lesson).

Task 4: Thin manual walkthrough — seam + screen (blocked by Task 3)

Files:

  • Modify: internal/reachability/prober.go (+ prober_test.go) — expose the
    per-port verdicts the prober already computes.
  • Modify: the founding reachability face (internal/founding/standup.go's
    S10 area + internal/founding/stdio.go) — carry structured rows to the UI.
  • Modify: app/src/components/founding/FoundingReachability.vue
    (+ app/tests/unit/foundingSpecGateReachability.test.ts,
    app/src/lib/founding.ts TS twins).

Interfaces:

  • Consumes: Task 3's DDR + frames (the selector contract above), the prober's
    existing lane machinery (portVerdict, ports/firewall/CGNAT guidance).

  • Produces: the reachability result carries
    ports: []PortRow{Port int, Role string, Verdict string /* open|refused|dropped */, RequiredNow bool}
    plus the two informational rows (51820 "WireGuard — peers dial in",
    3478 "coturn relay"), RequiredNow=false, Verdict:"info"; a re-check op
    that re-runs the S10 probe; the Vue screen renders exactly the DDR's states.
    Every string the screen shows comes from the seam (ADR 0052).

  • Step 1: Failing Go test — in prober_test.go, the scripted dial's
    refused-443 case must yield Result.Ports containing
    {443, "web", "refused", true} and the informational rows; the CGNAT case
    yields no port rows (the lane forbids pretending a dial happened).

  • Step 2: Red, Step 3: implement (derive rows where the prober
    already walks portVerdicts; append the static informational rows in the
    founding face, not the prober — the prober reports only what it probed),
    Step 4: green — go test ./internal/reachability/... ./internal/founding/....

  • Step 5: Failing Vue test — refused-443 fixture renders
    [data-port="443"][data-status="refused"] + the ports-lane guidance and an
    enabled [data-action="recheck-ports"]; clicking it calls the re-check op
    once.

  • Step 6: Red → implement → green — pnpm test (unit suites) + tsc.

  • Step 7: Commit — founding: the S10 walkthrough names each port honestly — the #331 option-3 slice (DDR NNNN, spec 2026-08-14).

Part of rehearsal **phase 3 — gateway from home** (spec `docs/superpowers/specs/2026-08-14-183-phase-3-home-gateway-rehearsal-design.md`, plan `docs/superpowers/plans/2026-08-14-183-phase-3-home-gateway-rehearsal.md`). The plan section below is the work, verbatim; its **Interfaces** block names what neighbouring tasks consume — keep those names exact. ## Global constraints (apply to every step) - Use the domain glossary's vocabulary (`CONTEXT.md`) in ALL copy, comments, commit messages: *founding*, *gateway*, *agent*, *install command*, *enrollment code* — never installer/daemon/token/join-key. - Fail loud, never fabricate (ADR 0100): a missing artifact/secret/seam is an error with the real reason, never a silent skip or a made-up value. - x86_64 only at v1; full install is the consented mode (ADR 0024); the install command is a doorway, not a kept tool (ADR 0028). - Never write `closes #NNN` (or any close keyword) in commits or issue bodies for the standing drive issue family — say "advances #NNN". Even DESCRIBING a close can auto-close (2026-08-10 lesson, twice). - Commits that change project state update `STATUS.md` in the same commit (CLAUDE.md rule); the drive-issue minting commit (Task 9) carries the STATUS + runbook update for the whole arc. - TDD: each step's test is written and seen red before its implementation. - Secrets never enter `.sandcastle/.env` (it forwards into worker containers); host-only secrets live in the executor's `rehearsal-env.sh` (2026-07-11 lesson). --- ### Task 4: Thin manual walkthrough — seam + screen (blocked by Task 3) **Files:** - Modify: `internal/reachability/prober.go` (+ `prober_test.go`) — expose the per-port verdicts the prober already computes. - Modify: the founding reachability face (`internal/founding/standup.go`'s S10 area + `internal/founding/stdio.go`) — carry structured rows to the UI. - Modify: `app/src/components/founding/FoundingReachability.vue` (+ `app/tests/unit/foundingSpecGateReachability.test.ts`, `app/src/lib/founding.ts` TS twins). **Interfaces:** - Consumes: Task 3's DDR + frames (the selector contract above), the prober's existing lane machinery (`portVerdict`, ports/firewall/CGNAT guidance). - Produces: the reachability result carries `ports: []PortRow{Port int, Role string, Verdict string /* open|refused|dropped */, RequiredNow bool}` plus the two informational rows (51820 "WireGuard — peers dial in", 3478 "coturn relay"), `RequiredNow=false`, `Verdict:"info"`; a re-check op that re-runs the S10 probe; the Vue screen renders exactly the DDR's states. Every string the screen shows comes from the seam (ADR 0052). - [ ] **Step 1: Failing Go test** — in `prober_test.go`, the scripted dial's refused-443 case must yield `Result.Ports` containing `{443, "web", "refused", true}` and the informational rows; the CGNAT case yields no port rows (the lane forbids pretending a dial happened). - [ ] **Step 2: Red**, **Step 3: implement** (derive rows where the prober already walks `portVerdicts`; append the static informational rows in the founding face, not the prober — the prober reports only what it probed), **Step 4: green** — `go test ./internal/reachability/... ./internal/founding/...`. - [ ] **Step 5: Failing Vue test** — refused-443 fixture renders `[data-port="443"][data-status="refused"]` + the ports-lane guidance and an enabled `[data-action="recheck-ports"]`; clicking it calls the re-check op once. - [ ] **Step 6: Red → implement → green** — `pnpm test` (unit suites) + `tsc`. - [ ] **Step 7: Commit** — `founding: the S10 walkthrough names each port honestly — the #331 option-3 slice (DDR NNNN, spec 2026-08-14)`.
Author
Owner

swarm-claim host=matou-dev-server-01 run=6130
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=6130 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

close-report for #518 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 518,
  "status": "success",
  "commits": [
    "706e8710f5b52ad7395a47d287db135797864cf6"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/founding/FoundingReachability.vue",
    "app/src/lib/founding.ts",
    "app/tests/unit/foundingSpecGateReachability.test.ts",
    "internal/founding/standup.go",
    "internal/founding/standup_test.go",
    "internal/founding/testing/fakes.go",
    "internal/reachability/prober.go",
    "internal/reachability/prober_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/reachability/... ./internal/founding/...",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go vet ./internal/reachability/... ./internal/founding/...",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/reachability/... ./internal/founding/...",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm vitest run tests/unit/foundingSpecGateReachability.test.ts",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm build (vue-tsc -p tsconfig.json)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Step 1-2 (Go red): prober_test refused-443 yields Result.Ports {443,\"web\",\"refused\",true}; CGNAT yields no port rows": "internal/reachability/prober_test.go TestProbe_PerPortRowsCarryVerdictAndRequiredNow + TestProbe_CGNATYieldsNoPortRows + TestProbe_DroppedProbeReadsDroppedVerdict",
    "Step 3 (impl): prober derives PortRow rows where it walks portVerdicts; informational rows appended in the founding face, not the prober": "internal/reachability/prober.go builds []founding.PortRow (verdict open|refused|dropped, RequiredNow=true) for probed ports only; internal/founding/standup.go infoPortRows()/boardRows() appends 51820+3478 info rows onto ReachStatus.Ports in RunReachability",
    "Step 4 (Go green): go test ./internal/reachability/... ./internal/founding/...": "exit 0; standup_test.go TestStory331_ReachabilityFailBoardAppendsInfoRows asserts probed rows + the two info rows (RequiredNow=false, Verdict info)",
    "Step 5 (Vue red): refused-443 fixture renders [data-port=\"443\"][data-status=\"refused\"] + ports-lane guidance + enabled [data-action=\"recheck-ports\"]; click calls re-check once": "app/tests/unit/foundingSpecGateReachability.test.ts S10b test asserts the board, rows, [data-field=\"lane-guidance\"], and emitted('retry') length 1 on click",
    "Step 6 (Vue green): pnpm test + tsc": "FoundingReachability.vue renders [data-status=\"port-walkthrough\"] board from reach.ports (verdict as data-status), lane-guidance from the seam, recheck-ports re-runs the probe; app/src/lib/founding.ts PortRow twin + ReachStatus.ports; vitest + vue-tsc exit 0",
    "Interface: reachability result carries ports []PortRow{Port,Role,Verdict open|refused|dropped,RequiredNow} + two info rows (51820/3478, RequiredNow=false, Verdict info); re-check op re-runs the S10 probe; screen renders exactly the DDR states; every string from the seam (ADR 0052)": "founding.PortRow + ReachStatus.Ports carry rows; recheck-ports emits retry -> RunReachability re-runs Probe; Vue renders reach.ports/reach.guidance verbatim"
  },
  "summary": "Built the S10b manual port walkthrough: the reachability seam carries honest per-port PortRow rows (prober-probed + founding-appended info rows) and FoundingReachability.vue renders the board with a re-check op.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #518 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 518, "status": "success", "commits": [ "706e8710f5b52ad7395a47d287db135797864cf6" ], "changed_files": [ "STATUS.md", "app/src/components/founding/FoundingReachability.vue", "app/src/lib/founding.ts", "app/tests/unit/foundingSpecGateReachability.test.ts", "internal/founding/standup.go", "internal/founding/standup_test.go", "internal/founding/testing/fakes.go", "internal/reachability/prober.go", "internal/reachability/prober_test.go" ], "tests": [ { "command": "go test ./internal/reachability/... ./internal/founding/...", "exit_code": 0 }, { "command": "go build ./... && go vet ./internal/reachability/... ./internal/founding/...", "exit_code": 0 }, { "command": "golangci-lint run ./internal/reachability/... ./internal/founding/...", "exit_code": 0 }, { "command": "CI=true pnpm vitest run tests/unit/foundingSpecGateReachability.test.ts", "exit_code": 0 }, { "command": "CI=true pnpm build (vue-tsc -p tsconfig.json)", "exit_code": 0 } ], "criteria": { "Step 1-2 (Go red): prober_test refused-443 yields Result.Ports {443,\"web\",\"refused\",true}; CGNAT yields no port rows": "internal/reachability/prober_test.go TestProbe_PerPortRowsCarryVerdictAndRequiredNow + TestProbe_CGNATYieldsNoPortRows + TestProbe_DroppedProbeReadsDroppedVerdict", "Step 3 (impl): prober derives PortRow rows where it walks portVerdicts; informational rows appended in the founding face, not the prober": "internal/reachability/prober.go builds []founding.PortRow (verdict open|refused|dropped, RequiredNow=true) for probed ports only; internal/founding/standup.go infoPortRows()/boardRows() appends 51820+3478 info rows onto ReachStatus.Ports in RunReachability", "Step 4 (Go green): go test ./internal/reachability/... ./internal/founding/...": "exit 0; standup_test.go TestStory331_ReachabilityFailBoardAppendsInfoRows asserts probed rows + the two info rows (RequiredNow=false, Verdict info)", "Step 5 (Vue red): refused-443 fixture renders [data-port=\"443\"][data-status=\"refused\"] + ports-lane guidance + enabled [data-action=\"recheck-ports\"]; click calls re-check once": "app/tests/unit/foundingSpecGateReachability.test.ts S10b test asserts the board, rows, [data-field=\"lane-guidance\"], and emitted('retry') length 1 on click", "Step 6 (Vue green): pnpm test + tsc": "FoundingReachability.vue renders [data-status=\"port-walkthrough\"] board from reach.ports (verdict as data-status), lane-guidance from the seam, recheck-ports re-runs the probe; app/src/lib/founding.ts PortRow twin + ReachStatus.ports; vitest + vue-tsc exit 0", "Interface: reachability result carries ports []PortRow{Port,Role,Verdict open|refused|dropped,RequiredNow} + two info rows (51820/3478, RequiredNow=false, Verdict info); re-check op re-runs the S10 probe; screen renders exactly the DDR states; every string from the seam (ADR 0052)": "founding.PortRow + ReachStatus.Ports carry rows; recheck-ports emits retry -> RunReachability re-runs Probe; Vue renders reach.ports/reach.guidance verbatim" }, "summary": "Built the S10b manual port walkthrough: the reachability seam carries honest per-port PortRow rows (prober-probed + founding-appended info rows) and FoundingReachability.vue renders the board with a re-check op.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
ben closed this issue 2026-08-14 17:34:36 +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#518
No description provided.