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

Open
opened 2026-11-19 17:52:02 +00:00 by ben · 2 comments
Owner

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) on testing. The founding then stopped at the supply step, as designed (#1690 / #1769 / ADR 0272 §6):

the signed feed's newest release is revision "a456d16a…" but this founding is revision "b2d4ffed…" — a fetch pinned to the founding release cannot take a different one

The only way forward was to hand-build idss_2026.11.3467_amd64.deb on the laptop at the feed revision: a detached checkout, pnpm install, scripts/package-app.sh with the payload reused from /opt/IDSS, plus the 7za→xz shim and ~10 GB of free disk. Then sudo 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.yml cuts and publishes the fleet software (agent, control-plane, control-panel, idss-idp) to get.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 0098 appupdate), 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's appupdate channel then offers it: the existing ADR 0098 flow, and the operator still chooses when to apply.

Open questions for triage / design

  • Where it builds: the elitebook-03 runner has the payload pieces (qcow2, qemu) — is scripts/assemble-payload.sh runnable there, or does the payload come from a cached artifact?
  • Signing: does the app artifact share the feed's signing key, or get its own (ADR 0098's "signature verified before downloaded")?
  • Until the app lands, should the founding say "a newer release is out — update the app" with a link, instead of the raw revision error? (A cheaper first step.)
  • Size: the .deb is ~1.1 GB, mostly the payload — check what the CDN and the runner's disk can hold per release.

Acceptance (draft)

  • A rail cut of release N publishes the app at revision N to its channel, signed, within the same tick or the next one.
  • A founding started on the app published for N passes the supply step against feed N with no hand-build.
  • The app's update strip offers N to a seat running N-1.
## 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`) on `testing`. The founding then stopped at the supply step, as designed (#1690 / #1769 / ADR 0272 §6): > the signed feed's newest release is revision "a456d16a…" but this founding is revision "b2d4ffed…" — a fetch pinned to the founding release cannot take a different one The only way forward was to **hand-build** `idss_2026.11.3467_amd64.deb` on the laptop at the feed revision: a detached checkout, `pnpm install`, `scripts/package-app.sh` with the payload reused from `/opt/IDSS`, plus the 7za→xz shim and ~10 GB of free disk. Then `sudo 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.yml` cuts and publishes the fleet software (agent, control-plane, control-panel, idss-idp) to `get.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 0098 `appupdate`), 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's `appupdate` channel then offers it: the existing ADR 0098 flow, and the operator still chooses when to apply. ## Open questions for triage / design - Where it builds: the elitebook-03 runner has the payload pieces (qcow2, qemu) — is `scripts/assemble-payload.sh` runnable there, or does the payload come from a cached artifact? - Signing: does the app artifact share the feed's signing key, or get its own (ADR 0098's "signature verified before `downloaded`")? - Until the app lands, should the founding say *"a newer release is out — update the app"* with a link, instead of the raw revision error? (A cheaper first step.) - Size: the .deb is ~1.1 GB, mostly the payload — check what the CDN and the runner's disk can hold per release. ## Acceptance (draft) - A rail cut of release N publishes the app at revision N to its channel, signed, within the same tick or the next one. - A founding started on the app published for N passes the supply step against feed N with no hand-build. - The app's update strip offers N to a seat running N-1.

This was generated by AI during triage.

Triage: enhancement → ready-for-human

