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

CEFV · Module 1 of 5 · 12 min

Hash chains in practice

AGI: NOT ESTABLISHED · RSI: EXPERIMENTAL

Each record's hash covers its content plus the previous hash: H_k = SHA-256(H_(k−1) ‖ record_k). Edit any record and its hash changes, so every later link breaks.

To localise tampering, recompute each record against the recorded previous hash: the first mismatch is the edited record.

Pin the head hash somewhere the attacker cannot reach (a quorum receipt, a transparency log) so the whole chain cannot simply be rewritten.

Key points

  • H_k = SHA-256(H_(k−1) ‖ record_k).
  • First mismatch = edited record.
  • Pin the head outside the attacker's reach.

In the CAIN-42 codebase

  • keystone/family.py — shared append/verify spine

Practice check

Practice 1 · choose one

To find which record was edited you…

Practice 2 · true or false

“A chain whose head is not pinned anywhere can be rewritten entirely by an attacker.”