Skip to content

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 permanent setting.changed entry on every write, burying the Activity feed under rows the pruner never takes. These writers now pass history: false (cache invalidation and the settings change broadcast are unchanged). The option is refused with ArgumentError, before the write’s transaction, together with actor_uuid: or source: "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.update and mix phoenix_kit.doctor start the host with update_mode on, where Settings.get_setting/1 answers 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). Module migrate_legacy/0 callbacks no longer run in update_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.