Safe removal (R-1044), found on Tester 1 G4: the drive gate leaves a safely removed drive alone (no false RETURNED/ABSENT, no mail); presence = backing device, not the agent's state
gates / gates (push) Successful in 46s

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
2026-10-15 10:25:08 +02:00
parent a09cab124a
commit 37ffa3beb5
5 changed files with 87 additions and 14 deletions
+4
View File
@@ -266,6 +266,10 @@ func planDriveGates(paths []settings.StoragePath, disks []agentapi.DiskInfo) []g
if sp.Decommissioned {
continue
}
// R-1044: a SAFELY REMOVED drive is reconcileEjectedDrives' alone (TestPlanDriveGates_SkipsSafelyRemovedDrive).
if sp.EjectedAt != "" {
continue
}
// NAS network storage is NOT a drive — the agent never lists it in /disks, so the drive-absent gate
// would falsely see it "absent" (present[sp.Path]==false) and STOP its apps. A NAS blip is
// recoverable (the agent's per-share liveness → a warning badge), never the drive stop-cascade.