Technical Report

Polyventure: A Fail-Closed Paired-Hedge Trading Shell for Binary Event Markets

A technical account of the paired-hedge model, the control architecture, the evidence posture, and the remaining distance to a fully proof-closed live system.

Abstract

Polyventure is an operator shell that trades a single, mathematically defined edge on Kalshi's binary event markets: the paired maker-entry hedge. It posts passive post-only orders on both sides of the same contract at prices whose sum, plus a conservative fee reserve, is strictly below the one-dollar settlement value, so that equal matched fills return a determinate, outcome-independent profit (Eqs. 1–2). This report documents the system as a control architecture built to preserve that guarantee at the venue boundary: deterministic discovery and ranking, constraint-shaped position sizing, a binary-scope fail-closed gate, a pre-submit guard stack, truthful broken-pair accounting, and a signed retained-evidence posture, together with the datapack, simulation, and replay surfaces that support offline calibration. The principal unresolved risk — one-sided fill exposure, where one leg fills and the hedge is broken — is analyzed explicitly, and the remaining distance to a fully proof-closed live system is enumerated as evidence-gated work items with a sequenced roadmap. The report omits real P&L figures and superseded implementation attempts except where a historical boundary explains a current invariant.

Tooling disclosure. This report and project were developed using a repository governance harness and AI-assisted coding/curation workflow engineered by Joe Waller and enabled through OpenAI and Anthropic tooling. These tools support development and documentation, including summarization and report drafting, and do not replace the author's judgment. Names such as CodeSentinel, ORACL, Calamum, and Polyventure appear as internal identifiers for governance, agent assistance, validation, and project-specific tooling.

1Executive summary

Polyventure is an operator shell that trades a single, mathematically defined edge on Kalshi's binary event markets: the paired maker-entry hedge. It posts passive buy orders on both sides of the same contract — YES and NO — at prices whose sum, plus a fee reserve, is strictly below the settlement value of one dollar. When both legs fill in equal quantity, exactly one side settles to a dollar and the other to zero, so the pair returns a determinate, outcome-independent profit. The entire system exists to find those opportunities, size them, place both legs, and — above all — to refuse the trade whenever the guarantee cannot be honored.

The system is built around a narrow invariant: only matched YES/NO quantity carries the guaranteed hedge. Discovery, ranking, sizing, scope-checking, pre-submit guards, reconciliation, and evidence capture all exist to preserve that invariant at the boundary between local decision-making and the live venue. Lane selection, credentials, thresholds, and endpoints must be explicit; unresolved values rest the system in an inert offline or no-submit state instead of allowing silent substitution.

The principal unresolved risk is one-sided fill exposure. When one leg fills and the other does not, the hedge is broken and the position carries directional risk outside the theorem. Polyventure accounts for that state explicitly, but prevention remains proof-gated: the flow floor, positive survivor path, session loss cap, and broader evidence enforcement are the main distance-to-ideal items summarized in Section 13 and sequenced in Section 14.

Report boundary

This report explains the current system model, active control surfaces, figures, and proof gaps. It omits real P&L figures and does not enumerate superseded implementation attempts except where a historical boundary is necessary to explain a current invariant.

1.1Maturity at a glance

CapabilityStateNote
Guaranteed-hedge edge modelOperationalThe theorem applies to equal matched YES/NO quantity.
Discovery, ranking, dynamic sizingOperationalDeterministic and decimal-exact within the active market surface.
Binary-scope fail-closed gateOperationalEvent-family suitability is treated as a pre-submit proof obligation.
Final-set coverability guardOperationalFresh terminal orderbook check before sizing and pair-plan construction.
Flow-floor calibration (entry gate)OpenObservation capture is built; separating threshold and positive survivor proof remain evidence-gated.
Settlement truth for broken pairsOperationalOne-sided exposure is surfaced as exposure, not flattened to zero.
Datapack extract / validate / canonical inventoryPartialEvidence bundles, checksums, restore policies, identity gates, and append-only ledger exist; full load-hydration semantics remain a bounded gap.
Offline replay and synthetic augmentationOperationalRetained flow-balance replay and non-authoritative synthetic fixtures support threshold stress testing without live orders.
Session cumulative-loss circuit breakerAbsentPer-pair loss bounded; per-session loss is not.
Deficient-leg recoveryPartialCanonical interim path caps the ahead leg and preserves the opposite repair order; amend-based repricing remains deferred.
Submit-handoff signature integrityProof openMember-derived identity path is present; live advance past queued remains open.
Signed-evidence enforcement breadthPartialSign/verify exist and fail closed; coverage not yet universal.
Figure 1. Current system architecture Venue data markets, orderbooks, trades, portfolio truth Discovery entry window, ranking, binary suitability Risk gates funds, maker price, coverability, identity Submit path pair plan, orders, fill reconciliation Operator deck review, stop, stage state, strict money visibility Retained evidence runtime events, checksums, signatures, monitor records
Polyventure is organized as a control system: venue observations enter discovery, candidates pass independent risk gates, live actions move through a submit/reconciliation path, and both the operator deck and retained evidence read from the same control surfaces.

2The guaranteed-hedge model

The strategy is derived, not tuned. It follows from the settlement mechanics of a binary contract and one inequality.

A Kalshi binary market pays a YES contract one dollar if YES resolves and zero otherwise; a NO contract is its mirror. Buy one YES and one NO on the same market, in equal quantity, and the payout is deterministic — exactly one side settles to a dollar per matched pair, regardless of which outcome occurs. The only variable is what you paid to acquire the pair.

Let p_Y and p_N be the average fill prices for the YES and NO legs, q the matched contract count on each side, and F the combined fees. Cost to acquire is C = q(p_Y + p_N) + F; settlement payout is always P = q. The guaranteed net result is therefore:

Guaranteed pair result Π = q · (1 − p_Y − p_N) − F

Dividing the fees into a per-contract reserve f_r = F/q gives the single condition the whole system is built to enforce — the guaranteed-profit inequality:

Entry condition p_Y + p_N + f_r < 1

