Repository navigation
[autopilot] release v0.9.0 - #159
Merged
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.
Release v0.9.0 batches the allocation layer, recorded-log research APIs, and correctness fixes since v0.8.0. This is due under the release policy: new public functions and simulators plus changes to sizing and profit accounting warrant a pre-1.0 minor release. Source already carried the untagged 0.9.0 version; this PR completes that release rather than skipping to 0.10.0.
Added
keeks[allocation].HistoricalBinarySimulatorandHistoricalMultiOutcomeSimulatorfor recorded outcomes, including multi-outcome voids.load_bet_logreads a recorded bet log from CSV with row-numbered errors.compare_multi_outcome_strategiesranks fresh vector strategies on a recorded multi-outcome market log (decimal-oddspayoffs, zero-based winning legs,Nonevoids) viaHistoricalMultiOutcomeSimulator.summarize_history,calibration_report,compare_strategiesand seededbootstrap_comparison: history metrics, reliability diagnostics, fresh-policy rankings and paired uncertainty intervals. Undefined metrics remainNone; rank counts resolve ties in factory order and are not strict-superiority probabilities.Fixed and changed
(payoff - 1) * stake; the allocation binary-bets adapter follows the same decimal-odds accounting.Breaking changes and migration
transaction_costtotransaction_cost_rate; rename simulatortransaction_coststofee_per_bet. The former is proportional to stake, the latter an absolute fee.max_draw_downand DrawdownAdjustedKelly'smax_acceptable_drawdowntomax_transaction_loss; renamenormalize_probabilitiestovalidate_probabilitiesand plot helperdrawdowntodrawdown_history.add_funds/remove_fundswithdeposit/withdraw; useamountinstead ofamtkeywords.record_settlement(won, realized_returns)with per-option outcome flags and signed returns. This replaces the old binaryrecord_resultand differing simulator hook signatures. Base classes now reject invalid returned vectors directly.min_probability=0.5and bankrollmax_transaction_loss=0.3explicitly to retain the old gate and removal-cap defaults. Corrected multi-outcome accounting changes replay results. Binary payoff remains net winnings; multi-outcome/allocation payoff is decimal odds.Release preparation
[project] versionas the authoritative packaging version per policy; keepversion.pyat 0.9.0 as the Sphinx mirror.keeks==0.9.0(available after publication).load_bet_log) merged after this PR was first prepared and is now included. Multi-outcome ranking PR Add compare_multi_outcome_strategies for recorded multi-outcome markets #155 (compare_multi_outcome_strategies) landed after that and is now included too. Version stays 0.9.0 (still a minor; no breaking change added).Validation
test_two_leg_falls_back_to_binary_kelly) failed in the full run but passes in isolation. Earlier full run (before Add load_bet_log for validated CSV bet logs #156): 3,725 passed, 2 skipped, 94 binary golden-fixture failures; 99% coverage. An archived, unchanged origin/master in the same environment produced the identical 94 failing case IDs and the same pass/skip counts; these are pre-existing macOS golden-fixture differences. Fixtures are unchanged.make lint, Ruff format check, 78 docstring examples, six package/version checks and Sphinx-W --keep-going -b dummypassed.test.ymlto pass on the release merge commit before tagging. The current workflow covers Python 3.10–3.14 and Ruff; the policy's older matrix description is stale.Downstream
wdm0006/keeks-elote:pyproject.tomlalready declareskeeks[allocation]>=0.9.0,<0.10, but[tool.uv.sources].keekspins an interim Git commit. After the tag publishes, remove that override, regenerateuv.lockagainst PyPI, and rerun its suite, checking renamed constructor keywords and strategy semantics. No downstream PR is opened before publication.Post-merge release steps
Wait for green
test.ymlon master. Pushing the tag triggers.github/workflows/publish-pypi.yml(Publish to PyPI), which builds a wheel and sdist and uploads both through PyPI trusted publishing. No manual upload is needed. Run: