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
address review: skip server rescoring for memory drills, fix loading label, add unsupported types constant
Adam Eivy98cf1983838c
diff --git a/client/src/components/meatspace/post/constants.js b/client/src/components/meatspace/post/constants.jsindex 67a7eb79ea..f67b7a0419 100644--- a/client/src/components/meatspace/post/constants.js+++ b/client/src/components/meatspace/post/constants.js@@ -1,7 +1,10 @@export const LLM_DRILL_TYPES = ['word-association', 'story-recall', 'verbal-fluency', 'wit-comeback', 'pun-wordplay', 'what-if', 'alternative-uses', 'story-prompt', 'invention-pitch', 'reframe'];-// memory-fill-blank excluded: uses answers[] array instead of expected, needs dedicated runnerexport const MEMORY_DRILL_TYPES = ['memory-sequence', 'memory-element-flash'];+// Drill types valid elsewhere but not yet supported by the POST runner.+// These use answers[] arrays instead of expected and need dedicated runners.+export const POST_UNSUPPORTED_DRILL_TYPES = ['memory-fill-blank'];+// Domain definitions for 5-minute balanced sessionsexport const DOMAINS = {math: {diff --git a/client/src/components/meatspace/tabs/PostTab.jsx b/client/src/components/meatspace/tabs/PostTab.jsxindex 0eb9faf3f2..cd4bcead64 100644--- a/client/src/components/meatspace/tabs/PostTab.jsx+++ b/client/src/components/meatspace/tabs/PostTab.jsx@@ -109,7 +109,7 @@ export default function PostTab() {return (<div className="flex flex-col items-center justify-center h-64 gap-3"><Loader size={32} className="text-purple-400 animate-spin" />- <div className="text-gray-400">Generating {currentDrillConfig?.type ? currentDrillConfig.type.replace(/-/g, ' ') : 'drill'}...</div>+ <div className="text-gray-400">Processing {currentDrillConfig?.type ? currentDrillConfig.type.replace(/-/g, ' ') : 'drill'}...</div></div>);}diff --git a/server/services/meatspacePost.js b/server/services/meatspacePost.jsindex 9724a92f8c..7a5c054f80 100644--- a/server/services/meatspacePost.js+++ b/server/services/meatspacePost.js@@ -9,7 +9,7 @@ import { writeFile } from 'fs/promises';import { join } from 'path';import { randomUUID } from 'crypto';import { PATHS, ensureDir, readJSONFile } from '../lib/fileUtils.js';-import { LLM_DRILL_TYPES } from '../lib/postValidation.js';+import { LLM_DRILL_TYPES, MEMORY_DRILL_TYPES } from '../lib/postValidation.js';const MEATSPACE_DIR = PATHS.meatspace;const SESSIONS_FILE = join(MEATSPACE_DIR, 'post-sessions.json');@@ -107,6 +107,11 @@ export async function submitPostSession(sessionData) {return { ...rest, score: t.score || 0 };}+ // Memory drills: client-side scoring with string comparison is authoritative+ if (MEMORY_DRILL_TYPES.includes(rest.type)) {+ return { ...rest, score: t.score || 0 };+ }+// Math drills: strip correct from individual questions and rescoreconst sanitizedQuestions = (rest.questions || []).map(q => {const { correct: _qCorrect, ...qRest } = q;