app: update-channel — the operator app's self-update goes real (needs the release-channel ruling) #211

Closed
opened 2026-07-30 23:20:34 +00:00 by ben · 2 comments
Owner

Parent

Shell spec #22 (the AU ladder). Gap audit 2026-07-30 (post #191–#195 sweep). Not on #183's journey — hardening filed alongside the blocker set, confirmed by Ben.

What's true today

  • The packaged app's update channel is a placeholder: check always answers nothing, apply always refuses honestly. The AU ladder runs its 24-hour cycle and can never offer a release.
  • The honest blocker is upstream of the code: nowhere do app releases publish. This is the same out-of-arc decision as the fleet's signed release channel (#181's ruling) reaching the app's own binary — an agent cannot invent the channel.

What to build

The ruling first: where operator-app releases publish and how they're signed (does the fleet's eventual signed-Matou channel carry the app too, or does the app ride its own feed?). Then the real channel client behind the existing seam: check reads the real feed, apply stages the real artifact, and absence of a configured channel keeps the honest refusal.

Acceptance criteria

  • Given the ruling and a published release, When the ladder checks, Then the real release is offered and apply stages it
  • Given no channel configured, Then the honest refusal — unchanged posture, never a fabricated update
  • Given a staged update, Then the AU ladder's existing consent flow drives it (no new UI)

Task manifest

task: app:update-channel
implements_seam: "the app's update channel seam (spec #22 AU) over the ruled release feed"
interface: "the operator app keeps itself current"
seam: "the AU ladder's seam tests over a real feed fixture"
acceptance:
  - given: a published app release; when: the ladder checks; then: offered and staged real — or refused honestly when no channel exists
