Skip to main content

Module playbook

Module playbook 

Source
Expand description

Incremental delta playbook for checkpoints (#541, EFF-4 — ACE principle).

ACE (Agentic Context Engineering, 2510.04618) showed that monolithic checkpoint rewrites cause brevity bias (repeated summarization loses detail) and context collapse (an observed 18k -> 122 token implosion, −29% accuracy). The cure: contexts grow as structured, itemized delta entries with stable IDs that are never rewritten — only appended, bumped (dedup-confirm), voted on, and locally evicted.

lean-ctx wires this into ctx_compress: every checkpoint distills the session into playbook deltas instead of re-summarizing prior summaries. Renders are ordered by stable ID, so unchanged prefixes stay prefix-cache friendly across checkpoints.

Structs§

Playbook
PlaybookEntry

Enums§

DeltaOutcome
Outcome of a delta insert.
EntryKind