Repository navigation
v0.4.54 — M35: bound Pi event-log growth
M35 accepted — Pi executor event-log growth bounded
Slice 1 (#276) compacted plain-text deltas; slice 2 (#278) found the same growth in thinking/toolcall deltas on a real run and fixed it.
Measured evidence (real Pi runs, MiniMax-M3.1-Flash-Preview):
- Defect run on merged main: 31,270,608 bytes in ~60 s (thinking_delta 88%, toolcall_delta 10.5%)
- Offline replay of that stream through the fix: 31,270,608 → 832,651 bytes (37.6x); all 2,730 deltas compacted, 0 pass-through; held state peaks at 16,257 chars
- Live re-runs: 49.75x and 51.46x compression; end-block reconstruction 24/24 (offline) and 23/23, 19/19, 12/12, 9/9 (live runs); pi_usage and watch sequences identical to rebuilt unfiltered streams; final text reconstruction exact
- Interrupted runs (host restart kill, risk_blocked stops) replay cleanly; all lines parse
What changed: PiEventCompactor now compacts thinking/toolCall cumulative snapshots by contentIndex, tracks the consumed prefix so batched snapshots still compact, passes through anything unrecognised, and never drops *_end receipts. No subcommand, flag, or SKILL changes.