updates (#1614-1): the local-updates drive plumbing — cut a TEST-key release, serve it from the drive host, found the gateway tuned to it with the release source armed #1617

Closed
opened 2026-09-19 00:34:31 +00:00 by ben · 3 comments
Owner

Parent: #1614 (the Updates-lane proof drive) — slice 1 of 3. Grandparent #1562.

Ben ruled 2026-09-18: the throwaway gateway is a local KVM guest on elitebook-03 (free, repeatable; the drive takes the exclusive slot). No droplet, no spend. Read #1614's two session reports first — they map every piece this needs.

What's true today

No drive has ever pointed a live gateway at a release feed. scripts/smoke-private-path.sh never exports IDSS_RELEASE_FEED_URL, never serves a feed, so on every drive productionReleaseSource rests and the 5-minute scheduler only stamps last-checked. Everything the drive needs already exists — cmd/release-cut (signs with the committed TEST key when IDSS_RELEASE_SEED is unset, writes a servable --out tree), the helper's founding override (app/helper/cmd/helper/wiring_prod.go reads IDSS_RELEASE_FEED_URL / IDSS_RELEASE_PUBLIC_KEY → founding.WithReleaseChannel) — but nothing joins them.

What to build

A new drive in the local-guest world, declared the way local-archive / local-brands are (a compound marker → local-guest + a --drive selector; rehearsal_target_drive in the executor's lib). Call it local-updates.

  • Cut release A from the drive's own checkout with cmd/release-cut under the TEST key, into a drive-scoped --out tree, with --base-url pointing at where the drive will serve it. A carries the control plane, control panel and agent the gateway is founded with.
  • Serve that tree over HTTP from the drive host at an address the guest can reach (the guest reaches the host the same way it already reaches the payload/cache — reuse that route, do not invent a second one). It must 404 honestly for unknown paths (GOTCHAS #251's shape) and stay up for the whole drive; tear it down in the drive's cleanup, red or green.
  • Found the gateway tuned to it: export the feed URL + matourelease.TestReleasePublicKeyB64 into the helper's env so founding stamps the pair (#1582) and the gateway's control plane comes up with the release source ARMED. Prove it on the box: the rendered env carries both exports and the control-plane log shows the source wired, not resting.
  • A helper to publish a further release mid-drive (cut B, cut C, tamper, re-serve A) that slice 2's legs call — one shell function / fixture API, so the legs never hand-roll release-cut flags. Sequence numbers must rise (#1579).
  • The TEST key is right here and ONLY here: a throwaway gateway (ADR 0248 decision 3 amendment). The testing channel seed never leaves the rail.

Acceptance

  • --target/marker local-updates is accepted by the smoke script and resolves through the executor's marker helpers exactly as local-archive does (offline test beside the existing marker tests)
  • Given the drive's feed server, Then /channel/testing.json is application/json, an artifact path returns the exact cut bytes, and an unknown path is a 404
  • Given a gateway founded by this drive, Then its rendered environment carries IDSS_RELEASE_FEED_URL + IDSS_RELEASE_PUBLIC_KEY and the release source is armed (asserted by the drive, not assumed)
  • The feed server and every cut tree are removed at drive end, red or green
  • go build ./... && go vet ./... && go test ./..., scripts/seam-smoke.sh, lint green

Seam/offline-proven is the bar for THIS ticket; say "live unproven (#1614)" in the close report. Read docs/GOTCHAS.md first (#221, #241, #251, #253, #255). STATUS.md in the same commit.

## Parent: #1614 (the Updates-lane proof drive) — slice 1 of 3. Grandparent #1562. **Ben ruled 2026-09-18: the throwaway gateway is a local KVM guest on elitebook-03** (free, repeatable; the drive takes the exclusive slot). No droplet, no spend. Read #1614's two session reports first — they map every piece this needs. ## What's true today No drive has ever pointed a live gateway at a release feed. `scripts/smoke-private-path.sh` never exports `IDSS_RELEASE_FEED_URL`, never serves a feed, so on every drive `productionReleaseSource` rests and the 5-minute scheduler only stamps last-checked. Everything the drive needs already exists — `cmd/release-cut` (signs with the committed TEST key when `IDSS_RELEASE_SEED` is unset, writes a servable `--out` tree), the helper's founding override (`app/helper/cmd/helper/wiring_prod.go` reads `IDSS_RELEASE_FEED_URL` / `IDSS_RELEASE_PUBLIC_KEY` → `founding.WithReleaseChannel`) — but nothing joins them. ## What to build A new drive in the **local-guest world**, declared the way `local-archive` / `local-brands` are (a compound marker → `local-guest` + a `--drive` selector; `rehearsal_target_drive` in the executor's lib). Call it `local-updates`. - **Cut release A** from the drive's own checkout with `cmd/release-cut` under the TEST key, into a drive-scoped `--out` tree, with `--base-url` pointing at where the drive will serve it. A carries the control plane, control panel and agent the gateway is founded with. - **Serve that tree over HTTP from the drive host** at an address the guest can reach (the guest reaches the host the same way it already reaches the payload/cache — reuse that route, do not invent a second one). It must 404 honestly for unknown paths (GOTCHAS #251's shape) and stay up for the whole drive; tear it down in the drive's cleanup, red or green. - **Found the gateway tuned to it**: export the feed URL + `matourelease.TestReleasePublicKeyB64` into the helper's env so founding stamps the pair (#1582) and the gateway's control plane comes up with the release source ARMED. Prove it on the box: the rendered env carries both exports and the control-plane log shows the source wired, not resting. - **A helper to publish a further release mid-drive** (`cut B`, `cut C`, tamper, re-serve A) that slice 2's legs call — one shell function / fixture API, so the legs never hand-roll `release-cut` flags. Sequence numbers must rise (#1579). - The TEST key is right here and ONLY here: a throwaway gateway (ADR 0248 decision 3 amendment). The `testing` channel seed never leaves the rail. ## Acceptance - [ ] `--target`/marker `local-updates` is accepted by the smoke script and resolves through the executor's marker helpers exactly as `local-archive` does (offline test beside the existing marker tests) - [ ] Given the drive's feed server, Then `/channel/testing.json` is `application/json`, an artifact path returns the exact cut bytes, and an unknown path is a 404 - [ ] Given a gateway founded by this drive, Then its rendered environment carries `IDSS_RELEASE_FEED_URL` + `IDSS_RELEASE_PUBLIC_KEY` and the release source is armed (asserted by the drive, not assumed) - [ ] The feed server and every cut tree are removed at drive end, red or green - [ ] `go build ./... && go vet ./... && go test ./...`, `scripts/seam-smoke.sh`, lint green Seam/offline-proven is the bar for THIS ticket; say "live unproven (#1614)" in the close report. Read `docs/GOTCHAS.md` first (#221, #241, #251, #253, #255). STATUS.md in the same commit.

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

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

close-report for #1617 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 7c27af1ab8 is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'scripts/lib/rehearsal-queue-lib.sh' is not in the diff of the claimed commits
  • changed_files: 'scripts/lib/rehearsal-updates-feed-lib.sh' is not in the diff of the claimed commits
  • changed_files: 'scripts/smoke-private-path.sh' is not in the diff of the claimed commits
  • changed_files: 'scripts/tests/rehearsal-local-updates-target-test.sh' is not in the diff of the claimed commits
  • changed_files: 'scripts/tests/rehearsal-updates-feed-test.sh' is not in the diff of the claimed commits
envelope
{
  "issue": 1617,
  "status": "success",
  "commits": [
    "7c27af1ab81848e4531d9d2be51a6cfd3f1ad91e"
  ],
  "changed_files": [
    "STATUS.md",
    "scripts/lib/rehearsal-queue-lib.sh",
    "scripts/lib/rehearsal-updates-feed-lib.sh",
    "scripts/smoke-private-path.sh",
    "scripts/tests/rehearsal-local-updates-target-test.sh",
    "scripts/tests/rehearsal-updates-feed-test.sh"
  ],
  "tests": [
    {
      "command": "bash scripts/tests/rehearsal-local-updates-target-test.sh",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c bash scripts/tests/rehearsal-updates-feed-test.sh",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c bash -c 'for t in scripts/tests/*.sh; do bash $t; done' (72 offline tests)",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "--target/marker local-updates is accepted by the smoke script and resolves through the executor's marker helpers exactly as local-archive does (offline test beside the existing marker tests)": "scripts/lib/rehearsal-queue-lib.sh maps local-updates -> (base local-guest, drive updates); smoke accepts --drive updates and names journey.updates.spec.ts. Proven by scripts/tests/rehearsal-local-updates-target-test.sh (6 checks, mirrors the archive/brands target tests).",
    "Given the drive's feed server, Then /channel/testing.json is application/json, an artifact path returns the exact cut bytes, and an unknown path is a 404": "scripts/lib/rehearsal-updates-feed-lib.sh cuts with cmd/release-cut and serves with bootstrap serve (GOTCHAS #251 handler). Proven against the real cutter + server by scripts/tests/rehearsal-updates-feed-test.sh checks 3-5 (content-type application/json, cmp of served artifact vs cut bytes, 404 on unknown feed + unknown artifact).",
    "Given a gateway founded by this drive, Then its rendered environment carries IDSS_RELEASE_FEED_URL + IDSS_RELEASE_PUBLIC_KEY and the release source is armed (asserted by the drive, not assumed)": "smoke-private-path.sh's --drive updates leg exports IDSS_RELEASE_FEED_URL + the committed TEST public key (read from the Go constant) so the helper stamps the pair via founding.WithReleaseChannel (#1582); founding->armed is proven at the Go seam (internal/founding/releasechannel_test.go, productionReleaseSource). Export wiring pinned offline by rehearsal-local-updates-target-test.sh check 4. The on-box rendered-env + armed-log assertion is LIVE-UNPROVEN (#1614) — it rides journey.updates.spec.ts (#1618).",
    "The feed server and every cut tree are removed at drive end, red or green": "updates_feed_stop kills the server and rm -rf's the served tree, wired into the local-guest cleanup block (runs green or red). Proven by rehearsal-updates-feed-test.sh check 9 (tree gone, server no longer answering after stop).",
    "go build ./... && go vet ./... && go test ./..., scripts/seam-smoke.sh, lint green": "go build/vet/test ./... all exit 0 under nix develop .#go-ci (no Go changed); the full scripts/tests/*.sh offline sweep (the seam-smoke Shell stage) is green at 72/72. No gated language beyond shell + docs was touched."
  },
  "summary": "Landed slice 1 of #1614: the local-updates queue compound + a drive-host feed lib (cut a TEST-key release, serve it with an honest 404 feed, export the founding override, torn down at drive end) + offline tests; seam/offline-proven, live unproven (#1614).",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1617 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 7c27af1ab81848e4531d9d2be51a6cfd3f1ad91e is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'scripts/lib/rehearsal-queue-lib.sh' is not in the diff of the claimed commits - changed_files: 'scripts/lib/rehearsal-updates-feed-lib.sh' is not in the diff of the claimed commits - changed_files: 'scripts/smoke-private-path.sh' is not in the diff of the claimed commits - changed_files: 'scripts/tests/rehearsal-local-updates-target-test.sh' is not in the diff of the claimed commits - changed_files: 'scripts/tests/rehearsal-updates-feed-test.sh' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1617, "status": "success", "commits": [ "7c27af1ab81848e4531d9d2be51a6cfd3f1ad91e" ], "changed_files": [ "STATUS.md", "scripts/lib/rehearsal-queue-lib.sh", "scripts/lib/rehearsal-updates-feed-lib.sh", "scripts/smoke-private-path.sh", "scripts/tests/rehearsal-local-updates-target-test.sh", "scripts/tests/rehearsal-updates-feed-test.sh" ], "tests": [ { "command": "bash scripts/tests/rehearsal-local-updates-target-test.sh", "exit_code": 0 }, { "command": "nix develop .#go-ci -c bash scripts/tests/rehearsal-updates-feed-test.sh", "exit_code": 0 }, { "command": "nix develop .#go-ci -c bash -c 'for t in scripts/tests/*.sh; do bash $t; done' (72 offline tests)", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./...", "exit_code": 0 } ], "criteria": { "--target/marker local-updates is accepted by the smoke script and resolves through the executor's marker helpers exactly as local-archive does (offline test beside the existing marker tests)": "scripts/lib/rehearsal-queue-lib.sh maps local-updates -> (base local-guest, drive updates); smoke accepts --drive updates and names journey.updates.spec.ts. Proven by scripts/tests/rehearsal-local-updates-target-test.sh (6 checks, mirrors the archive/brands target tests).", "Given the drive's feed server, Then /channel/testing.json is application/json, an artifact path returns the exact cut bytes, and an unknown path is a 404": "scripts/lib/rehearsal-updates-feed-lib.sh cuts with cmd/release-cut and serves with bootstrap serve (GOTCHAS #251 handler). Proven against the real cutter + server by scripts/tests/rehearsal-updates-feed-test.sh checks 3-5 (content-type application/json, cmp of served artifact vs cut bytes, 404 on unknown feed + unknown artifact).", "Given a gateway founded by this drive, Then its rendered environment carries IDSS_RELEASE_FEED_URL + IDSS_RELEASE_PUBLIC_KEY and the release source is armed (asserted by the drive, not assumed)": "smoke-private-path.sh's --drive updates leg exports IDSS_RELEASE_FEED_URL + the committed TEST public key (read from the Go constant) so the helper stamps the pair via founding.WithReleaseChannel (#1582); founding->armed is proven at the Go seam (internal/founding/releasechannel_test.go, productionReleaseSource). Export wiring pinned offline by rehearsal-local-updates-target-test.sh check 4. The on-box rendered-env + armed-log assertion is LIVE-UNPROVEN (#1614) — it rides journey.updates.spec.ts (#1618).", "The feed server and every cut tree are removed at drive end, red or green": "updates_feed_stop kills the server and rm -rf's the served tree, wired into the local-guest cleanup block (runs green or red). Proven by rehearsal-updates-feed-test.sh check 9 (tree gone, server no longer answering after stop).", "go build ./... && go vet ./... && go test ./..., scripts/seam-smoke.sh, lint green": "go build/vet/test ./... all exit 0 under nix develop .#go-ci (no Go changed); the full scripts/tests/*.sh offline sweep (the seam-smoke Shell stage) is green at 72/72. No gated language beyond shell + docs was touched." }, "summary": "Landed slice 1 of #1614: the local-updates queue compound + a drive-host feed lib (cut a TEST-key release, serve it with an honest 404 feed, export the founding override, torn down at drive end) + offline tests; seam/offline-proven, live unproven (#1614).", "blockers": [], "no_code_change": "" } ``` </details>

close-report for #1617 — status success

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

envelope
{
  "issue": 1617,
  "status": "success",
  "commits": [
    "7c27af1ab81848e4531d9d2be51a6cfd3f1ad91e"
  ],
  "changed_files": [
    "STATUS.md",
    "scripts/lib/rehearsal-queue-lib.sh",
    "scripts/lib/rehearsal-updates-feed-lib.sh",
    "scripts/smoke-private-path.sh",
    "scripts/tests/rehearsal-local-updates-target-test.sh",
    "scripts/tests/rehearsal-updates-feed-test.sh"
  ],
  "tests": [
    {
      "command": "bash scripts/tests/rehearsal-local-updates-target-test.sh",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c bash scripts/tests/rehearsal-updates-feed-test.sh",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c bash -c 'for t in scripts/tests/*.sh; do bash $t; done' (72 offline tests)",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "--target/marker local-updates is accepted by the smoke script and resolves through the executor's marker helpers exactly as local-archive does (offline test beside the existing marker tests)": "scripts/lib/rehearsal-queue-lib.sh maps local-updates -> (base local-guest, drive updates); smoke accepts --drive updates and names journey.updates.spec.ts. Proven by scripts/tests/rehearsal-local-updates-target-test.sh (6 checks, mirrors the archive/brands target tests).",
    "Given the drive's feed server, Then /channel/testing.json is application/json, an artifact path returns the exact cut bytes, and an unknown path is a 404": "scripts/lib/rehearsal-updates-feed-lib.sh cuts with cmd/release-cut and serves with bootstrap serve (GOTCHAS #251 handler). Proven against the real cutter + server by scripts/tests/rehearsal-updates-feed-test.sh checks 3-5 (content-type application/json, cmp of served artifact vs cut bytes, 404 on unknown feed + unknown artifact).",
    "Given a gateway founded by this drive, Then its rendered environment carries IDSS_RELEASE_FEED_URL + IDSS_RELEASE_PUBLIC_KEY and the release source is armed (asserted by the drive, not assumed)": "smoke-private-path.sh's --drive updates leg exports IDSS_RELEASE_FEED_URL + the committed TEST public key (read from the Go constant) so the helper stamps the pair via founding.WithReleaseChannel (#1582); founding->armed is proven at the Go seam (internal/founding/releasechannel_test.go, productionReleaseSource). Export wiring pinned offline by rehearsal-local-updates-target-test.sh check 4. The on-box rendered-env + armed-log assertion is LIVE-UNPROVEN (#1614) — it rides journey.updates.spec.ts (#1618).",
    "The feed server and every cut tree are removed at drive end, red or green": "updates_feed_stop kills the server and rm -rf's the served tree, wired into the local-guest cleanup block (runs green or red). Proven by rehearsal-updates-feed-test.sh check 9 (tree gone, server no longer answering after stop).",
    "go build ./... && go vet ./... && go test ./..., scripts/seam-smoke.sh, lint green": "go build/vet/test ./... all exit 0 under nix develop .#go-ci (no Go changed); the full scripts/tests/*.sh offline sweep (the seam-smoke Shell stage) is green at 72/72. No gated language beyond shell + docs was touched."
  },
  "summary": "Landed slice 1 of #1614: the local-updates queue compound + a drive-host feed lib (cut a TEST-key release, serve it with an honest 404 feed, export the founding override, torn down at drive end) + offline tests; seam/offline-proven, live unproven (#1614).",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1617 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1617, "status": "success", "commits": [ "7c27af1ab81848e4531d9d2be51a6cfd3f1ad91e" ], "changed_files": [ "STATUS.md", "scripts/lib/rehearsal-queue-lib.sh", "scripts/lib/rehearsal-updates-feed-lib.sh", "scripts/smoke-private-path.sh", "scripts/tests/rehearsal-local-updates-target-test.sh", "scripts/tests/rehearsal-updates-feed-test.sh" ], "tests": [ { "command": "bash scripts/tests/rehearsal-local-updates-target-test.sh", "exit_code": 0 }, { "command": "nix develop .#go-ci -c bash scripts/tests/rehearsal-updates-feed-test.sh", "exit_code": 0 }, { "command": "nix develop .#go-ci -c bash -c 'for t in scripts/tests/*.sh; do bash $t; done' (72 offline tests)", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./...", "exit_code": 0 } ], "criteria": { "--target/marker local-updates is accepted by the smoke script and resolves through the executor's marker helpers exactly as local-archive does (offline test beside the existing marker tests)": "scripts/lib/rehearsal-queue-lib.sh maps local-updates -> (base local-guest, drive updates); smoke accepts --drive updates and names journey.updates.spec.ts. Proven by scripts/tests/rehearsal-local-updates-target-test.sh (6 checks, mirrors the archive/brands target tests).", "Given the drive's feed server, Then /channel/testing.json is application/json, an artifact path returns the exact cut bytes, and an unknown path is a 404": "scripts/lib/rehearsal-updates-feed-lib.sh cuts with cmd/release-cut and serves with bootstrap serve (GOTCHAS #251 handler). Proven against the real cutter + server by scripts/tests/rehearsal-updates-feed-test.sh checks 3-5 (content-type application/json, cmp of served artifact vs cut bytes, 404 on unknown feed + unknown artifact).", "Given a gateway founded by this drive, Then its rendered environment carries IDSS_RELEASE_FEED_URL + IDSS_RELEASE_PUBLIC_KEY and the release source is armed (asserted by the drive, not assumed)": "smoke-private-path.sh's --drive updates leg exports IDSS_RELEASE_FEED_URL + the committed TEST public key (read from the Go constant) so the helper stamps the pair via founding.WithReleaseChannel (#1582); founding->armed is proven at the Go seam (internal/founding/releasechannel_test.go, productionReleaseSource). Export wiring pinned offline by rehearsal-local-updates-target-test.sh check 4. The on-box rendered-env + armed-log assertion is LIVE-UNPROVEN (#1614) — it rides journey.updates.spec.ts (#1618).", "The feed server and every cut tree are removed at drive end, red or green": "updates_feed_stop kills the server and rm -rf's the served tree, wired into the local-guest cleanup block (runs green or red). Proven by rehearsal-updates-feed-test.sh check 9 (tree gone, server no longer answering after stop).", "go build ./... && go vet ./... && go test ./..., scripts/seam-smoke.sh, lint green": "go build/vet/test ./... all exit 0 under nix develop .#go-ci (no Go changed); the full scripts/tests/*.sh offline sweep (the seam-smoke Shell stage) is green at 72/72. No gated language beyond shell + docs was touched." }, "summary": "Landed slice 1 of #1614: the local-updates queue compound + a drive-host feed lib (cut a TEST-key release, serve it with an honest 404 feed, export the founding override, torn down at drive end) + offline tests; seam/offline-proven, live unproven (#1614).", "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#1617
No description provided.