Repository navigation
Reads each release note once and plans from the facts
This release is for the stacks that are hard to update: the ones a hundred releases behind, the ones made of several images that must stay on the same version, and the ones where an update fails again and again.
Palier now reads each release note once and plans from the facts it kept. It moves the images of one release in the same step. It takes a second look at a plan that does not hold, and it stops trying when a stack keeps rolling back. It also removes the images it replaced, so the disk does not fill up.
Proven on the bench
Like every Palier feature, these ran in a virtual machine with a real Docker, on real applications.
| Stack | Upgrade | What happened |
|---|---|---|
| Immich | v1.105.1 → v3.4.1 | 128 release notes read one by one, twelve steps, all verified. The photos keep the same SHA-1. |
| n8n and its task runners | 2.45.7 → 3.2.2 | Both images in one step, with tags written in the Compose file or taken from one variable. |
| pgvecto-rs | pg14-v0.2.0 → pg17-v0.4.0 |
PostgreSQL 14 → 17 by export and reimport. The vectors read the same afterwards. |
| PostgreSQL and its backup job | 16.4 → 18.7 | The backup job follows its database in the same step. Only the database is exported and reimported. |
What is new
Release notes, read one by one
Before it plans, the AI reads each note on its own and keeps the facts that matter for an upgrade: breaking change, action asked of administrators, configuration change, data migration, security fix, required stop, supported dependency versions. Each fact comes with its quote, and a quote that is not word for word in the note is dropped.
Palier stores what was read. A note is read once, even across stacks, and a new release costs only its own note. The plan is computed from these facts, so the request stays small however far behind a stack is: from Immich v1.105.1 to v3.4.1, 835,000 characters of notes become 61,000 characters of facts.
Tried with the Anthropic API and, on the OpenAI-compatible path, with a model served by Ollama. See Release notes.
One release, several images
Some applications ship as several images that must run the same version: n8n and its task runners, the server and the machine learning of Immich. Palier now treats as one release the services of a stack whose images declare the same source (org.opencontainers.image.source) and run the same version. They change in the same step, to the same version, whether their tags are written in the Compose file or come from one variable. A plan that separates them is incomplete and is not applied.
The same goes for a service that depends on a service of the same image, such as a backup job next to its PostgreSQL:
services:
postgres:
image: postgres:16.4
postgres-backup:
image: postgres:16.4
command: /scripts/backup.sh
depends_on: [postgres]postgres-backup follows postgres: same version, same step, never past it. When the database changes major version by export and reimport, the backup job only changes image. See One release, several images.
palier.role, when depends_on only sets the start order
A worker, a runner or an exporter that starts after the application it serves used to make that application a dependency, held on its major version. The label says what the service is, application or dependency:
services:
n8n:
image: n8nio/n8n:2.45.7
labels:
palier.role: application
task-runners:
image: n8nio/runners:2.45.7
depends_on: [n8n]Any other value is reported on the stack, and the inferred role is kept. Asked for in #5. See palier.role.
A second look when a plan does not hold
An incomplete plan is computed once more, at once, with the full text of the notes concerned. So is a plan whose run was rolled back twice, with the notes of the step that did not pass. The AI is told which step failed and what Docker reported (a service that stopped, keeps restarting or is unhealthy), never the logs of a container.
palier show and the stack page say which notes were read in full, and why:
Computed again with the full notes of 2.5.12, 2.5.11, 2.5.10, 2.5.9, 2.5.8, 2.5.7, 2.5.6, because a first plan did not hold: the run of this plan was rolled back twice at step 1: kuma stopped
Palier does not insist
After a run that did not pass, Palier applies nothing on that stack on its own for a day, whatever the plan has become and even if Palier restarts. After three rollbacks in a row, or one rollback that did not pass, it stops until a run passes: palier apply or the Apply button, once the stack is in order.
palier status and the stack page say why:
run 35 ended "rolled_back"; next automatic try on Nov 19 1:33 PM
the last 3 runs were rolled back: Palier applies nothing on this stack on its own until a run passes
A disk that does not fill up
Once a run is verified, Palier removes the images it replaced: the one each service started from and those of the steps in between. After a rollback, the images pulled for the step that did not pass go too. Nothing is forced: Docker keeps any image a container still uses. Until now no image was ever removed, and one full series of upgrades on the bench left 73 GB of them.
When it starts, Palier also removes the throwaway containers and the volume copies that a Palier stopped in the middle of a run left behind.
What it keeps, it shows. palier show and the stack page list the volumes of a stack that no container mounts any more, such as the old volume of a database after a major upgrade:
Volumes no container uses · kept, never removed by Palier
VOLUME SIZE LOCATION
mariadb_data 135.8 MiB /var/lib/docker/volumes/mariadb_data/_data
PostgreSQL named in the tag
Tags such as pg14-v0.2.0 or 0.8.0-pg16 name the PostgreSQL their image is built on. Palier reads that version, compares it with what an application requires ("PostgreSQL 14 or later"), backs such a database up with palier.backup: dump, and sees pg16 and pg17 tags as newer versions: a PostgreSQL major, reached by export and reimport.
Also new
- A documentation site: kolapsis.github.io/palier, with installation, usage, configuration and how Palier works at each stage.
- A plan the AI could not give says why: the stack shows an incomplete plan computed from versions alone, with the answer of the API and what to do (check
PALIER_AI_KEY, the model or its address, raise the context of the model), instead of "up to date". Palier asks again at the next scan.
Upgrading from 0.4.0
Important
0.5.0 was published on November 18 and withdrawn the same day: on a stack with a backup job on the postgres image, it tried the same failing upgrade again and again. 0.5.1 replaces it, with the fixes. If you run 0.5.0, move to 0.5.1.
- The first scan reads every note of the stacks that are behind, once, and computes every plan again. Count a few minutes and as many short requests to the AI as there are notes; later scans only read new notes.
- Automatic apply waits a day after a run that did not pass. It used to try again at the next scan.
- Plans can change for stacks with several images of one release: they now move together.
- With
PALIER_AUTO=all, a PostgreSQL image taggedpgNN-…that is the application of its stack now changes PostgreSQL major on its own, by export and reimport, like an officialpostgresimage. As a dependency, it still waits for its application to cite the version. - The context of the model now has to hold the longest single note, not all the notes of a stack. The documentation gives the sizes: Context length.
- The separate call that looked for text written to steer an AI is gone: the passages are listed while each note is read.
- Images left by earlier versions of Palier are not removed: only the runs to come clean up after themselves.
- Built with Go 1.26.11. The image of 0.4.0 was built with an older Go 1.26 and carried GO-2026-6859, a crash of the HTTP/1 server in
net/http, which matters when the web interface is on (PALIER_LISTEN).modernc.org/sqlite1.62.0.
Fixes
- A backup job on the
postgresimage, withdepends_onon its database, was planned to PostgreSQL 18 by export and reimport while the database stayed on 16. - A service that ends on purpose, with exit code 0 and no restart policy, as a migration service does, counted as stopped: every rollback of its stack ended failed. It now passes the checks.
- An image whose tag holds a variable with text around it, such as
app:${APP_VERSION}-slim, was refused with "uses a variable, Palier cannot change it yet". Palier now writes the version in the env file, without the prefix or suffix. - The same release note was sent once per service that carries it: Immich from v1.105.1 reached 1.18 million tokens and the API refused the request.
- A tag such as
pg14-v0.2.0was compared as version 0.2.0 with "PostgreSQL 14 or later", which made the plan incomplete. - With tags written in the Compose file, n8n could go to 2.48.4 while its task runners went to 3.2.2.
- A plan computed while containers were being recreated could be kept with the old roles: the role and the dependencies of each service now belong to what a stored plan depends on.
- A database that the plan moves to another image is no longer listed among the versions left out.
Image
ghcr.io/kolapsis/palier:0.5.1
Multi-arch (linux/amd64, linux/arm64), built from deploy/Dockerfile by the release workflow, with SLSA provenance and an SBOM attached.
Verify the image
cosign verify ghcr.io/kolapsis/palier:0.5.1 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity https://github.com/kOlapsis/palier/.github/workflows/release.yml@refs/tags/v0.5.1
gh attestation verify oci://ghcr.io/kolapsis/palier:0.5.1 --owner kOlapsis