⚠ 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

KeyRotationReminder

sec.keyrotationreminder
Security planned Spec started frozen

Nag the user to rotate signing keys on a schedule; prevent key reuse across environments.

What it does

Nag the user to rotate signing keys on a schedule; prevent key reuse across environments.

Pipeline placement

runs after: Session key validation KeyRotationReminder runs before: Any signing call using a key past its rotation schedule

Applies to: All active signing keys per user across environments

Why it matters

If this failsConsequence
Signing key never rotatedA long-lived key that is compromised silently provides unlimited signing authority over time.
Same key used across prod and stagingA staging environment compromise exposes production signing capability.
No block on overdue rotationUsers ignore rotation reminders indefinitely, leaving stale keys in production.

Inputs

Polymarket inputs

InputSourceRequiredUse
ClobAuth API key registration timestampclob_authrequiredDetermine when the current signing key was registered to calculate age.

Internal inputs

InputSourceRequiredUse
Configured rotate_every_days and block_on_overdue_hAdmin UIrequiredSchedule and enforcement thresholds for key rotation.
KillSwitch active flagKillSwitchrequiredBlock all signing during global pause.

Authority

What this bot is permitted to do

Reject Pause

State

Readiness

Spec started

Status

planned

Class

Guardrail

Default mode

shadow_only

Developer owner

Polytraders core

Capital impact

Direct

Reason codes emitted

CodeSeverityMeaningAction
KILL_SWITCH_ACTIVEHARD_REJECTGlobal kill switch is active.Immediately return DENY.
KEY_ROTATION_OVERDUEHARD_REJECTSigning key age exceeds rotate_every_days plus grace period.Return DENY; prompt key rotation.
KEY_REUSE_ACROSS_ENVHARD_REJECTKey fingerprint detected in multiple environments.Return DENY; require unique key per environment.
KEY_ROTATION_DUE_SOONWARNKey age exceeds 90% of rotate_every_days.Warn user; allow signing to continue.
STALE_DATAINFOClobAuth API unavailable; key age could not be verified.Log; continue with cached data if available.

Used by

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

StrategyStateActivity
US Elect — book-builderdemo-wiredlast triggered 43m ago
NBA H2H — moneyline market-makedemo-wiredlast triggered 3m ago
US Elections — sentiment fadedemo-wiredlast triggered 10m ago

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

Why this matters

Security bots does NOT propose or execute trades; only guards signing and wallet operations. 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…