Skip to content
QORECHAIN
Register

Protocol Builders

LAZARUS

Kill the machine an AI agent runs on. It comes back on another host with its memory and funds.

Share on X

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.

Timeline

LAZARUSProtocol Builders

Pushed 4 commits to main

  • 6409978 chore: keep shell scripts and Dockerfile LF so they run in the container · sylesh7
  • 7bf0d4e feat(deploy): frontend on Vercel, one-container Railway backend · sylesh7
  • 2639708 fix: add DemoVideo to .gitignore to prevent accidental commits · sylesh7
  • be261e1 docs: update README, demo script and AI usage for submission · sylesh7
LAZARUSProtocol Builders

Earned a Ship Weeks badge.

LAZARUSProtocol Builders

Earned a Ship Weeks badge.

LAZARUSProtocol Builders

Earned a Ship Weeks badge.

LAZARUSProtocol Builders

Earned a Ship Weeks badge.

LAZARUSProtocol Builders

Pushed 3 commits to main

  • 6fd11f4 fix(demo): update demo agent references and clarify instructions · sylesh7
  • f0232a4 Merge origin/main into windows-port · sylesh7
  • 1f5d2fc feat(backend): run on Windows, plus the demo video script · sylesh7
LAZARUSProtocol Builders

Pushed 56 commits to main

  • d18f39f Merge branch 'main' of https://github.com/sylesh7/LAZARUS · austinjeremiah
  • 7fde9fa chore: untrack RUN.md once it holds real keys · austinjeremiah
  • 8854e71 Create LICENSE · sylesh7
  • aef2302 docs: RUN.md - one file a second machine can set up the demo from · austinjeremiah
  • 5022fbf fix(dev): "operator DOWN" told you nothing, and the floor is 50 not 5 · austinjeremiah

and 51 more commits

LAZARUSProtocol Builders

New project.

Comments and questions

  • No comments yet.