operator app: the installed app never offers an update — pin the release feed and key into the packaged build #2166
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
2 participants
Notifications
Due date
No due date set.
Reference
Matou/idss#2166
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?
What's wrong
The operator app's update strip (ADR 0098, the
AppUpdateladder inapp/src/lib/appupdate.ts) never appears in an installed app.channelSource()inapp/src-electron/electron-main.ts:74configures the update channel only when the process env carriesIDSS_RELEASE_FEEDandIDSS_RELEASE_PUBKEY. Nothing in packaging sets either one, so every.debwe've shipped (3363, 3371, 3400) silently falls back to the "no updates" refusal (ADR 0100). An operator never learns a new release exists. Ben hit this on 2026-11-04 when the GOTCHAS #409 fix (blank page on a card's Open) needed a hand-built installer to reach him.What to build
The packaged app carries its update channel: the testing feed's URL and the pinned public release key are fixed at build time, so an installed app finds them with no env.
scripts/release-rail/, get.idss.nz testing channel)..debas a feed artifact yet, that's part of this ticket, or split it out and say so here.Acceptance criteria
.debbuilt from main, launched with noIDSS_RELEASE_*env, checks the testing feed and shows the update strip when the feed carries a newer release than the running one.tests/unit/packagedConfig.test.tsis the natural home), so a future packaging change can't silently drop them again.swarm-claim host=bens-mac-04 run=60081
(automated multi-host claim — lowest live claim id works this ticket)
⏩ independent reviewer for #2166 — verdict
unauthenticatedreview JSON
close-report for #2166 — status
success✅ close-report gates passed — every claim verified against the pushed worker branch
sandcastle/worker/20261104-135410-63b0a2(pre-land — the host promotes it tomainonly after its post-run verify, #193/#283); issue closed.envelope
🚨 Reopened — a push-mode close did NOT land on
main(#283). close-report closed this issue against the pushed worker branch, but the host's post-run verify rolled the land back (the promote did not advance main (a no-op push to main)), soorigin/mainnever carried the commits (a871342077d74735fa8e7a4acd132f10e970728e). The gates-passed comment above is therefore NOT true ofmain. Reopening and relabellingready-for-sessionso the work is redone where it can land; the commits are parked on a rescue branch for triage (see this run's alarm).Close-report — pinned the update feed + key into the packaged build (landed on
main, push mode)Landed:
01b42f3eonmain.What shipped
The packaged operator app now carries its update channel as a build-time constant, the way the fleet is born tuned — so an installed
.debfinds its channel with no env.app/src/entry/pinnedChannel.ts:PACKAGED_CHANNEL_SOURCE=https://get.idss.nz/channel/testing.json+ thetestingpublic Ed25519 keyFEoWsURiW4Xu6IS/uxAbt28AUH6ioUg2tag/ORtMpoI=— the same pair asinternal/founding.ReleaseChannelFeedURL/ReleaseChannelPublicKey(one signed channel, ADR 0054; the key is not a secret, ADR 0033/0248 #211).packagedChannelSource(env, packaged): anIDSS_RELEASE_*env override wins (dev + tests); a packaged build falls back to the pin; a dev launch keeps the honest placeholder; a half-set env pair is ignored in favour of the pin so the feed + key never split (ADR 0248 dec. 3 amendment).channelSource()inapp/src-electron/electron-main.tsnow delegates to it (packagedChannelSource(process.env, app.isPackaged)). The pinned pair is compiled intodist-electron/electron-main.cjs(verified by grep of the built bundle) and flows boot-info →resolveUpdateChannel→ the realMatouChannelClient.Proof
app/tests/unit/packagedConfig.test.ts(+6, 11 green): pins both literals (== the Go founding constants), the env-override / dev / half-set resolution, and that the pin resolves to a real signed-Matou client, not the placeholder.build:main(bundle resolves the new import; pinned values present in the shipped.cjs),vue-tsc, andeslintall clean. Related suites green (packagedBoot/packagedBoundaries/boot/matouChannel/appupdate+packagedConfig= 41).app/tests/unit/matouChannel.test.tsagainst a real signed fixture.Acceptance criteria
packagedConfig.test.ts..debchecks the feed with no env — done (the pin builds the live client that polls on launch + 24 h); but it shows nothing until the feed carries the operator-app build (see split below).The split (AC "split it out and say so here")
The release rail does not publish the operator-app
.debas a feed artifact, and the shapes don't match:matouChannel.tsreads a singleartifactmanifest, while the fleettesting.jsoncarries a role-keyedartifactsmap (control-plane / control-panel / agent / idss-idp) — no operator-app build. So the pin makes the app check the channel honestly (ADR 0100: no regression, strictly better posture), but the end-to-end strip needs the publish side. That half — build/sign/publish the operator-app.debas a feed artifact (or a per-platform app feed) + close the end-to-end ACs — is filed as #2169 and named in GOTCHAS #410. It is the design/signing-rail-bearing (one-way-ish) half #2166 deliberately deferred.Ruled by agent under ADR 0174 — veto anytime. Two-way door, revertible per commit; proven by the seam suite.