picoclaw/pkg/memory
xiaoen 529622b7d3 test(memory): add unit, concurrency, and benchmark tests
Cover all Store interface methods plus edge cases:
- Basic roundtrip, ordering, empty session, tool calls
- Logical truncation (keep last N, keep zero, keep more than exist)
- SetHistory replacing all + resetting skip offset
- Crash recovery with partial JSON lines
- Persistence across store instances
- Concurrent add+read (10 goroutines x 20 msgs)
- Simulated #704 race (summarizer vs main loop)
- Benchmarks for AddMessage and GetHistory (100/1000 msgs)
2026-02-26 08:35:04 +08:00
..
jsonl.go feat(memory): implement append-only JSONL session store 2026-02-26 08:35:04 +08:00
jsonl_test.go test(memory): add unit, concurrency, and benchmark tests 2026-02-26 08:35:04 +08:00
store.go feat(memory): define Store interface for session persistence 2026-02-26 08:35:04 +08:00