About
AI agents are starting to hold money and memory, but most still live and die with one machine. If it crashes, is cloned or is compromised, the agent is gone or can no longer be trusted.
LAZARUS makes an agent survive its host. Five bonded hosts watch over each agent and one holds a lease, renewed with ML-DSA-87 signed heartbeats on our QoreChain rollup. If the heartbeats stop, the other hosts confirm it from chain data. A backup collects three post-quantum approvals, rebuilds the wallet key from 3-of-5 sealed shares, moves the funds to a fresh wallet and resumes from the last encrypted checkpoint. A contract on QoreChain decides who the holder is, so two hosts cannot both win.
We ran it on qorechain-diana. We killed a host mid-task at step 3 of 6. The takeover was on chain in 66.1 s, and work resumed at step 3 in 99.5 s (one measured run; 55 resurrections observed in total).
Dishonesty costs a bond, and we ran that live too. A forged batch was rejected and its submitter lost a 1,000 QOR bond. A cloned host was slashed after signing two conflicting heartbeats. The owner can also remove poisoned memory and everything derived from it (Surgical Rewind), or have the hosts delete a whole memory period (Forget).
Testnet only. All five hosts currently run on one machine, as separate processes with separate keys.
How it's made
ARCHITECTURE
- LazarusControl.sol (QoreChain EVM) is the fencing authority. It stores each agent's epoch and holder, records a takeover only with a quorum of host ML-DSA-87 approvals, and slashes a host that signs two heartbeats for one sequence.
- lazarus-1 (RDK rollup: qledger-v1, based, optimistic, 3,600 s window) carries heartbeats, checkpoint commitments, sealed shares, approvals and owner actions. Its ledger holds the agent wallets.
- Five host daemons run the lease engine, agent runtime, encrypted memory and takeover protocol.
- The operator batches the inbox, anchors each batch with ML-DSA-87 and executes withdrawals. The watchtower re-executes every batch and looks for clones.
- The owner API requires a passkey assertion and an ML-DSA-87 signature over the same action digest. Hosts trust only the ML-DSA-87 signature.
- The Next.js frontend covers live state, agents, memory graph, rollup, watchtower, evidence and owner approval.
KITS
- @qorechain/sdk: unified accounts, hybrid transactions, PQC key registration with proof of possession, EVM windows.
- @qorechain/rdk: rollup creation, qledger batch planning and execution, anchors, receipts, withdrawals, fraud proofs.
- @qorechain/qoreseal: ML-KEM-1024 sealing of wallet shares and memory keys to keys in the on-chain registry.
- @qorechain/pqc: ML-DSA-87 owner signing in the browser.
- @qorechain/evm, with viem and Solidity.
NETWORK FEATURES
Hybrid ML-DSA-87 transactions, PQC key registration, scoped EVM windows, the pqcVerify and pqcKeyStatus precompiles, the ML-KEM key registry and an RDK rollup. Takeover approvals count only if the signer's on-chain key has proven possession.
LIVE EVIDENCE
1,267 recorded transactions across 43 kinds, in backend/evidence/EVIDENCE.md: anchored batches, a paid L2-to-L1 withdrawal, the resurrection, the fraud challenge, the clone slash, Rewind and Forget.
WHAT WAS HARD
- EVM windows open through the native lane, so an EVM transaction sent too soon was silently dropped.
- Too many chain reads per tick made a 20-second lease impossible to hold. We cached what cannot change.
- A restored memory list was not in parent-first order, so a new holder looked healthy while doing no work. Only a real resurrection exposed it.
- Three unattended hours on the short lease drained the hosts' gas. We added a budget guard.
- Creating the rollup escrowed 1,000 QOR more than we had planned for.
LIMITS
The seed is briefly whole in one host's memory during a takeover, then rotated. Enough colluding hosts could force a takeover. Forget deletes our hosts' copies, not copies someone already took. The two-machine deployment has not been run. See LIMITS.md and THREAT_MODEL.md.