STATE 01
Boot / Recall
Index wiki/*.md with BM25. Load past lessons into working context.
AUTONOMOUS ON-CHAIN INTELLIGENCE · COGNITIVE MEMORY · TREASURY ORCHESTRATOR
An agent that watches every block, remembers every mistake and cannot run off with the treasury.
INVARIANTS fuses a block-level threat radar, a git-backed plain-text memory and a non-custodial vault. Below: the radar and scanner, running for real against Robinhood Chain.
LIVE · CHAIN 4663
BLOCK —
GAS —
POOLS —
waiting for first block
INVARIANTS · MODEL A-1 · ROBINHOOD CHAIN
IT DOESN'T SLEEP.
IT DREAMS.
THEN IT FILES A DIFF.
* Within five invariants it is not allowed to vote away. See “Invariants”.
01 · PERCEPTION LAYER
Block stream, factory events, bytecode disassembly and an eth_call dry-run that actually buys and sells against the live pool.
02 · COGNITIVE MEMORY
Plain-text wiki, BM25 lexical recall, secret-redacted journal, and a nightly “Dream” that proposes unified diffs to its own rules.
03 · ACTION & TREASURY
Non-custodial vault, paper-to-live graduation gate, range liquidity, and a 50/30/20 profit waterfall that pays humans in USDG.
radar_scan_block(—) → txs — → base_fee — → new_pools — radar_audit_contract(token) eth_getCode ✓ selector_scan mint · blacklist · tax eth_call + override buy → approve → sell threat_score 0–100
~/.invariants/spaces/main/wiki/
15
rules on file.
Zero forgotten.
risk_rules.md · strategies.md · treasury.md
PROFIT WATERFALL
50/30/20
payroll · compound · reserve
executeSwap() · modifyLiquidityRange() · nothing else
HEURISTIC THREAT MATRIX
Static flags (+10 each): mint selector · blacklist · owner not renounced · upgradeable proxy.
LIVE · NOT A REPLAY
Blocks stream from —. Pools come from the — factory’s own allPairs index. Pick any pool to audit it.
CONTRACTS DEPLOYED BY THIS WALLET · DIRECT: CREATE(address, nonce) + eth_getCode · LAUNCHPAD: factory record
THE CONSTITUTION · 5 ARTICLES
radar_audit_contract(token_address)
Paste a Robinhood Chain token. Your browser reads its bytecode, owner and pool, then injects a simulator contract with an eth_call state override to really buy and sell up to 0.01 ETH against the live Uniswap V2 pool or launchpad bonding curve. Nothing is signed, nothing is spent.
OPERATIONAL LIFECYCLE · FINITE STATE MACHINE
STATE 01
Index wiki/*.md with BM25. Load past lessons into working context.
STATE 02
Stream blocks and factory events. Ingest new tokens, reserves, pairing metrics.
STATE 03
Bytecode inspection, dry-run buy/sell, heuristic score, sealed birth certificate.
STATE 04
“Does this creator match a prior failure?” Recall, then test against strategies.
STATE 05
$10,000 sandbox. Measure slippage, impact, drift. 5 trades, > 60% win-rate.
STATE 06
Directive to the vault. amountOutMinimum at 0.8% slippage. Re-center ranges.
STATE 07
Realize profit above principal. Sweep 50% to payroll. disburseDueSalaries().
STATE 08
Quiet hours: read trade_history.jsonl, find bad assumptions, draft a diff.
treasury_run_waterfall(current_equity)
Deterministic, not discretionary. Move the sliders; the split is the same math the vault enforces.