piker/ai/prompt-io/opencode
Gud Boi e3f2e9ce2a Fix sparse IB history prepends in `ShmArray`
IB returns trading samples, not one row per wall-clock period.
Converting elapsed time to a physical prepend offset left 42,720
zero rows in NVDA's 60s buffer even though both valid margins
shared the same timestamp.

Use the actual earliest provider sample as the NativeDB boundary.
After reverse retrieval, prepend older stored rows directly beside
it.

Deats,
- start reverse insertion at the current first index;
- update `ShmArray._first` after every provider prepend;
- trim provider/NativeDB overlap by its timestamp;
- publish the final storage prepend to chart and FSP consumers;
- derive the source `time` field from `ohlc_key_map`;
- cover the full lifecycle with a real multi-frame `ShmArray`.

Prompt-IO: ai/prompt-io/opencode/20260805T195001Z_f0f3c806_prompt_io.md

(this patch was generated in some part by `opencode` using `gpt-5.6-sol` (`openai`))
2026-11-13 15:47:52 -05:00
..
20260722T001357Z_16f3cd6f_prompt_io.md .tsp: normalize gaps after sorted dedupe 2026-11-10 14:32:20 -05:00
20260722T001357Z_16f3cd6f_prompt_io.raw.md .tsp: normalize gaps after sorted dedupe 2026-11-10 14:32:20 -05:00
20260722T001358Z_16f3cd6f_prompt_io.md `.tsp._history`: drop orphaned backfill events 2026-11-06 13:41:07 -05:00
20260722T001358Z_16f3cd6f_prompt_io.raw.md `.tsp._history`: drop orphaned backfill events 2026-11-06 13:41:07 -05:00
20260722T024133Z_3a4f6737_prompt_io.md .tsp: report non-positive timestamp steps 2026-11-10 14:32:23 -05:00
20260722T024133Z_3a4f6737_prompt_io.raw.md .tsp: report non-positive timestamp steps 2026-11-10 14:32:23 -05:00
20260722T024134Z_3a4f6737_prompt_io.md Make `NativeDB` backfills atomic and non-destructive 2026-11-10 16:00:32 -05:00
20260722T024134Z_3a4f6737_prompt_io.raw.md Make `NativeDB` backfills atomic and non-destructive 2026-11-10 16:00:32 -05:00
20260727T204711Z_84a6d47b_prompt_io.md Drop redundant `NativeDB` writer locks 2026-11-10 16:00:33 -05:00
20260727T204711Z_84a6d47b_prompt_io.raw.md Drop redundant `NativeDB` writer locks 2026-11-10 16:00:33 -05:00
20260727T212454Z_689df816_prompt_io.md Normalize provider OHLCV for `NativeDB` 2026-11-10 16:02:36 -05:00
20260727T212454Z_689df816_prompt_io.raw.md Normalize provider OHLCV for `NativeDB` 2026-11-10 16:02:36 -05:00
20260727T215906Z_689df816_prompt_io.md Clean test-owned SHM leaks in `pytest` 2026-11-11 11:24:45 -05:00
20260727T215906Z_689df816_prompt_io.raw.md Clean test-owned SHM leaks in `pytest` 2026-11-11 11:24:45 -05:00
20260728T003247Z_ed85721c_prompt_io.md Add `xonsh` backfill qualification workflow 2026-11-11 11:36:45 -05:00
20260728T003247Z_ed85721c_prompt_io.raw.md Add `xonsh` backfill qualification workflow 2026-11-11 11:36:45 -05:00
20260728T005034Z_ed85721c_prompt_io.md Add raw OHLCV audit to `NativeDB` 2026-11-11 11:24:45 -05:00
20260728T005034Z_ed85721c_prompt_io.raw.md Add raw OHLCV audit to `NativeDB` 2026-11-11 11:24:45 -05:00
20260728T232718Z_ed85721c_prompt_io.md Repair legacy timestamps in `NativeDB` merges 2026-11-11 11:24:45 -05:00
20260728T232718Z_ed85721c_prompt_io.raw.md Repair legacy timestamps in `NativeDB` merges 2026-11-11 11:24:45 -05:00
20260729T034106Z_922a5df8_prompt_io.md Use IB UTC syntax for history `endDateTime` 2026-11-11 18:04:05 -05:00
20260729T034106Z_922a5df8_prompt_io.raw.md Use IB UTC syntax for history `endDateTime` 2026-11-11 18:04:05 -05:00
20260729T041723Z_ce33deb6_prompt_io.md Repair first-slot OHLC sentinels in `NativeDB` 2026-11-11 18:04:16 -05:00
20260729T041723Z_ce33deb6_prompt_io.raw.md Repair first-slot OHLC sentinels in `NativeDB` 2026-11-11 18:04:16 -05:00
20260729T185406Z_d359b1cb_prompt_io.md Guard `ldshm` from invalid SHM snapshots 2026-11-11 18:05:35 -05:00
20260729T185406Z_d359b1cb_prompt_io.raw.md Guard `ldshm` from invalid SHM snapshots 2026-11-11 18:05:35 -05:00
20260729T204046Z_ad6c560f_prompt_io.md Repair IB startup gaps in `ShmArray` 2026-11-11 18:35:47 -05:00
20260729T204046Z_ad6c560f_prompt_io.raw.md Repair IB startup gaps in `ShmArray` 2026-11-11 18:35:47 -05:00
20260731T165215Z_0846cbd4_prompt_io.md Expose storage state through `piker store` 2026-11-12 09:48:06 -05:00
20260731T165215Z_0846cbd4_prompt_io.raw.md Expose storage state through `piker store` 2026-11-12 09:48:06 -05:00
20260801T015321Z_74ea2152_prompt_io.md Simplify `store` series and SHM discovery 2026-11-12 09:48:09 -05:00
20260801T015321Z_74ea2152_prompt_io.raw.md Simplify `store` series and SHM discovery 2026-11-12 09:48:09 -05:00
20260805T195001Z_f0f3c806_prompt_io.md Fix sparse IB history prepends in `ShmArray` 2026-11-13 15:47:52 -05:00
20260805T195001Z_f0f3c806_prompt_io.raw.md Fix sparse IB history prepends in `ShmArray` 2026-11-13 15:47:52 -05:00
20260811T205826Z_06d5ea5d_prompt_io.md Fix IB `MethodProxy` response routing 2026-10-21 20:50:38 -04:00
20260811T205826Z_06d5ea5d_prompt_io.raw.md Fix IB `MethodProxy` response routing 2026-10-21 20:50:38 -04:00
20260813T202402Z_12b0d66e_prompt_io.md .data: isolate cached feed stream consumers 2026-10-21 20:50:38 -04:00
20260813T202402Z_12b0d66e_prompt_io.raw.md .data: isolate cached feed stream consumers 2026-10-21 20:50:38 -04:00
20260813T230744Z_ddac3553_prompt_io.md .ib.feed: cache quote channel contexts 2026-10-21 20:50:38 -04:00
20260813T230744Z_ddac3553_prompt_io.raw.md .ib.feed: cache quote channel contexts 2026-10-21 20:50:38 -04:00
20260820T163519Z_5f631e19_prompt_io.md Normalize registrar addrs with `wrap_address()` 2026-10-07 03:10:41 -04:00
20260820T163519Z_5f631e19_prompt_io.raw.md Normalize registrar addrs with `wrap_address()` 2026-10-07 03:10:41 -04:00
20260821T042058Z_b7aca4c0_prompt_io.md Preserve exact `piker` logger namespaces 2026-10-07 03:10:41 -04:00
20260821T042058Z_b7aca4c0_prompt_io.raw.md Preserve exact `piker` logger namespaces 2026-10-07 03:10:41 -04:00
20260826T222600Z_5f631e19_prompt_io.md Fix Binance USD-M websocket routing 2026-11-06 15:40:58 -05:00
20260826T222600Z_5f631e19_prompt_io.raw.md Fix Binance USD-M websocket routing 2026-11-06 15:40:58 -05:00
20260828T200352Z_dd676857_prompt_io.md Bump `xonsh` to 0.24.2 2026-10-07 03:10:41 -04:00
20260828T200352Z_dd676857_prompt_io.raw.md Bump `xonsh` to 0.24.2 2026-10-07 03:10:41 -04:00
20260829T175542Z_e09e306a_prompt_io.md Harden Binance USD-M feed startup 2026-11-06 15:40:58 -05:00
20260829T175542Z_e09e306a_prompt_io.raw.md Harden Binance USD-M feed startup 2026-11-06 15:40:58 -05:00
20260901T024235Z_e09e306a_prompt_io.md Fix reconnect startup in `_web_bs` 2026-11-06 15:40:58 -05:00
20260901T024235Z_e09e306a_prompt_io.raw.md Fix reconnect startup in `_web_bs` 2026-11-06 15:40:58 -05:00
20260901T230043Z_e91f41a6_prompt_io.md Bump `tractor` and `msgspec` for Python 3.13 2026-10-07 03:10:41 -04:00
20260901T230043Z_e91f41a6_prompt_io.raw.md Bump `tractor` and `msgspec` for Python 3.13 2026-10-07 03:10:41 -04:00
20260907T214000Z_9115d24_prompt_io.md Add neutral `.ai` workflow config 2026-09-07 19:07:00 -04:00
20260907T214000Z_9115d24_prompt_io.raw.md Add neutral `.ai` workflow config 2026-09-07 19:07:00 -04:00
20260908T043134Z_f148fbcc_prompt_io.md Move Piker skills to `.agents` discovery 2026-09-08 00:35:01 -04:00
20260908T043134Z_f148fbcc_prompt_io.raw.md Move Piker skills to `.agents` discovery 2026-09-08 00:35:01 -04:00
20261021T224421Z_507c75c6_piker_pin_prompt_io.md Select `piker_pin` and keep `polars` below 2.0 2026-10-21 19:16:14 -04:00
20261021T224421Z_507c75c6_piker_pin_prompt_io.raw.md Select `piker_pin` and keep `polars` below 2.0 2026-10-21 19:16:14 -04:00
20261022T212248Z_dc618229_ib_recovery_prompt_io.md Document bounded IB recovery and downstream replay 2026-10-23 11:36:29 -04:00
20261022T212248Z_dc618229_ib_recovery_prompt_io.raw.md Document bounded IB recovery and downstream replay 2026-10-23 11:36:29 -04:00
20261028T160846Z_7242dcb9_websocket_close.md .data: reconnect after websocket reader close errors 2026-11-06 15:40:58 -05:00
20261028T160846Z_7242dcb9_websocket_close.raw.md .data: reconnect after websocket reader close errors 2026-11-06 15:40:58 -05:00
20261028T165638Z_b95e7c79_reconnect_logging.md .data: expose websocket reconnect progress at INFO 2026-11-06 15:40:58 -05:00
20261028T165638Z_b95e7c79_reconnect_logging.raw.md .data: expose websocket reconnect progress at INFO 2026-11-06 15:40:58 -05:00
20261028T180856Z_032580bf_timeout_phase.md Distinguish websocket receive and relay timeouts 2026-11-06 15:40:58 -05:00
20261028T180856Z_032580bf_timeout_phase.raw.md Distinguish websocket receive and relay timeouts 2026-11-06 15:40:58 -05:00