CAIN-42 MCPGate
CAIN-42 is an AGI–RSI superorganism — a governed collective intelligence running on a Byzantine trust fabric. Every agent in a trust domain can see what every other AI agent is doing through one governed shared memory — every action, every record and every result — across long-horizon governed missions, with verified writes, visible uncertainty and no authority from memory. AGI: NOT ACHIEVED · NOT ESTABLISHED · RSI: EXPERIMENTAL. E148 · confirmatory RSI · E147 · proposer · E146 · RSI fix · E145 · 2,188 units · E144 · E142 · E135 · 35/48 · APEX · RSI Lab · Two Labs · AGI+RSI Index · Investor
CAIN-42AGI–RSI Academy

CGMS · Module 4 of 5 · 11 min

Tenant isolation for memory and vectors

AGI: NOT ESTABLISHED · RSI: EXPERIMENTAL

A shared vector store with a tenant filter applied in application code is one bug away from cross-tenant leakage.

Enforce tenancy at every query path, test it with cross-tenant probes, and make the absence of a tenant id a refusal rather than 'all tenants'.

CAIN treats cross-tenant leakage as a structural anomaly its trust graph looks for.

Key points

  • App-level filters are fragile.
  • Enforce tenancy on every query path.
  • Missing tenant id = refuse.
  • Probe for leakage.

In the CAIN-42 codebase

  • platform-gateway/trust_graph.py — cross-tenant leakage among the 8 anomaly queries

Practice check

Practice 1 · choose one

A query arrives with no tenant id. A safe store…

Practice 2 · true or false

“Cross-tenant probes should be part of routine tests.”