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

fix([issue-3252]): cap the memory-items config record key at 200 chars

[._.]/ Adam Eivy9edfc27f173a
diff --git a/server/lib/postValidation.js b/server/lib/postValidation.js
index e275b18a2c..547010831f 100644
--- a/server/lib/postValidation.js
+++ b/server/lib/postValidation.js
@@ -254,7 +254,9 @@ export const postConfigUpdateSchema = z.object({
memory: z.object({
enabled: z.boolean().optional(),
drillTypes: z.partialRecord(z.enum(MEMORY_DRILL_TYPES), drillTypeConfigSchema).optional(),
- items: z.record(z.string(), z.object({ enabled: z.boolean().optional() })).optional()
+ // Keys are memory item ids — an open record, capped at the same 200 chars
+ // every other id field here uses so a hand-edited config can't grow unbounded.
+ items: z.record(z.string().max(200), z.object({ enabled: z.boolean().optional() })).optional()
}).optional(),
// Morse (issue #3252). Morse has no drill-type knobs here — its trainer owns
// its own Koch settings — so the block is just the participation toggle that