updates: a saved update policy is only in memory — SetPolicy/SetChannel never persist, the 204 is answered first, and a control-plane restart inside the gap restores the old policy #1975
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1975
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #1562 — related: #1633 (durable update store), #1635, #1850
What's true today (seen live on Whakatōhea Demo, 2026-09-28; code on
main@be126a6b)The steward's update policy is saved to memory and answered as saved. It reaches disk only when something else saves the store.
Orchestrator.SetPolicyandOrchestrator.SetChannel(internal/update/policy.go) assigno.store.policyand return. Neither callso.store.save(), and neither returns an error.POST /api/v1/updates/policyanswers 204 straight after (internal/controlapi/updates.go).Poll's deferred save, up to 5 minutes later.Observed: at 22:24:01Z the window was set to 11:00–13:00 (204;
GET /api/v1/updates/policyread it back). At 22:25:03Z and 22:26:00Z/var/lib/idss/update.jsonstill held"window":{"start":"","end":""}— last written at 22:23:27Z by the poll before the change.Why it matters
A control plane that restarts inside that gap comes back on the OLD policy, and the steward was told the new one was saved. The update lane restarts the control plane by design (ADR 0259): a steward who narrows the window, or turns automatic updates off, moments before a rollout's self-restart loses the change — and the next release applies under the policy they had just replaced. Same for a channel change or a pin (
SetChannel): a pin that does not survive a restart is not a pin.What to build
SetPolicyandSetChannelpersist before they return, and return the save's error.UpdateServiceseam and its fakes carry the error.Acceptance
SetPolicyreturns, Then a freshStoreloaded from the same backend reads the new security mode, feature mode and window — with no poll, rollout or tick in betweenSetChannel: a Matou channel, a pin, a forkPOST /api/v1/updates/policyandPOST /api/v1/updates/channelanswer a 5xx Problem and the in-memory policy is unchangedmainbefore the fixswarm-claim host=matou-dev-server-01 run=35332
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1975 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope