updates (#1562-1): the release publisher — cut, sign and serve a fleet release on the signed Matou channel #1563

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

Parent: #1562 — carrying contract: ADR 0248

Missing link 1 (verified against main @ 61d8d507): nothing publishes a release — no cutter, no signing, no Matou release key in the tree; reseed-publish.yml advances only the bootstrap agent (ADR 0185), reaching no existing gateway.

Build. A release cutter that:

  • builds the fleet software bundle: control-plane binary, built control panel (incl. the idip/ member bundle), pinned agent;
  • extends the Go manifest internal/matouchannel/matouchannel.go ReleaseManifest (today revision/kind/title/notes/signed_by/published — no artifact entries) with signed artifact entries (url + sha256, the shape app/src/lib/matouChannel.ts already reads);
  • writes the manifest, signs it detached Ed25519 over the exact manifest UTF-8 bytes — the SignedFeed{manifest,signature} format internal/matouchannel and matouChannel.ts already verify;
  • publishes feed + artifacts at get.idss.nz /channel/<name>.json beside the agent artifacts (ADR 0054/0248), via the existing pull half.

Release notes ride inside the signed manifest (ADR 0068). ONE manifest format shared with the operator app (#211) — do not fork a second feed. Use a throwaway TEST key; the production key is Ben's one-way door (#1562 ## Why human), swapped in as one constant.

Acceptance (seam, fixture signed with a real key as matouchannel tests do): a cut+signed feed round-trips through Source.Latest and lands the artifact entries; a feed whose signature does not verify, or an artifact whose sha256 does not match, is refused loudly (ADR 0100).


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 **Missing link 1 (verified against `main` @ `61d8d507`):** nothing publishes a release — no cutter, no signing, no Matou release key in the tree; `reseed-publish.yml` advances only the bootstrap agent (ADR 0185), reaching no existing gateway. **Build.** A release cutter that: - builds the fleet software bundle: control-plane binary, built control panel (incl. the `idip/` member bundle), pinned agent; - extends the Go manifest `internal/matouchannel/matouchannel.go` `ReleaseManifest` (today `revision`/`kind`/`title`/`notes`/`signed_by`/`published` — **no artifact entries**) with signed artifact entries (`url` + `sha256`, the shape `app/src/lib/matouChannel.ts` already reads); - writes the manifest, signs it **detached Ed25519 over the exact manifest UTF-8 bytes** — the `SignedFeed{manifest,signature}` format `internal/matouchannel` and `matouChannel.ts` already verify; - publishes feed + artifacts at get.idss.nz `/channel/<name>.json` beside the agent artifacts (ADR 0054/0248), via the existing pull half. Release notes ride inside the signed manifest (ADR 0068). **ONE manifest format shared with the operator app (#211) — do not fork a second feed.** Use a throwaway **TEST key**; the production key is Ben's one-way door (#1562 `## Why human`), swapped in as one constant. **Acceptance (seam, fixture signed with a real key as `matouchannel` tests do):** a cut+signed feed round-trips through `Source.Latest` and lands the artifact entries; a feed whose signature does not verify, or an artifact whose sha256 does not match, is refused loudly (ADR 0100). --- *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 #1563 — status success

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

envelope
{
  "issue": 1563,
  "status": "success",
  "commits": [
    "e383ea33562962a34692f358230df7d2a5fa397f"
  ],
  "changed_files": [
    "STATUS.md",
    "cmd/release-cut/main.go",
    "internal/matouchannel/matouchannel.go",
    "internal/matouchannel/matouchannel_test.go",
    "internal/matourelease/matourelease.go",
    "internal/matourelease/matourelease_test.go",
    "internal/matourelease/publish.go",
    "internal/update/update.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/matourelease/... ./internal/matouchannel/... ./internal/update/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./internal/update/... ./internal/controlapi/... ./control-plane/... ./internal/matouchannel/... ./internal/matourelease/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/matourelease/... ./cmd/release-cut/...",
      "exit_code": 0
    },
    {
      "command": "pre-push gate (nix develop .#go-ci): gofmt+build+vet+test+golangci-lint on push",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A cut+signed feed round-trips through Source.Latest and lands the artifact entries": "internal/matourelease/matourelease_test.go TestCut_RoundTripsThroughSourceLatestWithArtifacts (Cut signs with the real TEST key; the feed reads back through matouchannel.Source.Latest and rel.Artifacts carries the url+sha256+size per role). Manifest extension: internal/matouchannel/matouchannel.go ReleaseManifest.Artifacts + Source.Latest surfacing to update.SignedRelease.Artifacts (internal/update/update.go); matouchannel_test.go TestLatest_ArtifactEntriesLandOnTheRelease.",
    "A feed whose signature does not verify is refused loudly (ADR 0100)": "internal/matourelease/matourelease_test.go TestVerify_BadSignatureRefusesLoud (tampered manifest bytes + foreign public key both refuse); Source.Latest's existing signature refusal (matouchannel.go) unchanged.",
    "An artifact whose sha256 does not match is refused loudly (ADR 0100)": "internal/matourelease/matourelease_test.go TestVerify_ArtifactDigestMismatchRefusesLoud (a flipped artifact byte and a missing artifact both refuse); matourelease.Verify checks each artifact's bytes against the signed sha256 before Publish writes a byte."
  },
  "summary": "Built the release cutter (internal/matourelease + cmd/release-cut): cut+sign a fleet release with signed artifact entries in the shared manifest, verify (signature + digests) and serve the tree, all seam-proven through Source.Latest.",
  "reason": "",
  "blockers": []
}
**close-report** for #1563 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1563, "status": "success", "commits": [ "e383ea33562962a34692f358230df7d2a5fa397f" ], "changed_files": [ "STATUS.md", "cmd/release-cut/main.go", "internal/matouchannel/matouchannel.go", "internal/matouchannel/matouchannel_test.go", "internal/matourelease/matourelease.go", "internal/matourelease/matourelease_test.go", "internal/matourelease/publish.go", "internal/update/update.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/matourelease/... ./internal/matouchannel/... ./internal/update/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./internal/update/... ./internal/controlapi/... ./control-plane/... ./internal/matouchannel/... ./internal/matourelease/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/matourelease/... ./cmd/release-cut/...", "exit_code": 0 }, { "command": "pre-push gate (nix develop .#go-ci): gofmt+build+vet+test+golangci-lint on push", "exit_code": 0 } ], "criteria": { "A cut+signed feed round-trips through Source.Latest and lands the artifact entries": "internal/matourelease/matourelease_test.go TestCut_RoundTripsThroughSourceLatestWithArtifacts (Cut signs with the real TEST key; the feed reads back through matouchannel.Source.Latest and rel.Artifacts carries the url+sha256+size per role). Manifest extension: internal/matouchannel/matouchannel.go ReleaseManifest.Artifacts + Source.Latest surfacing to update.SignedRelease.Artifacts (internal/update/update.go); matouchannel_test.go TestLatest_ArtifactEntriesLandOnTheRelease.", "A feed whose signature does not verify is refused loudly (ADR 0100)": "internal/matourelease/matourelease_test.go TestVerify_BadSignatureRefusesLoud (tampered manifest bytes + foreign public key both refuse); Source.Latest's existing signature refusal (matouchannel.go) unchanged.", "An artifact whose sha256 does not match is refused loudly (ADR 0100)": "internal/matourelease/matourelease_test.go TestVerify_ArtifactDigestMismatchRefusesLoud (a flipped artifact byte and a missing artifact both refuse); matourelease.Verify checks each artifact's bytes against the signed sha256 before Publish writes a byte." }, "summary": "Built the release cutter (internal/matourelease + cmd/release-cut): cut+sign a fleet release with signed artifact entries in the shared manifest, verify (signature + digests) and serve the tree, all seam-proven through Source.Latest.", "reason": "", "blockers": [] } ``` </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#1563
No description provided.