⚠ INTERNAL — Operator UX mock · Design preview of V2 development path · demo-wired ≠ production-live · back to dev guide
Polygon · pUSD 10
📓 Developer Guide 📋 Reason Codes 📈 Shadow Mode
JD John Doe · Admin

Backtester

gov.backtester
Governance & Ops beta Limited live frozen

Backtester replays historical CLOB snapshots and the full report archive through the live execution path at tick resolution.

What it does

Backtester replays historical CLOB snapshots and the full report archive through the live execution path at tick resolution. It runs in replay mode (mode=replay), consuming archived ObservationReport, DecisionReport, RiskVote, ExecutionReport, and SettlementReport envelopes and re-executing the strategy under test against them. It emits replay-tagged OperationsReport records (and replay-tagged copies of every simulated report kind) to polytraders.reports.operations, partitioned by bot_slug+epoch, retained for 1 year. Backtester is used by the governance team to validate parameter changes, A/B test strategies, and produce audit-quality evidence before any strategy is promoted to live. Backtester never signs orders or touches the live CLOB.

Pipeline placement

runs after: Historical report archive is populated; ReportEnvelope records for the target ti Backtester runs before: Nothing — Backtester is a governance simulation bot; it runs in replay mode agai

Applies to: All strategy bots configured for replay; any historical OrderIntent window specified via start_ts/end_ts

Why it matters

If this failsConsequence
Strategy promoted to live without backtestingUntested parameter changes or new strategy logic may produce runaway losses or adverse fills on live capital. Backtesting is a mandatory gate before promotion.
Backtester uses different execution path than liveResults are not comparable to live performance. Governance audit evidence is invalid and cannot be used to justify promotion decisions.
Replay-tagged reports not emittedBacktesting runs are not auditable. Governance cannot produce the required evidence trail for strategy promotion gates.
Parameter sweep runs with non-deterministic inputsResults are not reproducible. Successive backtests on the same window may produce different outputs, making comparison and audit impossible.

Inputs

Polymarket inputs

InputSourceRequiredUse
Historical CLOB snapshots (order book + trades, tick-level)internalrequiredPrimary replay data source. Backtester reconstructs the order book state at each tick from the archived snapshot stream.
Archived ObservationReport envelopesinternalrequiredReplay pre-trade intelligence signals as they existed at the original observation time.
Archived DecisionReport envelopesinternalrequiredReconstruct the original strategy decisions for comparison against replayed decisions.
Archived RiskVote envelopesinternalrequiredReconstruct risk guardrail votes that were in effect during the replay window.
Archived ExecutionReport envelopesinternaloptionalCompare simulated fill outcomes against actual historical fills for slippage and fill-quality analysis.
Archived SettlementReport envelopesinternaloptionalReplay post-trade P&L settlement to reconstruct the full governance evidence trail.

Internal inputs

InputSourceRequiredUse
Strategy configuration under testConfig storerequiredParameters (or parameter sweep grid) for the strategy being backtested.
KillSwitch active flagKillSwitchoptionalWhen KillSwitch is active, suppress new backtesting run launches. Runs already in progress may continue.

Authority

What this bot is permitted to do

Explain

State

Readiness

Limited live

Status

beta

Class

Governance Service

Default mode

limited_live

Developer owner

Polytraders core — Governance pod

Capital impact

Indirect

Reason codes emitted

CodeSeverityMeaningAction
BACKTESTER_REPLAY_COMPLETEINFOA replay run completed successfully; aggregate OperationsReport emitted.No action — routine completion.
BACKTESTER_TICK_PROCESSEDINFOA single tick was processed during replay; per-tick OperationsReport emitted.No action — operational heartbeat.
BACKTESTER_INVALID_WINDOWHARD_REJECTstart_ts >= end_ts; the replay window is invalid.Reject the run configuration; emit alert.
BACKTESTER_UNKNOWN_STRATEGYHARD_REJECTThe strategy slug specified in the config is not in the strategy registry.Reject the run; emit alert.
BACKTESTER_WINDOW_CLAMPEDWARNend_ts was in the future; clamped to now().Clamp end_ts; emit WARN; continue replay.
BACKTESTER_TICK_SKIPPEDWARNA tick was missing from the archive; the replay skipped that tick.Log WARN; skip tick; continue from next available tick.
BACKTESTER_ARCHIVE_UNAVAILABLEHARD_REJECTThe report archive is entirely unavailable; the replay cannot start or has stalled.Abort the run; emit alert.
BACKTESTER_LARGE_SWEEPWARNParameter sweep has more than 50 variants; resource throttle applied.Emit WARN; apply run throttle; continue sweep.
KILL_SWITCH_ACTIVEWARNKillSwitch is active; new backtesting run launches are suppressed.Suppress new run; emit WARN; in-progress runs continue.

Used by

Reverse index — strategies that currently reference gov.backtester. If you change this bot's authority or reason codes, these strategies must re-pass shadow.

StrategyStateActivity
NBA H2H — moneyline market-makedemo-wiredlast triggered 31m ago
US Elections — sentiment fadedemo-wiredlast triggered 38m ago
BTC weekly — close-aware quotesdemo-wiredlast triggered 45m ago

Showing 3 of 3 · demo-wired ≠ production-live

Why this matters

Governance & Ops bots does NOT propose, approve, or block trades; only observes and reports. Understanding the authority boundary prevents misuse and makes promotion-gate reviews faster and more reliable. View raw spec JSON →
Polytraders Operator UX Mock · INTERNAL · demo-wired ≠ production-live · the plan · reason codes · shadow-mode pipeline
⚙ Page Configuration
Current page settings
Loading configuration…