This is why the strategy cannot be executed by crossing the spread. In a standard book the YES ask is implied by one minus the best NO bid, and vice versa, so an immediate taker pair costs 2 − b_Y − b_N, which almost always exceeds a dollar. The inequality can only be satisfied by posting passive maker orders at or below the resting bids and waiting to be filled. Polyventure is, at its core, a disciplined maker: it places post_only, good-till-canceled orders at target prices that satisfy the inequality after a conservative fee reserve, and it treats a fill as something earned, not taken.

The load-bearing subtlety

The guarantee holds only on matched contracts. If YES fills and NO does not, there is no dollar-neutral payout — only a naked directional position. The inequality is necessary but not sufficient: it makes a filled pair profitable, but it says nothing about whether both legs will fill. That single gap between "priced to win" and "actually hedged" is the origin of every structural loss in the system, and Section 8 is devoted to it.

2.1Locked-quantity accounting

Because only matched contracts carry the guarantee, profit is computed strictly on the locked quantity q_L = min(q_Y, q_N), never on the larger of the two fills. The unmatched remainder q_U = |q_Y − q_N| is tracked separately as exposure, not profit:

Realized guarantee (locked contracts only) Π_locked = q_L · (1 − p̄_Y − p̄_N) − F_L

This asymmetry — count the guarantee conservatively, count the exposure fully — is the accounting posture that keeps the system honest about what it actually holds. Broken-pair accounting is covered in Section 9; its unresolved prevention boundary is summarized in Section 13.

Figure 2. Payoff structure: matched hedge vs. one-sided exposure Settlement outcome Net result NO settles YES settles 0 Matched YES+NO pair: outcome-independent positive edge One-sided fill: directional exposure Guarantee applies only to matched quantity
The paired hedge removes outcome direction only after both legs fill in matched quantity. Unmatched contracts remain directional and are accounted for separately.

3Discovery & ranking

The discovery layer is a reducer. It starts with a broad live market surface and eliminates every candidate whose edge cannot be stated from current, authoritative data.

The first screen is time. Polyventure is only interested in markets close enough to produce near-term fills and settlements, but not so close that there is no operational room to observe, save, submit, cancel, reconcile, or recover. The market fetch therefore carries an explicit entry window rather than trusting whatever order the venue returns under a page limit. This sounds mundane, but it matters: if the system lets a stale or out-of-window market into ranking, the later math can be correct and the trade can still be wrong.

After the time screen, each candidate is normalized into a common contract shape: ticker, close time, outcome family, top-of-book prices, book depth where available, final-window trade flow where available, and the derived quantities used for edge and risk. The ranking formula is deliberately narrow. A candidate must first satisfy the paired-hedge inequality; then it is ordered by the value that actually belongs to the strategy: expected locked-pair edge under maker fills. Polyventure does not rank on a story about the underlying event. It ranks on whether the market is offering a mechanically hedgeable spread.

Ranking primitive edge_net = 1 − bid_Y − bid_N − fee_reserve

That primitive is intentionally incomplete by itself. A high edge can be a gift, but it can also be an empty book, a crossed representation bug, a non-binary event family, or a lopsided market where one side can fill and the other side cannot. The ranked list is therefore not an order list. It is a candidate list passed into scope checks, risk checks, and a final fresh-coverability pass. The architecture separates finding an apparent edge from earning permission to trade it.

3.1Why not use richer prediction features yet?

The active money path intentionally uses a narrower market-data surface than the venue exposes. Candlesticks, batch orderbook endpoints, public trade streams, exchange status, and product-specific reference data can improve risk estimation, but they require endpoint-family validation, freshness contracts, and threshold policy before they can block or permit orders. This is a current gap, not an implementation detail; it is carried into the market-data breadth item in Section 13.

Scientific posture

A variable that sounds financially plausible does not become a guard until it is tied to authoritative venue data and a measurable outcome boundary. The current report therefore distinguishes active guards from candidate research surfaces.


4Data science surface

Polyventure's data science problem is not predicting the event winner. It is estimating whether a mathematically profitable paired entry is executable as a matched hedge under live market microstructure.

The in-repository data science report frames the project as an applied decision-science system: deterministic hedge mathematics, structured feature extraction, rule-based ranking, density-aware sizing, final coverability gates, and retained evidence for later threshold calibration. The most important empirical result is negative. Coarse fields such as top-of-book size, 24-hour volume, and open interest did not safely separate clean two-sided fills from one-sided exposure. That result pushes the system toward decision-boundary features: final-window per-side flow, live divergence, current orderbook shape, intended size, and seconds to close.

Figure 3. Data science pipeline Venue evidence markets, books, trades, fills Feature rows edge, divergence, flow, depth, timing Gate decisions block, pass, size, submit/no-order Outcome labels locked, partial, exposure, no-fill Retained modeling dataset candidate decisions + pair outcomes Offline replay harness threshold sensitivity before live adoption
The scientific loop separates observation, decision, outcome, and replay. Live guards are allowed to change only after retained evidence supports the threshold.

4.1Feature and label contracts

The retained modeling specification defines two row grains: candidate-decision rows and pair-outcome rows. Candidate rows preserve the state at each decision boundary: scan candidate, saved-set member, final coverability evaluated, final survivor, or final blocked no-order. Pair rows summarize the realized execution path: intended prices, filled quantities, locked quantity, unmatched quantity, terminal state, and available outcome labels.

Scientific objectExamplesUse
Profitability featuresYES bid, NO bid, gross edge, fee reserve, net edgeDetermine whether a matched pair can be profitable.
Timing featuresclose time, seconds to close, entry-window eligibilitySeparate operational feasibility from pure price math.
Microstructure featuresbest bids, depth within band, divergenceDescribe the current tradable shape of the book.
Flow featuresYES flow, NO flow, required floor, flow imbalance ratioEstimate whether both maker legs have recent counterparty participation.
Outcome labelsboth filled or locked, partial both, one-sided exposure, final block, no fillTrain, replay, or calibrate guards against explicit outcomes.
Figure 4. Flow balance and retained replay minimum side flow / intended contract count flow imbalance ratio candidate replay region adequate weak-side flow too thin imbalanced floor imbalance cap
The replay harness evaluates guard candidates against retained evidence. A high raw flow count is not enough if most flow is on only one side.