depends_on: []
out_of_scope: [the fleet's release source (#181 out-of-arc — this ticket only consumes the ruling), macOS/Windows packaging]
needs_human_decision: ["where app releases publish and how they're signed — the #181 release-channel decision extended to the app binary"]

Blocks

None — #183's journey pins the app version by hand.

## Parent Shell spec #22 (the AU ladder). Gap audit 2026-07-30 (post #191–#195 sweep). Not on #183's journey — hardening filed alongside the blocker set, confirmed by Ben. ## What's true today - The packaged app's update channel is a placeholder: check always answers nothing, apply always refuses honestly. The AU ladder runs its 24-hour cycle and can never offer a release. - The honest blocker is upstream of the code: **nowhere do app releases publish**. This is the same out-of-arc decision as the fleet's signed release channel (#181's ruling) reaching the app's own binary — an agent cannot invent the channel. ## What to build The ruling first: where operator-app releases publish and how they're signed (does the fleet's eventual signed-Matou channel carry the app too, or does the app ride its own feed?). Then the real channel client behind the existing seam: check reads the real feed, apply stages the real artifact, and absence of a configured channel keeps the honest refusal. ## Acceptance criteria - [ ] Given the ruling and a published release, When the ladder checks, Then the real release is offered and apply stages it - [ ] Given no channel configured, Then the honest refusal — unchanged posture, never a fabricated update - [ ] Given a staged update, Then the AU ladder's existing consent flow drives it (no new UI) ## Task manifest ```yaml task: app:update-channel implements_seam: "the app's update channel seam (spec #22 AU) over the ruled release feed" interface: "the operator app keeps itself current" seam: "the AU ladder's seam tests over a real feed fixture" acceptance: - given: a published app release; when: the ladder checks; then: offered and staged real — or refused honestly when no channel exists depends_on: [] out_of_scope: [the fleet's release source (#181 out-of-arc — this ticket only consumes the ruling), macOS/Windows packaging] needs_human_decision: ["where app releases publish and how they're signed — the #181 release-channel decision extended to the app binary"] ``` ## Blocks None — #183's journey pins the app version by hand.
Author
Owner

Ruling taken (Ben, 2026-07-30): one signed Matou channel for everything — the fleet's signed release channel (the #181 out-of-arc decision) carries the operator-app binary too; the app does not ride its own feed. This lands where ADR 0033/0054 already point ("the operator app stays on Matou's release channel") — the ruling pins that the same signed channel serves both, one signing story, one publish point. Recorded on this ticket (commit fcb3ccc notes it; no new ADR — ADR 0033/0054 stand).

So the work here: the real channel client behind the existing AU seam reads the signed Matou feed; absence of a configured channel keeps the honest refusal (ADR 0100). Standing up the channel itself (where it publishes, the signing keys) is the shared out-of-arc release-source work the fleet side also waits on — this ticket consumes it.

needs_human_decision resolved — re-labelled ready-for-agent.

**Ruling taken (Ben, 2026-07-30): one signed Matou channel for everything** — the fleet's signed release channel (the #181 out-of-arc decision) carries the operator-app binary too; the app does not ride its own feed. This lands where ADR 0033/0054 already point ("the operator app stays on Matou's release channel") — the ruling pins that the *same signed channel* serves both, one signing story, one publish point. Recorded on this ticket (commit `fcb3ccc` notes it; no new ADR — ADR 0033/0054 stand). So the work here: the real channel client behind the existing AU seam reads the signed Matou feed; absence of a configured channel keeps the honest refusal (ADR 0100). Standing up the channel itself (where it publishes, the signing keys) is the shared out-of-arc release-source work the fleet side also waits on — this ticket consumes it. `needs_human_decision` resolved — re-labelled `ready-for-agent`.
Author
Owner

Done in commit 1b012c5 (on main).

Followed Ben's ruling on this ticket (the one signed Matou channel carries the operator-app binary too — ADR 0033/0054, no new ADR). Built the real MatouChannelClient (app/src/lib/matouChannel.ts) behind the appupdate ChannelClient seam (ADR 0098):

  • check reads the signed feed and offers only a strictly-newer version;
  • download verifies the manifest's Ed25519 signature against the pinned Matou release key AND the artifact's SHA-256 bound into that signed manifest (Web Crypto, real in prod and the seam) — a tampered manifest, substituted bytes, or a wrong signing key all fail the ladder's signatureValid gate, are named, and are never offered (ADR 0100/0068);
  • apply stages exactly the verified bytes for the operator's deliberate consent act — no new UI (the existing AU strip/screen drive it).

No channel configured → honest refusal: resolveUpdateChannel (app/src/entry/channel.ts) returns the existing placeholder when no source is pinned — the state today until the shared signed-release source publishes. The pinned feed URL + public key ride the boot bridge from the Electron shell (env-pinned in electron-main, threaded through electron-preload/boot-info/production/boot).

Acceptance:

  • Given the ruling + a published release, the ladder offers it and apply stages it — ✅ seam test offers a published, correctly-signed release and stages it.
  • Given no channel configured, honest refusal unchanged — ✅ resolveUpdateChannel tests + packagedConfig/packagedBoundaries.
  • Given a staged update, the existing consent flow drives it (no new UI) — ✅ plugs into AppUpdate/UpdateScheduler the shell already drives.

Evidence: app/tests/unit/matouChannel.test.ts (9 tests, green) drives the AU ladder over a really-signed Ed25519 feed fixture. vue-tsc + eslint clean. Note: app/tests/unit/boot.test.ts needs the Go toolchain to compile the helper (absent in the Sandcastle sandbox, #198) — unaffected by this change, passes in CI. STATUS.md updated (header lead + milestone log).

Done in commit `1b012c5` (on `main`). Followed Ben's ruling on this ticket (the one signed Matou channel carries the operator-app binary too — ADR 0033/0054, no new ADR). Built the real `MatouChannelClient` (`app/src/lib/matouChannel.ts`) behind the appupdate `ChannelClient` seam (ADR 0098): - **check** reads the signed feed and offers only a strictly-newer version; - **download** verifies the manifest's Ed25519 signature against the **pinned** Matou release key AND the artifact's SHA-256 bound into that signed manifest (Web Crypto, real in prod and the seam) — a tampered manifest, substituted bytes, or a wrong signing key all fail the ladder's `signatureValid` gate, are named, and are never offered (ADR 0100/0068); - **apply** stages exactly the verified bytes for the operator's deliberate consent act — no new UI (the existing AU strip/screen drive it). **No channel configured → honest refusal**: `resolveUpdateChannel` (`app/src/entry/channel.ts`) returns the existing placeholder when no source is pinned — the state today until the shared signed-release source publishes. The pinned feed URL + public key ride the boot bridge from the Electron shell (env-pinned in `electron-main`, threaded through `electron-preload`/`boot-info`/`production`/`boot`). **Acceptance:** - Given the ruling + a published release, the ladder offers it and apply stages it — ✅ seam test `offers a published, correctly-signed release and stages it`. - Given no channel configured, honest refusal unchanged — ✅ `resolveUpdateChannel` tests + `packagedConfig`/`packagedBoundaries`. - Given a staged update, the existing consent flow drives it (no new UI) — ✅ plugs into `AppUpdate`/`UpdateScheduler` the shell already drives. **Evidence:** `app/tests/unit/matouChannel.test.ts` (9 tests, green) drives the AU ladder over a really-signed Ed25519 feed fixture. `vue-tsc` + `eslint` clean. Note: `app/tests/unit/boot.test.ts` needs the Go toolchain to compile the helper (absent in the Sandcastle sandbox, #198) — unaffected by this change, passes in CI. STATUS.md updated (header lead + milestone log).
ben closed this issue 2026-07-31 02:21:09 +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#211
No description provided.