updates drive: found the rehearsal gateway the PRODUCTION way — stamped payload, no founding-release override — and prove it knows its own release (blocks the testing pin) #1675

Closed
opened 2026-09-21 02:24:10 +00:00 by ben · 2 comments
Owner

Ruled by Ben, 2026-09-21 (in session): prove a founding WITHOUT the test override before founding's testing pin ships.

Why

The Updates-lane proof drive (#1614, GREEN 9/9) founds its throwaway gateway with the founding release identity handed in by a test-only override: scripts/smoke-private-path.sh:~1071-1072 exports IDSS_RELEASE_REVISION / IDSS_RELEASE_SEQUENCE=1, which the helper turns into founding.WithFoundingRelease(...) (app/helper/cmd/helper/wiring_prod.go:758). Its own comment says why: "the throwaway payload's control-plane binary carries no build stamp … so without this the gateway would not know it is running A".

A REAL founding never takes that path. #1674 (6fe36228) made real builds stamp the revision (oc_release_ldflags, shared by scripts/release-rail/publish.sh and scripts/assemble-payload.sh) and made the signed sequence self-heal from the feed (internal/update/update.go). The rail half is proven on the real artifact (get.idss.nz's 6fe36228 control plane contains its own revision, checksum matches the signed manifest). The payload half — what founding actually installs — is offline-proven only, and the drive cannot see it because the override supplies the answer. That blind spot is exactly what hid the original defect (#1631 → #1674).

Build — one new proof, no product change expected

Make the drive found the way production does, and assert the gateway knows itself:

  1. Stamped payload. The drive's payload control plane is built through scripts/assemble-payload.sh's stamped build (or the same oc_release_ldflags call) so fleetwire.Release = the checkout's HEAD commit. Assert the stamp is in the binary BEFORE founding (fail loud if it reads "unknown" — a silent fall-back would make the leg prove nothing).
  2. Founding release A is cut AT that revision. updates_feed_cut_founding cuts A with revision = the payload's stamped commit (today it uses a drive-made revision name), sequence 1 — so the feed lists the very release the gateway is running, as the real rail does.
  3. No override. Do NOT export IDSS_RELEASE_REVISION / IDSS_RELEASE_SEQUENCE for this proof. Keep the feed URL + TEST key override (that one only re-points the channel at the drive's feed; it is not what is under test).
  4. Assert, on the updates-open leg (or a new knows-itself leg right after it):
    • U1x RESTS — "Everything is up to date. All 1 nodes are running <the stamped revision> on the testing channel" — not a blank revision, not "0 of 0";
    • release A is NOT listed under pending / automatic / queued (the gateway does not offer its own release back);
    • /api/v1/updates current.revision equals the stamped revision, and the downgrade floor adopted A's signed sequence from the feed (the #1674 self-heal) — assert it through whatever the seam exposes; if nothing exposes it, the replay leg later in the drive is the behavioural proof (a re-served older list is still refused).
    • The control-plane journal does NOT carry #1674's loud "channel pinned with no founding identity" warning.
  5. The rest of the #1614 journey (applied B → rolled-back C → refused → replay → real-rail) runs unchanged after it: B must still be offered and applied, proving a stamped A does not suppress real updates.

Prefer converting the existing drive (the override path then has no remaining caller in the drive and can be deleted from smoke-private-path.sh) over adding a second variant — one journey, founded the production way. If the override must stay for another target, say which and why in the commit.

Acceptance

  • Offline: fixture/unit tests for the stamped-A cut and the "stamp present before founding" guard; scripts/tests/ covers the no-override env.
  • Live: the #1614 drive (free local KVM guest on elitebook-03) GREEN end to end with no IDSS_RELEASE_REVISION/_SEQUENCE in its environment, U1x photographed resting on the stamped revision.
  • STATUS + GOTCHAS (the hazard: a drive that passes through a test-only override proves the override, not the product path).

Blocks

Founding's testing pin (#1582 — local branch pin-testing-1582-rebased, rebuilt on main, tests green, NOT pushed) and therefore #1562. Does not block #1569.

This is a standing-drive change: when it lands, #1614 needs re-queueing on elitebook-03 (it closed GREEN on 2026-09-20 and left the executor's queue).

## Ruled by Ben, 2026-09-21 (in session): prove a founding WITHOUT the test override before founding's `testing` pin ships. ## Why The Updates-lane proof drive (#1614, GREEN 9/9) founds its throwaway gateway with the founding release identity handed in by a **test-only override**: `scripts/smoke-private-path.sh:~1071-1072` exports `IDSS_RELEASE_REVISION` / `IDSS_RELEASE_SEQUENCE=1`, which the helper turns into `founding.WithFoundingRelease(...)` (`app/helper/cmd/helper/wiring_prod.go:758`). Its own comment says why: "the throwaway payload's control-plane binary carries no build stamp … so without this the gateway would not know it is running A". A REAL founding never takes that path. #1674 (`6fe36228`) made real builds stamp the revision (`oc_release_ldflags`, shared by `scripts/release-rail/publish.sh` and `scripts/assemble-payload.sh`) and made the signed sequence self-heal from the feed (`internal/update/update.go`). The rail half is proven on the real artifact (get.idss.nz's `6fe36228` control plane contains its own revision, checksum matches the signed manifest). **The payload half — what founding actually installs — is offline-proven only, and the drive cannot see it because the override supplies the answer.** That blind spot is exactly what hid the original defect (#1631 → #1674). ## Build — one new proof, no product change expected Make the drive found the way production does, and assert the gateway knows itself: 1. **Stamped payload.** The drive's payload control plane is built through `scripts/assemble-payload.sh`'s stamped build (or the same `oc_release_ldflags` call) so `fleetwire.Release` = the checkout's HEAD commit. Assert the stamp is in the binary BEFORE founding (fail loud if it reads "unknown" — a silent fall-back would make the leg prove nothing). 2. **Founding release A is cut AT that revision.** `updates_feed_cut_founding` cuts A with `revision` = the payload's stamped commit (today it uses a drive-made revision name), sequence 1 — so the feed lists the very release the gateway is running, as the real rail does. 3. **No override.** Do NOT export `IDSS_RELEASE_REVISION` / `IDSS_RELEASE_SEQUENCE` for this proof. Keep the feed URL + TEST key override (that one only re-points the channel at the drive's feed; it is not what is under test). 4. **Assert, on the `updates-open` leg (or a new `knows-itself` leg right after it):** - U1x RESTS — "Everything is up to date. All 1 nodes are running `<the stamped revision>` on the testing channel" — not a blank revision, not "0 of 0"; - release A is NOT listed under pending / automatic / queued (the gateway does not offer its own release back); - `/api/v1/updates` `current.revision` equals the stamped revision, and the downgrade floor adopted A's signed sequence from the feed (the #1674 self-heal) — assert it through whatever the seam exposes; if nothing exposes it, the replay leg later in the drive is the behavioural proof (a re-served older list is still refused). - The control-plane journal does NOT carry #1674's loud "channel pinned with no founding identity" warning. 5. The rest of the #1614 journey (applied B → rolled-back C → refused → replay → real-rail) runs unchanged after it: B must still be offered and applied, proving a stamped A does not suppress real updates. Prefer converting the existing drive (the override path then has no remaining caller in the drive and can be deleted from `smoke-private-path.sh`) over adding a second variant — one journey, founded the production way. If the override must stay for another target, say which and why in the commit. ## Acceptance - [ ] Offline: fixture/unit tests for the stamped-A cut and the "stamp present before founding" guard; `scripts/tests/` covers the no-override env. - [ ] Live: the #1614 drive (free local KVM guest on elitebook-03) GREEN end to end with no `IDSS_RELEASE_REVISION`/`_SEQUENCE` in its environment, U1x photographed resting on the stamped revision. - [ ] STATUS + GOTCHAS (the hazard: *a drive that passes through a test-only override proves the override, not the product path*). ## Blocks Founding's `testing` pin (#1582 — local branch `pin-testing-1582-rebased`, rebuilt on main, tests green, NOT pushed) and therefore #1562. Does not block #1569. This is a standing-drive change: when it lands, #1614 needs re-queueing on elitebook-03 (it closed GREEN on 2026-09-20 and left the executor's queue).

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

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

close-report for #1675 — status success

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

envelope
{
  "issue": 1675,
  "status": "success",
  "commits": [
    "62c31d95eb9d79a14d62c77ec165ee5806728ad0"
  ],
  "changed_files": [
    "scripts/lib/rehearsal-updates-feed-lib.sh",
    "scripts/smoke-private-path.sh",
    "scripts/tests/rehearsal-updates-feed-test.sh",
    "scripts/tests/rehearsal-local-updates-target-test.sh",
    "app/tests/e2e/fixtures/updatesFeed.ts",
    "app/tests/e2e/fixtures/updatesFeed.test.ts",
    "app/tests/e2e/fixtures/updatesJourney.test.ts",
    "app/tests/e2e/journey.updates.spec.ts",
    "STATUS.md",
    "docs/GOTCHAS.md"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c bash scripts/tests/rehearsal-updates-feed-test.sh",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c bash scripts/tests/rehearsal-local-updates-target-test.sh",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c bash -c 'cd app && node_modules/.bin/vitest run tests/e2e/fixtures/updatesDrive.test.ts tests/e2e/fixtures/updatesJourney.test.ts tests/e2e/fixtures/updatesFeed.test.ts'",
      "exit_code": 0
    },
    {
      "command": "cd app && node_modules/.bin/vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "cd app && npx prettier --check tests/e2e/journey.updates.spec.ts tests/e2e/fixtures/updatesFeed.ts tests/e2e/fixtures/updatesJourney.test.ts tests/e2e/fixtures/updatesFeed.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Offline: fixture/unit tests for the stamped-A cut and the 'stamp present before founding' guard; scripts/tests/ covers the no-override env": "rehearsal-updates-feed-test.sh gains a stamped/unstamped round-trip section for updates_feed_payload_release (builds a stamped stand-in via oc_release_ldflags, reads the stamp back, refuses an unstamped/missing binary with exit 3 — 11 checks pass); rehearsal-local-updates-target-test.sh section 4 inverted to assert smoke NO LONGER exports IDSS_RELEASE_REVISION/_SEQUENCE, reads the founding revision from updates_feed_payload_release BEFORE the cut, and exports OC_UPDATES_FOUNDING_REVISION (9 checks pass); updatesJourney.test.ts pins feedEnv reds loud when OC_UPDATES_FOUNDING_REVISION is missing (74/74 fixtures)",
    "Live: the #1614 drive GREEN end to end with no IDSS_RELEASE_REVISION/_SEQUENCE in its environment, U1x photographed resting on the stamped revision": "WIRED + offline-proven, rides the next live fire (a swarm worker cannot run the live drive). smoke-private-path.sh founds with no identity override and reads the payload stamp; journey.updates.spec.ts's updates-open leg asserts U1x rests on OC_UPDATES_FOUNDING_REVISION (surface.current.revision verbatim) and that the #1674 'does not know its own release' warning is absent. Standing-drive change: #1614 needs re-queueing on elitebook-03 (per the ticket)",
    "STATUS + GOTCHAS (the hazard: a drive that passes through a test-only override proves the override, not the product path)": "STATUS.md gains the #1675 milestone entry (newest first); docs/GOTCHAS.md #300 records the hazard with symptom/cause/rule and its relation to #299"
  },
  "summary": "The Updates proof drive now founds the production way — a stamped payload read back out of the binary, no founding-release override — and asserts the gateway knows its own release.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1675 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1675, "status": "success", "commits": [ "62c31d95eb9d79a14d62c77ec165ee5806728ad0" ], "changed_files": [ "scripts/lib/rehearsal-updates-feed-lib.sh", "scripts/smoke-private-path.sh", "scripts/tests/rehearsal-updates-feed-test.sh", "scripts/tests/rehearsal-local-updates-target-test.sh", "app/tests/e2e/fixtures/updatesFeed.ts", "app/tests/e2e/fixtures/updatesFeed.test.ts", "app/tests/e2e/fixtures/updatesJourney.test.ts", "app/tests/e2e/journey.updates.spec.ts", "STATUS.md", "docs/GOTCHAS.md" ], "tests": [ { "command": "nix develop .#go-ci -c bash scripts/tests/rehearsal-updates-feed-test.sh", "exit_code": 0 }, { "command": "nix develop .#go-ci -c bash scripts/tests/rehearsal-local-updates-target-test.sh", "exit_code": 0 }, { "command": "nix develop .#go-ci -c bash -c 'cd app && node_modules/.bin/vitest run tests/e2e/fixtures/updatesDrive.test.ts tests/e2e/fixtures/updatesJourney.test.ts tests/e2e/fixtures/updatesFeed.test.ts'", "exit_code": 0 }, { "command": "cd app && node_modules/.bin/vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "cd app && npx prettier --check tests/e2e/journey.updates.spec.ts tests/e2e/fixtures/updatesFeed.ts tests/e2e/fixtures/updatesJourney.test.ts tests/e2e/fixtures/updatesFeed.test.ts", "exit_code": 0 } ], "criteria": { "Offline: fixture/unit tests for the stamped-A cut and the 'stamp present before founding' guard; scripts/tests/ covers the no-override env": "rehearsal-updates-feed-test.sh gains a stamped/unstamped round-trip section for updates_feed_payload_release (builds a stamped stand-in via oc_release_ldflags, reads the stamp back, refuses an unstamped/missing binary with exit 3 — 11 checks pass); rehearsal-local-updates-target-test.sh section 4 inverted to assert smoke NO LONGER exports IDSS_RELEASE_REVISION/_SEQUENCE, reads the founding revision from updates_feed_payload_release BEFORE the cut, and exports OC_UPDATES_FOUNDING_REVISION (9 checks pass); updatesJourney.test.ts pins feedEnv reds loud when OC_UPDATES_FOUNDING_REVISION is missing (74/74 fixtures)", "Live: the #1614 drive GREEN end to end with no IDSS_RELEASE_REVISION/_SEQUENCE in its environment, U1x photographed resting on the stamped revision": "WIRED + offline-proven, rides the next live fire (a swarm worker cannot run the live drive). smoke-private-path.sh founds with no identity override and reads the payload stamp; journey.updates.spec.ts's updates-open leg asserts U1x rests on OC_UPDATES_FOUNDING_REVISION (surface.current.revision verbatim) and that the #1674 'does not know its own release' warning is absent. Standing-drive change: #1614 needs re-queueing on elitebook-03 (per the ticket)", "STATUS + GOTCHAS (the hazard: a drive that passes through a test-only override proves the override, not the product path)": "STATUS.md gains the #1675 milestone entry (newest first); docs/GOTCHAS.md #300 records the hazard with symptom/cause/rule and its relation to #299" }, "summary": "The Updates proof drive now founds the production way — a stamped payload read back out of the binary, no founding-release override — and asserts the gateway knows its own release.", "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#1675
No description provided.