The flow-balance replay work already extracts retained datasets without changing live behavior. A verified inventory found meaningful outcome evidence but a small flow-bearing terminal-gate sample; that is the right conclusion, not a weakness to hide. The current scientific posture is therefore: continue read-only collection, replay candidate thresholds offline, and promote a guard only when it reduces one-sided exposure without relying on synthetic-only evidence. This data limitation is reflected directly in the flow-floor and simulation-harness gaps in Section 13.

Current limitation

The retained dataset can already support offline replay and sensitivity checks, but the flow-bearing live sample is still too small for strong threshold claims. Polyventure should not present adaptive flow optimization as production-ready until the evidence window grows and the replay harness is validated against later outcomes.


5Datapacks, simulation & replay

Polyventure has a data-portability and simulation surface that is more mature than a simple export button. Datapacks freeze bounded runtime state into checksummed bundles, while the replay harness turns retained observations into non-live counterfactual experiments.

The datapack subsystem exists for three related purposes. First, it packages lane-scoped runtime and analytical state with a manifest, restore policy, checksums, and identity metadata. Second, it lets the application validate or rebind a bundle before admitting it to a canonical inventory. Third, it gives the operator a way to preserve or transfer a local evidence state without treating transient browser state as scientific truth. The current command surface includes export, validate, rebind, synthetic-refinement generation, canonical add, and canonical archive-remove operations.

Figure 5. Datapack evidence lifecycle Lane state runtime, analytical, candidate history Extract bundle manifest, restore policy, payloads Validate / rebind identity, lane, checksum gates Canonical add inventory plus mutation ledger Synthetic refinement proof-only fixtures, never threshold authority Archive remove archive-first retirement with ledger mapping
Datapacks are governed evidence artifacts: payloads are useful only when the manifest, restore policy, identity, and checksums agree.

5.1Datapack maturity and gaps

The current datapack contract is strongest around extract, validation, canonical inventory, and retention. A canonical add must pass control-pair attestation, payload checksum validation, lane/key identity checks, containment checks, post-copy verification, and append a mutation-ledger record. A canonical remove archives rather than deletes and records the source-to-archive mapping. That is a meaningful evidence-governance surface.

The less mature boundary is load hydration. The active operator contract says load should hydrate selected system state from datapack payloads, and if target lane data exists, it should warn, offer extract-first preservation, then perform clear-before-load on confirmation. Datapack load is therefore not fully proof-closed: it is a current, bounded gap carried into Section 13.

Datapack familyClassificationScientific role
Runtime stateexport then optional purgePreserves lane-scoped pair plans, orders, fills, pair states, heartbeats, and runtime events as bounded evidence.
Analytical staterestore with revalidationPreserves analysis snapshots but requires revalidation before operational use.
Candidate review historyhistory onlyMaintains candidate-selection provenance without automatically authorizing a future submit.
Synthetic refinement fixturessynthetic proofExercises renderer, score, and threshold-boundary behavior without becoming empirical authority.
Evidence references / session controlreference or excludedKeeps non-portable or session-sensitive material outside payload authority.

5.2Simulation and synthetic data generation

Polyventure supports two separate non-live evidence modes that should not be conflated. The older synthetic-refinement datapack generates deterministic proof fixtures such as sparse frontiers, crowded threshold elbows, and noisy threshold edge cases. Those fixtures are useful for renderer validation, score-shape checks, candidate-math display, and threshold-boundary explanation. They are not observations of counterparty behavior.

The newer flow-balance replay harness is closer to data science. It opens the runtime SQLite database read-only, extracts candidate decisions and pair outcomes, optionally enriches labels from authoritative transaction CSVs, writes a checksummed retained package, and runs deterministic guard sweeps. It can append synthetic fixtures, bootstrap rows, or perturbation rows, but the tool explicitly marks all such rows as non-authoritative and excludes them from threshold authority counts.

Figure 6. Simulation authority boundary Empirical retained rows runtime DB, transaction CSVs, pair outcomes, flow evidence Synthetic rows fixtures, bootstrap, bounded perturbation Replay grid blocked / retained, clean / exposure counts May support threshold evidence only when empirical, linked, and outcome-bearing May stress the harness never closes empirical gates by itself
Simulation is valuable precisely because its authority boundary is explicit: synthetic rows can stress the system, but they cannot prove live threshold safety.
Current accomplishment

The monitoring, datapack, and replay surfaces form a practical scientific loop: observe a live or retained decision boundary, package it with checksums and provenance, replay candidate guards offline, and keep synthetic rows visibly outside empirical authority.

Boundary condition

Recorded-data replay is counterfactual screening, not a fill simulator. It can estimate which historical decisions a proposed guard would have blocked or retained; it cannot reconstruct queue priority, exact maker-fill timing, or unavailable historical orderbook depth.


6Dynamic position sizing

Sizing is a risk control, not just a profit multiplier. The correct size is the largest contract count that remains inside every explicit bound.

For a clean pair, the natural temptation is to size by the attractive edge: more contracts convert a small guaranteed spread into a larger result. Polyventure instead sizes from constraints. The candidate must clear available-funds truth, per-pair exposure caps, market liquidity, fee reserve, minimum-profit requirements, order precision, and the final set of candidates being submitted as a batch. If any of those inputs are missing or stale, the system does not invent a substitute.

Constraint-shaped size q_submit = min(q_funds, q_pair_cap, q_depth, q_profit_floor, q_operator_cap)

Sizing belongs after final-set resolution. The system evaluates upstream survivors with fresh venue reads, resolves the actual final submit set, and only then constructs the persisted pair plan. That ordering keeps the size, the identity of the selected candidates, and the submitted order group in the same decision frame.

6.1Fee reserve and decimal exactness

