build: a real control-panel probe + the health-board model; HOx reads the same signal (ADR 0298 d.8, DDR 0299) — #2094 #2098

Closed
opened 2026-10-30 02:52:59 +00:00 by ben · 4 comments
Owner

Parent

  • Spec: #2094
  • ADR 0298 · DDR 0299 · wireframe docs/ux/wireframes/shell/shell-hb-health-board.html · flow docs/ux/flows/shell.mermaid node HB · build plan docs/superpowers/plans/2026-10-29-many-communities-one-app.md (exact names, signatures, file homes and tests per task). All land with design PR #2093.

What to build

Electron main gains idss:probe-control-panel: a GET to https://admin.<apex>/ with a 10 000 ms timeout. 2xx–4xx is reachable; a timeout, network/TLS error or 5xx is not answering. Only https hosts of registered communities are allowed. The pure board model builds each card from a session's seat, founding state and probe: checking → reachable / not-answering, founding-paused with its step, or missing. Each card resolves on its own. controlPlaneAnswering stops returning true for every public seat and uses the probe instead, so HO/HOx and the board agree. Plan Task 5.

Anti-goal (Ben): never disturb Whakatōhea Demo's existing seat (~/.config/IDSS on Ben's laptop). Nothing in this ticket may sync, push, deploy or open SSH to a gateway except where the ticket says so.

Acceptance criteria

  • Probe: 200 and 404 reachable; 503, timeout and TLS error not-answering; http or an unknown host refused.
  • Board: an operator seat goes checking → final; an unfounded draft is founding-paused with its step; a missing folder renders a missing card.
  • One hanging probe does not delay another card's final state.
  • A public seat is answering only on a reachable probe (bootSplash test).

Blocked by

Task manifest

task: probe-and-board-model
implements_flow: shell
implements_edge: launch→HB (card states)
wireframe: docs/ux/wireframes/shell/shell-hb-health-board.html
interface: |
  probeControlPanel(url, allowedHosts, fetchImpl?, timeoutMs?): Promise<'reachable'|'not-answering'>
  cardFromSeat(id, seat, founding): BoardCard
  loadBoard(sessions, probe, onCard): Promise<void>
  controlPlaneAnswering(seat, probe?)
binds:
  - symbol: probeControlPanel
    defined_in: app/src-electron/controlPanelProbe.ts
  - symbol: loadBoard
    defined_in: app/src/lib/healthBoard.ts
seam: app/tests/unit/controlPanelProbe.test.ts + healthBoard.test.ts + bootSplash tests
unproven_by_seam: a real rented control panel answering — the copy-proof run sees Whakatōhea Demo's
acceptance:
  - given: a control panel answering 503
    when: the board loads
    then: that card is not-answering and the others are unaffected
depends_on: [community-sessions]
out_of_scope: [health-board-ui]
needs_human_decision: []
## Parent - Spec: #2094 - ADR 0298 · DDR 0299 · wireframe `docs/ux/wireframes/shell/shell-hb-health-board.html` · flow `docs/ux/flows/shell.mermaid` node HB · build plan `docs/superpowers/plans/2026-10-29-many-communities-one-app.md` (exact names, signatures, file homes and tests per task). All land with design PR #2093. ## What to build Electron main gains `idss:probe-control-panel`: a GET to `https://admin.<apex>/` with a 10 000 ms timeout. 2xx–4xx is reachable; a timeout, network/TLS error or 5xx is not answering. Only https hosts of registered communities are allowed. The pure board model builds each card from a session's seat, founding state and probe: checking → reachable / not-answering, founding-paused with its step, or missing. Each card resolves on its own. `controlPlaneAnswering` stops returning `true` for every public seat and uses the probe instead, so HO/HOx and the board agree. Plan Task 5. **Anti-goal (Ben):** never disturb Whakatōhea Demo's existing seat (`~/.config/IDSS` on Ben's laptop). Nothing in this ticket may sync, push, deploy or open SSH to a gateway except where the ticket says so. ## Acceptance criteria - [ ] Probe: 200 and 404 reachable; 503, timeout and TLS error not-answering; http or an unknown host refused. - [ ] Board: an operator seat goes checking → final; an unfounded draft is founding-paused with its step; a missing folder renders a missing card. - [ ] One hanging probe does not delay another card's final state. - [ ] A public seat is answering only on a reachable probe (bootSplash test). ## Blocked by - #2093 - #2097 (community sessions) ## Task manifest ```yaml task: probe-and-board-model implements_flow: shell implements_edge: launch→HB (card states) wireframe: docs/ux/wireframes/shell/shell-hb-health-board.html interface: | probeControlPanel(url, allowedHosts, fetchImpl?, timeoutMs?): Promise<'reachable'|'not-answering'> cardFromSeat(id, seat, founding): BoardCard loadBoard(sessions, probe, onCard): Promise<void> controlPlaneAnswering(seat, probe?) binds: - symbol: probeControlPanel defined_in: app/src-electron/controlPanelProbe.ts - symbol: loadBoard defined_in: app/src/lib/healthBoard.ts seam: app/tests/unit/controlPanelProbe.test.ts + healthBoard.test.ts + bootSplash tests unproven_by_seam: a real rented control panel answering — the copy-proof run sees Whakatōhea Demo's acceptance: - given: a control panel answering 503 when: the board loads then: that card is not-answering and the others are unaffected depends_on: [community-sessions] out_of_scope: [health-board-ui] needs_human_decision: [] ```

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

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

