the gateway fetches Mātou's own binaries from the signed feed at the founding revision, instead of carrying them (ADR 0272) #1769
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.
Depends on
Reference
Matou/idss#1769
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?
Per ADR 0272 (
docs/adr/0272-the-target-fetches-its-own-bytes-the-installer-carries-only-the-pre-gateway-bootstrap.md, landed180b4975), decisions 2 and 6.Today
The payload carries Mātou's own artifacts and the supply leg copies them onto the gateway:
assemble-payload.sh:99-109, ldflags-stamped with the founding revision at:104) →supply.go:286-292→/srv/idss/bin/control-planeidss-idp(assemble-payload.sh:115-122) →supply.go:294-307dashboard/idip/keri-web.js(:145-168) →supply.go:337-342:86-94) →supply.go:352, the gateway's agent cache,RELEASEmarker written last (:358-359)None of these are in cache.nixos.org — they are Mātou's. But they are small, and the gateway can reach a signed feed (ADR 0248) perfectly well.
Asks
config-serveris unaffected: it is already never vendored (assemble-payload.sh:124-134, ADR 0226 d.2) and already refuses at preflight when absent (internal/founding/privatepath.go:191,197-205). That refusal is the model for what a missing fetched artifact should do.Blocked by the Mātou signed cache ticket.
depends_on #1767 — the keystone. This ticket is deliberately left without
ready-for-agentuntil #1767 is ruled and the cache exists; picking it up before then means building against a surface that has no decided home, owner or signing key.--substitute-on-destination(#699) never reachedmachines update#1764Ruled by agent under ADR 0174 — veto anytime.
Triage
enhancement. Founding succeeds today; this ticket improves it by having the gateway source Mātou's own binaries (control-plane, idss-idp, dashboard, agent) itself instead of carrying it over the operator's uplink. Nothing is broken, so it reads as an improvement, not a defect (the sibling deploy-leg ticket #1764 was filedbug; this is a two-way call — flip it if you'd rather these track as bugs).needs-design, notready-for-agent. Per your own comment, this is "deliberately left withoutready-for-agentuntil #1767 is ruled and the cache exists." The contract the agent would build against — Mātou's signed binary cache, its home, owner and signing key — does not exist yet; #1767 (ready-for-human, the keystone) is where that one-way door is decided.needs-designis the state for "the thing you'd build against isn't ready; route back before implementation," and it keeps this off the swarm queue (list-ready-tasks.shreads onlyready-for-agent) until a human promotes it.ready-for-human: the one-way-door residue (a new public surface + a new signing key) lives in #1767, which already carriesready-for-human. This ticket is delegable engineering once that contract is real — no separate human decision of its own.depends_on #1767as a native Forgejo dependency (your comment named it in prose; it is now machine-readable), so the block is explicit and this surfaces the moment the keystone lands.Why this is a two-way door: every part is a label/dependency change, reversible by a later edit; nothing is committed to code and no member-facing or credential surface moves. What proves it: the dependency shows #1767 open as the blocker (
GET /issues/1769/dependencies), andlist-ready-tasks.shreads onlyready-for-agent, so aneeds-designticket is invisible to the swarm by construction. When #1767 is ruled and Mātou's signed cache exists, a human removesneeds-designand appliesready-for-agent.cache.idss.nz: the Spaces bucket, the rail's access key, thecache.idss.nz-1signing key in matou-infra, and the sign-and-publish step (ADR 0275) #1801swarm-claim host=bens-mac-04 run=31006
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Scope of this slice
Per ADR 0275 §3 the gateway-bound binaries ride the ADR 0248 signed feed (not the Nix cache), so this builds on the feed reader (
internal/matouchannel) and the verified-download core (internal/update) already in tree.This iteration ships the operator-side verified, revision-pinned resolver (
internal/foundfetch) — the correctness heart of the four asks — plus its wiring into the founding supply leg (internal/fleetwire) as an injected seam so the gateway fetches the four Mātou artifacts itself (curl →sha256sum -c→ atomic land) instead of receiving them over the founding SSH connection:matouchannelbefore trusting a byte — carriage is no longer the trust boundary.revisionequalsfleetwire.Release(the founding revision the control-plane binary is stamped with), so a feed that has moved ahead cannot re-open #1690's build-ahead-of-feed self-downgrade. A test pins the equality and the fail-loud mismatch.requireConfigServerForIDIP;config-serveris not on the feed and its carriage is unchanged (ADR 0226 d.2).Named residue (rides the next real founding drive — a swarm worker cannot found a live community): flipping the production app wiring to inject the resolver, dropping the four carried slots from
scripts/assemble-payload.sh, and adapting the payload-presence preflights (CarriesKeriWeb) to the feed source. The production supply leg stays byte-identical until that flip (no resolver injected = carry as today), so this commit changes no live founding.Why two-way: every part is revertible by deleting the package + the seam option and re-cutting; proven offline by the
foundfetchresolver suite (signed fixture viamatourelease.TestReleaseKey) and thefleetwiresupply seam test (the gateway curls the revision-pinned URLs and verifies each digest; a resolve fault fails the seed before any byte lands).vm-guest.tarrather than being handed 263 MB of it at founding (ADR 0272) #1770close-report for #1769 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope