Address file growth concern from #711 review: logical truncation via skip offset is fast but leaves dead lines on disk indefinitely. Compact() rewrites the JSONL file keeping only active messages, using the same temp+rename pattern for crash safety. No-op when skip == 0. The caller (lifecycle manager or agent loop) decides when to trigger compaction — e.g. when skipped lines exceed active lines. |
||
|---|---|---|
| .. | ||
| jsonl.go | ||
| jsonl_test.go | ||
| migration.go | ||
| migration_test.go | ||
| store.go | ||