⏩ independent reviewer for #2098 — verdict unauthenticated

review JSON
{
  "verdict": "unauthenticated",
  "findings": []
}
:fast_forward: **independent reviewer** for #2098 — verdict `unauthenticated` <details><summary>review JSON</summary> ```json { "verdict": "unauthenticated", "findings": [] } ``` </details>

close-report for #2098 — status success

✅ close-report gates passed — every claim verified against the pushed worker branch sandcastle/worker/20261030-092350-f0a05d (pre-land — the host promotes it to main only after its post-run verify, #193/#283); issue closed.

envelope
{
  "issue": 2098,
  "status": "success",
  "commits": [
    "c644a76adbe3a5fdafdeac8366d59e06e802525a"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src-electron/controlPanelProbe.ts",
    "app/src-electron/electron-main.ts",
    "app/src/lib/bootSplash.ts",
    "app/src/lib/healthBoard.ts",
    "app/tests/unit/bootSplash.test.ts",
    "app/tests/unit/controlPanelProbe.test.ts",
    "app/tests/unit/healthBoard.test.ts"
  ],
  "tests": [
    {
      "command": "cd app && node_modules/.bin/vitest run tests/unit/controlPanelProbe.test.ts tests/unit/healthBoard.test.ts tests/unit/bootSplash.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && node_modules/.bin/vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/eslint .",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Probe: 200 and 404 reachable; 503, timeout and TLS error not-answering; http or an unknown host refused": "app/src-electron/controlPanelProbe.ts (probeControlPanel); app/tests/unit/controlPanelProbe.test.ts — 200/404 reachable, 503/timeout/TLS not-answering, http + unknown-host refused",
    "Board: an operator seat goes checking → final; an unfounded draft is founding-paused with its step; a missing folder renders a missing card": "app/src/lib/healthBoard.ts (cardFromSeat/loadBoard); app/tests/unit/healthBoard.test.ts — checking→reachable, founding-paused with step, missing card",
    "One hanging probe does not delay another card's final state": "app/tests/unit/healthBoard.test.ts 'one hanging probe does not delay another card reaching its final state' — card B resolves reachable while A's probe hangs; loadBoard resolves each card on its own Promise",
    "A public seat is answering only on a reachable probe (bootSplash test)": "app/src/lib/bootSplash.ts controlPlaneAnswering(seat, probe?); app/tests/unit/bootSplash.test.ts — reachable→true, not-answering→false"
  },
  "binds": [
    {
      "symbol": "probeControlPanel",
      "defined_in": "app/src-electron/controlPanelProbe.ts"
    },
    {
      "symbol": "loadBoard",
      "defined_in": "app/src/lib/healthBoard.ts"
    },
    {
      "symbol": "cardFromSeat",
      "defined_in": "app/src/lib/healthBoard.ts"
    },
    {
      "symbol": "controlPlaneAnswering",
      "defined_in": "app/src/lib/bootSplash.ts"
    }
  ],
  "summary": "A read-only control-panel probe plus the pure health-board model; HO/HOx now reads the same probe signal (ADR 0298 d.8, DDR 0299).",
  "blockers": []
}
**close-report** for #2098 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261030-092350-f0a05d` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 2098, "status": "success", "commits": [ "c644a76adbe3a5fdafdeac8366d59e06e802525a" ], "changed_files": [ "STATUS.md", "app/src-electron/controlPanelProbe.ts", "app/src-electron/electron-main.ts", "app/src/lib/bootSplash.ts", "app/src/lib/healthBoard.ts", "app/tests/unit/bootSplash.test.ts", "app/tests/unit/controlPanelProbe.test.ts", "app/tests/unit/healthBoard.test.ts" ], "tests": [ { "command": "cd app && node_modules/.bin/vitest run tests/unit/controlPanelProbe.test.ts tests/unit/healthBoard.test.ts tests/unit/bootSplash.test.ts", "exit_code": 0 }, { "command": "cd app && node_modules/.bin/vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "node_modules/.bin/eslint .", "exit_code": 0 } ], "criteria": { "Probe: 200 and 404 reachable; 503, timeout and TLS error not-answering; http or an unknown host refused": "app/src-electron/controlPanelProbe.ts (probeControlPanel); app/tests/unit/controlPanelProbe.test.ts — 200/404 reachable, 503/timeout/TLS not-answering, http + unknown-host refused", "Board: an operator seat goes checking → final; an unfounded draft is founding-paused with its step; a missing folder renders a missing card": "app/src/lib/healthBoard.ts (cardFromSeat/loadBoard); app/tests/unit/healthBoard.test.ts — checking→reachable, founding-paused with step, missing card", "One hanging probe does not delay another card's final state": "app/tests/unit/healthBoard.test.ts 'one hanging probe does not delay another card reaching its final state' — card B resolves reachable while A's probe hangs; loadBoard resolves each card on its own Promise", "A public seat is answering only on a reachable probe (bootSplash test)": "app/src/lib/bootSplash.ts controlPlaneAnswering(seat, probe?); app/tests/unit/bootSplash.test.ts — reachable→true, not-answering→false" }, "binds": [ { "symbol": "probeControlPanel", "defined_in": "app/src-electron/controlPanelProbe.ts" }, { "symbol": "loadBoard", "defined_in": "app/src/lib/healthBoard.ts" }, { "symbol": "cardFromSeat", "defined_in": "app/src/lib/healthBoard.ts" }, { "symbol": "controlPlaneAnswering", "defined_in": "app/src/lib/bootSplash.ts" } ], "summary": "A read-only control-panel probe plus the pure health-board model; HO/HOx now reads the same probe signal (ADR 0298 d.8, DDR 0299).", "blockers": [] } ``` </details>

Notes for triage / design-verify (ADR 0298 d.8, DDR 0299, build plan Task 5):

  • unproven_by_seam: the seam probes a fake fetch — a real rented control panel answering is not exercised here. Task 6 (#2099) wires loadBoards probe to the idss:probe-control-panel IPC and registers founded apexes into the main allow-set via the active session, and is where a live leg first runs.
  • Two-way-door design call (ADR 0174 — veto anytime): controlPlaneAnswering(seat, probe?) gates the public path on the probe (reachable → answering) so the board and HO/HOx read the same signal. With no probe supplied, the relaunch splash keeps ADR 0032s answer (the resolved seat is the answer), so bootUpSeat is untouched and public relaunch does not regress. Revertible, and proven by the probe-gated bootSplash assertion; wiring the splashs own probe rides the active-session work. Not on the one-way-door list.
  • Out of scope (health-board-ui): the HB screen itself is Task 6; this slice ships the probe + pure model + the shared signal only.
Notes for triage / design-verify (ADR 0298 d.8, DDR 0299, build plan Task 5): - **`unproven_by_seam`:** the seam probes a fake fetch — a real rented control panel answering is not exercised here. Task 6 (#2099) wires `loadBoard`s probe to the `idss:probe-control-panel` IPC and registers founded apexes into the main allow-set via the active session, and is where a live leg first runs. - **Two-way-door design call (ADR 0174 — veto anytime):** `controlPlaneAnswering(seat, probe?)` gates the public path on the probe (`reachable` → answering) so the board and HO/HOx read the same signal. With **no** probe supplied, the relaunch splash keeps ADR 0032s answer (the resolved seat *is* the answer), so `bootUpSeat` is untouched and public relaunch does not regress. Revertible, and proven by the probe-gated `bootSplash` assertion; wiring the splashs own probe rides the active-session work. Not on the one-way-door list. - **Out of scope (health-board-ui):** the HB screen itself is Task 6; this slice ships the probe + pure model + the shared signal only.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#2098
No description provided.