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: update cosTasks schemaVersion assertions for the v2 bump (#2441)

Adam Eivy6c8dd141794c
diff --git a/server/services/sharing/cosTasksSync.test.js b/server/services/sharing/cosTasksSync.test.js
index c3c49b8b3d..c7e3d8c369 100644
--- a/server/services/sharing/cosTasksSync.test.js
+++ b/server/services/sharing/cosTasksSync.test.js
@@ -69,7 +69,7 @@ describe('buildCosTasksPayload', () => {
vi.mocked(getUserTasks).mockResolvedValue({ tasks: [task('task-a', 'pending')] });
vi.mocked(getCosTasks).mockResolvedValue({ tasks: [task('sys-b', 'in_progress', { metadata: { claimedBy: 'i1' } })] });
const p = await buildCosTasksPayload();
- expect(p.schemaVersion).toBe(1);
+ expect(p.schemaVersion).toBe(2); // v2: `challenged` status + challenge metadata (#2441)
expect(p.listHash).toMatch(/^[a-f0-9]{64}$/);
expect(p.tasks).toHaveLength(2);
const user = p.tasks.find((t) => t.id === 'task-a');
@@ -104,7 +104,7 @@ describe('buildCosTasksPayload', () => {
it('returns an empty payload when there are no tasks', async () => {
const p = await buildCosTasksPayload();
expect(p.tasks).toEqual([]);
- expect(p.schemaVersion).toBe(1);
+ expect(p.schemaVersion).toBe(2); // v2: `challenged` status + challenge metadata (#2441)
});
});