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

CCAS · Module 3 of 5 · 12 min

Fail-closed decisions: UNKNOWN and ERROR never allow

AGI: NOT ESTABLISHED · RSI: EXPERIMENTAL

A fail-open system treats doubt as permission: a timeout, an unknown identity or a crashed policy check lets the action through. Attackers aim for exactly those paths.

CAIN's rule is the opposite. UNKNOWN and ERROR never become ALLOW. No policy match is a deny. An identity with no trust history gets REQUIRE_APPROVAL, not an automatic yes. Only a known identity, a matching allow policy, a low-risk screen and established trust produce ALLOW.

Test fail-closed behaviour deliberately: kill the policy service, send malformed arguments, use an unregistered tool. Each must produce a refusal and a record.

Key points

  • Doubt is a refusal, never a permission.
  • No policy match = deny.
  • New identities are held for a person.
  • Test the failure paths, not just the happy path.

In the CAIN-42 codebase

  • platform-gateway/cain_trust_kernel.py — FormalTrustKernelInvariantChecker: 'No Auth No Exec' and 'Unknown/Error Never Permits'
▶ Flip the inputs in the fail-closed lesson

Practice check

Practice 1 · choose one

A policy service times out. A fail-closed system…

Practice 2 · true or false

“An unregistered tool should be allowed if the agent is trusted.”