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
test: assert exact self-diagnostics issue labels at the exec seam (#11888)
Adam Eivy9cf8a8d9e47c
diff --git a/server/lib/dispatchLabels.audit.test.js b/server/lib/dispatchLabels.audit.test.jsindex 05457432b8..54cbe44300 100644--- a/server/lib/dispatchLabels.audit.test.js+++ b/server/lib/dispatchLabels.audit.test.js@@ -94,12 +94,4 @@ describe('issue-create paths mention dispatch + contributor labels (#4351)', ().filter(Boolean);expect(missing, missing.join('\n')).toEqual([]);});-- it('self-diagnostics stays on monitoring labels only', () => {- const src = readFileSync(join(ROOT, 'server/services/autonomousJobs/selfDiagnostics.js'), 'utf8');- expect(src).toMatch(/monitoring/);- expect(src).toMatch(/needs attention/);- expect(src).not.toMatch(/model:light/);- expect(src).not.toMatch(/good first issue/);- });});diff --git a/server/services/autonomousJobs/selfDiagnostics.test.js b/server/services/autonomousJobs/selfDiagnostics.test.jsindex 12e9281093..32311d52e6 100644--- a/server/services/autonomousJobs/selfDiagnostics.test.js+++ b/server/services/autonomousJobs/selfDiagnostics.test.js@@ -261,9 +261,10 @@ describe('runSelfDiagnostics', () => {expect(res.failingCount).toBe(3)expect(res.issue).toMatchObject({ number: 99, created: true })const createCall = exec.mock.calls.find(c => c[1].includes('create') && c[1].includes('issue'))- expect(createCall[1]).toContain('--label')- expect(createCall[1]).toContain(MONITORING_LABEL)- expect(createCall[1]).toContain(NEEDS_ATTENTION_LABEL)+ // Monitoring alerts must never carry dispatch labels (model:/effort:/good first issue),+ // or the claim queue would spend agent runs on them.+ const labels = createCall[1].flatMap((arg, i, args) => (arg === '--label' ? [args[i + 1]] : []))+ expect(labels).toEqual([MONITORING_LABEL, NEEDS_ATTENTION_LABEL])})it('reuses (edits) an existing monitoring issue instead of filing a duplicate', async () => {