mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 18:43:38 +01:00
On the Patrol fault set, a crashed worker (exit 139, no restart policy) with a newer image available got `update` proposed instead of `start` in each of the four runs where Patrol proposed an action. The conclusions called update the lowest-risk step because of its "automatic backup and rollback". That update could not have restored the service. The Docker agent starts and checks a replacement only when the original was running (`updateContainerWithProgress`, `wasRunning`), so updating a stopped container leaves it stopped, with no check that the new image runs. ## What changes The `update` capability's description follows the container's run state: - **Stopped:** "Update this stopped Docker container to its latest image through its reporting Pulse agent. The container stays stopped: an update does not start it or check that the new image runs." - **Running:** unchanged. Every policy field is unchanged: approval level, auto-authorization class, rollback support, handler. No action is added or widened. A person approving the plan reads the same sentence. ## Proof - `TestDockerUpdateCapabilitySaysAStoppedContainerStaysStopped`: exited, created, dead and stopped containers say it, a running one keeps its wording. - `TestPatrolCatalogForACrashedContainerSaysUpdateLeavesItStopped`: real monitor state through the real registry, Docker executor and Patrol broker. The catalog for a crashed container lists start and update, and update says it stays stopped. No model run. The choice rule itself is in the investigation prompt: rcourtman/pulse-enterprise#263, which does not depend on this one. Not changed: `docs/DOCKER.md` does not say what an update does to a stopped container. Draft: waiting for the D2 score on the fault set.