update lane: a landed release never re-renders the gateway's modules — #1880's KERIA patches converged but KERIA kept the old render until a hand rerender-gateway --switch #1881

Closed
opened 2026-09-25 14:25:18 +00:00 by ben · 2 comments
Owner

Symptom (2026-09-25, whakatohea-demo)

The release lane applied 4378a9ff (seq 2910, #1880: KERIA registration patches) and reported it converged. Nothing changed in KERIA. keria.service had been running since 2026-09-23 22:19, and machines/gateway/keri-stack.nix in the config repo still lacked idss_patches.

The lane commits only idss: pin fleet release <rev> (config 3b213a0) and never re-renders the gateway's modules. So a render-affecting internal/clan change, like #1880's keri.go, never reaches a standing community. The community reads as up to date while it runs the old service.

Fixed by hand: IDSS_CONFIG_REPO=/srv/idss/config /srv/idss/bin/control-plane rerender-gateway --switch, which produced config 9525b8a. KERIA was rebuilt and restarted at 14:24:42, and its log shows idss-keria-patches: applied.

Cause

#1845 made the front door reconcile on every land and re-supply (GOTCHAS #337). #1821 gave rerender-gateway --switch the whole closure and every content module, but only as a hand or re-supply step. The release lane's land path (internal/update/land.go) still skips the module re-render, so every module other than the front door has the pre-#1845 gap: keri-stack, anysync-stack, idss-idp.nix, gateway-guest and the rest.

Want

After a release lands, the lane runs the same re-render the rerender-gateway one-shot does: render the closure and every present module from the persisted render inputs, then commit. If the render changed anything, the lane's existing deploy step switches it; if the render is byte-identical, nothing happens. Take care with the switch lock: the re-render must ride the lane's own deploy and never race it (see the 2026-09-24 lock loss in the #1845 hand update).

Acceptance:

  • A release whose only change is a module render (for example, a keri-stack change) lands on a standing community and the service restarts on the new render with no hand step. Test: a fake landing with a changed keri.go render asserts a commit and a switch; an unchanged render asserts neither.
  • A GOTCHAS entry, or an amendment to #337: "a render change reaches standing communities only if the lane re-renders it".

🤖 Generated with Claude Code

## Symptom (2026-09-25, whakatohea-demo) The release lane applied `4378a9ff` (seq 2910, #1880: KERIA registration patches) and reported it converged. Nothing changed in KERIA. `keria.service` had been running since 2026-09-23 22:19, and `machines/gateway/keri-stack.nix` in the config repo still lacked `idss_patches`. The lane commits only `idss: pin fleet release <rev>` (config `3b213a0`) and never re-renders the gateway's modules. So a render-affecting `internal/clan` change, like #1880's `keri.go`, never reaches a standing community. The community reads as up to date while it runs the old service. Fixed by hand: `IDSS_CONFIG_REPO=/srv/idss/config /srv/idss/bin/control-plane rerender-gateway --switch`, which produced config `9525b8a`. KERIA was rebuilt and restarted at 14:24:42, and its log shows `idss-keria-patches: applied`. ## Cause #1845 made the front door reconcile on every land and re-supply (GOTCHAS #337). #1821 gave `rerender-gateway --switch` the whole closure and every content module, but only as a hand or re-supply step. The release lane's land path (`internal/update/land.go`) still skips the module re-render, so every module other than the front door has the pre-#1845 gap: keri-stack, anysync-stack, idss-idp.nix, gateway-guest and the rest. ## Want After a release lands, the lane runs the same re-render the `rerender-gateway` one-shot does: render the closure and every present module from the persisted render inputs, then commit. If the render changed anything, the lane's existing deploy step switches it; if the render is byte-identical, nothing happens. Take care with the switch lock: the re-render must ride the lane's own deploy and never race it (see the 2026-09-24 lock loss in the #1845 hand update). Acceptance: - A release whose only change is a module render (for example, a keri-stack change) lands on a standing community and the service restarts on the new render with no hand step. Test: a fake landing with a changed `keri.go` render asserts a commit and a switch; an unchanged render asserts neither. - A GOTCHAS entry, or an amendment to #337: "a render change reaches standing communities only if the lane re-renders it". 🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

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

close-report for #1881 — status success

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

envelope
{
  "issue": 1881,
  "status": "success",
  "commits": [
    "7bb93354"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/GOTCHAS.md",
    "control-plane/cmd/control-plane/resting_composition.go",
    "internal/clan/clan.go",
    "internal/clan/config.go",
    "internal/clan/testing/fake.go",
    "internal/rescue/deviceladder_test.go",
    "internal/update/rollout.go",
    "internal/update/rollout_rerender_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/update/... ./internal/clan/... ./internal/rescue/...",
      "exit_code": 0
    },
    {
      "command": "go test ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command golangci-lint run ./internal/update/... ./internal/clan/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A release whose only change is a module render lands on a standing community and the service restarts on the new render with no hand step": "internal/update/rollout.go re-renders the gateway's closure + present modules (clan.Config.RerenderGateway -> Adapter.RerenderGatewaySurface) after PinRelease and before any deploy stage, then rolls out the resulting commit so the lane's own gateway deploy switches it; on a self-swap release the post-swap Resume re-renders with the new binary's code and its gateway deploy carries it (commit 7bb93354)",
    "Test: a fake landing with a changed keri.go render asserts a commit and a switch": "internal/update/rollout_rerender_test.go TestRollout_RerendersGatewayModulesThenDeploysThatCommit: RerenderGatewayChanges=true, asserts the gateway was re-rendered once and every deploy stage used the re-render commit, not the pin",
    "an unchanged render asserts neither": "internal/update/rollout_rerender_test.go TestRollout_UnchangedGatewayRenderDeploysThePin: the zero FakeConfig, asserts a byte-identical re-render is a no-op that returns the pin tip so every stage deploys the pin and nothing extra switches",
    "A GOTCHAS entry, or an amendment to #337: a render change reaches standing communities only if the lane re-renders it": "docs/GOTCHAS.md #337 amended (2026-09-25, #1881) with that rule and the fix/pins"
  },
  "summary": "The release lane re-renders the gateway's closure + content modules on top of the pin, so a render-affecting internal/clan change reaches a standing community and its gateway deploy switches the new render with no hand rerender-gateway.",
  "blockers": []
}
**close-report** for #1881 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1881, "status": "success", "commits": [ "7bb93354" ], "changed_files": [ "STATUS.md", "docs/GOTCHAS.md", "control-plane/cmd/control-plane/resting_composition.go", "internal/clan/clan.go", "internal/clan/config.go", "internal/clan/testing/fake.go", "internal/rescue/deviceladder_test.go", "internal/update/rollout.go", "internal/update/rollout_rerender_test.go" ], "tests": [ { "command": "go test ./internal/update/... ./internal/clan/... ./internal/rescue/...", "exit_code": 0 }, { "command": "go test ./control-plane/...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command golangci-lint run ./internal/update/... ./internal/clan/...", "exit_code": 0 } ], "criteria": { "A release whose only change is a module render lands on a standing community and the service restarts on the new render with no hand step": "internal/update/rollout.go re-renders the gateway's closure + present modules (clan.Config.RerenderGateway -> Adapter.RerenderGatewaySurface) after PinRelease and before any deploy stage, then rolls out the resulting commit so the lane's own gateway deploy switches it; on a self-swap release the post-swap Resume re-renders with the new binary's code and its gateway deploy carries it (commit 7bb93354)", "Test: a fake landing with a changed keri.go render asserts a commit and a switch": "internal/update/rollout_rerender_test.go TestRollout_RerendersGatewayModulesThenDeploysThatCommit: RerenderGatewayChanges=true, asserts the gateway was re-rendered once and every deploy stage used the re-render commit, not the pin", "an unchanged render asserts neither": "internal/update/rollout_rerender_test.go TestRollout_UnchangedGatewayRenderDeploysThePin: the zero FakeConfig, asserts a byte-identical re-render is a no-op that returns the pin tip so every stage deploys the pin and nothing extra switches", "A GOTCHAS entry, or an amendment to #337: a render change reaches standing communities only if the lane re-renders it": "docs/GOTCHAS.md #337 amended (2026-09-25, #1881) with that rule and the fix/pins" }, "summary": "The release lane re-renders the gateway's closure + content modules on top of the pin, so a render-affecting internal/clan change reaches a standing community and its gateway deploy switches the new render with no hand rerender-gateway.", "blockers": [] } ``` </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.

Dependencies

No dependencies set.

Reference
Matou/idss#1881
No description provided.