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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat(cos): enable GitHub Repo Maintenance autonomous job by default
Adam Eivyb6366b39f0cf
diff --git a/server/services/autonomousJobs.js b/server/services/autonomousJobs.jsindex 341eae0d0d..6ebf4aec48 100644--- a/server/services/autonomousJobs.js+++ b/server/services/autonomousJobs.js@@ -55,7 +55,7 @@ const DEFAULT_JOBS = [category: 'github-maintenance',interval: 'weekly',intervalMs: WEEK,- enabled: false,+ enabled: true,priority: 'MEDIUM',autonomyLevel: 'manager',promptTemplate: `[Autonomous Job] GitHub Repo Maintenancediff --git a/server/services/autonomousJobs.test.js b/server/services/autonomousJobs.test.jsindex f3f42e99f0..dc7e564811 100644--- a/server/services/autonomousJobs.test.js+++ b/server/services/autonomousJobs.test.js@@ -65,10 +65,10 @@ describe('autonomousJobs', () => {it('never-run enabled job is always due', async () => {const due = await getDueJobs()- expect(due).toHaveLength(1)- expect(due[0].id).toBe('job-test-1')- expect(due[0].reason).toBe('never-run')- expect(due[0].overdueBy).toBeGreaterThan(0)+ const testJob = due.find(j => j.id === 'job-test-1')+ expect(testJob).toBeDefined()+ expect(testJob.reason).toBe('never-run')+ expect(testJob.overdueBy).toBeGreaterThan(0)})it('recently-run job is NOT due', async () => {@@ -85,7 +85,7 @@ describe('autonomousJobs', () => {const due = await getDueJobs()- expect(due).toHaveLength(0)+ expect(due.find(j => j.id === 'job-test-1')).toBeUndefined()})it('jobs sort by most overdue first', async () => {@@ -115,10 +115,13 @@ describe('autonomousJobs', () => {const due = await getDueJobs()- expect(due).toHaveLength(2)- expect(due[0].id).toBe('job-2')- expect(due[1].id).toBe('job-1')- expect(due[0].overdueBy).toBeGreaterThan(due[1].overdueBy)+ // Verify relative ordering: more overdue jobs should come first+ const job2Idx = due.findIndex(j => j.id === 'job-2')+ const job1Idx = due.findIndex(j => j.id === 'job-1')+ expect(job2Idx).toBeGreaterThanOrEqual(0)+ expect(job1Idx).toBeGreaterThanOrEqual(0)+ expect(job2Idx).toBeLessThan(job1Idx)+ expect(due[job2Idx].overdueBy).toBeGreaterThan(due[job1Idx].overdueBy)})})