PhoenixKit 2.55.1: Machine writes no longer flood the settings history
PhoenixKit 2.55.1 stops scheduled machine writes from burying the Activity feed, and fixes a revoked permission coming back after mix phoenix_kit.update.
Values a machine rewrites on a schedule, such as the jobs sweeper’s timestamp every five minutes and the sitemap’s stats and cached documents, recorded a permanent settings change on every write. They no longer do. Changes a person makes are always recorded. Entries written by earlier versions stay until removed.
mix phoenix_kit.update and mix phoenix_kit.doctor start the app in update mode, where “already done” flags were not seen. As a result, the Admin auto-grant gave back a custom permission an Owner had revoked, and the media permission backfill ran again. Both flags are now read directly, and a flag that cannot be read grants nothing. Module legacy migrations now run on the app’s next ordinary start instead.
Full release notes: PhoenixKit 2.55.1
2.55.1 · 6 October 2026
Fixed
- Machine stamps no longer write permanent settings history (PR #908). A value a machine rewrites on a
schedule — the jobs sweeper’s
job_runs_last_sweep_at(every five minutes), the sitemap’s generation stats, its cached XML/HTML documents and its per-module stats — recorded a permanentsetting.changedentry on every write, burying the Activity feed under rows the pruner never takes. These writers now passhistory: false(cache invalidation and the settings change broadcast are unchanged). The option is refused withArgumentError, before the write’s transaction, together withactor_uuid:orsource: "settings": what a person changes is always recorded. Entries written by earlier versions stay until removed. - Boot no longer re-runs one-shot steps under
update_mode(PR #909).mix phoenix_kit.updateandmix phoenix_kit.doctorstart the host withupdate_modeon, whereSettings.get_setting/1answers nil, so “already done” flags read through it were ignored: the Admin auto-grant handed a custom permission key back after an Owner had revoked it, and the media sub-permission backfill re-ran. Both flags are now read from their row, and a flag that cannot be read grants nothing (fails closed, including a dead pool). Modulemigrate_legacy/0callbacks no longer run inupdate_mode; the host’s next ordinary start runs them.
Changed
- Test: the sweep-stamp history test compares entry counts instead of asserting an empty history, so it passes on a database that already holds entries from before the fix.
PhoenixKit 2.55.1. Install or update: {:phoenix_kit, "~> 2.55"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.