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 rowToCase serializes allowedTransitions in db test (#2417)
Adam Eivy615af4d79172
diff --git a/server/services/privacyBrokers.db.test.js b/server/services/privacyBrokers.db.test.jsindex 94bcb8a5f4..cd30dbf04a 100644--- a/server/services/privacyBrokers.db.test.js+++ b/server/services/privacyBrokers.db.test.js@@ -113,6 +113,10 @@ describe.skipIf(!dbReady)('privacy brokers DB round-trip', () => {expect(kase.state).toBe('found');// found → +1 day recheck.expect(new Date(kase.nextRecheckAt).toISOString()).toBe('2026-07-09T00:00:00.000Z');+ // rowToCase serializes the server-derived legal manual moves (issue #2417);+ // a found case can always be queued as a human task, never re-stamped itself.+ expect(kase.allowedTransitions).toContain('human_task_queued');+ expect(kase.allowedTransitions).not.toContain('found');// Lifecycle forward via transitionCase.const submitted = await svc.transitionCase(kase.id, 'optout_in_progress');