updates (#1562-10): founding pins the release channel — every community founded today is born tuned to the testing channel, not deaf until someone runs a hand step #1582

Closed
opened 2026-09-18 15:11:22 +00:00 by ben · 2 comments
Owner

Parent: #1562 — contract: ADR 0248 (decision 3 + its amendments)

What's true today (verified on main @ ceccdba1)

A gateway only listens for updates if its control-plane unit carries two facts: the feed URL and the Matou release public key it trusts (IDSS_RELEASE_FEED_URL / IDSS_RELEASE_PUBLIC_KEY). #1568 made all four gateway renders export the pair when the facts are set (internal/clan/vmguest.go, GatewayFacts.ReleaseFeedURL / ReleasePublicKey).

Nothing in founding sets them. The only writer is clan.Adapter.SetGatewayReleaseChannel — the hand step #1569 built for communities that already exist. Neither founding facts builder touches the pair: not publicGatewayFacts (internal/founding/selfhostedpath.go, used by the public paths) and not the private path's builder (internal/founding/privatepath.go). ADR 0248 and #1568 both call the key "a build-time constant of the founding release", but no such constant exists anywhere.

So every community founded today is born deaf to the channel: its release source rests, and it can never hear about a release until someone remembers to run the hand step on it — forever, for every community.

Ruled by Ben, 2026-09-18

"Tune them into the testing station. Communities that are deploying today are up for testing."

Every community founded today pins the testing channel. Not left unpinned until stable exists (the proposed default, overruled): communities deploying now are part of the testing cohort, and an untuned community would be one more box needing a hand step later.

Read with the three-keys ruling (ADR 0248 decision 3 amendment): the pin is the testing feed (https://get.idss.nz/channel/testing.json) and the testing channel key's public half — never the committed TEST key, whose seed is in the repo. A gateway trusts exactly one key, so feed and key are one pair and always move together.

What to build

  • One home for the founding pin: a feed URL + public key pair as build-time constants of the release (overridable at build with -ldflags, the way fleetwire.Release is stamped), read by both founding facts builders so the public, rented, self-hosted and private paths cannot drift. A half-set pair is refused loudly, exactly as SetGatewayReleaseChannel refuses it.
  • Persist it where the hand step persists it — the enrollment render-inputs sidecar — so a later plain rerender-gateway, a P4 add-service re-render or a brand-kit apply keeps the pin instead of dropping it (#790's lesson: never a partial rebuild that loses founding's exports).
  • An override for labs and rehearsals: an env pair on the app helper lets a drive or a clan-lab point a throwaway gateway at its own feed and the committed TEST key, without touching the constant. Unset = the constant.
  • The constant ships EMPTY until the testing key is minted (#1578, Ben's hands). Empty = founding sets nothing and every render is byte-identical to today's — so this lands now and goes live with a one-line commit that fills the public half. Do not commit the TEST public key as the default: a kept community must never pin it.
  • Start the new community's release high-water mark at the release it was founded from (#1579's sequence — coordinate with whoever holds that ticket; if #1579 has not landed, leave the seam and say so).
  • Say it in the product where founding already reads facts back: the founding read-back / Operator home need no new screen, but the Updates surface's header already names the channel (U1/U1x: "channel: …") — confirm a freshly founded community reads testing there rather than the honest-rest copy.

Out of scope (name it, do not build it)

Moving a community from testing to stable once the production key exists. That is a change of BOTH facts through set-release-channel, and deciding who triggers it (the operator from Update policy, or Matou) is its own ruling. When stable goes live the founding constant flips for release builds; communities already on testing stay there until moved.

Acceptance (seam)

  • Given the constant pair set, When a community is founded on each path (private VM, self-hosted, own-VPS, rented), Then the gateway render exports both facts and the sidecar carries them
  • Given a founded community, When rerender-gateway or an add-service re-render runs, Then the pin is still there
  • Given the constant EMPTY, Then every gateway render is byte-identical to today's and warm-repo callers are unchanged
  • Given only one half set (constant or override), Then founding refuses loudly before the gateway is built
  • Given the helper override, Then the gateway pins the override pair and the constant is ignored
  • Given the warm gateway closure (WarmGatewayFacts, ADR 0133), Then state whether the two new export lines move it — if the payload cache or the golden snapshot would miss, say so on the ticket and label snapshot-pending rather than closing
  • Full Go gate + the app's founding tests green; architecture 11 + STATUS.md in the same commit

Live proof rides #1562: a community founded from a build carrying the pin takes a testing release with no hand step.

## Parent: #1562 — contract: ADR 0248 (decision 3 + its amendments) ## What's true today (verified on `main` @ `ceccdba1`) A gateway only listens for updates if its control-plane unit carries two facts: the feed URL and the Matou release public key it trusts (`IDSS_RELEASE_FEED_URL` / `IDSS_RELEASE_PUBLIC_KEY`). #1568 made all four gateway renders export the pair **when the facts are set** (`internal/clan/vmguest.go`, `GatewayFacts.ReleaseFeedURL` / `ReleasePublicKey`). **Nothing in founding sets them.** The only writer is `clan.Adapter.SetGatewayReleaseChannel` — the hand step #1569 built for communities that already exist. Neither founding facts builder touches the pair: not `publicGatewayFacts` (`internal/founding/selfhostedpath.go`, used by the public paths) and not the private path's builder (`internal/founding/privatepath.go`). ADR 0248 and #1568 both call the key "a build-time constant of the founding release", but no such constant exists anywhere. So every community founded today is born deaf to the channel: its release source rests, and it can never hear about a release until someone remembers to run the hand step on it — forever, for every community. ## Ruled by Ben, 2026-09-18 > "Tune them into the testing station. Communities that are deploying today are up for testing." **Every community founded today pins the `testing` channel.** Not left unpinned until `stable` exists (the proposed default, overruled): communities deploying now are part of the testing cohort, and an untuned community would be one more box needing a hand step later. Read with the three-keys ruling (ADR 0248 decision 3 amendment): the pin is the `testing` feed (`https://get.idss.nz/channel/testing.json`) and the **`testing` channel key's public half** — never the committed TEST key, whose seed is in the repo. A gateway trusts exactly one key, so feed and key are one pair and always move together. ## What to build - **One home for the founding pin**: a feed URL + public key pair as build-time constants of the release (overridable at build with `-ldflags`, the way `fleetwire.Release` is stamped), read by **both** founding facts builders so the public, rented, self-hosted and private paths cannot drift. A half-set pair is refused loudly, exactly as `SetGatewayReleaseChannel` refuses it. - **Persist it where the hand step persists it** — the enrollment render-inputs sidecar — so a later plain `rerender-gateway`, a P4 add-service re-render or a brand-kit apply keeps the pin instead of dropping it (#790's lesson: never a partial rebuild that loses founding's exports). - **An override for labs and rehearsals**: an env pair on the app helper lets a drive or a clan-lab point a throwaway gateway at its own feed and the committed TEST key, without touching the constant. Unset = the constant. - **The constant ships EMPTY until the `testing` key is minted** (#1578, Ben's hands). Empty = founding sets nothing and every render is byte-identical to today's — so this lands now and goes live with a one-line commit that fills the public half. Do not commit the TEST public key as the default: a kept community must never pin it. - **Start the new community's release high-water mark at the release it was founded from** (#1579's sequence — coordinate with whoever holds that ticket; if #1579 has not landed, leave the seam and say so). - **Say it in the product where founding already reads facts back**: the founding read-back / Operator home need no new screen, but the Updates surface's header already names the channel (U1/U1x: "channel: …") — confirm a freshly founded community reads `testing` there rather than the honest-rest copy. ## Out of scope (name it, do not build it) Moving a community from `testing` to `stable` once the production key exists. That is a change of BOTH facts through `set-release-channel`, and deciding who triggers it (the operator from Update policy, or Matou) is its own ruling. When `stable` goes live the founding constant flips for release builds; communities already on `testing` stay there until moved. ## Acceptance (seam) - [ ] Given the constant pair set, When a community is founded on each path (private VM, self-hosted, own-VPS, rented), Then the gateway render exports both facts and the sidecar carries them - [ ] Given a founded community, When `rerender-gateway` or an add-service re-render runs, Then the pin is still there - [ ] Given the constant EMPTY, Then every gateway render is byte-identical to today's and warm-repo callers are unchanged - [ ] Given only one half set (constant or override), Then founding refuses loudly before the gateway is built - [ ] Given the helper override, Then the gateway pins the override pair and the constant is ignored - [ ] Given the warm gateway closure (`WarmGatewayFacts`, ADR 0133), Then state whether the two new export lines move it — if the payload cache or the golden snapshot would miss, say so on the ticket and label `snapshot-pending` rather than closing - [ ] Full Go gate + the app's founding tests green; architecture 11 + STATUS.md in the same commit Live proof rides #1562: a community founded from a build carrying the pin takes a `testing` release with no hand step.

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

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

close-report for #1582 — status success

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

envelope
{
  "issue": 1582,
  "status": "success",
  "commits": [
    "c498d9f2fa5b16242dc353c64075c95201ddb18d",
    "fa1b710c13a8fab690d3f8f3a54d2f91b332561c"
  ],
  "changed_files": [
    "STATUS.md",
    "app/helper/cmd/helper/wiring_prod.go",
    "app/helper/cmd/helper/wiring_test.go",
    "docs/architecture/11-update-supply-chain.md",
    "internal/founding/orchestrator.go",
    "internal/founding/ownvpspath.go",
    "internal/founding/privatepath.go",
    "internal/founding/releasechannel.go",
    "internal/founding/releasechannel_internal_test.go",
    "internal/founding/releasechannel_test.go",
    "internal/founding/rentedpath.go",
    "internal/founding/selfhostedpath.go",
    "internal/datacollectionssvc/datacollectionssvc.go"
  ],
  "tests": [
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./...",
      "exit_code": 0
    },
    {
      "command": "go build -tags dev ./...",
      "exit_code": 0
    },
    {
      "command": "go test ./...",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./...",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/founding/ -run 'ReleaseChannel|PrivateFounding' -v",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given the constant pair set, When a community is founded on each path (private VM, self-hosted, own-VPS, rented), Then the gateway render exports both facts and the sidecar carries them": "internal/founding.pinReleaseChannel stamps the pair onto every founding facts builder — publicGatewayFacts (own-VPS ownvpspath.go, rented rentedpath.go, self-hosted selfhostedpath.go) and the private path's inline builder (privatepath.go) — before enroll; the facts land on GatewayFacts, so the sidecar (enrollment.go writeGatewayRenderInputs from *s.Gateway) carries them and vmguest.go exports both. Proven across the clan seam by TestPrivateFounding_PinsReleaseChannelOverride (captured EnrollRequest.Gateway carries both) and at the shared builder by releasechannel_internal_test.go (constant pair stamped).",
    "Given a founded community, When rerender-gateway or an add-service re-render runs, Then the pin is still there": "The pair is set on GatewayFacts, so it rides the render-inputs sidecar exactly as SetGatewayReleaseChannel (#1569) persists it; RerenderGatewaySurface (#1275) and the add-service re-render both read the sidecar (gateway_attach.go) and flip no fact, so the pin is kept — existing machinery, unchanged.",
    "Given the constant EMPTY, Then every gateway render is byte-identical to today's and warm-repo callers are unchanged": "Constants ship empty (releasechannel.go); pinReleaseChannel stamps nothing, so no export line is emitted. TestPrivateFounding_EmptyConstantExportsNothing + TestFoundingReleaseChannel_EmptyConstantByteIdentical prove empty in → empty facts out. WarmGatewayFacts (warm_repo.go) sets neither field, so the warm closure / golden snapshot do not move.",
    "Given only one half set (constant or override), Then founding refuses loudly before the gateway is built": "foundingReleaseChannel refuses a half-set (feed XOR key) with a loud error; TestFoundingReleaseChannel_HalfSetRefused covers override-feed-only, override-key-only, and constant-feed-only; TestPrivateFounding_HalfSetOverrideRefused proves the private stand-up faults with 0 enroll requests (the clan seam is never reached).",
    "Given the helper override, Then the gateway pins the override pair and the constant is ignored": "WithReleaseChannel (orchestrator.go) sets the override; foundingReleaseChannel prefers it over the constant. TestFoundingReleaseChannel_OverrideWins + TestPrivateFounding_PinsReleaseChannelOverride prove the override wins; app helper wires it from IDSS_RELEASE_FEED_URL/IDSS_RELEASE_PUBLIC_KEY (wiring_prod.go).",
    "Given the warm gateway closure (WarmGatewayFacts, ADR 0133), Then state whether the two new export lines move it": "They do NOT move it. WarmGatewayFacts (internal/clan/warm_repo.go) sets neither ReleaseFeedURL nor ReleasePublicKey, and the founding constant ships EMPTY, so pinReleaseChannel stamps nothing — the warm closure and golden snapshot render byte-identical. No snapshot-pending needed. Not labelled snapshot-pending.",
    "Full Go gate + the app's founding tests green; architecture 11 + STATUS.md in the same commit": "go build/vet/test/lint over ./... all exit 0 (also -tags dev build); internal/founding tests green; docs/architecture/11-update-supply-chain.md and STATUS.md updated in the same commit c498d9f2."
  },
  "summary": "Founding stamps the release-channel feed+key pair (build-time constants, lab-overridable) onto every gateway facts builder so a community is born tuned to the channel with no hand step; ships EMPTY (byte-identical renders) until the testing key is minted.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1582 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1582, "status": "success", "commits": [ "c498d9f2fa5b16242dc353c64075c95201ddb18d", "fa1b710c13a8fab690d3f8f3a54d2f91b332561c" ], "changed_files": [ "STATUS.md", "app/helper/cmd/helper/wiring_prod.go", "app/helper/cmd/helper/wiring_test.go", "docs/architecture/11-update-supply-chain.md", "internal/founding/orchestrator.go", "internal/founding/ownvpspath.go", "internal/founding/privatepath.go", "internal/founding/releasechannel.go", "internal/founding/releasechannel_internal_test.go", "internal/founding/releasechannel_test.go", "internal/founding/rentedpath.go", "internal/founding/selfhostedpath.go", "internal/datacollectionssvc/datacollectionssvc.go" ], "tests": [ { "command": "go build ./...", "exit_code": 0 }, { "command": "go vet ./...", "exit_code": 0 }, { "command": "go build -tags dev ./...", "exit_code": 0 }, { "command": "go test ./...", "exit_code": 0 }, { "command": "golangci-lint run ./...", "exit_code": 0 }, { "command": "go test ./internal/founding/ -run 'ReleaseChannel|PrivateFounding' -v", "exit_code": 0 } ], "criteria": { "Given the constant pair set, When a community is founded on each path (private VM, self-hosted, own-VPS, rented), Then the gateway render exports both facts and the sidecar carries them": "internal/founding.pinReleaseChannel stamps the pair onto every founding facts builder — publicGatewayFacts (own-VPS ownvpspath.go, rented rentedpath.go, self-hosted selfhostedpath.go) and the private path's inline builder (privatepath.go) — before enroll; the facts land on GatewayFacts, so the sidecar (enrollment.go writeGatewayRenderInputs from *s.Gateway) carries them and vmguest.go exports both. Proven across the clan seam by TestPrivateFounding_PinsReleaseChannelOverride (captured EnrollRequest.Gateway carries both) and at the shared builder by releasechannel_internal_test.go (constant pair stamped).", "Given a founded community, When rerender-gateway or an add-service re-render runs, Then the pin is still there": "The pair is set on GatewayFacts, so it rides the render-inputs sidecar exactly as SetGatewayReleaseChannel (#1569) persists it; RerenderGatewaySurface (#1275) and the add-service re-render both read the sidecar (gateway_attach.go) and flip no fact, so the pin is kept — existing machinery, unchanged.", "Given the constant EMPTY, Then every gateway render is byte-identical to today's and warm-repo callers are unchanged": "Constants ship empty (releasechannel.go); pinReleaseChannel stamps nothing, so no export line is emitted. TestPrivateFounding_EmptyConstantExportsNothing + TestFoundingReleaseChannel_EmptyConstantByteIdentical prove empty in → empty facts out. WarmGatewayFacts (warm_repo.go) sets neither field, so the warm closure / golden snapshot do not move.", "Given only one half set (constant or override), Then founding refuses loudly before the gateway is built": "foundingReleaseChannel refuses a half-set (feed XOR key) with a loud error; TestFoundingReleaseChannel_HalfSetRefused covers override-feed-only, override-key-only, and constant-feed-only; TestPrivateFounding_HalfSetOverrideRefused proves the private stand-up faults with 0 enroll requests (the clan seam is never reached).", "Given the helper override, Then the gateway pins the override pair and the constant is ignored": "WithReleaseChannel (orchestrator.go) sets the override; foundingReleaseChannel prefers it over the constant. TestFoundingReleaseChannel_OverrideWins + TestPrivateFounding_PinsReleaseChannelOverride prove the override wins; app helper wires it from IDSS_RELEASE_FEED_URL/IDSS_RELEASE_PUBLIC_KEY (wiring_prod.go).", "Given the warm gateway closure (WarmGatewayFacts, ADR 0133), Then state whether the two new export lines move it": "They do NOT move it. WarmGatewayFacts (internal/clan/warm_repo.go) sets neither ReleaseFeedURL nor ReleasePublicKey, and the founding constant ships EMPTY, so pinReleaseChannel stamps nothing — the warm closure and golden snapshot render byte-identical. No snapshot-pending needed. Not labelled snapshot-pending.", "Full Go gate + the app's founding tests green; architecture 11 + STATUS.md in the same commit": "go build/vet/test/lint over ./... all exit 0 (also -tags dev build); internal/founding tests green; docs/architecture/11-update-supply-chain.md and STATUS.md updated in the same commit c498d9f2." }, "summary": "Founding stamps the release-channel feed+key pair (build-time constants, lab-overridable) onto every gateway facts builder so a community is born tuned to the channel with no hand step; ships EMPTY (byte-identical renders) until the testing key is minted.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1582
No description provided.