piker/ai/prompt-io/opencode/20260828T013057Z_6ca6ab2a_p...

36 lines
1.1 KiB
Markdown
Raw Normal View History

---
model: openai/gpt-5.6-sol
service: opencode
session: opencode-pid-469264
timestamp: 2026-08-28T01:30:57Z
git_ref: 6ca6ab2a
scope: code
substantive: true
raw_file: 20260828T013057Z_6ca6ab2a_prompt_io.raw.md
---
## Prompt
Investigate Piker's clearing, accounting, order-control, and
trade-ledger flows in depth while fixing a paper-engine crash where
RapidFuzz called `len()` on a `MktPair` during ledger persistence.
## Response summary
Changed `SymbologyCache.search()` to fuzzy-match table keys instead of
struct values, preserving matched aliases and preventing the paper
trade dialog from crashing when qualifying legacy ledger FQMEs. Added
an end-to-end regression for the implicated ledger-write path.
## Files changed
- `piker/data/_symcache.py` - searches string keys and resolves values.
- `tests/test_accounting.py` - covers aliases and paper-ledger writes.
## Human edits
The human supplied the production traceback, identified the affected
subsystems, and directed an implementation-level fix with deep system
familiarization. No follow-up correction or direct manual source edit
was identified during this interaction.