app: Operator home's VM row can read stale "stopped" after the helper's auto-start (ADR 0129 follow-up) #311

Closed
opened 2026-08-05 23:59:32 +00:00 by ben · 3 comments
Owner

From the private-standup-polish arc's final whole-branch review (branch private-standup-polish, ADR 0129).

The race: BridgeSeatSource resolves the seat ONCE at boot (bootstrap.ts refresh) and again only on the guest-stop/guest-start op returns. The helper's guest auto-start (ADR 0129, guestlifecycle.go AutoStart) runs async at helper boot — so the boot-time seat read can land before the unit is up, and Operator home then shows stopped · Start the VM with nothing ever re-reading. Self-heals only via user action (Start is idempotent, so clicking through is harmless — but the row lied until then).

Suggested shape (reviewer): re-read the seat on window focus and/or a short one-shot delayed refresh after boot (a poll is overkill — the row is quiet-while-healthy).

Related deferred minors from the same arc (fold in if cheap, or split):

  • A failed guest-stop/guest-start is silent in the UI — the row re-arms with no reason shown. Needs a wireframe ruling for the error affordance first (shell-ho-operator-home.html).
  • HOx (operator-home-unreachable) has no local-VM row: if a later slice sets healthy: false for a stopped guest, Start becomes unreachable from HOx. Entangled with the seat-health slice; ADR 0129 already notes the interplay is deferred.
  • Dev build shares the prod journey-calibration.json path — one dev run poisons the enroll denominator until the next real drive (wiring_dev.go).
From the private-standup-polish arc's final whole-branch review (branch `private-standup-polish`, ADR 0129). **The race:** `BridgeSeatSource` resolves the seat ONCE at boot (`bootstrap.ts` refresh) and again only on the `guest-stop`/`guest-start` op returns. The helper's guest auto-start (ADR 0129, `guestlifecycle.go AutoStart`) runs async at helper boot — so the boot-time `seat` read can land before the unit is up, and Operator home then shows `stopped · Start the VM` with nothing ever re-reading. Self-heals only via user action (Start is idempotent, so clicking through is harmless — but the row lied until then). **Suggested shape (reviewer):** re-read the seat on window focus and/or a short one-shot delayed refresh after boot (a poll is overkill — the row is quiet-while-healthy). **Related deferred minors from the same arc (fold in if cheap, or split):** - A failed `guest-stop`/`guest-start` is silent in the UI — the row re-arms with no reason shown. Needs a wireframe ruling for the error affordance first (`shell-ho-operator-home.html`). - HOx (`operator-home-unreachable`) has no local-VM row: if a later slice sets `healthy: false` for a stopped guest, Start becomes unreachable from HOx. Entangled with the seat-health slice; ADR 0129 already notes the interplay is deferred. - Dev build shares the prod `journey-calibration.json` path — one dev run poisons the enroll denominator until the next real drive (`wiring_dev.go`).
Author
Owner

This was generated by AI during triage.

Verification: Checked the codebase this report cites. BridgeSeatSource.refresh() (the seat-once-at-boot behavior) is confirmed exactly as described — called once from the composition root at boot, no focus- or poll-triggered re-read anywhere. But the rest of the surface this report is actually about doesn't exist on main yet: there is no Operator-home VM row, no guest-stop/guest-start ops, no guestlifecycle.go/helper-side async AutoStart, and no VM/health field anywhere on the seat model (Seat/SeatResult carry only kind + community today).

This lines up with the report's own framing — it's filed as an ADR 0129 (private-standup-polish) follow-up, and that arc hasn't landed in this repository (no such branch exists in this checkout, and none of the UI/ops it describes appear anywhere in the tree yet).

Recommendation: ready-for-human — there's nothing here for an agent to act on right now; the whole surface this bug is about ships with the ADR 0129 arc landing. Needs a human call on:

  1. Hold this open until ADR 0129 lands, then fold in the reviewer's suggested fix (re-read the seat on window focus and/or a short one-shot delayed refresh after boot) — or track it some other way.
  2. What to do with the three "related deferred minors" bundled in the body — one of them ("failed guest-stop/guest-start is silent in the UI") explicitly needs a wireframe ruling on the error affordance first. shell-ho-operator-home.html does exist, but doesn't yet rule on that state, so this isn't a missing-file needs-design case — it's an unmade decision inside an existing wireframe, which still wants a human call rather than a guess.

Headless triage can't safely guess the sequencing here, so routing to ready-for-human rather than ready-for-agent or closing.

