the gateway fetches vm-guest.tar rather than being handed 263 MB of it at founding (ADR 0272) #1770
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#1770
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), decision 1.Today
vm-guest.tar(a root-relative tar ofnixos-guest.qcow2+ the whole relocatable QEMU dist,assemble-payload.sh:314-338) rides the installer, is seeded onto the gateway at supply (internal/fleetwire/supply.go:74,399-503— best-effort, sha256 short-circuit viaPayloadVMGuestMarker), and is then served on to devices through the install doorway (internal/controlapi/install_doorway.go:82,115-131).One drive observed it still growing at 263 MB when the leg was killed (GOTCHAS #7073); #1753 measured the device's own pull of the uncompressed bundle at 2.6 GB / ~52 minutes on a real home line.
The gateway is a machine with a datacentre uplink that exists to serve this artifact onward. It should fetch it.
Asks
vm-guest.tarfrom Mātou's signed cache/feed instead of receiving it from the founding machine, keeping the existing sha-marker short-circuit semantics (#1191) so a re-supply is still a no-op.assemble-payload.shshould build the tar deterministically so a drive host's payload matches the snapshot bake. Fetching from one published artifact makes that problem disappear rather than solving it — worth saying so in the commit.Blocked by the Mātou signed cache ticket. Relates to #1753, #1191.
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 the ~2.6 GBvm-guest.tarbundle 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/1770/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) #1801Blocked — ready-for-human (one-way door)
Asked in Mattermost, no reply within the window (the question thread for #1770 is still open — a late reply resumes it). Routing this to
ready-for-humanper ADR 0174: the residue is a genuine one-way door, not mine to rule.The decision needed
#1770 asks the gateway to fetch
vm-guest.tar(~263–400 MB) from Mātou's signed cache/feed and to drop the payload slot. But neither ADR 0272 nor ADR 0275 decides where a ~400 MB plain tar (not a Nix store path) is published, and nothing builds or publishes it to any signed surface today:control-plane/control-panel/agent/idss-idp. There is novm-guestrole anywhere ininternal/matourelease(Cut/Publish),internal/matouchannel, orinternal/update/land.go. #1769 (fetch those small binaries from the feed) is not yet landed.vm-guest.taris a plain tar, not a store path, so it does not fit the Nix-cache shape.Question 1 — where, and what publishes it?
.forgejo/path (a#445machinery change I cannot edit — it would need a separateready-for-sessionticket);Question 2 — ordering. Should #1770 wait on #1769 (the founding-time feed-fetch surface) and #1801 (the object store) landing first? The founding side already knows the pinned feed URL + release key + sequence (
internal/founding/releasechannel.go), so the pinning exists — but no fetch-at-founding of a Mātou artifact is wired yet (that is #1769's core), and there is no publishedvm-guest.tarto fetch.Why human (
## Why human)This is a new large public-artifact + publish-surface call of the same shape ADR 0275 reserved for Ben (like ADR 0269's
storage.idss.nz): a new per-release ~400 MB artifact on a public surface, and possibly a protected-path (.forgejo/) publish step. It is not provable by a test I can run, and it is not revertible once a public surface + published artifacts exist.Regression note for whoever re-arms this
Do not drop the payload slot (ask 2) before the chosen surface actually serves
vm-guest.tar. Today the payload carries the tar andsupply.go:seedGuestPayloadcopies it; drop it while the feed/cache serves nothing and every VM-mode device join regresses to fail-loud (/get?artifact=vm-guest503 → device guest Create fails, ADR 0100) — not a degrade-to-today. The clean order is: decide the surface → add the publish step → wire the founding-time fetch+verify → then drop the slot.What re-arms this
A ruling on Q1/Q2 (an ADR or an issue comment), the publish step for
vm-guest.taron the chosen surface, and #1769 landing the founding-time feed-fetch surface (if the answer is the feed). Then removeready-for-humanand addready-for-agent.