piker/ai/prompt-io/claude
Gud Boi 456c6a5567 .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-06-10 17:36:51 -04:00
..
20260610T170859Z_75cefe10_prompt_io.md Fix `pytest` config-dir isolation in subactors 2026-06-10 13:10:09 -04:00
20260610T170859Z_75cefe10_prompt_io.raw.md Fix `pytest` config-dir isolation in subactors 2026-06-10 13:10:09 -04:00
20260610T171022Z_4485f2b9_prompt_io.md Port service+tests to latest `tractor` APIs 2026-06-10 13:11:05 -04:00
20260610T171022Z_4485f2b9_prompt_io.raw.md Port service+tests to latest `tractor` APIs 2026-06-10 13:11:05 -04:00
20260610T171105Z_bc6e18d7_prompt_io.md Declare per-daemon-kind backend mod groups 2026-06-10 13:11:42 -04:00
20260610T171105Z_bc6e18d7_prompt_io.raw.md Declare per-daemon-kind backend mod groups 2026-06-10 13:11:42 -04:00
20260610T171142Z_119d2c04_prompt_io.md Add `datad` daemon machinery to `.data` 2026-06-10 13:12:26 -04:00
20260610T171142Z_119d2c04_prompt_io.raw.md Add `datad` daemon machinery to `.data` 2026-06-10 13:12:26 -04:00
20260610T171226Z_64181219_prompt_io.md .clearing: lazily spawn `brokerd` from `emsd` 2026-06-10 13:12:59 -04:00
20260610T171226Z_64181219_prompt_io.raw.md .clearing: lazily spawn `brokerd` from `emsd` 2026-06-10 13:12:59 -04:00
20260610T171259Z_59d5d9a6_prompt_io.md .data: cut feed layer over to `datad` actors 2026-06-10 13:13:44 -04:00
20260610T171259Z_59d5d9a6_prompt_io.raw.md .data: cut feed layer over to `datad` actors 2026-06-10 13:13:44 -04:00
20260610T171344Z_eee19de0_prompt_io.md brokerd: slim RPC caps + `ib` client-id offset 2026-06-10 13:14:24 -04:00
20260610T171344Z_eee19de0_prompt_io.raw.md brokerd: slim RPC caps + `ib` client-id offset 2026-06-10 13:14:24 -04:00
20260610T173309Z_f15f8178_prompt_io.md Add `datad`-split design plan + provenance docs 2026-06-10 13:38:50 -04:00
20260610T173309Z_f15f8178_prompt_io.raw.md Add `datad`-split design plan + provenance docs 2026-06-10 13:38:50 -04:00
20260610T213549Z_f084e899_prompt_io.md .ib.broker: lazily qualify contracts on order req 2026-06-10 17:36:51 -04:00
20260610T213549Z_f084e899_prompt_io.raw.md .ib.broker: lazily qualify contracts on order req 2026-06-10 17:36:51 -04:00
README.md Fix `pytest` config-dir isolation in subactors 2026-06-10 13:10:09 -04:00

README.md

AI Prompt I/O Log — claude

This directory tracks prompt inputs and model outputs for AI-assisted development using claude (claude-code CLI).

Policy

Prompt logging follows the NLNet generative AI policy. All substantive AI contributions are logged with: - Model name and version - Timestamps - The prompts that produced the output - Unedited model output (.raw.md files)

Usage

Entries are created by the /prompt-io skill or automatically via /commit-msg integration.

Each commit carrying AI-generated changes links to its provenance entry via a Prompt-IO: commit-msg trailer; entries use “diff-ref mode” (pointers into git log -p instead of verbatim code copies) to avoid duplicating committed code.

Human contributors remain accountable for all code decisions. AI-generated content is never presented as human-authored work.