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

address review (codex): strip retired evaluationIntervalMs on state load

Adam Eivy4eb1458487f6
diff --git a/server/services/cosState.js b/server/services/cosState.js
index 9bf5ac5ad2..e064f1785f 100644
--- a/server/services/cosState.js
+++ b/server/services/cosState.js
@@ -186,6 +186,14 @@ export async function loadState() {
persistedConfig.selfImprovementEnabled || persistedConfig.appImprovementEnabled;
}
+ // Drop the retired `evaluationIntervalMs` key on read. CoS evaluation became
+ // event-driven (the periodic evaluateTasks() timer was removed), so the field
+ // no longer exists in DEFAULT_CONFIG or the (strict) update schema. Upgraded
+ // installs still carry it in state.json; stripping it here keeps GET /config
+ // from re-emitting a key the strict PUT schema would now reject on a full
+ // round-trip, and purges it from disk on the next saveState.
+ delete persistedConfig.evaluationIntervalMs;
+
stateCache = {
...DEFAULT_STATE,
...state,