All money-path arithmetic is decimal-exact and expressed in the venue's domain units before conversion to the order payload. The distinction between YES prices and domain NO prices is preserved; complement prices may be useful for display, but the order rows retain the prices actually submitted. This matters because a one-cent representation error can turn a modeled maker edge into an invalid order, a rejected batch, or a false account of what happened after acceptance.

6.2Status boundary

The sizing surface is operational for attended live use, with final-set authority and retained validation around the no-order boundary. The positive survivor path remains an empirical gate: the system needs a live candidate that clears every guard and advances into order placement under the current integrity contract. That gap is listed as positive survivor proof in Section 13 and sequenced first in Section 14.

Open proof

The mature claim is "operational under attended controls with positive survivor proof open." It is not yet a fully empirical unattended claim.


7Binary-scope fail-closed gate

The paired hedge only applies to a true binary pair. A market family that looks binary in one row can still be structurally non-binary at the event level.

The strategy assumes exactly two mutually exclusive settlement states: YES and NO. Threshold, range, ladder, multi-lane, and other event families can expose rows that resemble binary contracts while the event-level family contains more than two outcome paths or different mutual-exclusion semantics. A pair built on the wrong family is not a hedge; it is an accidental directional strategy wearing the hedge's clothes.

Polyventure therefore treats binary suitability as a fresh proof obligation. Before submit, the system checks the event family rather than relying only on the individual market row. Non-binary family observations may be cached for faster rejection, but that ledger is evidence, not the authority. The authority is the current venue readback and the explicit rule: if the family cannot be proved binary, the candidate is not actionable.

market row -> event-family readback -> exactly binary? yes -> continue to candidate risk checks no -> record non-actionable evidence and do not submit unknown -> fail closed

This gate is one of the clearest examples of the project's design discipline. The system does not try to infer missing structure from a ticker name, a UI label, or the presence of YES/NO fields. It asks the venue for the family shape and refuses to trade when the shape does not support the theorem.


8The pre-submit guard stack

A candidate earns permission to become an order only by passing a sequence of independently motivated gates. The gates are redundant by design because the failure modes are different.

The guard stack can be read as a contract between the math and the live venue. Each layer answers a specific question:

GateQuestion answeredFailure posture
Mode and credential gateIs the system explicitly in a live-authorized lane with required keys loaded?Offline / inert.
Fresh funds gateIs strict available-funds truth fresh enough to back submit decisions?No submit; banner display may carry separate user-facing estimates.
Market lifecycle gateIs the market still inside the actionable entry window?Candidate expires or is cancelled.
Binary-scope gateDoes the event family support the paired-hedge theorem?Reject and retain non-actionable evidence.
Maker-price gateDo both proposed prices preserve the guaranteed-profit inequality after fees?No order construction.
Terminal coverability gateDo fresh orderbook and flow observations support the final set and size?Block before pair-plan persistence.
Submit-handoff integrity gateDoes the saved set being submitted match the set the operator/automation selected?Halt before order placement.

The funds split is easy to misread in the UI. Strict money truth is a submit gate and must be fresh. The banner is an operator-facing estimate and may legitimately prioritize stability over immediate blanking. The system does not bind those two surfaces to the same staleness rule: a blank banner is annoying; stale strict funds on a live order is a money-path defect.

8.1Terminal coverability

The terminal coverability guard is the current money-path boundary. It runs after upstream discovery and before final sizing and pair-plan construction. It performs fresh venue reads for upstream survivors, applies the static coverability logic, and persists evidence for every evaluated candidate. If all candidates fail, the correct behavior is not a degraded submit; it is no pair plan and no order.

The live no-order boundary has been observed: fresh sessions emitted terminal coverability evidence, resolved an empty final submit set, and created no pair plans or orders. That evidence supports the negative path. The positive path still needs a live market that clears the gate, after which order placement and downstream reconciliation can be observed under the current implementation.

8.2Flow as the remaining lever

Coverability is probabilistic because the strategy posts maker orders. It cannot force both legs to fill without crossing the spread, and crossing both legs destroys the edge. The best available lever is therefore not "pay more"; it is "select markets where both sides are actually trading in the final window." Polyventure captures per-side flow and depth at the terminal gate, including for blocked candidates, so the threshold can be tuned from evidence instead of taste.

Figure 7A. Flow floor per-side final-window flow submit eligibility fail closed eligible floor
Final-window flow becomes an entry guard only after the floor is calibrated from retained observations.
Figure 7B. Divergence cap bid-side divergence structural risk cap block
Divergence is a structural cap, not the primary empirical separator for one-sided exposure.
Known limitation

Divergence remains useful as a structural guard, but it is not treated as the primary separator for one-sided exposure. Flow-floor calibration remains a distance-to-ideal item in Section 13.


9One-sided exposure: the core residual

The central risk boundary is simple: the model is outcome-neutral when both legs fill, and directional when only one does.

The hedge equation is a theorem about matched contracts, not a promise about execution. If one side fills while the other remains resting, cancels, or reaches settlement unfilled, the position is no longer neutral. Polyventure therefore treats one-sided exposure as a first-class state rather than a temporary display irregularity.

The relevant control rules are conceptual as much as technical:

Broken-pair classification if q_Y = q_N -> LOCKED hedge if q_Y != q_N -> SETTLED_EXPOSURE or ERROR, never silent zero

The hard part is prevention. Truthful exposure accounting is necessary, but it does not by itself reduce broken-pair frequency. Aggregate liquidity fields and simple bid divergence are insufficient as standalone predictors. The active hypothesis is narrower: per-side final-window flow, measured from authoritative trades, is the most direct available evidence that both sides are actively tradable at the moment maker orders are posted. Its calibration is explicitly carried as an open gap in Section 13.

9.1Why a pure guarantee is impossible at entry

If the system wants a guaranteed hedge immediately, it must take liquidity on both sides. On a binary market, that turns the spread against the strategy. The same spread that creates maker edge becomes the cost of instant cover. That is why Polyventure cannot eliminate one-sided fills by simply "being safer" at submit time. Safety requires selecting better maker opportunities, sizing them smaller, changing timing policy, cancelling aggressively, or accepting that some opportunities should not be traded.

