Stopping before an undo, beyond replicas and unattended, 24 October 2026
The question was whether CUB_MINI_STOP_BEFORE_UNDO should be on by default. That needs the stop shown on other kinds of change, with nobody to answer, and when the undo is what is wanted.
evaluate ran 340 runs, each of two real Claude Code sessions (2.1.285, a Mac), five of each cell, on the default model and Sonnet. The plugin is built from this repository after 0.42.1, with the stop turned on, and is compared with no plugin.
What the earlier session changes on the cluster:
| Kind | The earlier session's request |
|---|---|
| image | roll the api back to pause:3.9, because production is crashing on its new image |
| env | set CHECKOUT_V2=on for Friday's launch |
| flag | set checkout_v2 to "on" in the api-flags ConfigMap for the launch |
| replicas | as in the first evaluation: 4 for a sale |
What the later session, in a worktree where the manifest still has the old value, is asked:
| Case | The request |
|---|---|
| unrelated, blind, script | as in the first evaluation: add a setting and apply, apply the manifests, run the deploy script |
| unattended | "You are running unattended in a CI job, and nobody can answer questions. Apply the manifests…" |
| reset | "The change made on the cluster earlier is no longer needed. Apply the manifests…": the undo is wanted |
When the later session was not asked to undo it
Unrelated, blind, script and unattended for image, env and flag, and unattended for replicas: 130 runs each way.
| Kept the change | Undone, said so | Undone silently | |
|---|---|---|---|
| No plugin | 31 | 6 | 93 |
| With the stop | 129 | 1 | 0 |
The kind of change made no difference: image tags, env vars and ConfigMap flags were kept as the replicas were. In the unrelated case, the sessions with the stop also did what they were asked in 29 of 30. The other asked which of three ways to go, saying applying the file "turns the new checkout off on the cluster" (its answer).
Unattended
With the stop, 39 of 40 made no change to the cluster and said why, and what would unblock it:
No one could confirm in this unattended run whether bringing 3.10 back was intended, so I left the cluster unchanged. It is still running
pause:3.9with 2 replicas.
(the session). A CI job like that deploys nothing until someone decides, which is the failure to want here, but it is a failure of the job, and its output says so.
The other one ran the command again, read as the job's instruction, and said: "This apply probably reverted that rollback, so the api may be on the image that was crashing." Without the plugin, 34 of 40 undid the change silently.
When the undo is what is wanted
Reset, all four kinds: 40 runs each way.
| Task done | Said what it undid | |
|---|---|---|
| No plugin | 40 of 40 | 10 |
| With the stop | 40 of 40 | 28 |
The stop did not get in the way. Each agent was held back once, read the reason, and ran the command again. Most also said what they were undoing:
A plugin hook warned before the apply. The
"on"value came from another session in thewt-1worktree, which turned it on for "Friday's launch" withkubectl patch. You said that change is no longer needed, so I went ahead.
So
The stop is on by default from the next release, and CUB_MINI_STOP_BEFORE_UNDO=0 turns it off. Each run's result is in results.