feed: publish a signed manifest per revision so an operator app behind the feed can still found at its own release #2210

Open
opened 2026-11-19 18:03:42 +00:00 by ben · 1 comment
Owner

Problem

A founding refuses unless the signed feed's newest release is exactly the app's own revision (internal/foundfetch/foundfetch.go, ADR 0272 §6, #1769). The rail cuts a release whenever fleet code lands (checked every 10 minutes), so any app that is one release behind cannot found until it is rebuilt. On 2026-11-19 that cost the TuIA founding 42 of its 102 minutes (#2209).

The refusal is not a policy against older releases. It is a gap in what the feed publishes. The resolver's own comment says so:

The feed serves only the newest manifest (there is no per-revision manifest endpoint), so the only signature-verifiable founding fetch is one where newest IS the founding release

The per-revision artifacts are already served (/channel/<name>/<rev>/<role>). Only a signed manifest per revision is missing.

Ask

  1. The rail publishes a signed manifest per revision (e.g. /channel/<name>/<rev>/manifest.json + signature, same format and key as today's channel manifest via internal/matouchannel), next to the per-revision artifacts. It keeps the newest one at the channel URL as now.

  2. The founding resolves its own revision's manifest and pins to it, so an app behind the feed founds at its own release. #1690's concern was a build ahead of the feed; behind is the ordinary case. The gateway then moves to newest through the existing update lane (#1562), which every community uses anyway.

  3. Retention: the feed keeps the last N revisions' manifests and artifacts (proposal: 14 days or 20 releases, whichever is more).

  4. A floor, not a forced update: the founding still refuses, but with operator copy and the app's update screen (ADR 0098), only when

    • the app's revision is no longer in the feed (pruned), or
    • the feed marks it withdrawn (a new signed withdrawn list for a release with a security or data-loss bug).

    An app ahead of the feed keeps today's loud refusal.

Seam

foundfetch resolver tests against a fake feed:

  • newest = founding: unchanged;
  • newest > founding with the founding manifest present: resolves the founding revision, verified;
  • founding pruned: refuses with the floor error;
  • founding withdrawn: refuses with the floor error;
  • founding ahead of newest: today's refusal.

A rail test checks the per-revision manifest is written and signed.

Out of scope

  • Publishing the operator app itself (#2209).
  • Changing the update lane's apply policy.

Needs

A short ADR amending ADR 0272 §6 ("pinned by exact revision" stays; "only newest is verifiable" goes) and the floor/withdrawn rule.

## Problem A founding refuses unless the signed feed's **newest** release is exactly the app's own revision (`internal/foundfetch/foundfetch.go`, ADR 0272 §6, #1769). The rail cuts a release whenever fleet code lands (checked every 10 minutes), so any app that is one release behind cannot found until it is rebuilt. On 2026-11-19 that cost the TuIA founding 42 of its 102 minutes (#2209). The refusal is not a policy against older releases. It is a gap in what the feed publishes. The resolver's own comment says so: > The feed serves only the newest manifest (there is no per-revision manifest endpoint), so the only signature-verifiable founding fetch is one where newest IS the founding release The per-revision **artifacts** are already served (`/channel/<name>/<rev>/<role>`). Only a signed manifest per revision is missing. ## Ask 1. **The rail publishes a signed manifest per revision** (e.g. `/channel/<name>/<rev>/manifest.json` + signature, same format and key as today's channel manifest via `internal/matouchannel`), next to the per-revision artifacts. It keeps the newest one at the channel URL as now. 2. **The founding resolves its own revision's manifest** and pins to it, so an app behind the feed founds at its own release. #1690's concern was a build *ahead* of the feed; behind is the ordinary case. The gateway then moves to newest through the existing update lane (#1562), which every community uses anyway. 3. **Retention:** the feed keeps the last N revisions' manifests and artifacts (proposal: 14 days or 20 releases, whichever is more). 4. **A floor, not a forced update:** the founding still refuses, but with operator copy and the app's update screen (ADR 0098), only when - the app's revision is no longer in the feed (pruned), or - the feed marks it withdrawn (a new signed `withdrawn` list for a release with a security or data-loss bug). An app *ahead* of the feed keeps today's loud refusal. ## Seam `foundfetch` resolver tests against a fake feed: - newest = founding: unchanged; - newest > founding with the founding manifest present: resolves the founding revision, verified; - founding pruned: refuses with the floor error; - founding withdrawn: refuses with the floor error; - founding ahead of newest: today's refusal. A rail test checks the per-revision manifest is written and signed. ## Out of scope - Publishing the operator app itself (#2209). - Changing the update lane's apply policy. ## Needs A short ADR amending ADR 0272 §6 ("pinned by exact revision" stays; "only newest is verifiable" goes) and the floor/withdrawn rule.

This was generated by AI during triage.

Triage: enhancement + needs-design

Category — enhancement. A new feed capability (a signed manifest per revision) plus a new founding resolver path. Not a defect in existing behaviour.

Claim verified against the code. The gap is real and exactly as described:

  • internal/foundfetch/foundfetch.go:19-25 — the resolver refuses loud unless the feed's newest manifest names EXACTLY the founding revision, and the comment states the cause verbatim: "the feed serves only the newest manifest (there is no per-revision manifest endpoint), so the only signature-verifiable founding fetch is one where newest IS the founding release."
  • foundfetch.go:177-179 + RevisionMismatchError (line ~147) — the "newest ≠ founding" refusal, citing ADR 0272 §6, #1769.
  • docs/adr/0272-...md:124-129 — §6 "Everything is pinned by exact revision, never latest." The per-revision artifacts are already served; only the per-revision signed manifest is missing.

Not already implemented. Searched internal/foundfetch, internal/matouchannel, and ADR 0272 — no per-revision manifest endpoint exists today.

Why needs-design (not ready-for-agent). The issue's own ## Needs section requires a design artifact that does not exist yet, and an implementing agent would have to build against it:

  1. An ADR amending ADR 0272 §6 — it relaxes the founding-time verification invariant ("only newest is verifiable" goes; "pinned by exact revision" stays). That is a change to the signed founding feed's trust model, not a mechanical edit.
  2. A new signed withdrawn primitive — a new trust mechanism for pulling a release with a security or data-loss bug. Its signing story, publication location, authority, and format are undesigned. A swarm worker should not invent a security primitive on the founding trust chain unreviewed.
  3. The floor/withdrawn operator copy against ADR 0098's update-screen contract, and the retention policy (proposed 14 days / 20 releases).

Per the design-to-agent missing-design gate, this routes to a DDR pass first (amend ADR 0272 §6 + define the floor/withdrawn rule and the per-revision manifest contract), after which the well-formed seam already sketched here (foundfetch resolver cases + a rail manifest-written-and-signed test) makes it a clean ready-for-agent implementation ticket.

ADR 0174 note. This routing is a two-way door — relabel to ready-for-agent anytime once the ADR lands, or veto this needs-design call directly. It was NOT ruled ready-for-agent by the agent because the undesigned pieces (2) and (1) sit on the signed founding trust chain, which is security-posture-adjacent and belongs in a reviewed DDR rather than a swarm worker's discretion.

Not an app report: the body carries no <!-- origin: app-report --> marker, so no landing-pr inheritance applies.

> *This was generated by AI during triage.* ## Triage: `enhancement` + `needs-design` **Category — enhancement.** A new feed capability (a signed manifest per revision) plus a new founding resolver path. Not a defect in existing behaviour. **Claim verified against the code.** The gap is real and exactly as described: - `internal/foundfetch/foundfetch.go:19-25` — the resolver refuses loud unless the feed's *newest* manifest names EXACTLY the founding revision, and the comment states the cause verbatim: "the feed serves only the newest manifest (there is no per-revision manifest endpoint), so the only signature-verifiable founding fetch is one where newest IS the founding release." - `foundfetch.go:177-179` + `RevisionMismatchError` (line ~147) — the "newest ≠ founding" refusal, citing `ADR 0272 §6, #1769`. - `docs/adr/0272-...md:124-129` — §6 "Everything is pinned by exact revision, never latest." The per-revision **artifacts** are already served; only the per-revision signed **manifest** is missing. **Not already implemented.** Searched `internal/foundfetch`, `internal/matouchannel`, and ADR 0272 — no per-revision manifest endpoint exists today. **Why `needs-design` (not `ready-for-agent`).** The issue's own `## Needs` section requires a design artifact that does not exist yet, and an implementing agent would have to build against it: 1. An **ADR amending ADR 0272 §6** — it relaxes the founding-time verification invariant ("only newest is verifiable" goes; "pinned by exact revision" stays). That is a change to the **signed founding feed's trust model**, not a mechanical edit. 2. A new signed **`withdrawn`** primitive — a new trust mechanism for pulling a release with a security or data-loss bug. Its signing story, publication location, authority, and format are undesigned. A swarm worker should not invent a security primitive on the founding trust chain unreviewed. 3. The **floor/withdrawn operator copy** against ADR 0098's update-screen contract, and the **retention** policy (proposed 14 days / 20 releases). Per the design-to-agent missing-design gate, this routes to a DDR pass first (amend ADR 0272 §6 + define the floor/withdrawn rule and the per-revision manifest contract), after which the well-formed seam already sketched here (`foundfetch` resolver cases + a rail manifest-written-and-signed test) makes it a clean `ready-for-agent` implementation ticket. **ADR 0174 note.** This routing is a two-way door — relabel to `ready-for-agent` anytime once the ADR lands, or veto this `needs-design` call directly. It was NOT ruled `ready-for-agent` by the agent because the undesigned pieces (2) and (1) sit on the signed founding trust chain, which is security-posture-adjacent and belongs in a reviewed DDR rather than a swarm worker's discretion. Not an app report: the body carries no `<!-- origin: app-report -->` marker, so no `landing-pr` inheritance applies.
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#2210
No description provided.