Files
poimen-memory/fixtures/pi-session-small.jsonl
Story Crater Bot 51d025d24f feat: complete M0 phase - read-only spine (8/51 tasks)
M0.1 - Cargo workspace + crate skeletons (4 tests)
   6-crate workspace with enforced dependency direction
   GitHub Actions CI pipeline

M0.2 - Domain types and sha256 identity (6 tests)
   Level, Role, Record, Chunk, MemoryNode types
   Content-hash identity (sha256) ensuring rebuild idempotence
   Newtypes (ProjectId, QueryId, RunId) without Default

M0.3 - RecordSource trait + ChunkPolicy (6 tests)
   RecordSource streaming trait
   Chunk policy with token budgets and record boundaries
   Chunking stream that respects budgets without splitting records

M0.4 - Tokenizer-backed chunk sizing (3 tests + 1 ignored)
   Vendored Qwen2 tokenizer with hash verification
   QwenTokenCounter for accurate token counting
   mem tokens CLI subcommand

M0.5 - pi session adapter (5 tests)
   PiSessionSource implementing RecordSource
   Project key extraction from cwd field
   Content flattening for various shapes
   Shared flatten_content helper module

M0.6 - Claude transcript adapter (4 tests)
   ClaudeTranscriptSource implementing RecordSource
   Identical content flattening as pi source
   Cross-source project key agreement

M0.7 - ingest --dry-run (2 tests)
   mem ingest --project --dry-run command
   Zero network calls guarantee

M0.8 - M0 composition gate (5 tests)
   Both sources compose through chunker identically
   Sources are swappable via RecordSource trait
   All role types properly emitted
   Chunk boundaries respected, t values contiguous

Summary:
- 35 integration tests (34 passing, 1 ignored)
- Zero clippy warnings with -D warnings
- All phases compose and verify correctly
- Read-only spine foundation proves extensibility
2026-08-22 23:13:42 -07:00

9 lines
1.1 KiB
JSON

{"type":"session","version":"1.0","id":"sess-001","timestamp":"2024-08-20T12:00:00Z","cwd":"/tmp/my-project"}
{"type":"message","id":"msg-001","parentId":null,"timestamp":"2024-08-20T12:00:01Z","message":{"role":"user","content":"Hello","timestamp":"2024-08-20T12:00:01Z"}}
{"type":"message","id":"msg-002","parentId":"msg-001","timestamp":"2024-08-20T12:00:02Z","message":{"role":"assistant","content":"Hi there","timestamp":"2024-08-20T12:00:02Z"}}
{"type":"model_change","from":"gpt-4","to":"claude-3","timestamp":"2024-08-20T12:00:03Z"}
{"type":"message","id":"msg-003","parentId":"msg-002","timestamp":"2024-08-20T12:00:04Z","message":{"role":"toolResult","content":{"type":"text","text":"Tool output here"},"timestamp":"2024-08-20T12:00:04Z"}}
{"type":"compaction","timestamp":"2024-08-20T12:00:05Z","message":"Context compacted at turn 10"}
{"type":"thinking_level_change","level":2,"timestamp":"2024-08-20T12:00:06Z"}
{"type":"message","id":"msg-004","parentId":"msg-003","timestamp":"2024-08-20T12:00:07Z","message":{"role":"assistant","content":[{"type":"text","text":"Response text"},{"type":"tool_use","tool_name":"search"}],"timestamp":"2024-08-20T12:00:07Z"}}