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
strengthen byModule averaging test to not pass on a session-score coincidence
[._.]/ Adam Eivy3691a9bdb90d
diff --git a/server/services/meatspacePost.test.js b/server/services/meatspacePost.test.jsindex 479abb382c..2e634c6363 100644--- a/server/services/meatspacePost.test.js+++ b/server/services/meatspacePost.test.js@@ -1029,9 +1029,12 @@ describe('getPostStats — byModule averaging, days window cutoff, empty-windowit('averages and rounds byModule scores across multiple tasks in a session', async () => {const today = new Date().toISOString().split('T')[0];+ // The session-level `score` is deliberately a different number from the+ // task-mean so this can't pass by mistakenly reading the session score+ // instead of averaging byModule's own per-task scores.mockSessions([{- date: today, score: 68,+ date: today, score: 40,tasks: [{ module: 'mental-math', type: 'doubling-chain', score: 60 },{ module: 'mental-math', type: 'multiplication', score: 75 },