rspace-online/modules
Jeff Emmett 75fd5cf4be feat(mi): per-space knowledge index with ranked context injection
Replace the 265-line data dump (35 modules × 3 items) in MI system prompts
with a trigram-ranked knowledge index that surfaces only the top-18 most
relevant entries per query. Adds per-space conversation memory persisted
to disk for cross-session context.

New files:
- server/mi-trigrams.ts — trigram + Jaccard similarity utilities
- server/space-knowledge.ts — SpaceKnowledgeIndex with 5-min TTL cache
- server/space-memory.ts — SpaceMemory with debounced disk persistence

Changes:
- mi-routes.ts: ~280 lines removed, replaced with ranked index call
- sync-instance.ts: cache invalidation on doc changes
- rauctions/mod.ts: fix ModuleScoping type (defaultScope, userConfigurable)
- mcp-tools/ragents.ts: fix AccessResult property access (claims.username, claims.sub)

~80% token reduction per MI request (~6,300 → ~1,320 tokens).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 22:19:07 -04:00
..
crowdsurf fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
ragents feat(ragents): add agent-to-agent exchange module 2026-04-12 23:27:29 +00:00
rauctions feat(mi): per-space knowledge index with ranked context injection 2026-04-12 22:19:07 -04:00
rbnb fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rbooks fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rcal feat: object visibility membrane — per-object access filtering 2026-04-12 11:09:44 -04:00
rcart fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rchats feat: object visibility membrane — per-object access filtering 2026-04-12 11:09:44 -04:00
rchoices fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rdata feat(mcp): 101 MCP tools across all 35 rApps + security hardening + MI integration 2026-04-10 10:25:17 -04:00
rdesign feat(mcp): 101 MCP tools across all 35 rApps + security hardening + MI integration 2026-04-10 10:25:17 -04:00
rdocs feat: object visibility membrane — per-object access filtering 2026-04-12 11:09:44 -04:00
rexchange fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rfiles feat(mcp): 101 MCP tools across all 35 rApps + security hardening + MI integration 2026-04-10 10:25:17 -04:00
rflows fix(rflows): bump JS cache versions to bust Cloudflare CDN 2026-04-11 09:05:56 -04:00
rforum fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rgov feat(mcp): 101 MCP tools across all 35 rApps + security hardening + MI integration 2026-04-10 10:25:17 -04:00
rinbox feat(rmeets): require username on join, fix settings/background, add MI toolbar 2026-04-10 14:06:47 -04:00
rmaps fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rmeets fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rnetwork fix(rnetwork): bump JS cache versions for CRM delegation components 2026-04-11 13:04:11 -04:00
rnotes chore(rnotes): bump folk-notes-app.js cache version to v=10 2026-04-12 22:09:32 -04:00
rphotos feat(rphotos): per-space Immich isolation with RBAC permissions 2026-04-12 16:35:48 -04:00
rpubs fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rschedule fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rsheets fix: rename rsheet module to rsheets (fixes missing module crash) 2026-04-10 11:19:32 -04:00
rsocials fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rspace feat(mcp): 101 MCP tools across all 35 rApps + security hardening + MI integration 2026-04-10 10:25:17 -04:00
rsplat fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rswag fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rtasks feat: object visibility membrane — per-object access filtering 2026-04-12 11:09:44 -04:00
rtime feat: object visibility membrane — per-object access filtering 2026-04-12 11:09:44 -04:00
rtrips feat(rmeets): require username on join, fix settings/background, add MI toolbar 2026-04-10 14:06:47 -04:00
rtube fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
rvnb feat: object visibility membrane — per-object access filtering 2026-04-12 11:09:44 -04:00
rvote feat(rmeets): require username on join, fix settings/background, add MI toolbar 2026-04-10 14:06:47 -04:00
rwallet feat: object visibility membrane — per-object access filtering 2026-04-12 11:09:44 -04:00