update: the release source is still resting — wire the one signed Matou channel #308

Closed
opened 2026-08-05 23:11:27 +00:00 by ben · 3 comments
Owner

Known honest-rest slice, filed for the production-deployment ledger.

control-plane/cmd/control-plane/whole_composition.go (~line 200): the update orchestrator composes with restingReleaseSource{} — "the signed-Matou-channel read is out of arc (#181)". The rollout face itself is wired (#205), but no release can ever surface, so the fleet cannot receive updates in production — including security updates, which the policy defaults to ModeAuto.

Ben's ruling exists (#211: one signed Matou channel), and the app side already carries a signed-channel read with signature verification (app/src/lib/matouChannel.ts). The Go-side release source needs the same: read the channel, verify the signature, refuse loudly on a bad or unverifiable feed.

Ask: confirm this gates full production deployment (a fleet that cannot update probably shouldn't be someone's production), then spec the source against the existing channel format.


Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code).

Known honest-rest slice, filed for the production-deployment ledger. `control-plane/cmd/control-plane/whole_composition.go` (~line 200): the update orchestrator composes with `restingReleaseSource{}` — "the signed-Matou-channel read is out of arc (#181)". The rollout face itself is wired (#205), but no release can ever surface, so the fleet cannot receive updates in production — including security updates, which the policy defaults to `ModeAuto`. Ben's ruling exists (#211: one signed Matou channel), and the app side already carries a signed-channel read with signature verification (`app/src/lib/matouChannel.ts`). The Go-side release source needs the same: read the channel, verify the signature, refuse loudly on a bad or unverifiable feed. **Ask:** confirm this gates full production deployment (a fleet that cannot update probably shouldn't be someone's production), then spec the source against the existing channel format. --- _Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code)._
Author
Owner

This was generated by AI during triage.

Verification: Confirmed on main. The update orchestrator composes with a resting release source — no release can ever surface, so the fleet cannot receive updates (including security updates, whose policy defaults to auto-apply). The rollout face itself is wired and working; only the release source is unimplemented. Ben's ruling on the channel shape (#211, one signed Matou channel) exists, and the app side already has a signed-channel reader with signature verification to mirror on the Go side.

Recommendation: ready-for-human — the report itself argues this should gate production ("a fleet that cannot update probably shouldn't be someone's production"), but that's still a policy call for a maintainer to ratify, not something to self-certify in triage. Also needs a maintainer/spec pass to turn the existing app-side channel format + #211's ruling into a concrete spec for the Go-side reader before this is ready-for-agent.

Leaving enhancement + moving to ready-for-human.

> *This was generated by AI during triage.* **Verification:** Confirmed on `main`. The update orchestrator composes with a resting release source — no release can ever surface, so the fleet cannot receive updates (including security updates, whose policy defaults to auto-apply). The rollout face itself is wired and working; only the release source is unimplemented. Ben's ruling on the channel shape (#211, one signed Matou channel) exists, and the app side already has a signed-channel reader with signature verification to mirror on the Go side. **Recommendation:** `ready-for-human` — the report itself argues this should gate production ("a fleet that cannot update probably shouldn't be someone's production"), but that's still a policy call for a maintainer to ratify, not something to self-certify in triage. Also needs a maintainer/spec pass to turn the existing app-side channel format + #211's ruling into a concrete spec for the Go-side reader before this is `ready-for-agent`. Leaving `enhancement` + moving to `ready-for-human`.
Author
Owner

Ben ruled (2026-08-06, ready-for-human sweep): gates production — build now. A fleet that cannot take a security update is not production. Build the Go-side release source against the one signed Matou channel (#211): read the channel, verify the signature (the app's app/src/lib/matouChannel.ts is the reference implementation of the format), refuse loudly on a bad or unverifiable feed (ADR 0100). #315 (known-good rollback rung) rides behind this. Flipped ready-for-agent.

Ben ruled (2026-08-06, ready-for-human sweep): **gates production — build now**. A fleet that cannot take a security update is not production. Build the Go-side release source against the one signed Matou channel (#211): read the channel, verify the signature (the app's `app/src/lib/matouChannel.ts` is the reference implementation of the format), refuse loudly on a bad or unverifiable feed (ADR 0100). #315 (known-good rollback rung) rides behind this. Flipped `ready-for-agent`.
Author
Owner

Done in 25e43f7 (on origin/main).

The update orchestrator no longer composes with restingReleaseSource{} unconditionally — the fleet can receive updates on the one signed Matou channel in production (security included; policy defaults ModeAuto).

New internal/matouchannel — the Go-side twin of the app's reader (app/src/lib/matouChannel.ts, #211 — one signed channel, one pinned key). Source implements update.ReleaseSource: it reads the signed feed (a manifest JSON string + a detached base64 Ed25519 signature over exactly those bytes), verifies the signature against the pinned Matou release public key, and refuses loudly on a bad/malformed/unverifiable feed — an error, never a silent found=false (ADR 0100). Only the signed payload (revision/kind/title/notes/signed-by/published) crosses; the per-fleet framing (touches/nodes/services/affects-gateway) stays computed-local, never trusted from the feed (ADR 0068). The network read lives behind the Fetch seam (NewHTTPFetch, size-capped).

Wiring — the whole composition selects the real source behind OURCLOUD_RELEASE_FEED_URL + OURCLOUD_RELEASE_PUBLIC_KEY (productionReleaseSource); absent either, or a malformed key, it keeps the honest restingReleaseSource fallback (found=false — never a fabricated release). #315 (known-good rollback rung) rides behind this.

Tests (red-first) — the matouchannel seam suite (verified feed surfaces the signed release / tampered-manifest / wrong-signer / bad-base64 / malformed-feed / no-revision all refuse loud / empty channel rests / fetch fault errors) plus composition wiring (TestWholeComposition_PollsTheWiredReleaseSource, TestWholeComposition_RestsWhenNoReleaseSourceWired). go build/go vet/go test ./... and golangci-lint green. STATUS.md header + milestone log updated.

Done in 25e43f7 (on `origin/main`). The update orchestrator no longer composes with `restingReleaseSource{}` unconditionally — the fleet can receive updates on the one signed Matou channel in production (security included; policy defaults `ModeAuto`). **New `internal/matouchannel`** — the Go-side twin of the app's reader (`app/src/lib/matouChannel.ts`, #211 — one signed channel, one pinned key). `Source` implements `update.ReleaseSource`: it reads the signed feed (a manifest JSON string + a detached base64 Ed25519 signature over exactly those bytes), verifies the signature against the pinned Matou release public key, and **refuses loudly** on a bad/malformed/unverifiable feed — an error, never a silent `found=false` (ADR 0100). Only the signed payload (revision/kind/title/notes/signed-by/published) crosses; the per-fleet framing (touches/nodes/services/affects-gateway) stays computed-local, never trusted from the feed (ADR 0068). The network read lives behind the `Fetch` seam (`NewHTTPFetch`, size-capped). **Wiring** — the whole composition selects the real source behind `OURCLOUD_RELEASE_FEED_URL` + `OURCLOUD_RELEASE_PUBLIC_KEY` (`productionReleaseSource`); absent either, or a malformed key, it keeps the honest `restingReleaseSource` fallback (found=false — never a fabricated release). #315 (known-good rollback rung) rides behind this. **Tests (red-first)** — the `matouchannel` seam suite (verified feed surfaces the signed release / tampered-manifest / wrong-signer / bad-base64 / malformed-feed / no-revision all refuse loud / empty channel rests / fetch fault errors) plus composition wiring (`TestWholeComposition_PollsTheWiredReleaseSource`, `TestWholeComposition_RestsWhenNoReleaseSourceWired`). `go build`/`go vet`/`go test ./...` and `golangci-lint` green. STATUS.md header + milestone log updated.
ben closed this issue 2026-08-06 21:43:55 +00:00
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#308
No description provided.