OrderAmendCancelManager
Owns every amend and cancel operation against the CLOB for orders Polytraders has placed.
What it does
Owns every amend and cancel operation against the CLOB for orders Polytraders has placed. Strategies do not cancel directly — they emit an OrderAdjustment intent which this bot validates, sequences, and submits via the EIP-712 v2 envelope. Maintains a strict monotonic intent sequence per order so cancels can never race amends.
Pipeline placement
Applies to: Continuous
Why it matters
| If this fails | Consequence |
|---|---|
| Race conditions on cancel/amend | Without a single sequencer, two strategies can race each other to amend the same order, producing inconsistent CLOB state. |
| Phantom cancels | A cancel that fails silently leaves an order resting that strategy code believes has been killed; mismatched state causes self-trades and over-positioning. |
| Amend bypasses risk | An 'amend size from 100 to 500' looks like a cancel-and-place but bypasses Risk if not routed through this bot. |
Inputs
Polymarket inputs
| Input | Source | Required | Use |
|---|---|---|---|
| CLOB v2 amend/cancel endpoints | CLOB | required | The actual targets for the action. |
| Order ack/reject events | WebSocket | required | Confirm or fail each operation. |
Internal inputs
| Input | Source | Required | Use |
|---|---|---|---|
| OrderAdjustment intent | Strategy or runbook | required | The request to modify or cancel an order. |
| OrderLifecycleManager state | exec.order_lifecycle_manager | required | Source of truth for order status before and after. |
| RiskVote pipeline | Risk pod | required | Amends with non-zero new_size must pass Risk like any other OrderIntent. |
Authority
What this bot is permitted to do
State
Readiness
Spec ready
Status
planned
Class
Execution Utility
Default mode
shadow
Developer owner
Execution pod
Capital impact
Direct
Reason codes emitted
| Code | Severity | Meaning | Action |
|---|---|---|---|
| EXEC_AMEND_OK | P2 | Exec Amend Ok | See decision output and developer log for context. |
| EXEC_CANCEL_OK | P2 | Exec Cancel Ok | See decision output and developer log for context. |
| EXEC_AMEND_INFLIGHT | P2 | Exec Amend Inflight | See decision output and developer log for context. |
| EXEC_AMEND_UNKNOWN | P2 | Exec Amend Unknown | See decision output and developer log for context. |
| EXEC_AMEND_TIMEOUT | P2 | Exec Amend Timeout | See decision output and developer log for context. |
| EXEC_CANCEL_TIMEOUT | P2 | Exec Cancel Timeout | See decision output and developer log for context. |
Related bots in Execution
Used by
Reverse index — strategies that currently reference exec.order_amend_cancel_manager. If you change this bot's authority or reason codes, these strategies must re-pass shadow.
| Strategy | State | Activity |
|---|---|---|
| US Elect — book-builder | demo-wired | last triggered 9m ago |
| NBA H2H — moneyline market-make | demo-wired | last triggered 16m ago |
| US Elections — sentiment fade | demo-wired | last triggered 23m ago |
Showing 3 of 3 · demo-wired ≠ production-live
Why this matters
Execution bots does NOT propose new positions; only routes and shapes approved intents. Understanding the authority boundary prevents misuse and makes promotion-gate reviews faster and more reliable. View raw spec JSON →