shell: appupdate-ladder — the operator app's own honest update ladder #30
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
Reference
Matou/idss#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Feature spec: #22 (shell).
What to build
The operator app's own update, as a quiet strip on every app resting screen plus the AU screen (
docs/ux/wireframes/shell/shell-au-app-update.html), driven by theappupdatestate machine — shell's one owned engineering seam beside the UI kit (ADR 0098). The ladder iscurrent → available → downloaded (verified) → applied | failed (→ retry); the app checks on launch and every 24 h, and checking is silent — nothing belowavailablehas any surface. Download happens in the background, and the release's signature is verified beforedownloaded; an artifact that fails signature verification becomesfailed, is named, and is never offered for apply.When a release has been fetched on the app's own channel (ADR 0033) and verified, any app resting screen (W/HO/HD) shows a quiet strip — "A new version of this app is ready · See what's new" — never a block. "See what's new" opens AU (edges HO → AU / W → AU / HD → AU). AU shows current vs ready versions (with "downloaded · signature verified ✓"), the release notes rendered verbatim as shipped signed with the release (ADR 0068 discipline — the app never rewrites them), and an "Apply & restart" action beside "Not now". Apply is always the operator's act, and the app never restarts itself (ADR 0098 — the seat that founds and rescues must not vanish mid-operation): "Apply & restart" applies and restarts as the operator's deliberate act (edge AU → HO). A security release makes the strip prominent (warn styling), saying so on both the strip and AU — advice, never veto (ADR 0015); no v1 state blocks the seat on an update. A failed apply is honest: it states plainly that nothing was changed and the current version keeps working, names what failed with a one-click log, and offers "Retry update" beside "Keep using " (edge AU → AU self-loop) — the updater applies atomically or not at all, no partial state.
Note: the channel client is faked for this slice. The update vocabulary is provisioning's (Release, Release notes) — shell references, never redefines it (ticket #9's double-spec guard). This is the app's own channel, independent of every community's fleet policy; the device-side agent is untouched.
Acceptance criteria
availablein the state machine has any surface.failed, is named, and is never offered for apply.Blocked by
Task manifest
Done — committed as
e74247b(sandcastle: shell #30 — appupdate-ladder).The seam (
app/src/lib/appupdate.ts) — theappupdatestate machine behind one fakedChannelClient(feed fetch / download / signature verify / atomic apply), the laddercurrent → available → downloaded (verified) → applied | failed (→ retry):poll()is the silent launch + 24 h check — it never applies and never restarts.downloaded; a bad-signature artifact becomesfailed, is named, and is structurally never offered for apply (readyReleaseis non-null only atdownloaded).applyAndRestart()is the only place the restart hook fires (ADR 0098 — the app never restarts itself).retry()re-attempts the atomic apply (AU → AU) or re-polls after a signature failure.The UI:
AppUpdateStrip.vuerides every resting screen (W/HO/HD) viaRestingRoot— quiet "a new version is ready · See what's new" that opens AU; prominent (warn) and reworded for a security release — advice, never veto (ADR 0015).AppUpdateScreen.vue(AU) — current vs ready + "downloaded · signature verified ✓" pill, release notes rendered verbatim as shipped signed (ADR 0068), "Apply & restart" beside "Not now" (AU → HO), and the honest atomicfailedstate (nothing changed, current keeps working, named with a one-click log, "Retry update" beside "Keep using ", AU → AU).Acceptance — all six clauses (stories 6–9) covered and asserted at the seam.
Evidence: 58 app tests green (23 new — 8 state-machine seam
tests/unit/appupdate.test.ts, 3 strip, 7 AU, 5RestingRootintegration),vue-tscbuild + eslint clean. Channel client faked; references provisioning's Release / Release notes vocabulary, never redefines it. The device-side agent is untouched (updates with the fleet's pinned release, ADR 0054). STATUS.md +docs/slices/shell.yaml/map.htmlmarked done in the same commit.