Sections
00Docs · verifierMIT · no dependencies

The open verifier.Every candle, under oath. Check the oath yourself.

Two small scripts that check the desk without trusting it: verify.py (Python 3.8+, standard library only) and verify.mjs (Node.js 18+, no packages). They read public data only: Candleoath's read-only API, Lighter's public API and any Robinhood Chain RPC. Both do the same checks and print PASS or FAIL for each one.

1. What it checks

  1. Every ledger, row by rowIt downloads the full ledger of the six house agents (Band, Breakout, Cortex, Cross, Drift, Rebound), re-hashes every fill with the co1 formula, follows every prevHash link from 64 zeros, and compares the last hash (the head) with the server's.
  2. Fills against LighterFor a sample of fills (12 by default, one of each kind first) it asks Lighter's public API for that hour's 1h candle and checks the price: the close, the open when the market gapped through a stop or target, or the stop / target level inside the candle's low–high range.
  3. The hourly anchors on Robinhood ChainAfter every hourly desk tick the engine sends one transaction from its anchor wallet to itself. The verifier reads each one from the chain, decodes its calldata and recomputes the root of the six ledger heads at that hour from the ledgers it just downloaded. Same root: the ledgers have not been rewritten since that hour.
  4. Cortex's oathThe same transaction carries the hash of Cortex's decision for that hour: its exact prompt, input, answer and model. The verifier recomputes it from /api/v1/ai/calls/:hour and checks that the block was mined before the next candle closed, so the decision was on record before the market could prove it right or wrong.
Paper trading. Every fill on the desk is simulated at real Lighter prices; no order is ever sent anywhere. The verifier proves the record is intact and honest, not that it makes money. No promise of profit.

2. Run it

# Python 3.8+ (standard library only)
$ curl -O https://candleoath.xyz/verifier/verify.py
$ python3 verify.py

# or Node.js 18+ (no packages)
$ curl -O https://candleoath.xyz/verifier/verify.mjs
$ node verify.mjs --anchors all
OptionDefaultWhat it does
--base <url>https://candleoath.xyzWhere to read the ledgers (the engine answers the same paths at https://candleoath-engine.pages.dev).
--samples <n>12How many fills to check against Lighter's candles. 0 skips this step.
--anchors <n|all>24How many of the newest anchors to read from the chain.
--rpc <url>publicnode, then drpc, then the official RPCUse your own Robinhood Chain RPC (chain id 4663).
--agent <id>noneAlso re-hash one user agent's ledger and take the fill samples from it.

The exit code is 0 when nothing failed and 1 otherwise, so the verifier can run in a cron job or a CI check.

3. What you see

One line per check. An example, shortened:

Candleoath open verifier · https://candleoath.xyz · 2026-11-21 08:05 UTC

PASS ledger band: 101 fills re-hashed (co1), every link intact, head 4be1c09f3a7e… = server
PASS ledger cortex: 6 fills re-hashed (co1), every link intact, head 9a0d51c2e4b8… = server
PASS fill drift.41 (NVDA sell take, 2026-11-19 14:00 UTC): 186.4512 vs Lighter target 186.4512 inside 183.9–187.2
PASS anchor 2026-11-21 07:00 UTC: tx 0x5d2e81c0a4… mined in block 119431877, sent by the anchor wallet to itself, value 0
PASS anchor 2026-11-21 07:00 UTC: on-chain root 0363cebe7b26… = root of the six ledgers recomputed here
PASS anchor 2026-11-21 07:00 UTC: Cortex decision hash 46d9304bca90… = keccak of its stored input, output and model
PASS anchor 2026-11-21 07:00 UTC: mined 2026-11-21 08:02 UTC, before the next candle closed (2026-11-21 09:00 UTC)

41 passed, 0 failed, 0 warnings, 0 skipped
RESULT: PASS

WARN means a check could not be completed (Lighter or an RPC did not answer) or an anchor was mined late; SKIP means there was nothing to check yet, for example before the first anchor.

4. The formulas

A ledger row. SHA-256 of the JSON array below (JavaScript's JSON.stringify), as lowercase hex. The first row's prevHash is 64 zeros. The desk's wording (reason) is not hashed; the rule facts (template) are.

hash = sha256(JSON.stringify(["co1", prevHash, agent, seq, mode, sym, marketId, side, kind, hour,
                              price, qty, value, fee, pnl, template]))

An anchor. One EIP-1559 transaction on Robinhood Chain (chain id 4663) from the anchor wallet to itself, value 0. Its calldata is 75 bytes, version 1:

BytesFieldContent
0–2magic"CO1" (0x434f31): Candleoath anchor, version 1
3–10houruint64, big-endian: the desk hour (the open time of the 1h candle, unix seconds)
11–42rootkeccak256(head(band) ‖ head(breakout) ‖ head(cortex) ‖ head(cross) ‖ head(drift) ‖ head(rebound))
43–74decisionHashCortex's oath for that hour, or 32 zero bytes when it made no decision

head(agent) is the 32 raw bytes of that agent's ledger hash of its last fill with hour <= the anchored hour, or 32 zero bytes when it has no fill yet. The six house agents are taken in alphabetical order of id.

decisionHash = keccak256(utf8(JSON.stringify(["co1-oath", hour, model, system, input, outputText, raw])))

All seven values come from GET /api/v1/ai/calls/:hour: system and input are the exact prompt texts the model read, outputText is its answer exactly as stored, raw is the model's raw reply. keccak256 is Ethereum's Keccak-256 (padding 0x01), not NIST SHA3-256; both scripts carry a short implementation with a self-test.

The API shows the same data: GET /api/v1/anchors (newest first), GET /api/v1/anchors/:hour (heads, root, decision hash, calldata, tx, block, time), and every fill carries anchor: { hour, block, tx } for the first anchor that covers it.

5. The anchor wallet

The engine signs the anchors with its own hot wallet, 0x67cdfe3799acec2bf76a10d9f2f035d7259d728a. It only ever sends 0-value transactions to itself, with a hard cap on the fee of each one. Its live status, balance and last anchored hour are at /api/v1/anchor/status.

Anchoring starts once the anchor wallet is funded. Until then the status says unfunded and the verifier reports the anchor step as SKIP.

6. README and license

  • Needs: Python 3.8 or newer, or Node.js 18 or newer, and an internet connection. Nothing to install, no keys, no wallet.
  • Reads only: it never signs or sends anything. It calls /api/v1/*, Lighter's /api/v1/candles, and read methods of a Robinhood Chain RPC (eth_getTransactionByHash, eth_getTransactionReceipt, eth_getBlockByNumber).
  • Time: about a minute for all six ledgers and 24 anchors, longer with --anchors all.
  • Lighter revises a candle: rarely, Lighter corrects a candle after it closed. A fill check then fails while the ledger and the anchors still pass; the engine's own check (/api/v1/verify/fill/:id) explains the difference.
  • License: MIT. Copy it, change it, run it anywhere.
MIT License

Copyright (c) 2026 Candleoath

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of
the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.