
> baoer-pi-agent-labs@1.0.0 checkpoint:projection
> node src/projection-checkpoint.ts

all entries=4, active branch=3
before compaction: [{"role":"user","content":"研究 SDK 会话恢复","timestamp":1},{"role":"assistant","content":[{"type":"text","text":"方案 B：SessionManager.open 后创建 SDK"}],"api":"faux","provider":"faux","model":"faux-1","usage":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"totalTokens":0,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"stop","timestamp":1791045717339},{"role":"user","content":"保留问题：为什么 A 不可靠？","timestamp":2}]
after compaction: [{"sourceType":"compaction","messages":[{"role":"compactionSummary","summary":"已否决 A；选 B。还需验证下一请求的 canonical projection。","tokensBefore":1000,"timestamp":1791045717342}]},{"sourceType":"message","messages":[{"role":"user","content":"保留问题：为什么 A 不可靠？","timestamp":2}]}]
这里手写摘要以隔离投影机制；没有运行模型摘要生成。
