operator app update: the release rail must publish the operator-app .deb as a feed artifact the app reader can consume (#2166 follow-up) #2169

Open
opened 2026-11-04 21:21:59 +00:00 by matou-build-agent · 1 comment

Split from #2166 (which pinned the feed URL + public key into the packaged operator app). That ticket made the installed app check the signed Matou channel with no env — but it still shows no update, because the release rail does not publish the operator-app .deb as a feed artifact the app's channel reader can consume.

The gap

  • The operator app's channel reader app/src/lib/matouChannel.ts reads a manifest with a single artifact ({ url, sha256, size? }) — ADR 0248's "signed artifact bundle" shape matouChannel.ts already reads (docs/architecture/11-update-supply-chain.md).
  • The fleet feed it is now pinned to, https://get.idss.nz/channel/testing.json, carries a role-keyed artifacts map (control-plane, control-panel, agent, idss-idp — scripts/release-rail/publish.sh / build_tree). There is no operator-app role, and the plural-artifacts shape is not what the app reader parses (so loadFeed() returns null → honest "no updates", channelSource() pin notwithstanding).

What to build

Decide and implement how the signed channel carries the operator-app build, then make the pin end-to-end:

  • Either publish a per-platform operator-app feed (e.g. get.idss.nz/channel/testing-app-<os>.json) in the single-artifact shape the app already reads, and re-pin PACKAGED_CHANNEL_SOURCE (app/src/entry/pinnedChannel.ts) to it — covered by the existing tests/unit/packagedConfig.test.ts;
  • Or extend testing.json with an operator-app artifact + teach matouChannel.ts to select the operator-app role for process.platform.
  • The rail must build, sign (the testing key), and publish the operator-app .deb (and the macOS artifacts when those ship) as part of the cut, with its digest in the signed manifest.

Acceptance (the #2166 ACs this unblocks)

  • An installed .deb built from main, launched with no IDSS_RELEASE_* env, shows the update strip when the feed carries a newer operator-app release than the running one.
  • Apply verifies the artifact signature against the pinned key, installs, and restarts onto the newer release (ADR 0098); a bad signature is refused, not installed. (The client logic is already proven at the seam by app/tests/unit/matouChannel.test.ts; this closes the publish → fetch → apply loop end-to-end.)

Notes

The publish side touches the signing rail and what each cut publishes (cost, and a change to the channel contract), so it is the one-way-ish / design-bearing half #2166 deliberately split out. GOTCHAS #410 records the hazard and names this ticket as the remaining half.

Split from #2166 (which pinned the feed URL + public key into the packaged operator app). That ticket made the installed app **check** the signed Matou channel with no env — but it still shows no update, because **the release rail does not publish the operator-app `.deb` as a feed artifact the app's channel reader can consume.** ## The gap - The operator app's channel reader `app/src/lib/matouChannel.ts` reads a manifest with a **single** `artifact` (`{ url, sha256, size? }`) — ADR 0248's "signed artifact bundle" shape `matouChannel.ts` already reads (`docs/architecture/11-update-supply-chain.md`). - The fleet feed it is now pinned to, `https://get.idss.nz/channel/testing.json`, carries a **role-keyed** `artifacts` map (`control-plane`, `control-panel`, `agent`, `idss-idp` — `scripts/release-rail/publish.sh` / `build_tree`). There is **no operator-app role**, and the plural-`artifacts` shape is not what the app reader parses (so `loadFeed()` returns null → honest "no updates", `channelSource()` pin notwithstanding). ## What to build Decide and implement how the signed channel carries the operator-app build, then make the pin end-to-end: - Either publish a per-platform operator-app feed (e.g. `get.idss.nz/channel/testing-app-<os>.json`) in the single-`artifact` shape the app already reads, and re-pin `PACKAGED_CHANNEL_SOURCE` (`app/src/entry/pinnedChannel.ts`) to it — covered by the existing `tests/unit/packagedConfig.test.ts`; - Or extend `testing.json` with an operator-app artifact + teach `matouChannel.ts` to select the operator-app role for `process.platform`. - The rail must **build, sign (the `testing` key), and publish** the operator-app `.deb` (and the macOS artifacts when those ship) as part of the cut, with its digest in the signed manifest. ## Acceptance (the #2166 ACs this unblocks) - [ ] An installed `.deb` built from main, launched with no `IDSS_RELEASE_*` env, **shows the update strip** when the feed carries a newer operator-app release than the running one. - [ ] Apply verifies the artifact signature against the pinned key, installs, and restarts onto the newer release (ADR 0098); a bad signature is refused, not installed. (The client logic is already proven at the seam by `app/tests/unit/matouChannel.test.ts`; this closes the publish → fetch → apply loop end-to-end.) ## Notes The publish side touches the signing rail and what each cut publishes (cost, and a change to the channel contract), so it is the one-way-ish / design-bearing half #2166 deliberately split out. GOTCHAS #410 records the hazard and names this ticket as the remaining half.
Author
Member

This was generated by AI during triage.

Triage: enhancement + ready-for-human

Category: enhancement — a new capability (the release rail publishing the operator-app .deb as a signed feed artifact).

Verified against the tree (what #2167 has since landed changes the remaining scope):

  • The channel-shape decision this ticket poses ("per-platform feed" vs "extend testing.json with an operator-app role") is already decided and built by #2167 (landed 32c8ca22): the reader (app/src/lib/matouChannel.ts) now reads the role-keyed fleet manifest and selects its own per-platform role app-<platform>-<arch> (operatorAppRole), and the cut side carries release-cut --app <os-arch>=<path> at an immutable versioned URL. Both are proven at the seam (app/tests/unit/matouChannel.test.ts, cmd/release-cut/main_test.go::TestCut_AppRolePerPlatform). So the contract-and-reader half is done — this ticket is no longer "decide the shape".
  • What remains is purely the rail + end-to-end: scripts/release-rail/publish.sh build_tree() builds only the Go fleet roles (control-plane / control-panel / idss-idp / agent) and never invokes release-cut --app with a built operator-app .deb.

What's left, and why it's human (not a swarm agent, and not a two-way-door agent ruling):

  1. No runner can build/package the Electron .deb. build_tree is CGO-free Go; packaging the Electron app hits the glibc/chrome-sandbox wall (GOTCHAS #471, #377). Which runner packages & how is a design+infra call — the same open question as #2083 (macOS/Windows installers, built in CI), which is ready-for-human.
  2. Signing needs the testing seed, which is not on this host (per the #2167 residue note), and the publish touches the live signing rail and the feed Whakatōhea Demo pins — non-routine, real-infra.
  3. AC2 is a security-posture widening. Installing a system .deb + relaunch requires root, and no update-install mechanism is designed yet ("the update feed is later work", PACKAGING.md). That is a one-way door under ADR 0174.

None of this is provable by an existing test/drive without a real build+sign+publish on infra that does not yet exist, so it is not a two-way-door agent ruling. It is the publish/design-bearing half #2166/#2167 deliberately split out, and sits with its siblings #2083 (installers in CI) and #2088 (mint the production key).

Why human

A design + infra decision on which runner builds, signs (with the testing seed, off-host), and publishes the Electron .deb as a feed role (CI cannot package Electron — glibc wall #471/#377; cf. #2083), plus AC2's security-posture widening — installing a system .deb as root with no update-install mechanism designed yet.

Proposed default ruling (for the human): split #2169 into (a) a ready-for-agent slice that wires publish.sh/the cut to pass a pre-built operator-app .deb through release-cut --app (provable by extending release-rail-test.sh, no Electron build on the rail), once (b) the build+sign+publish runner is decided alongside #2083, and leave AC2 (install/relaunch as root) to the install-mechanism design.

> *This was generated by AI during triage.* ## Triage: `enhancement` + `ready-for-human` **Category:** `enhancement` — a new capability (the release rail publishing the operator-app `.deb` as a signed feed artifact). **Verified against the tree (what #2167 has since landed changes the remaining scope):** - The **channel-shape decision** this ticket poses ("per-platform feed" vs "extend `testing.json` with an operator-app role") is **already decided and built** by #2167 (landed `32c8ca22`): the reader (`app/src/lib/matouChannel.ts`) now reads the role-keyed fleet manifest and selects its own per-platform role `app-<platform>-<arch>` (`operatorAppRole`), and the cut side carries `release-cut --app <os-arch>=<path>` at an immutable versioned URL. Both are proven at the seam (`app/tests/unit/matouChannel.test.ts`, `cmd/release-cut/main_test.go::TestCut_AppRolePerPlatform`). So the contract-and-reader half is **done** — this ticket is no longer "decide the shape". - What **remains** is purely the rail + end-to-end: `scripts/release-rail/publish.sh` `build_tree()` builds only the Go fleet roles (control-plane / control-panel / idss-idp / agent) and never invokes `release-cut --app` with a built operator-app `.deb`. **What's left, and why it's human (not a swarm agent, and not a two-way-door agent ruling):** 1. **No runner can build/package the Electron `.deb`.** `build_tree` is CGO-free Go; packaging the Electron app hits the glibc/`chrome-sandbox` wall (GOTCHAS #471, #377). *Which* runner packages & how is a design+infra call — the same open question as #2083 (macOS/Windows installers, built in CI), which is `ready-for-human`. 2. **Signing needs the `testing` seed**, which is not on this host (per the #2167 residue note), and the publish touches the live signing rail and the feed Whakatōhea Demo pins — non-routine, real-infra. 3. **AC2 is a security-posture widening.** Installing a system `.deb` + relaunch requires root, and no update-install mechanism is designed yet ("the update feed is later work", PACKAGING.md). That is a one-way door under ADR 0174. None of this is provable by an existing test/drive without a real build+sign+publish on infra that does not yet exist, so it is not a two-way-door agent ruling. It is the publish/design-bearing half #2166/#2167 deliberately split out, and sits with its siblings #2083 (installers in CI) and #2088 (mint the production key). ## Why human A **design + infra decision** on which runner builds, signs (with the `testing` seed, off-host), and publishes the Electron `.deb` as a feed role (CI cannot package Electron — glibc wall #471/#377; cf. #2083), **plus** AC2's **security-posture widening** — installing a system `.deb` as root with no update-install mechanism designed yet. **Proposed default ruling (for the human):** split #2169 into (a) a `ready-for-agent` slice that wires `publish.sh`/the cut to pass a *pre-built* operator-app `.deb` through `release-cut --app` (provable by extending `release-rail-test.sh`, no Electron build on the rail), once (b) the build+sign+publish runner is decided alongside #2083, and leave AC2 (install/relaunch as root) to the install-mechanism design.
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#2169
No description provided.