piker/ai/prompt-io
Gud Boi 0142476966 .ib.broker: lazily qualify contracts on order req
Post (datad|brokerd)-split the trading actor's
`Client._contracts` cache is never warmed by in-proc
feed setup (that now happens in the `datad.ib` sibling)
so ALL live submissions failed with "no live feed?" at
`Client.submit_limit()`; `brokerd` must be able to
submit orders without any feed registered in its own
subactor.

Deats,
- thread the acct `proxies` table into
  `handle_order_requests()` and, on a `_contracts`
  cache-miss for the req's fqme, lazily run the same
  `get_mkt_info(fqme, proxy=...)` symbology ep the
  feed-side uses; it writes the `mkt.bs_fqme` key
  `submit_limit()` looks up (and warms `_cons2mkts`
  which the position-audit path also needs) on exactly
  the same aio `Client` instance.
- guard `submit_limit()` w/ a try/except ->
  `BrokerdError` relay so a single bad submission
  degrades to an EMS error msg instead of crashing the
  dialog (and causing the `TrioTaskExited` teardown
  storm seen in testing).
- fix the (non-f-string..) raise msg in
  `Client.submit_limit()` and doc the new lazy-qualify
  contract; the bug was foretold by the TODO in
  `.symbols.get_mkt_info()` B)

(this patch was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Prompt-IO: ai/prompt-io/claude/20260610T213549Z_f084e899_prompt_io.md
2026-11-09 17:05:43 -05:00
..
claude .ib.broker: lazily qualify contracts on order req 2026-11-09 17:05:43 -05:00
opencode Distinguish websocket receive and relay timeouts 2026-11-06 15:40:58 -05:00
20261007T165453Z_bde2457b_prompt_io.md Fix endpoint config and daemon startup from PR94 review 2026-10-10 14:20:52 -04:00
20261007T165453Z_bde2457b_prompt_io.raw.md Fix endpoint config and daemon startup from PR94 review 2026-10-10 14:20:52 -04:00
20261010T232852Z_1fa45dfa_prompt_io.md Use `tractor`'s reviewed address-unpacking branch 2026-10-11 00:43:06 -04:00
20261010T232852Z_1fa45dfa_prompt_io.raw.md Use `tractor`'s reviewed address-unpacking branch 2026-10-11 00:43:06 -04:00
20261106T185628Z_495c0915_215e9b_prompt_io.md Contain provider failures during SHM gap repair 2026-11-06 15:20:58 -05:00
20261106T185628Z_495c0915_215e9b_prompt_io.raw.md Contain provider failures during SHM gap repair 2026-11-06 15:20:58 -05:00
20261106T201746Z_495c0915_612dfc_prompt_io.md Pin qualified `tractor` and require `trio>=0.34.0` 2026-11-06 15:21:33 -05:00
20261106T201746Z_495c0915_612dfc_prompt_io.raw.md Pin qualified `tractor` and require `trio>=0.34.0` 2026-11-06 15:21:33 -05:00
README.md Contain provider failures during SHM gap repair 2026-11-06 15:20:58 -05:00

README.md

AI Prompt I/O Log

This directory records substantive AI-assisted changes, prompts, original harness identity, and unedited outputs. Human contributors remain accountable for code decisions.

Records follow the NLNet generative AI policy. Each structured entry links its immutable .raw.md partner. Code output uses Git diff references to avoid duplication.