piker/ai/prompt-io/opencode/20260811T205826Z_06d5ea5d_p...

1.2 KiB
Raw Blame History

Prompt

Diagnose and fix an IB live-order failure where lazy NVDA contract qualification raised tractor.trionics.Lagged after the order reached brokerd.ib. Determine whether recent history changes or cancelled symbol searches caused the stale state.

Response summary

Traced the failure to competing consumers of a one-slot Trio broadcast, not the recent SHM change or stale asyncio client state. Replaced broadcast fan-out with one response/status demultiplexer, retained request-ID correlation, handled cancellation and teardown, documented the task/channel ownership model, warned on diagnostic metadata eviction, and added deterministic proxy regressions.

Files changed

  • piker/brokers/ib/api.py - sole-reader IB proxy response routing.
  • tests/test_ib_method_proxy.py - status, concurrency, cancellation and EOF regressions.
  • .claude/skills/run-tests/test-harness-reference.md - proxy test mapping.

Human edits

None - generated output follows the users live failure diagnosis.