updates (#1562-3): a release becomes a deployable revision — commit the release pin to the community config repo #1565

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

Missing link 4: deployStage passes the manifest's Revision straight to clan.Deploy{Revision} → git+file://<dir>?rev=<revision>, which must be an exact commit in the community's config repo. A Matou release revision is not such a commit; internal/clan/seedcommunity.go renderCommunityFlake pins only clan-core + nixpkgs, no IDSS input.

Build. Applying a release commits the release pin to the community's config repo (commit, never apply — architecture 10) and rolls out THAT commit, so clan.Deploy gets a real config-repo revision, a retry applies the same closure, and "roll back = deploy the earlier exact revision" keeps meaning something. Per ADR 0248 the fleet software rides as an artifact bundle (not yet a flake input), so the committed pin records the release revision the config-repo commit carries.

Acceptance: given a release applied, the config repo holds exactly one new commit recording the pin, and that commit's sha is what every stage deployed.

Blocked by #1562-1.


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 + link 4) **Missing link 4:** `deployStage` passes the manifest's `Revision` straight to `clan.Deploy{Revision}` → `git+file://<dir>?rev=<revision>`, which must be an exact commit in the **community's config repo**. A Matou release revision is not such a commit; `internal/clan/seedcommunity.go` `renderCommunityFlake` pins only `clan-core` + `nixpkgs`, no IDSS input. **Build.** Applying a release **commits** the release pin to the community's config repo (commit, never apply — architecture 10) and rolls out THAT commit, so `clan.Deploy` gets a real config-repo revision, a retry applies the same closure, and "roll back = deploy the earlier exact revision" keeps meaning something. Per ADR 0248 the fleet software rides as an artifact bundle (not yet a flake input), so the committed pin records the release revision the config-repo commit carries. **Acceptance:** given a release applied, the config repo holds exactly one new commit recording the pin, and that commit's sha is what every stage deployed. Blocked by #1562-1. --- *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=bens-mac-04 run=26027
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=26027 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1565 — status success

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

envelope
{
  "issue": 1565,
  "status": "success",
  "commits": [
    "a6e72162ce007297f927a17387ff5388fe3156a3"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/resting_composition.go",
    "internal/clan/clan.go",
    "internal/clan/config.go",
    "internal/clan/releasepin.go",
    "internal/clan/releasepin_test.go",
    "internal/clan/testing/fake.go",
    "internal/rescue/deviceladder_test.go",
    "internal/update/export_test.go",
    "internal/update/rollback.go",
    "internal/update/rollout.go",
    "internal/update/rollout_test.go",
    "internal/update/update.go"
  ],
  "tests": [
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./...",
      "exit_code": 0
    },
    {
      "command": "go test ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a release applied, the config repo holds exactly one new commit recording the pin": "clan.WriteReleasePin (internal/clan/releasepin.go) commits the pin doc idss-release.json through the single writer; proven by TestWriteReleasePin_OneCommitRecordingThePin (rev-list --count before..after == 1, reads back the release revision) and TestWriteReleasePin_SameRevisionIsANoOp/EmptyRefused (internal/clan/releasepin_test.go). Orchestrator.rollout calls o.clan.Config().PinRelease exactly once per rollout (internal/update/rollout.go); TestRollout_PinsReleaseAndDeploysThatCommit asserts cl.PinnedReleases() has len 1 recording the release revision.",
    "that commit's sha is what every stage deployed": "rollout.go deploys string(deployRev) (the PinRelease commit) at every stage (seed/canary/rest/gateway) instead of the release revision; TestRollout_PinsReleaseAndDeploysThatCommit asserts every deployOp.rev == the pin commit and != the release revision, and Current records both Revision (release) and Deploy (config-repo commit) via CurrentForTest. TestRollout_RetryAppliesSameExactClosure proves the retry re-pins to the same commit (identical closure, ADR 0067)."
  },
  "summary": "Applying a release now commits the release pin to the community config repo and rolls out that config-repo commit, so clan.Deploy pins a real config-repo revision (ADR 0248 link 4).",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1565 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1565, "status": "success", "commits": [ "a6e72162ce007297f927a17387ff5388fe3156a3" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/resting_composition.go", "internal/clan/clan.go", "internal/clan/config.go", "internal/clan/releasepin.go", "internal/clan/releasepin_test.go", "internal/clan/testing/fake.go", "internal/rescue/deviceladder_test.go", "internal/update/export_test.go", "internal/update/rollback.go", "internal/update/rollout.go", "internal/update/rollout_test.go", "internal/update/update.go" ], "tests": [ { "command": "go build ./...", "exit_code": 0 }, { "command": "go vet ./...", "exit_code": 0 }, { "command": "go test ./...", "exit_code": 0 } ], "criteria": { "Given a release applied, the config repo holds exactly one new commit recording the pin": "clan.WriteReleasePin (internal/clan/releasepin.go) commits the pin doc idss-release.json through the single writer; proven by TestWriteReleasePin_OneCommitRecordingThePin (rev-list --count before..after == 1, reads back the release revision) and TestWriteReleasePin_SameRevisionIsANoOp/EmptyRefused (internal/clan/releasepin_test.go). Orchestrator.rollout calls o.clan.Config().PinRelease exactly once per rollout (internal/update/rollout.go); TestRollout_PinsReleaseAndDeploysThatCommit asserts cl.PinnedReleases() has len 1 recording the release revision.", "that commit's sha is what every stage deployed": "rollout.go deploys string(deployRev) (the PinRelease commit) at every stage (seed/canary/rest/gateway) instead of the release revision; TestRollout_PinsReleaseAndDeploysThatCommit asserts every deployOp.rev == the pin commit and != the release revision, and Current records both Revision (release) and Deploy (config-repo commit) via CurrentForTest. TestRollout_RetryAppliesSameExactClosure proves the retry re-pins to the same commit (identical closure, ADR 0067)." }, "summary": "Applying a release now commits the release pin to the community config repo and rolls out that config-repo commit, so clan.Deploy pins a real config-repo revision (ADR 0248 link 4).", "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#1565
No description provided.