Variable: MemoryCapRuleSchema
ts
const MemoryCapRuleSchema: ZodObject<{
hardCap: ZodNumber;
paths: ZodDefault<ZodArray<ZodString>>;
roles: ZodDefault<ZodArray<ZodString>>;
softCap: ZodNumber;
types: ZodDefault<ZodArray<ZodEnum<{
lesson: "lesson";
note: "note";
rule: "rule";
}>>>;
}, $strip>;Defined in: schemas/memory-config.schema.ts:52
Scoped or unscoped capacity rule governing soft consolidation pressure and hard rejection walls.
Note
paths: [](empty array) matches exclusively unscoped records (context === undefined).paths: ['*']matches any path-scoped record as a fallback per distinct context scope.- Specific globs/paths in
paths(such as['packages/bar/**']) define a dedicated budget for that scope. roles: ['general']matches onlyrecord.role === 'general';roles: ['*']partitions into a separate per-role bucket for each role.typesdefaults to['lesson']when omitted so rules and notes are uncapped unless explicitly listed.