release rail: every feed release blocks new foundings until the operator app is hand-built at the same revision — publish the app with the release #2209
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.
Dependencies
No dependencies set.
Reference
Matou/idss#2209
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 happened (2026-11-19, the TuIA re-founding on
tech.tuia.co)The operator app was 2026.11.3458 (
b2d4ffed). Overnight the release rail cut 2026.11.3467 (a456d16a) ontesting. The founding then stopped at the supply step, as designed (#1690 / #1769 / ADR 0272 §6):The only way forward was to hand-build
idss_2026.11.3467_amd64.debon the laptop at the feed revision: a detached checkout,pnpm install,scripts/package-app.shwith the payload reused from/opt/IDSS, plus the 7za→xz shim and ~10 GB of free disk. Thensudo apt install, then retry.That cost 42 minutes of a 1 h 42 m founding. The clean run is about 54 minutes. It is the single largest delay in a full deployment today, and it happens to every founding that starts after any fleet-affecting commit lands, which means most days.
Why
.forgejo/workflows/release-publish.ymlcuts and publishes the fleet software (agent, control-plane, control-panel, idss-idp) toget.idss.nz/channel/testing/<rev>/every 10 minutes, but never builds the operator app. The app has its own update channel by design (ADR 0033, ADR 0098appupdate), but nothing feeds it. The founding pin requires app revision == feed revision, so a fresh feed release without a matching app is a founding outage until someone rebuilds by hand.Ask
When the rail cuts a release, also build and publish the operator app for that same revision. That means
idss_<release>_amd64.deb(and the macOS build where the runner allows), signed, next to the fleet artifacts. The app'sappupdatechannel then offers it: the existing ADR 0098 flow, and the operator still chooses when to apply.Open questions for triage / design
scripts/assemble-payload.shrunnable there, or does the payload come from a cached artifact?downloaded")?Acceptance (draft)
Triage: enhancement →
ready-for-humanClaim verified in code.
.forgejo/workflows/release-publish.ymlruns onelitebook-03, cuts fleet releases every 10 min viascripts/release-rail/publish.sh, and signs with theRELEASE_TESTING_SEEDtesting key (stable needs the production key, held on one machine, promoted by a human command — ADR 0248 decision 3). Nothing in the workflow builds or publishes the operator app:grep -niE 'operator|app|\.deb|package-app|appupdate|idss_'over it finds only the seed secret. The hand-build path the report names is real —scripts/package-app.shandscripts/assemble-payload.shboth exist. So the founding pin (app rev == feed rev, #1690 / #1769 / ADR 0272 §6) does force a hand-build after every fleet-affecting cut, exactly as described.Redundancy: no existing app-publish mechanism in the rail. Prior rejection: none (
.out-of-scope/does not exist).Why human
The one-way door is the signing key / trust root for a newly-published signed artifact class — the report's own open question, "does the app artifact share the feed's signing key, or get its own (ADR 0098)?" Choosing to extend the feed's signing key to cover the operator
.deb, or minting the app its own key, is a security-posture decision (a trust anchor), which ADR 0174 keeps off the agent's two-way-door list. On stable that key lives on a single machine and promotion is a human command (ADR 0248 decision 3), so an agent cannot stand up the signed-publish leg unattended. This gates the ticket atready-for-humanuntil the key decision is made; the rest is agent-able below.What's needed (brief)
Goal: when the release rail cuts release N, also build, sign, and publish the operator app at the same revision N to its
appupdatechannel (ADR 0033 / ADR 0098), so a founding started on app N clears the supply step against feed N with no hand-build.Decide first (human):
downloaded". (the one-way door above.)Then agent-able (two-way doors, revertible by a later commit, provable by the rehearsal drive / a founding run):
scripts/assemble-payload.shruns on theelitebook-03runner that already holds the publish job, or the ~1.1 GB payload comes from a cached artifact. The runner is the same host the rail already uses; confirm by a dry build there.scripts/release-rail/publish.sh(or add a step inrelease-publish.ymlafterpublish.shexits 0) to emitidss_<rev>_amd64.debnext to the fleet artifacts and register it on theappupdatechannel.revision "a…" vs "b…"supply-step error with "a newer release is out — update the app" plus theappupdatelink. This is a pure operator-facing message change, fully reversible, and removes the worst of the sharp edge before the publish leg lands.Acceptance (from the report, confirmed as the right shape):
Recommendation (2026-11-19)
Let the app found at its own release; force an update only below a floor. The real fix for the founding outage is split out as #2210: a signed manifest per revision, so an app behind the feed resolves its own release. The gateway then reaches newest through the ordinary update lane (#1562). Forcing the app to newest instead would mean a ~1.1 GB update and a restart before most foundings, and a release landing in the first ~10 minutes of a founding would still break it.
With #2210 in place, this ticket stops being an outage fix and becomes "publish the app at all". Recommendations for the open questions:
internal/matouchannel). The fleet key decides what every gateway runs; the app key decides what operator laptops run. A leak of one shouldn't compromise both. ADR 0033 already gives the app its own channel.🤖 Generated with Claude Code