Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix([issue-12737]): read the reservation snapshot through the status cache

Adam Eivy47ece7d26bb7
diff --git a/server/lib/maintenanceAdmission.js b/server/lib/maintenanceAdmission.js
index 296c2bb8b0..e1f40b8187 100644
--- a/server/lib/maintenanceAdmission.js
+++ b/server/lib/maintenanceAdmission.js
@@ -299,8 +299,8 @@ export function createMaintenanceAdmission(dataDir = PATHS.data, { io = fs, asse
});
return status();
};
- // Snapshot for trusted lifecycle reconcilers; callers re-verify under releaseOperations.
- const operations = () => read().operations.map(op => ({ ...op }));
+ // Cached read-only snapshot for trusted reconcilers (runs on every zombie sweep); releaseOperations re-verifies under the lock.
+ const operations = () => readForStatus().operations.map(op => ({ ...op }));
// Removes only settled records still identical to what the caller inspected;
// anything that changed (or settled elsewhere) since then is left alone.
const releaseOperations = expected => transaction(state => {