app: a helper crash on a founded machine lands the operator on Welcome offering "Found a community" #305

Closed
opened 2026-08-05 23:11:19 +00:00 by ben · 2 comments
Owner

app/src/lib/seatSource.ts:59-65 — refresh() catches a bridge failure and answers unconfigured. This is deliberate and Ben-ruled (#202): honest for a never-read machine. But the failure mode on a founded operator's machine is that a helper crash presents Welcome with "Found a community" — stale state presented as truth, no sign the helper is gone, and the scariest possible screen for a founder.

Needs Ben's ruling (it amends #202's call): keep unconfigured as the never-read default, but distinguish "the bridge answered unconfigured" from "the bridge did not answer" — the latter rendering a helper-unreachable fault (the shell already has an unreachable posture) instead of Welcome.

Acceptance (if ruled yes)

  • Bridge-unreachable ⇒ fault state, not Welcome; genuine unconfigured unchanged.
  • Vitest for both.

Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code).

`app/src/lib/seatSource.ts:59-65` — `refresh()` catches a bridge failure and answers `unconfigured`. This is deliberate and Ben-ruled (#202): honest for a never-read machine. But the failure mode on a **founded** operator's machine is that a helper crash presents Welcome with "Found a community" — stale state presented as truth, no sign the helper is gone, and the scariest possible screen for a founder. **Needs Ben's ruling** (it amends #202's call): keep `unconfigured` as the never-read default, but distinguish "the bridge answered unconfigured" from "the bridge did not answer" — the latter rendering a helper-unreachable fault (the shell already has an unreachable posture) instead of Welcome. **Acceptance (if ruled yes)** - Bridge-unreachable ⇒ fault state, not Welcome; genuine unconfigured unchanged. - Vitest for both. --- _Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code)._
Author
Owner

Ben ruled (2026-08-06, ready-for-human sweep): yes — amend #202. Bridge-unreachable (no answer) renders the shell's helper-unreachable fault posture, never Welcome; a genuine unconfigured answer keeps Welcome unchanged. Acceptance as written in the body (both states vitested). Flipped ready-for-agent.

Ben ruled (2026-08-06, ready-for-human sweep): **yes — amend #202**. Bridge-unreachable (no answer) renders the shell's helper-unreachable fault posture, never Welcome; a genuine `unconfigured` answer keeps Welcome unchanged. Acceptance as written in the body (both states vitested). Flipped `ready-for-agent`.
Author
Owner

Done in 4d6c66d (on origin/main).

Per Ben's ruling (amend #202), a bridge failure is now distinguished from a genuine unconfigured answer:

  • seat.ts — new UnreachableSeat ({ kind: 'unreachable' }), the helper-did-not-answer fault, distinct from the honest no-community unconfigured. RestingScreen gains helper-unreachable; resolveRestingScreen maps it (exhaustive switch).
  • seatSource.ts — BridgeSeatSource.refresh's catch now rests at { kind: 'unreachable' } instead of unconfigured. The initial ref stays unconfigured (the never-read default / pre-refresh Welcome unchanged).
  • HelperUnreachableScreen.vue — a new fail-loud fault screen (ADR 0100): data-status="helper-unreachable", says plainly the helper isn't answering and offers no founding action. Wired into RestingRoot.

Acceptance:

  • Bridge-unreachable ⇒ fault state, not Welcome — ✓ (seatSource.test.ts: a bridge failure rests unreachable; a helper crash rests the root at the fault screen, no "Found a community" offer; restingRoot.test.ts).
  • Genuine unconfigured unchanged — ✓ (seatSource.test.ts / restingRoot.test.ts still rest at Welcome).
  • Vitest for both — ✓ (also seat.test.ts resolveRestingScreen → helper-unreachable).

vitest (55/56 suites; boot.test.ts needs the Go toolchain, absent in-sandbox, unrelated) and vue-tsc green.

Done in `4d6c66d` (on `origin/main`). Per Ben's ruling (amend #202), a bridge failure is now distinguished from a genuine `unconfigured` answer: - **`seat.ts`** — new `UnreachableSeat` (`{ kind: 'unreachable' }`), the helper-did-not-answer fault, distinct from the honest no-community `unconfigured`. `RestingScreen` gains `helper-unreachable`; `resolveRestingScreen` maps it (exhaustive switch). - **`seatSource.ts`** — `BridgeSeatSource.refresh`'s catch now rests at `{ kind: 'unreachable' }` instead of `unconfigured`. The initial `ref` stays `unconfigured` (the never-read default / pre-refresh Welcome unchanged). - **`HelperUnreachableScreen.vue`** — a new fail-loud fault screen (ADR 0100): `data-status="helper-unreachable"`, says plainly the helper isn't answering and offers **no** founding action. Wired into `RestingRoot`. **Acceptance:** - Bridge-unreachable ⇒ fault state, not Welcome — ✓ (`seatSource.test.ts`: a bridge failure rests `unreachable`; a helper crash rests the root at the fault screen, no "Found a community" offer; `restingRoot.test.ts`). - Genuine `unconfigured` unchanged — ✓ (`seatSource.test.ts` / `restingRoot.test.ts` still rest at Welcome). - Vitest for both — ✓ (also `seat.test.ts` resolveRestingScreen → `helper-unreachable`). `vitest` (55/56 suites; `boot.test.ts` needs the Go toolchain, absent in-sandbox, unrelated) and `vue-tsc` green.
ben closed this issue 2026-08-06 19:48:41 +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.

Dependencies

No dependencies set.

Reference
Matou/idss#305
No description provided.