updates (#1562-14): NO real build stamps the founding release identity — only the rehearsal drive's override does, so a real pinned community would not know its own release (the #1631 fix is unreachable in production) #1674

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

The gap (found rebuilding the held testing pin on main, 2026-09-20 — no drive can show it)

#1631 made a freshly founded gateway KNOW its own release, so it does not offer its founding release back and self-swap onto its own bits the first night. It reads two facts:

  • the revision from the running binary's build stamp fleetwire.Release (internal/fleetwire/supply.go:141, default "unknown" — which foundingCurrent treats as absent, control-plane/cmd/control-plane/release_identity.go:76-101);
  • the signed sequence from the build constant founding.ReleaseChannelSequence (internal/founding/releasechannel.go:61, default ""), whose own comment says it is "stamped at build with -ldflags -X …ReleaseChannelSequence=<n> … by the same rail that cuts the release".

Nothing stamps either. grep over every .sh / .nix / .yml / .go finds no -X …fleetwire.Release and no -X …ReleaseChannelSequence — not in scripts/release-rail/publish.sh, not in cmd/release-cut, not in the app/helper build. The only thing that ever supplies a founding release identity is the rehearsal drive's explicit override (WithFoundingRelease, fed from the drive's env — scripts/smoke-private-path.sh:~1066 says so: "the payload's control-plane binary carries no build stamp"). That is why #1614 is green and a real founding would not be.

What a REAL community gets the day the pin ships

