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: cover security-scan leader with matching start time but no output-dir proof (#11886)
Adam Eivyd6f9d01f2c64
diff --git a/server/cos-runner/securityScanRecovery.test.js b/server/cos-runner/securityScanRecovery.test.jsindex 73bcb182b1..a7f8dd7fea 100644--- a/server/cos-runner/securityScanRecovery.test.js+++ b/server/cos-runner/securityScanRecovery.test.js@@ -8,6 +8,12 @@ it.skipIf(process.platform === 'win32')('reaps proven detached descendants afterexpect(await cleanupSecurityScanGroup(owner, { processes, marked: async () => true, signal })).toBe(true);expect(signal).toHaveBeenCalledWith(1234, 'SIGKILL');});+it.skipIf(process.platform === 'win32')('never signals a leader whose start time matches but whose command lacks the output-directory proof', async () => {+ const signal = vi.fn();+ const processes = async () => signal.mock.calls.length ? [] : [{ pid: 1234, pgid: 1234, startedAt: owner.startedAt, state: 'S', command: 'unrelated-process' }];+ expect(await cleanupSecurityScanGroup(owner, { processes, marked: async () => true, signal })).toBe(false);+ expect(signal).not.toHaveBeenCalled();+});it.skipIf(process.platform === 'win32')('never signals a reused group leader or an unverified descendant', async () => {const signal = vi.fn();const processes = async () => [{ pid: 1234, pgid: 1234, startedAt: 90000, state: 'S', command: owner.outputDir }];