Clawith icon indicating copy to clipboard operation
Clawith copied to clipboard

Agent workspace indexing: hybrid roadmap (manifest.json → FTS5 → vector/RAG)

Open up-guillaume opened this issue 4 months ago • 1 comments

Deleted by author

up-guillaume avatar Aug 01 '26 20:08 up-guillaume

Phase 1's shape is worth keeping as a constraint on phases 2 and 3, not just a stepping stone. A manifest of pointers can't contradict the workspace; the moment FTS5 and the vector store hold content copies, every row is a cache with no invalidation story, and retrieval starts serving text the source no longer says. That drift is silent because the query still returns confident hits.

Two cheap guards if you go ahead. Store (path, mtime or hash) beside every indexed chunk and have retrieval verify it before serving, falling back to a live read on mismatch. And treat the index strictly as a finder — it returns locations, the agent reads the file at source, so stale embeddings degrade recall but never inject stale content.

The obsidian-agent-brain hybrid weights matter less than this invalidation contract.

I maintain a reference architecture that documents the point-don't-mirror rule: https://github.com/jimy-r/agent-workspace-architecture/blob/main/PATTERNS.md#5-memory-points-it-doesnt-mirror

jimy-r avatar Aug 07 '26 13:08 jimy-r