⚠ 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

CrossMarketGraph

intel.crossmarketgraph
Intelligence beta Limited live frozen

CrossMarketGraph builds and maintains a directed graph of semantically equivalent and logically linked Polymarket markets by embedding market titles a

What it does

CrossMarketGraph builds and maintains a directed graph of semantically equivalent and logically linked Polymarket markets by embedding market titles and rules text, applying cosine-similarity clustering, and supplementing with manual override pairs. Each node is a condition_id; each edge carries a relation_type (SAME_EVENT, COMPLEMENTARY, NEG_RISK_SIBLING, SUPERSEDES) and a confidence score. The graph is the foundation for cross-market correlation signals used by SumToOneArb and liquidity-aware strategies to detect near-duplicate markets and hedge opportunities. CrossMarketGraph is strictly read-only — it never submits or signs orders.

Pipeline placement

runs after: Gamma API market list loaded; MarketScanner candidates available CrossMarketGraph runs before: Strategy layer, SumToOneArb, LiquidityGuard

Applies to: All live Polymarket markets with active conditions

Why it matters

If this failsConsequence
Near-duplicate markets not detectedSumToOneArb cannot identify arbitrage opportunities where two markets resolve the same event; edge goes unexploited and probability discrepancies persist.
Stale graph used during rapid market creation spreeNew markets linked to a live event are not added to the graph in time; strategy enters both sides of a newly duplicated market, creating an unintended hedge.
Neg-risk siblings not identifiedStrategy holds positions on multiple outcomes of the same neg-risk event without knowing they are structurally linked, over-exposing the book to a single resolution.
Incorrect SUPERSEDES edge causes stale-market entryA superseded market is incorrectly treated as live; strategy generates an intent for a market that has already been replaced by an updated version.

Inputs

Polymarket inputs

InputSourceRequiredUse
Market titles, rules text, condition IDs, neg_risk flag, enable_neg_risk flagGamma APIrequiredPrimary input for embedding and metadata-based graph construction.
Market active/closed/resolved statusGamma APIrequiredFilter out closed or resolved markets from graph nodes; mark SUPERSEDES edges for replaced markets.
24-hour trading volume and book depth per marketdata_api / clob_publicoptionalAnnotate graph nodes with liquidity metadata for downstream strategy weighting.

Internal inputs

InputSourceRequiredUse
Manual pair override listconfig / operator overridesoptionalInject known-linked pairs with forced confidence=1.0 regardless of embedding similarity.
KillSwitch active flagKillSwitchrequiredContinue computing graph updates but suppress ObservationReport emissions when KillSwitch is active.

Authority

What this bot is permitted to do

Read-only

State

Readiness

Limited live

Status

beta

Class

Signal Service

Default mode

limited_live

Developer owner

Polytraders core — Intelligence pod

Capital impact

Indirect

Reason codes emitted

CodeSeverityMeaningAction
CROSSMARKETGRAPH_SAME_EVENT_EDGEINFOTwo markets linked as SAME_EVENT: titles or rules text highly similar (confidence >= cluster_threshold).Emit ObservationReport; SumToOneArb and strategies consume edge for arb detection.
CROSSMARKETGRAPH_NEG_RISK_SIBLINGINFOTwo neg-risk markets share a parent condition; linked as NEG_RISK_SIBLING.Emit ObservationReport; strategies aggregate combined neg-risk exposure across siblings.
CROSSMARKETGRAPH_DENSE_CLUSTERWARNA node has > 80% of max_edges_per_node edges; potential event-cluster explosion.Include in ObservationReport warnings; alert Intelligence pod lead for review.
CROSSMARKETGRAPH_SUPERSEDES_EDGEWARNA closed market is superseded by a new active market (similarity > 0.95).Emit ObservationReport with relation_type=SUPERSEDES; downstream strategies prefer the new market.
STALE_DATAWARNGamma API unavailable for > 2× rebuild_interval_s; graph is frozen at last snapshot.Halt ObservationReport emissions; log STALE_DATA; alert on-call.
KILL_SWITCH_ACTIVEHARD_REJECTKillSwitch active; ObservationReport emissions suppressed.Continue computing graph updates but suppress all emissions.
PARAMETER_CHANGE_REQUIRES_APPROVALHARD_REJECTA parameter change violates a locked bound (e.g. cluster_threshold < 0.65 or rebuild_interval_s < 30).Reject config change; do not apply.
CROSSMARKETGRAPH_EMBED_FAILUREWARNSentence-embedding model failed to encode one or more markets; those markets excluded from this rebuild.Log with condition_id; skip affected markets; retry on next cycle.

Used by

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

StrategyStateActivity
NBA H2H — moneyline market-makedemo-wiredlast triggered 37m ago

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

Why this matters

Intelligence bots does NOT propose, veto, sign, or execute any trade. 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…