Stage 2

Validation: divers validate

divers validate checks a dataset before the backtest: whether every partition is there, whether the links between tables and the pool reserves add up, and whether the simulator's formula reproduces the recorded result of every trade.

Stage
Validation
Command or package
divers validate
Indexer
required via a dataset
State
with caveats Checks 1–6 run on datasets fetched from the live indexer (pump, raydium, meteora): every row explained or reported, check 6 per program and variant.

Where it matters most

Validation matters most in recurring pipelines: regular model retraining, scheduled backtests. The indexer is a realtime database and its own consistency checks run with a delay, so a freshly fetched day can still be incomplete. It works as a gate: divers validate reports what is missing or inconsistent, sets the verification flag only on a full pass, and exits with a non-zero code when the share of bad rows exceeds --threshold, so the pipeline stops and fetches again instead of training on partial data.

What it is

The validator takes a dataset folder and decides from the manifest's column groups which checks apply. Skipped checks are listed in the report with the reason.

  1. Completeness. Every partition of the manifest is there, the schemas match, there are no duplicates by key.
  2. Token creation parameters. There is a record for every traded token; the shared key is mint.
  3. Trades and liquidity. For every successful trade except the first of a token, the liquidity before and after, the user's debit, and the LP and protocol fees are known; the liquidity after the previous event equals the liquidity before the current one, accounting for liquidity events. Tables are joined by slot + tx idx + ix idx.
  4. Launch parameters. Fees and migration thresholds from the creation parameters match those observed in trades and migrations.
  5. Migrations. In "launchpad pools only" mode every AMM pool has a migration event.
  6. Simulator check. From the pool reserves before the trade, the protocol's formula recomputes the trade; the result is compared with the recorded one.

Check 6 makes the validator the simulator's oracle: a mismatch points to an error in the data, in the state reconstruction or in the formula itself. Its errors are marked separately.

What it gives traders and quants

  • Share of bad rows per check and per table. A serious error in a pool devalues its following rows: they count as "dependent", separately from primary errors.
  • JSONL error log with coordinates: check, ecosystem, pool, mint, slot, tx idx, ix idx, expected, got.
  • Threshold and exit code. A non-zero exit code when the error share is above --threshold (0 by default), so the validator fits into a script or CI.
  • Verification flag. A successful run with the full set of checks sets the flag in the manifest with the date, the validator version and the list of checks; any change to the dataset clears the flag. The status shows in divers datasets as text and as the verified field in JSON.

How to run

Validator commands
divers validate pump-jan                          # TUI: summary per check and the error list
divers validate pump-jan --no-tui --threshold 0.5 # percent; above the threshold: exit code 1
divers validate pump-jan --checks 1-5             # a partial run does not set the flag
divers validate ./path/to/dataset --json

For the full set of checks, download the dataset with the "validation required" group: divers fetch create … --validation-required. The log is written to <dataset>/.divers/validate/errors.jsonl by default (--log FILE, --no-log).

Limitations

  • Checked on a few live days. The validator has run on datasets fetched from the development indexer (pump, raydium, meteora, including an old raydium day without receive times); other days may hold cases not seen yet.
  • Not every program is computed. Meteora DBC and DAMM v1 are not supported, and check 6 gives nothing for them; Raydium LaunchLab: only the constant-product curve; Meteora DAMM v2: only compounding mode; Raydium CPMM: only the current fee rounding (after 2025-11-04); the pump.fun bonding curve and PumpSwap: with assumptions, their sources are closed.
  • Without the "validation required" group only the checks that have enough columns run, and the verification flag is not set.

Place in the chain

Input
A dataset from the fetcher.
Output
The verification flag in the manifest and a report, for the backtest. On a dataset without the flag the backtest starts with a warning.