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: remove retired agents map from CoS state seed (#12814)

[._.]/ Adam Eivy6b4bf029b5d9
diff --git a/data.reference/cos/state.json b/data.reference/cos/state.json
index 03c3ca142c..f66961ed91 100644
--- a/data.reference/cos/state.json
+++ b/data.reference/cos/state.json
@@ -7,6 +7,5 @@
"lastEvaluation": null,
"lastHealthCheck": null,
"healthIssues": []
- },
- "agents": {}
+ }
}
diff --git a/scripts/lib/seedDataDir.test.js b/scripts/lib/seedDataDir.test.js
index a8088d2475..b01a391f35 100644
--- a/scripts/lib/seedDataDir.test.js
+++ b/scripts/lib/seedDataDir.test.js
@@ -1,9 +1,12 @@
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'fs';
import { tmpdir } from 'os';
-import { join } from 'path';
+import { dirname, join } from 'path';
+import { fileURLToPath } from 'url';
import { seedDataDir } from './seedDataDir.js';
+const repoRoot = join(dirname(fileURLToPath(import.meta.url)), '..', '..');
+
describe('seedDataDir migration safety', () => {
let root;
let referenceDir;
@@ -44,3 +47,10 @@ describe('seedDataDir migration safety', () => {
expect(readFileSync(join(dataDir, 'cos/custom.json'), 'utf8')).toBe('user customization');
});
});
+
+describe('data.reference seeds', () => {
+ it('ships no retired agents key in data.reference/cos/state.json (#12814)', () => {
+ const stateSeed = JSON.parse(readFileSync(join(repoRoot, 'data.reference', 'cos', 'state.json'), 'utf8'));
+ expect(Object.hasOwn(stateSeed, 'agents')).toBe(false);
+ });
+});