piker/ai/prompt-io/opencode/20260916T194052Z_749ca1f0_p...

38 lines
1.3 KiB
Markdown

---
model: openai/gpt-6-astra
service: opencode
session: unavailable
timestamp: 2026-09-16T19:40:52Z
git_ref: 749ca1f0
scope: code
substantive: true
raw_file: 20260916T194052Z_749ca1f0_prompt_io.raw.md
---
## Prompt
Fix wrong IB fill/commission pairing and empty ledger normalization;
retain and investigate silent socket loss during network roaming.
## Response summary
Preserve execution identity from callbacks into accounting, prevent
empty commission IDs from erasing ledger identity, and propagate actual
socket disconnection as a transport exception. The existing data-farm
reset mechanism is not a socket-session reconnect implementation.
## Files changed
- `piker/brokers/ib/broker.py`: fill correlation and socket termination.
- `piker/brokers/ib/ledger.py`: authoritative execution ID.
- `piker/brokers/ib/api.py`: disconnect event propagation.
- `tests/test_ib_trade_events.py`: accounting event regressions.
- `tests/test_ib_method_proxy.py`: socket-disconnect regression.
## Human edits
The human supplied live traceback and debugger values proving the
execution mismatch, requested a regression rather than a KeyError
guard, and required continued attention to roaming recovery. No human
source edits to this patch have been observed; acceptance is pending.