62 lines
2.5 KiB
Markdown
62 lines
2.5 KiB
Markdown
---
|
|
model: openai/gpt-6-astra
|
|
service: opencode
|
|
scope: code
|
|
substantive: true
|
|
git_ref: 5eb4fc9d
|
|
raw_file: 20260916_ib_connectivity_integration.raw.md
|
|
---
|
|
|
|
## Prompt
|
|
|
|
Investigate IB Gateway loss, silent chart survival, infected-actor
|
|
shutdown errors and leaked shared memory. Integrate pending tagged
|
|
address and broadcast-consumer compatibility work. The human required
|
|
isolated worktrees and preservation of the live setup, and selected
|
|
tractor piker_pin rather than main as the runtime fix base.
|
|
|
|
## Response summary
|
|
|
|
Created isolated piker and tractor worktrees and initially integrated
|
|
c07e3cbd and 4af885d9 without committing. That pending merge was later
|
|
aborted. The current piker scope is the original IB fail-loud patch
|
|
and its regression tests on 5eb4fc9d; neither upstream history is
|
|
merged. The live interpreter installation was not changed.
|
|
|
|
Integration-era logging and Deribit compatibility fixes were archived
|
|
outside this patch and are absent from the current worktree. The raw
|
|
companion preserves that earlier response as historical output.
|
|
|
|
## Generated files
|
|
|
|
- piker/brokers/ib/api.py: propagate actual socket disconnection with
|
|
the last API error through the method-proxy relay.
|
|
- piker/brokers/ib/broker.py: raise on trade-event socket loss and
|
|
propagate the disconnect event to the trade consumer.
|
|
- tests/test_ib_method_proxy.py: exercise API error plus disconnect.
|
|
- tests/test_ib_trade_events.py: preserve callback fill identity and
|
|
raise when the callback bridge disconnects.
|
|
|
|
Existing IB fail-loud edits and their tests were copied from the
|
|
earlier session, whose provenance remains in the fill commit.
|
|
The commit plan includes these four files and both provenance logs.
|
|
|
|
## Verification
|
|
|
|
Historically, twenty selected piker regression cases passed on the
|
|
integrated tree against isolated, patched tractor sources. Those
|
|
results do not validate the current post-abort tree or installed
|
|
pinned tractor. The new exact-tree commit-plan checks remain pending;
|
|
no project tests were run during this planning pass. No live
|
|
service/container tests or installed dependency changes were performed.
|
|
Original live-worktree diff matched SHA256
|
|
cbdfa439e656ef3a5effaa0f0e1a7706f1070de863fc0e85222d36294eed8524.
|
|
|
|
## Human contributions
|
|
|
|
The human identified the dependency branches, corrected the proposed
|
|
tractor main base to piker_pin, and required a new worktree after the
|
|
agent initially started an uncommitted merge in the live checkout.
|
|
That merge was aborted and preservation was verified before isolated
|
|
work continued. The human supplied all live incident evidence.
|