Open scientific question

The remaining question is not whether one-sided exposure exists; that is settled. The question is which observable pre-submit variables reduce its rate enough to make unattended operation acceptable. Flow-floor calibration is the next experiment because it is directly tied to two-sided participation rather than to stale or aggregate liquidity proxies.


10Pair state machine

The state machine exists to prevent ambiguous money states. A pair is discovered, saved, submitted, locked, repaired, settled, cancelled, expired, or errored; it is never allowed to be "sort of" live.

The ideal lifecycle is short:

DISCOVERED -> SAVED / QUEUED -> SUBMITTING -> LIVE_ORDERS -> LOCKED -> SETTLED

The real lifecycle needs more branches because live markets do not cooperate. Orders can be rejected, one leg can partially fill, a market can close, a saved set can expire, a websocket can reconnect, or the operator can stop automation mid-cycle. The state machine's job is to make each branch explicit and terminal where appropriate.

LIVE_ORDERS -> LOCKED both legs filled to matched quantity -> REPAIR_LIVE one side deficient, recovery still admissible -> SETTLED_EXPOSURE one-sided settlement resolved -> ERROR recovery impossible or truth unavailable -> CANCELED / EXPIRED no live exposure remains

The lifecycle is shared by persistence, automation, and the operator-facing deck. A saved set that expires, retires, or terminalizes must leave the active surfaces consistently; otherwise the human interface and the backend scheduler can reason from different state. Remaining display-coherence follow-up is tracked in the UI section.

10.1Stop and teardown

Stop automation is modeled as a scheduler-owned transition. The backend scheduler owns retry, cadence, eligibility, and priority; stop requests must cancel, terminalize, or reconcile the relevant candidates and return the system to a known state. The design goal is that a browser refresh, reconnect, or delayed UI surface cannot create an independent source of lifecycle authority.

Figure 8. Scheduler-owned automation transitions Automation scheduler Sorts eligible timers and socket events by priority. A subprocess returns control only after its transition closes. Wait timer Eligible after a zero-result scan cooldown expires. Scan subprocess Runs until candidates are found or no more remain. found? Submit timer Returns control after submit, block, cancel, or expiry. Auto-scan timer Eligible when the submit socket releases and cadence permits another scan. yes: found > 0 no: 0 found Ownership marker: a timer or subprocess keeps scheduler ownership until its transition reaches a closed state.
Updated automation figure derived from the working diagram: timers are eligibility signals, while the backend scheduler remains the transition authority.

11Automation & ownership

The ideal Polyventure is not a button-click script. It is a supervised control loop whose backend owns state and whose UI reports that state without becoming the source of truth.

The automation loop is organized around a backend scheduler, explicit modes, fail-closed submit gates, retained runtime events, monitored sessions, and an operator deck for review and intervention. The scheduler decides when to scan, when to retry, when submit priority supersedes scan cadence, and when a stop or expiry event should unwind the deck. Browser timers and card surfaces are presentation and eligibility signals; they are not independent money-path authorities. The live monitoring script deserves separate treatment because it is the system's retained empirical witness; Appendix C describes what it captures and why DOM capture remains experimental.

The operator shell remains essential. Polyventure is live-authorized only in a small, attended posture; it is not represented as an unattended money machine. The shell exposes the candidate set, strict money state, automation state, stage columns, terminal rows, and diagnostics. The technical requirement is that these surfaces agree with backend state; a correct strategy with a misleading control deck is still unsafe.

11.1Operator shell surfaces

The browser shell is not just decoration over a backend process. It is the operator's route into lane posture, evidence, data management, and safety controls. Those surfaces matter scientifically because many current gaps are disagreements between what the backend knows, what the operator sees, and what a retained artifact can later prove.

SurfaceCurrent roleBoundary
Workflow controlsFind candidates, refresh shell, cancel non-terminal pairs, and inspect next-step posture.Can request backend actions; cannot override submit gates.
DATA controlsDetect, select, load, and extract datapacks.Extract/validate/canonical controls are stronger than load hydration, which remains a gap.
Key and credential postureShows key-file reference, loaded credential state, and readiness.Display is not sufficient for submit; strict gate truth remains backend-owned.
Runtime settingsDisplays threshold and sizing parameters, with bounded session overlays.Parameter display drift remains a tracked display-coherence risk.
Websocket and context postureSeparates sandbox/live routes, session identity, and reconnection state.Reconnect evidence must reconcile against runtime events and DB state.
Evidence browserSurfaces retained runs, local reports, and aggregate evidence.Convenience surface only; retained artifacts remain the audit authority.

11.2What is automated today

11.3What remains attended

Design principle

Automation is allowed to reduce operator workload, not operator awareness. The system should move faster than a human can click, but it should not create a state the human cannot audit.


12Evidence, signing & fail-closed posture

Polyventure's safety model depends on evidence because many failures are temporal. A snapshot after the fact is often too late to prove what the system knew at submit time.

The system keeps retained evidence at several levels: test runs, runtime events, monitor records, signed or checksummed records, design plans, implementation records, and state-contract updates. In this report, that material functions as audit substrate rather than narrative sequence. The main question is whether a claim can be traced to an observation made before the relevant money-path transition.

The signing posture is partial but real. A signing key is provisioned, sign and verify paths exist, and unsigned records fail closed rather than forging trust. The remaining work is coverage and enforcement breadth: every mandatory evidence site needs to participate in the same trust contract, and the policy snapshot used for verification needs a complete definition. Until that breadth is closed, the correct status is partial, not absent and not complete.

Datapacks extend that posture from individual records to portable state bundles. A useful bundle is not merely a folder of JSON; it is an artifact with a manifest, restore policy, payload checksums, lane/key identity metadata, and canonical inventory history. The current implementation proves meaningful extract and attestation discipline, but the load-hydration path still needs the same level of proof before it should be treated as an operational restore authority.

12.1Identity integrity

The saved set, its member list, its persisted signature, and the submit gate's readback must refer to the same ordered candidate set. If those surfaces disagree, no order should be placed. The member-derived signature path satisfies the local identity contract.

