Fail incompatible backtest execution windows before replay - #84
Merged
Conversation
hjcud
marked this pull request as ready for review
August 9, 2026 09:02
This was referenced Aug 9, 2026
Closed
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.
Closes #83.
What changed
REQUIRED_INPUT_UNAVAILABLEbefore publishingRUNNING.xnys-2024-2026:1.0.0FAILEDevent on delivery 1 instead of five generic handler retries.Root cause
The worker derived a manifest/object evaluation window for feature binding, but then constructed
BacktestJobwith the unmodified ten-year execution policy.BacktestOrchestrator._scheduletherefore asked the pinned calendar for 2016 even though that calendar begins in 2024. The same accepted manifest also did not match the policy period required byMarketDataReader.CalendarCoverageErrorescaped the domain binding boundary, so the worker classified a permanent input incompatibility asHANDLER_ERROR, retried it five times, and left the public run without a terminal result.This PR fixes the consumer safety boundary. Backend #263 separately prevents publishing incompatible combinations and must provide a versioned Development policy/dataset pair that is actually executable.
Validation
uv run --extra test pytest: 1251 passed, 3 skipped, 168 deselecteduv run --extra dev ruff check src tests: passeduv run --extra dev mypy: passedgit diff --check: passedNo additional public run, DLQ operation, worker restart, ASG change, or database write was used to validate this change.