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
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.
Dependencies
No dependencies set.
Reference
Matou/idss#2169
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?
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
.debas a feed artifact the app's channel reader can consume.The gap
app/src/lib/matouChannel.tsreads a manifest with a singleartifact({ url, sha256, size? }) — ADR 0248's "signed artifact bundle" shapematouChannel.tsalready reads (docs/architecture/11-update-supply-chain.md).https://get.idss.nz/channel/testing.json, carries a role-keyedartifactsmap (control-plane,control-panel,agent,idss-idp—scripts/release-rail/publish.sh/build_tree). There is no operator-app role, and the plural-artifactsshape is not what the app reader parses (soloadFeed()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:
get.idss.nz/channel/testing-app-<os>.json) in the single-artifactshape the app already reads, and re-pinPACKAGED_CHANNEL_SOURCE(app/src/entry/pinnedChannel.ts) to it — covered by the existingtests/unit/packagedConfig.test.ts;testing.jsonwith an operator-app artifact + teachmatouChannel.tsto select the operator-app role forprocess.platform.testingkey), 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)
.debbuilt from main, launched with noIDSS_RELEASE_*env, shows the update strip when the feed carries a newer operator-app release than the running one.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.
Triage:
enhancement+ready-for-humanCategory:
enhancement— a new capability (the release rail publishing the operator-app.debas a signed feed artifact).Verified against the tree (what #2167 has since landed changes the remaining scope):
testing.jsonwith an operator-app role") is already decided and built by #2167 (landed32c8ca22): the reader (app/src/lib/matouChannel.ts) now reads the role-keyed fleet manifest and selects its own per-platform roleapp-<platform>-<arch>(operatorAppRole), and the cut side carriesrelease-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".scripts/release-rail/publish.shbuild_tree()builds only the Go fleet roles (control-plane / control-panel / idss-idp / agent) and never invokesrelease-cut --appwith 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):
.deb.build_treeis CGO-free Go; packaging the Electron app hits the glibc/chrome-sandboxwall (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 isready-for-human.testingseed, 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..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
testingseed, off-host), and publishes the Electron.debas a feed role (CI cannot package Electron — glibc wall #471/#377; cf. #2083), plus AC2's security-posture widening — installing a system.debas root with no update-install mechanism designed yet.Proposed default ruling (for the human): split #2169 into (a) a
ready-for-agentslice that wirespublish.sh/the cut to pass a pre-built operator-app.debthroughrelease-cut --app(provable by extendingrelease-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.