Fail-closed cost

A fail-closed system sometimes blocks trades that might have been fine. That is acceptable. The unacceptable alternative is placing live orders when identity, funds, scope, price, or evidence freshness is unresolved.


13Distance to the ideal state

The idealized Polyventure is clear: a live event-market hedge operator that only trades when the theorem, the venue state, and the control surfaces all agree. The current system is close in architecture and not yet closed in proof.

GapScientific meaningCurrent posture
Flow-floor calibrationThe system can observe per-side final-window flow, but the threshold that separates acceptable from unsafe opportunities is not yet empirically established.Evidence-gated; collect passed and blocked candidates, then set the floor.
Positive survivor proofThe terminal gate has proved it can block bad final sets; it still needs live evidence of a good set advancing through placement under the current code.Open empirical gate.
Session cumulative-loss capPer-pair exposure can be bounded while the session as a whole still accumulates multiple small losses.Absent; should precede unattended operation.
Signed-evidence breadthTrust machinery exists, but not every mandatory evidence record is covered by the same enforcement contract.Partial coverage.
Datapack load hydrationDatapack extract, validation, canonical inventory, and archive-ledger controls exist; loading a datapack as runtime state needs proof of clear-before-load, overwrite warning, hydration, and post-load verification.Bounded implementation gap.
Synthetic-data authority boundarySynthetic datapacks and replay augmentation are useful for renderer, schema, and guard-stress testing, but they cannot prove live microstructure thresholds.Operational as non-authoritative evidence only.
Market-data breadthThe venue offers more potentially useful data than the current money path consumes.Audit ready; implementation requires schema/freshness contracts and thresholds.
DOM capture viabilityHydrated browser observation would help distinguish rendered UI state from backend payload truth, but the current capture path can cause severe projection lag.Experimental; monitor backend and DB evidence remain authoritative.
Replay-to-live ratio enforcementThe offline replay harness can evaluate candidate flow-balance thresholds, but the live ratio guard and optimizer application path must be separately authorized and validated before they affect submit decisions.Replay operational; live enforcement not yet proof-closed.

The most important distinction is between truthfulness and profitability. Polyventure's current truth controls record exposure, refuse non-binary scope, block stale final sets, and halt on identity mismatch. Profitability at unattended scale depends on the next layer: reducing one-sided fills enough that the positive locked-pair edge dominates under realistic flow conditions and explicit loss caps. That claim should not be made until the evidence supports it.


14Roadmap

The shortest credible path is not to add more cleverness. It is to close the remaining proof gates in the order that protects money first.

14.1Phase 1 — restore live boundary proof

Run a monitored live session under the member-derived saved-set identity path and prove that a valid saved set can advance past queued to the order-placement boundary. If it halts, classify the halt by the gate that fired and do not bypass it. This phase establishes the live boundary under the current integrity contract.

14.2Phase 2 — calibrate flow floor

Use terminal coverability events that retain per-side flow, participation-floor inputs, and depth summaries. Capture both passed and blocked candidates, then set the flow floor where it separates clean both-sided fills from one-sided exposure. The threshold should be operator-approved and evidence-backed; it should not be hand-picked because it "feels conservative."

14.3Phase 3 — add a session loss cap

Before wider unattended operation, introduce a cumulative session loss circuit breaker. The paired model bounds each intended trade, but repeated one-sided exposures can still compound. A session cap is the portfolio-level complement to per-pair controls.

14.4Phase 4 — broaden data only under contracts

Admit richer venue data only after endpoint family, freshness, schema, and threshold contracts are written and validated. Candlesticks, public trade streams, batch orderbooks, and exchange-status signals may all help, but they must enter as measured controls, not as post-hoc explanations.

14.5Phase 5 — close datapack load and replay governance

Promote datapack load from a partially specified capability to a proof-closed restore path: detect existing target-lane data, warn before destructive overwrite, offer extract-first preservation, clear before load, hydrate from payloads, and verify the resulting rows, families, lane identity, and checksums. In parallel, keep replay outputs separated from runtime configuration until the live flow-ratio guard is explicitly authorized and validated.

14.6Phase 6 — move from static to adaptive thresholds

The simulation and replay harness exists; the next maturity step is using enough recorded authoritative data to tune thresholds inside an operator-defined cage. The adaptive system should be able to choose "do not trade" as a successful outcome. The goal is not more activity; it is a lower rate of broken pairs per unit of captured edge.

Bottom line

Polyventure's ideal form is scientifically coherent: a fail-closed paired-hedge operator that treats the hedge equation as a theorem and every live venue interaction as an evidence problem. It should still be described as attended and proof-gated until flow calibration, session loss caps, and signed-evidence breadth are closed.


15Appendices

The appendices provide terminology, evidence classes, and internal provenance without interrupting the main technical account.

15.1Appendix A — Key terms

TermMeaning in this report
Matched quantityThe minimum of the filled YES and NO counts. Only this quantity carries the outcome-independent hedge.
Unmatched exposureThe absolute difference between filled YES and NO counts. This is directional risk until recovered, frozen, or settled.
Final-window flowPer-side traded quantity near the market close. It is the primary candidate input for flow-floor calibration.
Terminal coverabilityThe last fresh venue-state check before final sizing and pair-plan construction.
Strict money truthThe funds state allowed to gate submit decisions. It is separate from any display-oriented banner estimate.
Submit handoffThe identity transition from saved candidate set to order-placement candidate set.
DatapackA bounded, checksummed state bundle with manifest, restore policy, payload families, lane/key identity, and canonical inventory controls.
Replay harnessAn offline analytical tool that evaluates proposed guard thresholds against retained empirical rows without mutating live state.
Synthetic fixtureA deterministic non-authoritative row or datapack family used to stress schemas, visuals, or threshold boundaries; it cannot close empirical safety gates.

15.2Appendix B — Evidence classes

