updates (#1562-2): the rollout lands the fleet software — download, verify digest, atomic-rename land #1564

Closed
opened 2026-09-17 15:23:41 +00:00 by matou-build-agent · 2 comments

Parent: #1562 — carrying contract: ADR 0248 (decision 1)

Missing link 5: the rollout's seed stage calls internal/clan/supply.go Supply.Seed (nix flake archive — closures only), so a fully green rollout leaves the old control panel on disk. Founding's internal/fleetwire/supply.go Supply.Seed is what actually lands the binaries + built panel.

Build. A land-the-fleet-software rollout step that downloads the manifest's signed artifacts (#1562-1), verifies each sha256, and lands the control-plane binary + built control panel with the same staging + atomic-rename shape fleetwire.Supply uses (ETXTBSY on a running binary; scp -r nesting into a leftover staging dir — GOTCHAS #221, #241). Digest mismatch = refuse loudly, never a partial land (ADR 0100).

Acceptance: given an artifact whose sha256 does not match the manifest, nothing is landed or deployed and the Updates surface names the refusal (ADR 0100).

Blocked by #1562-1 (manifest artifact entries).


Filed by agent under ADR 0174 (#1562 decomposition) — child of the fleet auto-update lane. Contract: ADR 0248. Veto anytime.

## Parent: #1562 — carrying contract: ADR 0248 (decision 1) **Missing link 5:** the rollout's seed stage calls `internal/clan/supply.go` `Supply.Seed` (`nix flake archive` — closures only), so a fully green rollout leaves the old control panel on disk. Founding's `internal/fleetwire/supply.go` `Supply.Seed` is what actually lands the binaries + built panel. **Build.** A land-the-fleet-software rollout step that downloads the manifest's signed artifacts (#1562-1), verifies each `sha256`, and lands the control-plane binary + built control panel with the **same staging + atomic-rename shape** `fleetwire.Supply` uses (ETXTBSY on a running binary; `scp -r` nesting into a leftover staging dir — GOTCHAS #221, #241). **Digest mismatch = refuse loudly, never a partial land (ADR 0100).** **Acceptance:** given an artifact whose sha256 does not match the manifest, nothing is landed or deployed and the Updates surface names the refusal (ADR 0100). Blocked by #1562-1 (manifest artifact entries). --- *Filed by agent under ADR 0174 (#1562 decomposition) — child of the fleet auto-update lane. Contract: ADR 0248. Veto anytime.*
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=26030
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=26030 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1564 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1564,
  "status": "success",
  "commits": [
    "dc60c38e"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/update/land.go",
    "internal/update/land_test.go",
    "internal/update/rollout.go",
    "internal/update/rollout_land_test.go",
    "internal/update/rolloutview.go",
    "internal/update/update.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/update/...",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/controlapi/ ./internal/matourelease/ ./internal/matouchannel/",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go vet ./... && golangci-lint run ./... (pre-push gate, whole repo + broker)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given an artifact whose sha256 does not match the manifest, nothing is landed": "internal/update/land.go FleetLander.Land verifies EVERY artifact's sha256 before landing a single byte (payload built first, land loop second); proven by TestFleetLander_DigestMismatchLandsNothing and TestRollout_DigestMismatchRefusesLoudNothingDeployed asserting zero landed payloads on mismatch",
    "nothing is deployed on a digest mismatch": "rollout.go runs StageLand between seed and canary and returns the land error before any deployStage; TestRollout_DigestMismatchRefusesLoudNothingDeployed asserts len(deployOps)==0 and res.Applied==false",
    "the Updates surface names the refusal (ADR 0100)": "on a land refusal rollout.go sets RolloutResult.Fault + StageResult.Fault and calls retainRollout; RolloutView/StageView carry a Fault field (rolloutview.go); TestRollout_DigestMismatchRefusesLoudNothingDeployed asserts RolloutState().Fault names the refusal and the land StageView is unhealthy with a naming fault"
  },
  "summary": "The rollout now downloads, digest-verifies, and lands the release's signed fleet software (control-plane binary + built control panel) with founding's staging+atomic-rename shape via a new Lander seam, refusing loudly on a sha256 mismatch with nothing landed or deployed and the Updates surface naming the refusal.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1564 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1564, "status": "success", "commits": [ "dc60c38e" ], "changed_files": [ "STATUS.md", "internal/update/land.go", "internal/update/land_test.go", "internal/update/rollout.go", "internal/update/rollout_land_test.go", "internal/update/rolloutview.go", "internal/update/update.go" ], "tests": [ { "command": "go test ./internal/update/...", "exit_code": 0 }, { "command": "go test ./internal/controlapi/ ./internal/matourelease/ ./internal/matouchannel/", "exit_code": 0 }, { "command": "go build ./... && go vet ./... && golangci-lint run ./... (pre-push gate, whole repo + broker)", "exit_code": 0 } ], "criteria": { "Given an artifact whose sha256 does not match the manifest, nothing is landed": "internal/update/land.go FleetLander.Land verifies EVERY artifact's sha256 before landing a single byte (payload built first, land loop second); proven by TestFleetLander_DigestMismatchLandsNothing and TestRollout_DigestMismatchRefusesLoudNothingDeployed asserting zero landed payloads on mismatch", "nothing is deployed on a digest mismatch": "rollout.go runs StageLand between seed and canary and returns the land error before any deployStage; TestRollout_DigestMismatchRefusesLoudNothingDeployed asserts len(deployOps)==0 and res.Applied==false", "the Updates surface names the refusal (ADR 0100)": "on a land refusal rollout.go sets RolloutResult.Fault + StageResult.Fault and calls retainRollout; RolloutView/StageView carry a Fault field (rolloutview.go); TestRollout_DigestMismatchRefusesLoudNothingDeployed asserts RolloutState().Fault names the refusal and the land StageView is unhealthy with a naming fault" }, "summary": "The rollout now downloads, digest-verifies, and lands the release's signed fleet software (control-plane binary + built control panel) with founding's staging+atomic-rename shape via a new Lander seam, refusing loudly on a sha256 mismatch with nothing landed or deployed and the Updates surface naming the refusal.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
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.

Reference
Matou/idss#1564
No description provided.