Skip to content

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

Merge remote-tracking branch 'origin/main' into next/issue-2008

Adam Eivy6c4736df01e9
diff --cc server/lib/postValidation.js
index 08c7201daa,2b80c5e234..54dfb4b214
--- a/server/lib/postValidation.js
+++ b/server/lib/postValidation.js
@@@ -69,17 -69,17 +69,20 @@@ const drillTypeConfigSchema = z.object(
tolerancePct: z.number().min(1).max(50).optional(),
// --- Cognitive drill knobs (n-back / digit-span / stroop) ---
// Bounds match the generator clamps in meatspacePostCognitive.js so the UI /
- // API can't accept a value the generator will silently narrow.
+ // API can't accept a value the generator will silently narrow. Exception:
+ // `length`'s effective floor is `n + 5` (dynamic, up to 8) inside the
+ // generator — Zod can't express a cross-field minimum here, so this schema
+ // keeps a conservative fixed floor of 6 and lets the generator clamp up.
+ // (timeLimitSec above is validated but NOT enforced for these drill types —
+ // they're self-paced/stimulus-driven; see PostCognitiveDrillRunner.jsx.)
+ // No stimulusMs/showMs here — no UI ever set them (issue #2008), so they were
+ // dead validated-but-unreachable knobs; the generators (meatspacePostCognitive.js)
+ // keep their own internal defaults regardless.
n: z.number().int().min(1).max(3).optional(),
length: z.number().int().min(6).max(60).optional(),
- stimulusMs: z.number().int().min(1000).max(5000).optional(),
direction: z.enum(['forward', 'backward']).optional(),
startLength: z.number().int().min(3).max(9).optional(),
- maxLength: z.number().int().min(3).max(12).optional(),
- showMs: z.number().int().min(400).max(4000).optional()
+ maxLength: z.number().int().min(3).max(12).optional()
});
// Task result within a session