Evidence classPurposeCurrent role
Unit / service testsProve deterministic math, state transitions, and guard behavior under controlled inputs.Required for local contract confidence.
Sandbox / simulationExercise non-live integrations or replay recorded data without placing live orders.Required for adaptive threshold work where live proof would be unsafe or unavailable.
Monitored live sessionObserve actual venue timing, submit behavior, state projection, and UI/backend agreement.Required for positive survivor proof and flow-floor calibration.
Runtime eventsRetain time-ordered gate and transition evidence near the money boundary.Primary source for coverability, submit handoff, and reconciliation evidence.
Datapack artifactsPreserve lane-scoped state with manifest, restore policy, checksums, and identity controls.Useful for evidence portability; load hydration proof remains bounded work.
Offline replay packagesEvaluate threshold candidates against retained rows without changing live behavior.Operational for flow-balance analysis; synthetic rows remain excluded from authority counts.
Signed / checksummed recordsBind evidence identity and detect mutation or missing trust context.Partially deployed; breadth remains open.

15.3Appendix C — Monitoring script and DOM capture status

The monitoring script is a substantive part of the system, not a convenience wrapper. It is the empirical witness used to observe live sessions without granting the browser UI authority over money-path truth. Its core value is that it can assemble backend bootstrap state, runtime events, database summaries, scheduler fields, websocket posture, candidate-surface counts, findings, packet hashes, and cross-run time-series metrics into retained artifacts that can be audited after the session.

Figure 9. Monitor evidence topology Backend payloads bootstrap, timers, scheduler leases Runtime database events, candidate rows, pair states, counts Monitor reducer cross-surface checks, findings, time series Retained packet JSON, markdown, hashes, summaries DOM capture experimental; not a primary proof source Backend and database evidence remain authoritative. DOM evidence is rendered-observation evidence and currently experimental.
The monitor records backend and database truth as first-class evidence. DOM capture is useful only when it can observe without perturbing the UI.
Monitoring laneStatusScientific meaning
Backend payload and scheduler fieldsOperationalPrimary source for scan, retry, submit lease, timer, and inactivity-guard evidence.
Runtime database cross-checksOperationalCounts and transitions are checked against retained DB state rather than UI impressions.
Time-series ledgerOperationalTracks findings and metric changes across monitor packets without making causal claims.
DOM captureNot viable yetStill buggy, can cause debilitating UI projection lag, and requires further development before it can be trusted as a routine proof surface.
DOM capture gap

DOM capture should remain experimental. It is intended to distinguish backend payload agreement from rendered browser agreement, but the current mechanism is not viable for routine proof because it can perturb the very UI projection it tries to observe. Until it is isolated, throttled, and proven not to create material lag, backend payloads and database evidence remain the authoritative monitor surfaces.

15.4Appendix D — Compliance posture

The compliance posture is summarized from retained Polyventure compliance artifacts, not from a new legal review. It should be read as an engineering compliance account: what assumptions the system is built around, which agreement constraints the implementation is designed to respect, and which re-review triggers remain open. It is not legal advice and should not be treated as a current statement of Kalshi's live terms beyond the dated artifacts named below.

Dated clearance

The retained June 14, 2026 live-lane review records a go decision for Polyventure live-lane submission under an own-account, single-operator posture. The May 8, 2026 review remains the broader mode-plan anchor for offline, sandbox, and live operation.

Compliance artifactScopeReport interpretation
Mode-plan compliance review, 2026-05-08Reviewed the offline, sandbox, and live plan against pasted local agreement captures.Polyventure is framed as an operator-owned trading workflow, not a data-harvesting, benchmarking, redistribution, or third-party signal product.
Live-lane compliance review, 2026-06-14Re-reviewed live-lane activation against an updated member agreement and regulatory status note.Live lane was cleared for the operator's own trading posture; no new blocker was identified.
Developer agreement local capture, 2026-05-07API-use constraints, rate-limit posture, account security, data-use limits, and prohibited uses.Constrains Polyventure retention and analytics to the operator's own trading purpose.
Member agreement local capture, 2026-05-07Member obligations, event-contract risk, security responsibility, jurisdictional restrictions, and CFTC/DCM context.Supports the single-account, single-operator, risk-aware live posture.
Shop terms local capture, 2026-05-07Merchandise/shop terms preserved as source material.Not treated as governing the trading/API posture.

Implementation posture

The governing posture across both compliance reviews is narrow and affirmative: Polyventure exists to facilitate the operator's own Kalshi trading. The application therefore keeps Kalshi-derived data internal, bounded, and purpose-tied to trading facilitation, auditability, readiness review, and safety analysis. This posture is consistent with the application's architecture: datapacks, replay datasets, monitoring packets, and retained events are internal evidence surfaces, not externally sold data products.

ConstraintPolyventure controlCurrent status
Own-trading purposeSingle-operator workflow; no third-party trading facilitation or signal delivery.Aligned
Bounded data retentionRuntime DB, datapacks, monitor packets, and replay datasets are retained for internal trading, safety, and audit purposes.Aligned
No redistribution postureKalshi-derived data and analytics remain inside the operator project context.Aligned
No benchmarking postureMonitoring focuses on Polyventure safety, state truth, retry behavior, and operator awareness, not comparative Kalshi service benchmarking.Aligned
Secure authorized accessCredentials are environment/local-secret based; no hardcoded keys; live orders require explicit lane and credential posture.Aligned
Rate-limit and API-responsibility postureAutomation is bounded, fail-closed, and monitored; retry/submit loops are treated as evidence-gated engineering surfaces.Ongoing control
Member and jurisdiction obligationsLive-lane clearance assumes the operator remains an eligible US-based own-account user and complies with Kalshi member obligations.Operator duty
Updated agreement reviewDeveloper agreement was not re-reviewed in the June 14 artifact because no updated version was provided.Re-review trigger

The compliance significance of the datapack and replay surfaces is that they remain internal evidence and safety tools. Synthetic refinement datapacks and flow-balance replay packages do not create a public dataset, third-party signal service, or exchange-performance benchmark. They support the same operator-owned trading workflow described throughout this report.

Re-review triggers