update.Current{Revision: "", Sequence: 0, Converged: 0, Total: 0} — exactly the state #1614's runs 2 and 3 went red on, before #1631:

  • U1 reads a blank revision and "0 of 0 nodes converged"; the surface does not rest;
  • the newest testing release is listed under applying automatically and the gateway self-swaps onto it in its first 02:00–04:00 window — possibly onto the very bits it was founded from (one needless restart of the community's only door), and every later binary from the rail ALSO reports "unknown", so after that update it still does not know what it runs: the screen says testing · <rev> only because the orchestrator records the rollout, never because the binary knows;
  • the #1579 downgrade floor starts at 0 instead of the founding release's sequence.

Build

  1. The publish rail stamps what it cuts. scripts/release-rail/publish.sh builds the control plane with -X …/internal/fleetwire.Release=<revision> (the 40-char commit it is cutting). cmd/release-cut already knows the sequence it signs — stamp it too if the ordering allows (build → cut), else (2) carries it.
  2. The operator-app / helper build stamps the founding identity: fleetwire.Release on the payload control-plane binary it ships, and founding.ReleaseChannelSequence from the feed it was built against (or leave the sequence empty and let the gateway adopt the feed's sequence for its OWN revision on first poll — if Current.Revision equals a listed release's revision, take that release's sequence as the floor and do not offer it; this makes the sequence self-healing and may be the simpler half).
  3. A guard so this cannot regress silently: with a release channel pinned AND no founding identity, founding should say so loudly in its log (ADR 0100) — and a unit test pins that a rail-built binary reports a real revision (build a tiny binary with the rail's exact flags and read it back).
  4. The drive proves the production path: one #1614-style leg founds WITHOUT the WithFoundingRelease override, from a rail-built payload, and asserts U1x rests on the stamped revision. Today the override hides exactly the thing this ticket is about.

Blocks

Founding's testing pin (#1582, local branch pin-testing-1582-rebased, rebuilt on main today, tests green, NOT pushed) and therefore #1562. It does not block #1569: Whakatōhea Demo is re-tuned by set-release-channel --apply, and its first testing update is wanted anyway — but note it too will show a blank revision until that first rollout records one.

## The gap (found rebuilding the held `testing` pin on main, 2026-09-20 — no drive can show it) #1631 made a freshly founded gateway KNOW its own release, so it does not offer its founding release back and self-swap onto its own bits the first night. It reads two facts: - the **revision** from the running binary's build stamp `fleetwire.Release` (`internal/fleetwire/supply.go:141`, default `"unknown"` — which `foundingCurrent` treats as *absent*, `control-plane/cmd/control-plane/release_identity.go:76-101`); - the **signed sequence** from the build constant `founding.ReleaseChannelSequence` (`internal/founding/releasechannel.go:61`, default `""`), whose own comment says it is "stamped at build with `-ldflags -X …ReleaseChannelSequence=<n>` … by the same rail that cuts the release". **Nothing stamps either.** `grep` over every `.sh` / `.nix` / `.yml` / `.go` finds no `-X …fleetwire.Release` and no `-X …ReleaseChannelSequence` — not in `scripts/release-rail/publish.sh`, not in `cmd/release-cut`, not in the app/helper build. The only thing that ever supplies a founding release identity is the rehearsal drive's explicit override (`WithFoundingRelease`, fed from the drive's env — `scripts/smoke-private-path.sh:~1066` says so: "the payload's control-plane binary carries no build stamp"). That is why #1614 is green and a real founding would not be. ## What a REAL community gets the day the pin ships `update.Current{Revision: "", Sequence: 0, Converged: 0, Total: 0}` — exactly the state #1614's runs 2 and 3 went red on, before #1631: - U1 reads a blank revision and "0 of 0 nodes converged"; the surface does not rest; - the newest `testing` release is listed under *applying automatically* and the gateway **self-swaps onto it in its first 02:00–04:00 window** — possibly onto the very bits it was founded from (one needless restart of the community's only door), and every later binary from the rail ALSO reports `"unknown"`, so after that update it still does not know what it runs: the screen says `testing · <rev>` only because the orchestrator records the rollout, never because the binary knows; - the #1579 downgrade floor starts at 0 instead of the founding release's sequence. ## Build 1. **The publish rail stamps what it cuts.** `scripts/release-rail/publish.sh` builds the control plane with `-X …/internal/fleetwire.Release=<revision>` (the 40-char commit it is cutting). `cmd/release-cut` already knows the sequence it signs — stamp it too if the ordering allows (build → cut), else (2) carries it. 2. **The operator-app / helper build stamps the founding identity**: `fleetwire.Release` on the payload control-plane binary it ships, and `founding.ReleaseChannelSequence` from the feed it was built against (or leave the sequence empty and let the gateway adopt the feed's sequence for its OWN revision on first poll — if `Current.Revision` equals a listed release's revision, take that release's sequence as the floor and do not offer it; this makes the sequence self-healing and may be the simpler half). 3. **A guard so this cannot regress silently:** with a release channel pinned AND no founding identity, founding should say so loudly in its log (ADR 0100) — and a unit test pins that a rail-built binary reports a real revision (build a tiny binary with the rail's exact flags and read it back). 4. **The drive proves the production path:** one `#1614`-style leg founds WITHOUT the `WithFoundingRelease` override, from a rail-built payload, and asserts U1x rests on the stamped revision. Today the override hides exactly the thing this ticket is about. ## Blocks Founding's `testing` pin (#1582, local branch `pin-testing-1582-rebased`, rebuilt on main today, tests green, NOT pushed) and therefore #1562. It does not block #1569: Whakatōhea Demo is re-tuned by `set-release-channel --apply`, and its first `testing` update is wanted anyway — but note it too will show a blank revision until that first rollout records one.

swarm-claim host=matou-dev-server-01 run=28737
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=28737 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1674 — status success

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

envelope
{
  "issue": 1674,
  "status": "success",
  "commits": [
    "6fe36228451a674405ea5fe05f712b9c6899b8ce"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/release_identity.go",
    "control-plane/cmd/control-plane/release_identity_test.go",
    "control-plane/cmd/control-plane/whole_composition.go",
    "docs/GOTCHAS.md",
    "internal/fleetwire/stamp_test.go",
    "internal/fleetwire/testdata/stampcheck/main.go",
    "internal/update/downgrade_test.go",
    "internal/update/update.go",
    "scripts/assemble-payload.sh",
    "scripts/lib/release-rail-lib.sh",
    "scripts/release-rail/publish.sh",
    "scripts/tests/release-rail-test.sh"
  ],
  "tests": [
    {
      "command": "bash scripts/tests/release-rail-test.sh",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/update/ ./internal/fleetwire/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/founding/ ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/update/ ./internal/fleetwire/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "gofmt -l (touched .go files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Item 1 — the publish rail stamps what it cuts (-X fleetwire.Release=<revision> on the control-plane build)": "scripts/release-rail/publish.sh build_tree stamps via oc_release_ldflags; pinned by release-rail-test.sh (44 checks) and internal/fleetwire/stamp_test.go (round-trip read-back)",
    "Item 2 — the operator-app/helper build stamps the founding identity (fleetwire.Release on the payload control-plane binary)": "scripts/assemble-payload.sh stamps fleetwire.Release from HEAD via the shared oc_release_ldflags in scripts/lib/release-rail-lib.sh (OC_RELEASE_REVISION_VAR)",
    "Item 2 — the sequence self-heals (adopt the feed's sequence for the fleet's own revision on first poll)": "internal/update/update.go adoptOwnReleaseSequence, proven by TestPoll_AdoptsOwnReleaseSequenceFromTheFeedWhenUnstamped (heals current.Sequence + high-water floor, downgrade then refused, survives restart)",
    "Item 3 — a guard so this cannot regress silently (loud log when a channel is pinned with no founding identity)": "warnIfReleaseIdentityMissing in control-plane/cmd/control-plane/release_identity.go, wired in whole_composition.go, proven by TestWarnIfReleaseIdentityMissing",
    "Item 3 — a unit test that a rail-built binary reports a real revision (build with the rail's exact flags, read back)": "internal/fleetwire/stamp_test.go TestRelease_StampedByRailLdflags builds internal/fleetwire/testdata/stampcheck with -X <releaseVarPath>=<rev> and asserts the value round-trips (a wrong path is silently dropped by the linker)",
    "Item 4 — the drive proves the production path (found without WithFoundingRelease, U1x rests on the stamped revision)": "NOT done — needs a live founding drive a swarm worker cannot run; noted in the commit/STATUS as riding the next founding fire (out of scope for an offline slice)"
  },
  "summary": "A real build now stamps the founding revision (rail + payload) and the signed sequence self-heals from the feed, with a loud guard and a read-back test — making #1631's fix reachable in production; the live founding-drive proof (item 4) rides the next fire.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1674 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1674, "status": "success", "commits": [ "6fe36228451a674405ea5fe05f712b9c6899b8ce" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/release_identity.go", "control-plane/cmd/control-plane/release_identity_test.go", "control-plane/cmd/control-plane/whole_composition.go", "docs/GOTCHAS.md", "internal/fleetwire/stamp_test.go", "internal/fleetwire/testdata/stampcheck/main.go", "internal/update/downgrade_test.go", "internal/update/update.go", "scripts/assemble-payload.sh", "scripts/lib/release-rail-lib.sh", "scripts/release-rail/publish.sh", "scripts/tests/release-rail-test.sh" ], "tests": [ { "command": "bash scripts/tests/release-rail-test.sh", "exit_code": 0 }, { "command": "go test ./internal/update/ ./internal/fleetwire/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "go test ./internal/founding/ ./internal/clan/", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 }, { "command": "go vet ./internal/update/ ./internal/fleetwire/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "gofmt -l (touched .go files)", "exit_code": 0 } ], "criteria": { "Item 1 — the publish rail stamps what it cuts (-X fleetwire.Release=<revision> on the control-plane build)": "scripts/release-rail/publish.sh build_tree stamps via oc_release_ldflags; pinned by release-rail-test.sh (44 checks) and internal/fleetwire/stamp_test.go (round-trip read-back)", "Item 2 — the operator-app/helper build stamps the founding identity (fleetwire.Release on the payload control-plane binary)": "scripts/assemble-payload.sh stamps fleetwire.Release from HEAD via the shared oc_release_ldflags in scripts/lib/release-rail-lib.sh (OC_RELEASE_REVISION_VAR)", "Item 2 — the sequence self-heals (adopt the feed's sequence for the fleet's own revision on first poll)": "internal/update/update.go adoptOwnReleaseSequence, proven by TestPoll_AdoptsOwnReleaseSequenceFromTheFeedWhenUnstamped (heals current.Sequence + high-water floor, downgrade then refused, survives restart)", "Item 3 — a guard so this cannot regress silently (loud log when a channel is pinned with no founding identity)": "warnIfReleaseIdentityMissing in control-plane/cmd/control-plane/release_identity.go, wired in whole_composition.go, proven by TestWarnIfReleaseIdentityMissing", "Item 3 — a unit test that a rail-built binary reports a real revision (build with the rail's exact flags, read back)": "internal/fleetwire/stamp_test.go TestRelease_StampedByRailLdflags builds internal/fleetwire/testdata/stampcheck with -X <releaseVarPath>=<rev> and asserts the value round-trips (a wrong path is silently dropped by the linker)", "Item 4 — the drive proves the production path (found without WithFoundingRelease, U1x rests on the stamped revision)": "NOT done — needs a live founding drive a swarm worker cannot run; noted in the commit/STATUS as riding the next founding fire (out of scope for an offline slice)" }, "summary": "A real build now stamps the founding revision (rail + payload) and the signed sequence self-heals from the feed, with a loud guard and a read-back test — making #1631's fix reachable in production; the live founding-drive proof (item 4) rides the next fire.", "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#1674
No description provided.