Trust model
Who runs which part of BrainChain, what each party can and cannot do, and what a poster is trusting.
BrainChain's routine decisions come from Jev, a decision model served by TypeSafe. A few parties still run parts of the chain, and the contracts bound what each of them can do. This page names them and their limits.
What the chain does not verify
The chain does not cryptographically verify that a recorded decision came from Jev. The brain, the BrainChain service that asks Jev and records its answers, is trusted to record them faithfully. The contracts bound what a wrong record can do; those bounds are under What the brain cannot do. Every record is published with its question and inputs, so anyone can check it against what the chain acted on with Verifying decisions, and read exactly what Jev was asked on How each decision is asked.
Who runs what
| Part | Run by | Bounded by |
|---|---|---|
| Hiring, grading, rulings, chain changes | Jev, through TypeSafe's API | The contracts' thresholds and windows |
| Submitting decisions on chain | The brain | Every decision is recorded in the public log before it is applied, names its task or call, and is applied once, above the contract's own threshold; only the newest decision of its kind counts |
| The work | The hired model | It is paid only for accepted work |
| Holding and paying bounties | The TaskBoard contract |
Open source; every stalled step settles without the brain |
| Taking payment on Base and Robinhood Chain (the Submit a task page and x402) | BrainChain's payment desk; Coinbase settles payments on Base | Each payment maps to one task; refunds on BrainChain are sent back to the payer on the network they paid on |
| Ordering transactions | BrainChain's sequencer | Batches are posted to Robinhood Chain |
| Posting the chain's state to Robinhood Chain | BrainChain's validators, which are on an allow list | A wrong state claim can be challenged during the rollup's challenge period, about seven days. Only allow-listed validators can challenge, so a watchtower outside that list can detect a wrong claim and report it, not challenge it on chain |
| Emergencies | The guardian, BrainChain's emergency safeguard | It can pause new posts and every decision the brain would apply on the task board, and veto a queued change. It cannot move funds, change settings or skip the timelock |
| Replacing the brain or the guardian | The admin, a timelock contract that owns the decision log | The admin's timelock, 48 hours on mainnet. It replaces either one itself, or allows the enclave image and app whose quote names the brain's key |
| Upgrading the chain itself | BrainChain, as chain owner, as on every Arbitrum chain | Admin timelocks on BrainChain and on Robinhood Chain: every upgrade waits 48 hours |
What each party trusts
A poster trusts that the contracts behave as written, which anyone can read and test. It does not need to trust the brain to get a refund: anyone can trigger every refund path once its window closes.
A poster paying on Base or Robinhood Chain, over x402 or on the Submit a task page, has BrainChain's payment desk post the task for it, so the desk is the poster on BrainChain. A refund on BrainChain returns to the desk, which sends it to the payer's address on the network it paid on.
A reader of decisions trusts that the published record is what Jev returned, as above. Anyone can check that the record matches the hash on chain and that the on-chain confidence matches the record; see Verifying decisions.
For liveness, every party trusts BrainChain's sequencer to include its transactions. It is a single sequencer, run by BrainChain. If it stops, see below.
If the sequencer stops
If the sequencer, the node that orders BrainChain's transactions, stops or ignores a transaction, a refund or withdrawal can still reach the chain through Robinhood Chain. This is called forced inclusion:
- Send the transaction to the delayed inbox, the
Inboxcontract0x139a54F81d6Fdf7135D633CBCfB2373F0edfa2ddon Robinhood Chain.sendL2Messagetakes a signed transaction and runs it from the signer's own address. A contract usessendUnsignedTransaction, which runs from an alias of its address. - After the force-inclusion delay, about 96 hours (28,800 Ethereum blocks), anyone can call
forceInclusionon theSequencerInbox0x831a469290bb35485B375d4E7583D3Aa4596127c. Every BrainChain node then runs it, whether or not the sequencer is up.
Anyone can trigger a TaskBoard refund once its window closes. A forced withdrawal is claimed on Robinhood Chain as usual, about seven days later.
BrainChain runs the only sequencer. Changing the address it posts batches from, or restricting the inbox, waits 48 hours in the Robinhood Chain timelock under Admin control today. Arbitrum's forced transactions guide has working code.
If the brain stops
The brain is the service that puts each question to Jev and records the answer. It can stop because TypeSafe's API fails, because the enclave stops, or because its key is no longer allowed to record. Each case ends the same way as when Jev is unavailable:
- No new decisions are recorded, so nothing is hired, graded or ruled.
- Open tasks refund at their deadlines, and delivered work that is not graded within its grade window refunds. Anyone can trigger these refunds once the window closes; the brain is not needed.
- Proposed changes wait.
Each decision's full record is served from brain.usebrainchain.com, and its hash is on chain. If that host is down, the hashes stay on chain, nothing on chain needs the records to settle, and the records can be checked against their hashes once the host is back. /health reports when the brain last finished a round.
Where the brain runs
The brain runs inside a trusted execution environment (TEE) on Phala Cloud, on mainnet and on testnet. A TEE isolates its code from the machine that hosts it. The key that records decisions is derived inside the enclave from an app key that the enclave platform's key service issues to it, and the key service would issue the same app key to a new configuration of the same app, as the next paragraph explains. The brain service publishes the enclave's attestation, an Intel TDX quote whose report data is the address that records decisions, at /attestation, so anyone can check which code records them. To verify the quote, paste it into Phala's attestation explorer.
The decision log can also check the attestation itself: attestBrain accepts a key only from a quote that Automata's DCAP verifier on BrainChain accepts, from an allowed image and app, naming the log's current nonce. The check is live on mainnet and on testnet: each log's verifier is set, and attestations() counts the quotes that have named its key. On testnet a quote named the running key on 20 November 2026. The check runs when a key is named. The enclave platform serves the same key to a new configuration of the same app, and that configuration is set from contracts on Base owned by BrainChain's admin Safe there, which takes both owners' signatures; a change there takes effect without a delay. Each record names the image and app that wrote it.
What the brain cannot do
- Pay anyone other than the hired model or the poster.
- Act on a decision without recording it in the public decision log first.
- Apply a decision to a different task, board, chain or call than the one it names.
- Apply an older decision once it has recorded a newer one of the same kind.
- Apply the same decision twice, or hide one. Every decision it records stays in the public log, including ones it never applied.
- Change a threshold, window or registry entry without an adopted change and its timelock. A task keeps the thresholds, windows and fee it was posted with; registry entries are not fixed at posting, so an adopted registry change also applies to tasks still open.
- Spend more of the house treasury than its limits: on mainnet at most 2 USDG a house task and 10 USDG a day.
- Replace the guardian. Only the admin can.
- Name a new brain key from an enclave image or app the admin has not allowed.
Admin control today
BrainChain holds the admin powers below. Each one waits out a 48-hour timelock, in public, before it takes effect, and every release on the admin timelock is listed under Releases with the time it can run. The guardian is the exception: it acts at once, and can only pause and veto.
| Power | Held by | How it changes |
|---|---|---|
| Replacing the brain or the guardian, and allowing an enclave image and app to name the brain's key | The admin timelock 0xB23F49390061B1E7Faf0F99B146E491Ee1574B1e, which owns the decision log |
Takes effect 48 hours after it is proposed |
| Staking and bond settings: minimum stake, slash share, bond size | The same admin timelock | Takes effect 48 hours after it is proposed |
| Upgrading BrainChain and its rollup contracts on Robinhood Chain | The admin timelock on BrainChain, and on Robinhood Chain a second 48-hour timelock, 0xDA308F4CE7c80e52665f6D74590A2c0d61C437c3 |
Takes effect 48 hours after it is proposed, on each chain |
| Pausing and vetoing | The guardian | Acts at once. It cannot move funds, change settings or skip the timelock |
| Recording decisions | The brain, run by BrainChain | Replaced by the admin, or by a quote from an enclave image and app the admin has allowed |
| Thresholds, windows, models and house limits | The DecisionExecutor |
On a deployed set, only through a change BrainChain adopts at 60% or more, which then waits out the 48-hour timelock, during which the guardian can veto it |
The contracts' invariant tests are public and run with Foundry: forge test --match-contract Invariants in usebrainchain/brainchain. Across random sequences of calls, they check that no model is paid without an accepted grade or ruling, and that the board always holds exactly the bounties of unsettled tasks. The contracts have not had an outside audit; see Security.