Claim verified in code. .forgejo/workflows/release-publish.yml runs on elitebook-03, cuts fleet releases every 10 min via scripts/release-rail/publish.sh, and signs with the RELEASE_TESTING_SEED testing 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.sh and scripts/assemble-payload.sh both 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 at ready-for-human until 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 appupdate channel (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):

  • Signing — reuse the feed signing seed for the app artifact, or a separate app key per ADR 0098's "signature verified before 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):

  • Build site — whether scripts/assemble-payload.sh runs on the elitebook-03 runner 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.
  • Publish leg — extend scripts/release-rail/publish.sh (or add a step in release-publish.yml after publish.sh exits 0) to emit idss_<rev>_amd64.deb next to the fleet artifacts and register it on the appupdate channel.
  • Capacity — the ~1.1 GB/.deb against CDN + runner disk per retained release; prove retention/pruning doesn't regress the full-disk hazards already live on the fleet (cf. #2174/#2175/#2076).
  • Cheap first slice (recommended, independently landable): replace the raw revision "a…" vs "b…" supply-step error with "a newer release is out — update the app" plus the appupdate link. 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):

  • A rail cut of release N publishes the signed app at revision N to its channel within the same tick or the next.
  • A founding started on app N passes the supply step against feed N with no hand-build.
  • The app's update strip offers N to a seat running N-1.
> *This was generated by AI during triage.* ## Triage: enhancement → `ready-for-human` **Claim verified in code.** `.forgejo/workflows/release-publish.yml` runs on `elitebook-03`, cuts fleet releases every 10 min via `scripts/release-rail/publish.sh`, and signs with the `RELEASE_TESTING_SEED` testing 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.sh` and `scripts/assemble-payload.sh` both 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 at `ready-for-human` until 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 `appupdate` channel (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):** - **Signing** — reuse the feed signing seed for the app artifact, or a separate app key per ADR 0098's "signature verified before `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):** - **Build site** — whether `scripts/assemble-payload.sh` runs on the `elitebook-03` runner 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. - **Publish leg** — extend `scripts/release-rail/publish.sh` (or add a step in `release-publish.yml` after `publish.sh` exits 0) to emit `idss_<rev>_amd64.deb` next to the fleet artifacts and register it on the `appupdate` channel. - **Capacity** — the ~1.1 GB/.deb against CDN + runner disk per retained release; prove retention/pruning doesn't regress the full-disk hazards already live on the fleet (cf. #2174/#2175/#2076). - **Cheap first slice (recommended, independently landable):** replace the raw `revision "a…" vs "b…"` supply-step error with *"a newer release is out — update the app"* plus the `appupdate` link. 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):** - A rail cut of release N publishes the signed app at revision N to its channel within the same tick or the next. - A founding started on app N passes the supply step against feed N with no hand-build. - The app's update strip offers N to a seat running N-1.
Author
Owner

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:

  • Where it builds: elitebook-03, as a separate job after the feed cut, so a failed app build never holds back fleet software. Build on app-affecting changes or nightly, not on every 10-minute cut. Cache the payload (qcow2, qemu) as an artifact keyed by its inputs; it rarely changes.
  • Signing: the app channel gets its own key, using the same manifest format and tooling (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.
  • Interim message: do it now. Replace the raw revision error with "a newer release is out — update the app", plus the update screen. It is the same copy #2210's floor case needs.
  • Size: publish the app without the payload. ADR 0272 already made the payload an opt-in bundle for founding on your own device rather than a rented server. Fetch it on demand, only when its inputs change. That should take the download from ~1.1 GB to a few hundred MB. Keep the same number of app releases as the feed keeps per-revision manifests (#2210), so any app the channel still serves can found.

🤖 Generated with Claude Code

## 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: - **Where it builds:** elitebook-03, as a **separate job after the feed cut**, so a failed app build never holds back fleet software. Build on app-affecting changes or nightly, not on every 10-minute cut. Cache the payload (qcow2, qemu) as an artifact keyed by its inputs; it rarely changes. - **Signing:** the app channel gets **its own key**, using the same manifest format and tooling (`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. - **Interim message:** do it now. Replace the raw revision error with "a newer release is out — update the app", plus the update screen. It is the same copy #2210's floor case needs. - **Size:** publish the app **without the payload**. ADR 0272 already made the payload an opt-in bundle for founding on your own device rather than a rented server. Fetch it on demand, only when its inputs change. That should take the download from ~1.1 GB to a few hundred MB. Keep the same number of app releases as the feed keeps per-revision manifests (#2210), so any app the channel still serves can found. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#2209
No description provided.