updates (#1562-2c): the production lander — land the signed fleet software on the gateway, keep the previous copy so rollback can restore it, and wire it into the composition #1576
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.
Blocks
Reference
Matou/idss#1576
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?
Parent: #1562 — carrying contract: ADR 0248 (decision 1)
Split out of #1571 by Ben's ruling (2026-09-18): #1571 was parked
needs-designas a whole, but only its third part — the control panel's render of the land stage and the refusal state — needs design. This ticket is the build half and needs no design. #1571 keeps the screen.What's true today (verified on
main@f541461c)#1564 built the land step's core:
update.FleetLanderdownloads every manifest artifact, verifies eachsha256, refuses loud on a mismatch, and hands the verified bytes to an injectedupdate.NodeLander. The rollout calls it asStageLandbetween seed and canary (internal/update/rollout.go). But on a real gateway it cannot run:NodeLanderexists. Only the seam test's recorder implements it. Nothing scps or renames anything.whole_composition.gocalls.WithRollout(...)and stops; there is no.WithLander(...). So the first real release that carries artifacts fails every rollout withErrLanderNotWired— the lane refuses loudly rather than landing nothing quietly, but it refuses every release.cmd/release-cutreads--control-panelwithos.ReadFile, so a built tree (dashboard/dist) cannot be passed at all today, and nothing says what the single file is or how it becomes/srv/idss/dashboard.Landis handedseed.Nodes(the whole fleet). The control-plane binary, the built control panel and the agent cache exist only on the gateway (internal/fleetwire/supply.go,internal/clan/vmguest.go); a member device has no/srv/idss.internal/update/resume.gosays a failed post-swap health check "restores the previous binary + control panel", but the rollback only deploys the earlier config-repo revision through clan. The scp-landed files are outside that closure and no code keeps or restores the previous copies — after a failed self-swap the gateway would keep running the BAD binary under the OLD revision.loadInventory/Deploy.TargetHostare unexported andclan.ReadPlacementdrops the target host, so the lander cannot learn where to land.What to build
idip/member bundle), entries sorted with fixed mtime/uid/gid so the same tree cuts the same digest.release-cut --control-panelaccepts a directory and packs it (a ready tarball still passes through). Record the shape as an amendment to ADR 0248.internal/clanparses the inventory. Mind #1504: the carried?IdentityFile=…query must not ride onto a loopback target.NodeLander, reusingfleetwire's shape rather than re-deriving it:mv -f(ETXTBSY on a running binary — the reasoning already written infleetwire/supply.go);scp -r/cp -rnest into a leftover dir), unpack there, then swap the directory;..traversal, symlinks/hardlinks that escape the staging root, and device nodes; cap entry count and unpacked size;Resumere-runs the land stage after the control plane's own restart (#1567, GOTCHAS #241).*.previous, one generation). Give the rollback path a restore act so a failed post-swap health check really does put the previous binary + control panel back before the restart — makingresume.go's sentence true. A restore with nothing retained says so loudly.whole_composition.go.WithLander(update.NewFleetLander(update.NewHTTPArtifactFetcher(nil), <the node lander>)), fact-gated the way the release source is — only when a signed source is wired. The resting composition stays byte-identical.StageKinddoes not know'land'yet; that and the refusal state are #1571. Confirm the existing U3 screen does not throw on an unknown stage kind (a blank page = a thrown render, GOTCHAS #225) and, if it does, make the minimum defensive change and say so on #1571.Acceptance criteria
Seam (scripted runner, as
fleetwire's own tests do):../paths, an absolute path, or a symlink out of the staging root, Then nothing is unpacked outside staging, nothing is swapped, and the land names the refusalsha256is identicalgo build ./... && go vet ./... && go test ./...+golangci-lint+ the-tags devbuild greenLive proof rides the parent, not this ticket. Like #1563–#1568, this closes on the seam. The two live checks — a real gateway serving control panel A takes cut release B through the real land step with no hand copy, and a B whose control plane fails its health check ends back on A's binary and A's control panel — are added to #1562's live acceptance.
Notes
docs/GOTCHAS.mdfirst — #221, #225, #241 and the #1504 entry all bear on this.Filed from Ben's 2026-09-18 ruling to split #1571 so the build half can start while the screen is designed.
swarm-claim host=bens-mac-04 run=26614
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
The ticket asked me to rule the control-panel artifact shape (two-way door, proposed default). Ruling:
The control-panel artifact is ONE gzip tarball of the built tree's CONTENTS (entries relative to the tree root, so the land step unpacks directly at
/srv/idss/dashboard, never nested under a tree-name dir). The pack is deterministic — entries walked + sorted by path, fixed epoch mtime, uid/gid 0, mode normalised (only the exec bit preserved), bare gzip frame (no name/modtime) — so the same built tree cuts the samesha256every time.release-cut --control-panelaccepts the directory and packs it; a ready tarball still passes through. (matourelease.PackControlPanel.)Why a two-way door: it is a producer-side encoding, reverted by editing
PackControlPaneland re-cutting, and proven byTestPackControlPanel_SameTreeSameDigest(identical bytes, order-independent) + the fleetland land seam (contents land at the right depth). It is not on the one-way-door list.Two smaller calls ride the same ruling, both revertible + test-proven: (a) the unpacker refuses all symlinks/hardlinks (not only escaping ones) plus device nodes, and the packer refuses the same at the cut — a control-panel tree needs none, and refusing broadly is the safe default (ADR 0100); (b) a rollback
Restorethat finds nothing retained fails loud rather than silently claim the previous software is back.Recorded as an amendment to ADR 0248 decision 1 in this commit.
close-report for #1576 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope