Repository navigation
feat: Resolve IBKR order outcomes without assuming fills - #772
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Pigbibi
marked this pull request as ready for review
November 3, 2026 00:58
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
Add read-only IBKR order outcomes so acknowledged submissions can be reported from broker-confirmed facts without assuming fills. Reject incomplete snapshots when the SDK decoder catches a decoding exception, and suppress its raw diagnostics.
Changes
Verification
Decoder repair fail-before: 10 failures / 5 controls pass, plus 6 unconditional sink failures. After repair: 92 focused cases pass, including unchanged decoder and previous review probes. Full offline suite: 3938 passed, 2 skipped, plus 1277 subtests. Actual ib_insync 0.9.86 probes run under inherited network denial; wheel checks use cached offline wheels. Ruff, documentation blocking checks, whitespace and identifier scans pass. SDK integration tests skip only when that optional SDK is absent; unconditional core sink tests remain active.
Risk and rollback
R2. Failed source reads raise the fixed OrderOutcomeReadError; missing or conflicting evidence stays unknown. No public signature/schema, execution authority, scheduler, dependency pin, production configuration or trading/risk switch changes. No broker or Gateway connection, deployment or consumer activation. Exclusive private-connection reads and deadlines remain consumer responsibilities. Runtime, adoption and real delivery are NOT_PROVEN. Owner risk approval and established exact-head review remain required. Rollback, if approved, is a normal revert; no history rewrite.
AI assistance
Implemented with OpenAI Codex (gpt-6.1-sol). Author self-review and adverse tests completed; independent review and merge remain with the established review-and-merge bot.