piker/ai/prompt-io/opencode/20260727T212454Z_689df816_p...

1.3 KiB
Raw Permalink Blame History

git diff HEAD~1..HEAD -- piker/storage/nativedb.py piker/tsp/_anal.py

Normalized index-less provider frames to NativeDBs canonical names, order, and dtypes before merge and publication. Provider-only columns are excluded from durable files, derived indexes are regenerated, and fractional timestamps are rejected before integer conversion. Added a canonical field map for hydrating provider-specific SHM buffers while leaving provider-only fields at their defaults. Changed Polars-to-NumPy conversion to select columns by field name rather than position.

git diff HEAD~1..HEAD -- tests/test_history_backfill.py tests/test_storage_nativedb.py

Added deterministic coverage using IBs actual provider dtype and a real local tractor root actor, IB-typed shared-memory buffers, NativeDB, Parquet persistence, first-start publication, and restart hydration. Added focused regressions for reordered/extra Polars columns and fractional timestamp rejection.

Verification generated with the patch:

  • NativeDB and history integration set: 23 passed
  • Ruff: passed
  • git diff --check: passed
  • second adversarial review: no findings
  • no live gateway or network tests run