Stabilize Polymarket live runner smoke path#11
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR turns the merged single-process runner into a validated Polymarket live-smoke path and records the operational evidence needed to continue the proof loop.
It covers the full branch scope:
config/markets.tomlSignalContextJSONDetails
Polymarket ingestion and runner wiring
conditionIdlookup.Watchlist and relationships
Runtime observability
--oncenow emits a concise run summary to stderr.--summary-every-cyclescycles.--feature-warmup-sizefor short smoke runs while leaving the default warmup at 50 observations per market.Ctrl-Cnow exits cleanly withrun_engine stopped: interruptedand exit code130instead of printing a traceback.Persistence
Engine.run_cycle()now persists computedFeatureVectors before detector dispatch.featurestable is now a real operational progress signal instead of remaining empty during warmed runs.Live validation evidence
One-shot smoke
uv run python scripts/run_engine.py --oncenow reports live progress and persists snapshots.Example shape:
Short warmup smoke
A short smoke with
--feature-warmup-size 2showed the expected transition:Default warmup capture
A longer default-warmup capture ran with:
Observed results after stopping the runner:
The emitted signal was a
price_velocitycontext forpolymarket_btc_etf_flows_may_18_2026with magnitude/confidence0.873316and manipulation flagthin_book_during_move. This is evidence that the live monolith path can emit canonical contexts from real market data. It is not a claim that confidence is production-calibrated.Validation
Passed locally:
Full test result:
Known boundaries
scripts/backtest.pystill raisesNotImplementedError.scripts/calibrate.pystill raisesNotImplementedError.--onceruns do not rehydrate feature buffers from historical snapshots.thin_book_during_move.Next work after this PR
Per
.docs/current-development-state.md, the next proof-loop item isscripts/backtest.py:uv run python scripts/backtest.py --help