⚠ 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

TailLossSimulator

risk.taillosssimulator
Risk Guardrail planned Planned frozen

TailLossSimulator applies scripted adverse shock scenarios to the combined portfolio (open positions plus the proposed order) and rejects or downsizes

What it does

TailLossSimulator applies scripted adverse shock scenarios to the combined portfolio (open positions plus the proposed order) and rejects or downsizes the order if the simulated tail loss exceeds the configured maximum. It acts as a pre-trade stress test, replacing post-hoc margin calls with a forward-looking gate.

Pipeline placement

runs after: Strategy OrderIntent TailLossSimulator runs before: ExecutionPlan emit

Applies to: Every OrderIntent — stress-tests the combined portfolio (existing + proposed) against scripted shock scenarios before ap

Why it matters

If this failsConsequence
Tail loss unquantified before sizing upAdding a new position without a stress test can push the portfolio into a tail regime where a single adverse resolution event causes losses far beyond the user's tolerance.
Correlated shock undetectedA scripted scenario that resolves all markets in the same direction reveals hidden concentration risk that individual position limits would miss.

Inputs

Polymarket inputs

InputSourceRequiredUse
Current market prices for all open positionsclob_publicrequiredSeed the shock scenario with current mark-to-market prices.
Outcome probabilities for open marketsdata_apirequiredApply shock probability shifts to compute stressed portfolio value.

Internal inputs

InputSourceRequiredUse
Open position list and notional valuesinternalrequiredDefine the current portfolio state before adding the proposed order.
Shock scenario libraryinternalrequiredLoad scripted adverse scenarios (probability shifts per market category).
KillSwitch active flagKillSwitchrequiredIf active, reject immediately.

Authority

What this bot is permitted to do

Veto Reshape

State

Readiness

Planned

Status

planned

Class

Guardrail

Default mode

planned

Developer owner

Polytraders core — Risk pod

Capital impact

Direct

Reason codes emitted

CodeSeverityMeaningAction
KILL_SWITCH_ACTIVEHARD_REJECTGlobal kill switch active.Immediate HARD_REJECT.
TAIL_LOSS_EXCEEDEDRESHAPESimulated tail loss exceeds max_tail_loss_usd; order resized if possible.RESHAPE if safe_size > 0; else HARD_REJECT.
TAIL_LOSS_APPROACHINGWARNTail loss is between warning and hard threshold.Attach WARN annotation; APPROVE.
TAIL_LOSS_DATA_UNAVAILABLEHARD_REJECTPosition data or scenario library unavailable.HARD_REJECT (fail-closed).

Used by

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

StrategyStateActivity
Fed Rates — surprise driftfrozenlast triggered 35m ago
AI Frontier — release-day takerfrozenlast triggered 42m ago

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

Why this matters

Risk Guardrail bots does NOT propose intents or sign orders; only permits or blocks. 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…