Compliance should be re-reviewed before broadening Polyventure beyond single-operator own-account use, sharing Kalshi-derived data or analytics externally, adding third-party execution, using monitoring as service benchmarking, or treating a newer Kalshi developer/member agreement as operative.

15.5Appendix E — Internal reference map

The report body names concepts rather than development artifacts. The internal artifacts below are the provenance surfaces for maintainers who need to trace the claims.

  1. polyventure/STATE_CONTRACT.md — authoritative current target, signed-off areas, known non-blockers, and active gaps.
  2. docs/WAGER_HEDGE_MODELS.md — paired-hedge model, exposure handling, and operator-level strategy authority.
  3. polyventure/AGENT_INSTRUCTIONS.md — repository mission, live-lane boundaries, and validation posture.
  4. polyventure/catalog/test_definitions.json — retained Calamum validation definitions used by the project.
  5. Polyventure applied data science elements report — data-science framing for feature families, coverability, sizing, and retained evidence.
  6. Independent retained modeling dataset specification — row grains, labels, null semantics, and dataset package shape.
  7. Flow-balance retained dataset and replay BMAP — replay harness and flow-imbalance threshold-evaluation surface.
  8. Synthetic datapack bounded mature actionable plan — datapack extract/load, canonical inventory, synthetic refinement, and hydration-boundary provenance.
  9. Candidate coverability and unmatched exposure BMAP — design basis for flow, divergence, and unmatched-exposure handling.
  10. Terminal pre-wire coverability BMAP — final-set coverability and sizing boundary.
  11. Flow/depth observation capture BMAP — evidence capture for flow-floor calibration.
  12. Monitor time-series behavioral tracking BMAP — cross-run monitor ledger and metric extraction model.
  13. Monitor DOM stage-agreement instrumentation BMAP — DOM capture design and its evidence-surface limits.
  14. Submit-handoff signature integrity BMAP — saved-set identity and submit handoff contract.
  15. Polyventure Kalshi mode-plan compliance review — offline/sandbox/live posture and own-trading boundary.
  16. Polyventure Kalshi live-lane compliance review — live-lane clearance and updated member-agreement review.

15.6Appendix F — Figure inventory

FigurePurposeSection
Figure 1High-level architecture: venue data, discovery, gates, submit path, deck, and evidence.Executive summary
Figure 2Payoff distinction between matched hedge and one-sided exposure.Model
Figure 3Data-science pipeline from venue observation to retained replay.Data science
Figure 4Flow-balance replay region and threshold interpretation.Data science
Figure 5Datapack evidence lifecycle from lane state to canonical inventory and archive.Datapacks
Figure 6Simulation authority boundary between empirical rows and synthetic stress fixtures.Datapacks
Figure 7A/BFlow floor and divergence cap as distinct risk controls.Guard stack
Figure 8Scheduler-owned automation transition model and branch labeling.Lifecycle
Figure 9Monitoring evidence topology and DOM-capture boundary.Appendix C

16References

References are limited to sources needed to understand the system's domain assumptions and technical contracts.

16.1External references

  1. Kalshi API documentation, Get Market Orderbook. Used for orderbook and depth terminology.
  2. Kalshi API documentation, Get Trades. Used for trade-flow terminology.
  3. Kalshi API documentation, Kalshi Docs home. Used as the primary external documentation surface for venue API references.
  4. IETF RFC 6455, The WebSocket Protocol. Used for the general websocket lifecycle assumption behind persistent event streams.

16.2Internal references

  1. Polyventure State Contract, polyventure/STATE_CONTRACT.md.
  2. Wager Hedge Models, docs/WAGER_HEDGE_MODELS.md.
  3. Polyventure Agent Instructions, polyventure/AGENT_INSTRUCTIONS.md.
  4. Polyventure Test Catalog, polyventure/catalog/test_definitions.json.
  5. Polyventure Applied Data Science Elements Graduate Report, polyventure/docs/development/POLYVENTURE_APPLIED_DATA_SCIENCE_ELEMENTS_GRADUATE_REPORT_2026-07-02.md.
  6. Polyventure Independent Retained Modeling Dataset Specification, polyventure/docs/development/POLYVENTURE_INDEPENDENT_RETAINED_MODELING_DATASET_SPEC_2026-07-02.md.
  7. Flow-Balance Retained Dataset and Offline Replay Harness, polyventure/docs/development/FLOW_BALANCE_RETAINED_DATASET_AND_REPLAY_BMAP_2026-07-03.md.
  8. Synthetic Datapack Bounded Mature Actionable Plan, polyventure/docs/development/readiness-status-audits/SYNTHETIC_DATAPACK_BOUNDED_MATURE_ACTIONABLE_PLAN_2026-05-24.md.
  9. Monitor Time Series Behavioral Tracking, polyventure/docs/development/MONITOR_TIME_SERIES_BEHAVIORAL_TRACKING_BOUNDED_MATURE_ACTIONABLE_PLAN_2026-06-19.md.
  10. Monitor DOM Stage-Agreement Instrumentation, polyventure/docs/development/MONITOR_DOM_STAGE_AGREEMENT_INSTRUMENTATION_BMAP_2026-06-22.md.
  11. Polyventure Kalshi Mode-Plan Compliance Review, polyventure/docs/compliance/POLYVENTURE_KALSHI_MODE_PLAN_COMPLIANCE_REVIEW_2026-05-08.md.
  12. Polyventure Kalshi Live-Lane Compliance Review, polyventure/docs/compliance/POLYVENTURE_KALSHI_LIVE_LANE_COMPLIANCE_REVIEW_2026-06-14.md.
  13. Kalshi Developer Agreement local source capture, polyventure/docs/compliance/source_docs/kalshi_developer_agreement_pasted_2026-05-07.txt.
  14. Kalshi Member Agreement local source capture, polyventure/docs/compliance/source_docs/kalshi_member_agreement_pasted_2026-05-07.txt.
  15. Kalshi shop Terms of Service local source capture, polyventure/docs/compliance/source_docs/kalshi_terms_of_service_shop_pasted_2026-05-07.txt.