> *This was generated by AI during triage.* **Verification:** Checked the codebase this report cites. `BridgeSeatSource.refresh()` (the seat-once-at-boot behavior) is confirmed exactly as described — called once from the composition root at boot, no focus- or poll-triggered re-read anywhere. But the rest of the surface this report is actually about doesn't exist on `main` yet: there is no Operator-home VM row, no `guest-stop`/`guest-start` ops, no `guestlifecycle.go`/helper-side async `AutoStart`, and no VM/health field anywhere on the seat model (`Seat`/`SeatResult` carry only `kind` + `community` today). This lines up with the report's own framing — it's filed as an ADR 0129 (`private-standup-polish`) follow-up, and that arc hasn't landed in this repository (no such branch exists in this checkout, and none of the UI/ops it describes appear anywhere in the tree yet). **Recommendation:** `ready-for-human` — there's nothing here for an agent to act on right now; the whole surface this bug is about ships with the ADR 0129 arc landing. Needs a human call on: 1. Hold this open until ADR 0129 lands, then fold in the reviewer's suggested fix (re-read the seat on window focus and/or a short one-shot delayed refresh after boot) — or track it some other way. 2. What to do with the three "related deferred minors" bundled in the body — one of them ("failed guest-stop/guest-start is silent in the UI") explicitly needs a wireframe ruling on the error affordance first. `shell-ho-operator-home.html` does exist, but doesn't yet rule on that state, so this isn't a missing-file `needs-design` case — it's an unmade decision inside an existing wireframe, which still wants a human call rather than a guess. Headless triage can't safely guess the sequencing here, so routing to `ready-for-human` rather than `ready-for-agent` or closing.
Author
Owner

Ben ruled (2026-08-06, ready-for-human sweep): fix shape approved (focus re-read + one-shot delayed post-boot refresh, no poll) and all three riding minors fold in: (a) a failed guest-stop/guest-start shows a minimal inline error on the row — no wireframe pass needed; (b) HOx gains the local-VM row so Start stays reachable; (c) dev builds get their own calibration path, prod's stays clean. Labelled no-triage — being actioned manually in the current session, not by the swarm.

Ben ruled (2026-08-06, ready-for-human sweep): fix shape approved (focus re-read + one-shot delayed post-boot refresh, no poll) and **all three riding minors fold in**: (a) a failed guest-stop/guest-start shows a minimal inline error on the row — no wireframe pass needed; (b) HOx gains the local-VM row so Start stays reachable; (c) dev builds get their own calibration path, prod's stays clean. Labelled `no-triage` — being actioned manually in the current session, not by the swarm.
Author
Owner

Landed as b837c03 on private-standup-polish (Ben's ruling: actioned manually in-session, all three minors folded in):

  1. Stale row: armSeatRereads — one delayed settle re-read (15 s) + a window-focus re-read, armed by the composition root after the boot refresh. No poll.
  2. Silent Stop/Start failure: the row is extracted into a shared LocalVmRow.vue that surfaces the helper's own refusal line inline (data-field="vm-error", warning ink), cleared when the next attempt starts.
  3. HOx local-VM row: the unreachable screen renders the same drivable row — on the private path a stopped guest IS the unreachability, so Start stays reachable.
  4. Dev calibration split: wiring_dev.go → journey-calibration.dev.json; demo drives can no longer poison the packaged app's denominators.

vitest 696 green, both helper build variants pass, renderer + electron rebuilt. Closes with the merge of private-standup-polish.

Landed as `b837c03` on `private-standup-polish` (Ben's ruling: actioned manually in-session, all three minors folded in): 1. **Stale row**: `armSeatRereads` — one delayed settle re-read (15 s) + a window-focus re-read, armed by the composition root after the boot refresh. No poll. 2. **Silent Stop/Start failure**: the row is extracted into a shared `LocalVmRow.vue` that surfaces the helper's own refusal line inline (`data-field="vm-error"`, warning ink), cleared when the next attempt starts. 3. **HOx local-VM row**: the unreachable screen renders the same drivable row — on the private path a stopped guest IS the unreachability, so Start stays reachable. 4. **Dev calibration split**: `wiring_dev.go` → `journey-calibration.dev.json`; demo drives can no longer poison the packaged app's denominators. vitest 696 green, both helper build variants pass, renderer + electron rebuilt. Closes with the merge of `private-standup-polish`.
ben closed this issue 2026-08-06 22:05: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#311
No description provided.