Repository navigation
feat(memory): isolate curated entries by project - #115438
Conversation
|
@clawsweeper review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
1794afc to
0bf4be5
Compare
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
ClawSweeper re-review was skipped at operator direction after the 10-minute cap expired with only the queue acknowledgement and no verdict (queue backlog). Pre-land gates used instead: exact-head CI is green for |
|
Merged via squash.
|
* feat(memory): scope recall to active projects * feat(memory): preserve project scope in promotion * docs(memory): explain project-scoped recall * fix(memory): chunk curated files per entry * refactor(memory): narrow project scope internals * fix(memory): exclude annotations from concept tags * fix(memory): tighten project isolation boundaries * fix(memory): preserve project path casing * fix(memory): prioritize project bootstrap candidates * docs: refresh memory architecture map * test(memory): cover project scope schema repair * fix(memory): complete project isolation paths * fix(memory): close project ranking checks * fix(memory): reinitialize search provider before ranking * fix(memory): tolerate missing bootstrap paths
What Problem This Solves
Fixes an issue where curated
MEMORY.mdandUSER.mdentries from different projects were indexed into one shared chunk. A trigger hit could inject neighboring entries from another project, while the fail-closed all-project-key check could also suppress valid global and active-project memories.Why This Change Was Made
Curated files now chunk per top-level entry, preserving entry annotations across oversized fragments and forcing a cache-class shadow reindex through a chunking-version bump. Project annotations flow through recall, ranking, trigger injection, bootstrap context, short-term claims, and promotion; active-project comparisons preserve remote path casing and fail closed for foreign or partially active multi-project entries. Annotation comments are excluded from derived concept tags.
The implementation is AI-assisted and was reviewed with the repository autoreview workflow. Maintainer decisions for additive project annotations and the nullable index column follow the same additive-contract policy recorded on #114819. Digest and lane-1 scoping remain fail-closed under the recorded injection-isolation rulings.
User Impact
Operators can keep project-specific durable memory without a trigger leaking neighboring curated entries. Active-project and global memories remain available, foreign-project memories are excluded, existing indexes rebuild automatically after upgrade, and promoted entries retain their project, trigger, and importance annotations.
Evidence
Coordinator live validation used a development Gateway, two fake remote repositories, and real OpenAI model turns. The old index was upgraded through a live shadow reindex, then lane-1, claim convergence, and promotion were exercised end to end.
Validation:
Follow-ups: