Multi-Bank Model
ZoidMatter is multi-bank: a bank_id scopes all memory data — memory units, documents, directives, mental models, and bank config. A "default" bank exists for backwards compatibility with legacy unscoped routes.
What Is Bank-Scoped vs Global
| Scope | Contents |
|---|---|
Per-bank (bank_id) | Memory units, documents, directives, mental models, bank config. LOD levels are metadata fields within a bank. |
| Global (repo-scoped via tags) | AST / code cards. A codebase's structure isn't tenant data, and cross-LOD synthesis needs all LOD levels in one pass. |
Isolation Is a Boundary, Not an Access Control
A bank_id in the URL scopes data but does not stop an unauthenticated caller from using a different one. Real access control comes from API keys with roles: standard (own banks only), admin (cross-bank, cross-tenant), and service (explicit bank list required). SHA-256-hashed API keys resolve to an ApiIdentity (role + allowed_banks).
Cross-Bank Recall
Multi-bank recall supports tag filtering and RBAC via a banks: ["bank1", "bank2"] parameter on POST /v1/recall. Each ScoredItem carries its bank_id through RRF fusion so results reflect their originating bank.
Bank Templates
Behavior is configurable per use case via bank templates (bank.json), which define retain missions, directives, mental models, recall budget, chunk size, and disposition settings.