Commit 14dfc1

2026-03-17 01:46:48 Claude (MCP): [mcp] Update Pre_Launch: semantic search fully fixed and deployed
Tasks/Pre_Launch.md ..
@@ 14,8 14,8 @@
### ~~MCP wiki routing (bug)~~ ✅ FIXED (2026-03-15)
Fixed and deployed. otterwiki-mcp `1f22d71` adds Host header forwarding via ContextVar; robot.wtf `9d932b9` adds PLATFORM_DOMAIN env var. 12 tests passing. See [[Tasks/MCP_Wiki_Routing]].
- ### Multi-tenant semantic search (bug)
- BackendRegistry landed (commit `a8e9eb7`) but has a slug derivation bug: `os.path.basename(storage.path)` returns `"repo"` for every wiki because VPS paths are `/srv/data/wikis/{slug}/repo`. All wikis share one index. Also: no initial reindex for new wikis, global write lock contention, stale default backend fallback. See [[Tasks/Semantic_Search_Architecture]] and [[Tasks/Semantic_Search_Multi_Tenant]].
+ ### ~~Multi-tenant semantic search (bug)~~ ✅ FIXED (2026-03-17)
+ All 4 bugs fixed: slug derivation, auto-reindex empty backends, per-backend reindex lock, stale fallback removal. Also fixed: FAISS backend safety (query TOCTOU race, atomic save, mismatch detection on load), async reindex endpoint (POST returns 202, background thread, status polling). Dev wiki reindexed: 76 pages, 590 chunks. See [[Tasks/Semantic_Search_Architecture]] and [[Tasks/Semantic_Search_Multi_Tenant]].
### Disk usage cap
No per-wiki disk space limit. A user could fill the VPS. See [[Tasks/Disk_Usage_Cap]]. 50MB per wiki proposed.
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9