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
fix([issue-2100]): route memory-chunk re-verification recs to the memory tab (codex review)
Adam Eivy0020f80a3979
diff --git a/server/services/meatspacePost.js b/server/services/meatspacePost.jsindex 58d41cd7b9..caff6ad21b 100644--- a/server/services/meatspacePost.js+++ b/server/services/meatspacePost.js@@ -970,6 +970,10 @@ export function composePostRecommendations({}for (const review of dueReviews) {+ // A memory-chunk re-verification can't run through the launcher's review-rep+ // path (getPostReviewReps only regenerates multiplication/cognitive reps —+ // memory retention lives under /post/memory), so route it there instead of a+ // dead /post/launcher link (issue #2100 review).recs.push({id: `skill-review:${review.skillId}`,kind: 'skill-review',@@ -977,7 +981,7 @@ export function composePostRecommendations({detail: review.status === 'needs-refresh'? 'Needs a refresh — last review slipped': 'Maintenance rep due',- deepLink: '/post/launcher',+ deepLink: review.kind === 'memory' ? '/post/memory' : '/post/launcher',drillType: review.drillType || null,});}diff --git a/server/services/meatspacePostRecommendations.test.js b/server/services/meatspacePostRecommendations.test.jsindex 33e8228fa8..f89797122a 100644--- a/server/services/meatspacePostRecommendations.test.js+++ b/server/services/meatspacePostRecommendations.test.js@@ -206,14 +206,24 @@ describe('composePostRecommendations priority + composition', () => {it('places due skill re-verifications above weak skills', () => {const recs = composePostRecommendations({- dueReviews: [{ skillId: 'multiplication:L1', label: 'Multiplication 1×2', drillType: 'multiplication', status: 'due' }],+ dueReviews: [{ skillId: 'multiplication:L1', label: 'Multiplication 1×2', drillType: 'multiplication', kind: 'multiplication', status: 'due' }],weakestSkill: { key: 'cognitive:n-back', type: 'n-back', accuracy: 0.5 },hasHistory: true,});expect(recs[0].kind).toBe('skill-review');+ expect(recs[0].deepLink).toBe('/post/launcher');expect(recs[1].kind).toBe('weak-skill');});+ it('routes a memory-chunk re-verification to the memory tab, not the launcher', () => {+ const recs = composePostRecommendations({+ dueReviews: [{ skillId: 'memory:song:c1', label: 'Elements — Chorus', kind: 'memory', status: 'due' }],+ hasHistory: true,+ });+ expect(recs[0].kind).toBe('skill-review');+ expect(recs[0].deepLink).toBe('/post/memory');+ });+it('returns a sensible default for an empty (fresh) history', () => {const recs = composePostRecommendations({ hasHistory: false });expect(recs).toHaveLength(1);