ADR: auto-update and auto-rollback (proposed) #537

Closed
kayg wants to merge 1 commit from issue/auto-update-adr into dev
Owner

Docs only, for #536. Status: proposed until kayg accepts it.

  • docs/adr/0049-auto-update-and-auto-rollback.md: context, decision D1–D6, how the pieces fit, the alternatives we turned down, 11 failure modes, the podman facts (verified ones are marked, the rest say unverified), consequences, open questions, and an 8-slice implementation plan with chaos tests.
  • docs/ops/auto-update.md: a how-to for self-hosters. It covers turning updates on and off, the channel, the window, update now, what happens on failure, rolling back by hand, the history, and troubleshooting.
  • docs/dev/migrations.md: the expand/contract rule with examples, plus a PR checklist.

Podman facts were checked against docs.podman.io and against podman 5.4.2 on calternal-staging.

Something I found: the stock podman-auto-update.service runs podman image prune -f straight after updating. That would delete the image we need to roll back to. The design adds a drop-in that clears that line and tags the old image previous.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WCcFhwwgMK66k9LMVqogNJ

Docs only, for #536. Status: proposed until kayg accepts it. - `docs/adr/0049-auto-update-and-auto-rollback.md`: context, decision D1–D6, how the pieces fit, the alternatives we turned down, 11 failure modes, the podman facts (verified ones are marked, the rest say unverified), consequences, open questions, and an 8-slice implementation plan with chaos tests. - `docs/ops/auto-update.md`: a how-to for self-hosters. It covers turning updates on and off, the channel, the window, update now, what happens on failure, rolling back by hand, the history, and troubleshooting. - `docs/dev/migrations.md`: the expand/contract rule with examples, plus a PR checklist. Podman facts were checked against docs.podman.io and against podman 5.4.2 on calternal-staging. Something I found: the stock `podman-auto-update.service` runs `podman image prune -f` straight after updating. That would delete the image we need to roll back to. The design adds a drop-in that clears that line and tags the old image `previous`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WCcFhwwgMK66k9LMVqogNJ
ADR 0049: auto-update and auto-rollback (proposed)
Some checks failed
CI / server (pull_request) Successful in 36s
CI / rust (pull_request) Successful in 2m39s
CI / web (pull_request) Failing after 27s
45c79c22f4
Records the approved design D1-D6: release channels in the Forgejo
registry, podman auto-update with Notify=healthy, a 10-minute watch
window with a canary, expand/contract schema changes, timing and an
admin-only history. Adds the operator how-to (docs/ops/auto-update.md),
the schema change rule and PR checklist (docs/dev/migrations.md), and an
ordered implementation plan. Docs only; nothing is built until accepted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WCcFhwwgMK66k9LMVqogNJ
Author
Owner

housekeeping #1009: needs-decision.

Proposed automatic update/rollback ADR; dev shipped a different manual deploy path. Adoption remains a maintainer decision, and the migrated PR has only an archive source head.

original head: 45c79c22f46ac24c6284650fb9e7b63184f80486. against dev cd7f84432febfc63b788fbb9b9f9950452982d74, git cherry reports 1 unmatched and 0 equivalent patches. the landing audit lists each candidate missing commit and stable patch match in pr-537.md; unmatched patches can include superseded behavior.

left open, source branch unchanged. no rebase or new test claim for this decision lane.

housekeeping #1009: needs-decision. Proposed automatic update/rollback ADR; dev shipped a different manual deploy path. Adoption remains a maintainer decision, and the migrated PR has only an archive source head. original head: `45c79c22f46ac24c6284650fb9e7b63184f80486`. against dev `cd7f84432febfc63b788fbb9b9f9950452982d74`, git cherry reports 1 unmatched and 0 equivalent patches. the [landing audit](https://git.kayg.org/attachments/fe3c09dc-dea3-47a0-92e2-b44a777083e5) lists each candidate missing commit and stable patch match in `pr-537.md`; unmatched patches can include superseded behavior. left open, source branch unchanged. no rebase or new test claim for this decision lane.
Author
Owner

Superseded by #1183: the ADR is rewritten to kayg's IG1-IG6 as 0075 on current dev. Left open for kayg to close on accept.

Superseded by https://git.kayg.org/kayg/calternal/pulls/1183: the ADR is rewritten to kayg's IG1-IG6 as 0075 on current dev. Left open for kayg to close on accept.
Author
Owner

Superseded by #1183 (ADR 0075, rewritten to IG1–IG6). Closing; the branch stays for reference.

Superseded by #1183 (ADR 0075, rewritten to IG1–IG6). Closing; the branch stays for reference.
kayg closed this pull request 2026-11-16 01:06:13 +00:00
Some checks failed
CI / server (pull_request) Successful in 36s
CI / rust (pull_request) Successful in 2m39s
CI / web (pull_request) Failing after 27s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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
kayg/calternal!537
No description provided.