package stacks import "testing" // R-721 (v0.283.0): the nightly update leg never presses an app the household stopped — an update brings the // app up with its new images, which would undo the Stop. Measured from source 2026-09-30: legCandidate had no // desired-state check at all. // COMPANION RED-PROOF: remove the DesiredStateStopped check in legCandidate → the step is pressed. func TestR721_UpdateLegLeavesAStoppedAppAlone(t *testing.T) { m, dir, _, ups, _ := legManager(t) writeLadder(t, m, ladderLine(ladderA, ladderB), ladderLine(ladderB, ladderC)) legOpts(m, nil) if err := m.SetDesiredState("nextcloud", DesiredStateStopped); err != nil { t.Fatal(err) } s := mustLeg(t, m) if len(*ups) != 0 || pinOf(t, dir) != ladderA { t.Fatalf("the leg updated an app the household stopped (ups=%v)", *ups) } if st := legStepFor(s, "nextcloud"); st.Reason != LegSkipStoppedByHousehold { t.Fatalf("skip reason %+v, want %q", st, LegSkipStoppedByHousehold) } }