piker/ai/prompt-io/opencode/20260729T185406Z_d359b1cb_p...

1.2 KiB

Prompt

The user reported that QQQ 60-second zeros appeared as a flat line after reload, clarified that the outstanding concern was the prior ldshm failure, and instructed the agent to implement the more focused fix.

Response summary

Changed ldshm to classify invalid SHM snapshots before downstream analysis. Cadence is inferred only from observed finite positive steps; buffers containing non-finite or non-positive timestamps, or lacking a positive cadence, are skipped rather than partially replacement-written or reloaded. Added deterministic helper and command-level regressions.

Files changed

  • piker/storage/cli.py - inspect cadence and reject invalid SHM snapshots before mutation.
  • tests/test_ldshm.py - cover QQQ-like zeros, corrupt timestamps, cadence selection, degenerate buffers, and mutation prevention.
  • .claude/skills/run-tests/test-harness-reference.md - register the deterministic regression target.

Human edits

None - generated output remains uncommitted.