DocsGitHubInstall

pal cli compaction

The shadow rule that predicts an auto compaction

Usage
pal cli compaction <command>

pal cli compaction backtest

Label logged auto compactions and score the rule against them

Usage
pal cli compaction backtest [options]
OptionWhat it does
--margin <fraction>[,...]Margins as fractions of the usable window (default 0.2)
--days <n>Days of history (default 30)
--window <tokens>[@<until>]Window schedule where no compaction_near event gives one; repeatable (repeatable)
--jsonMachine-readable output

Each auto compaction is labelled threshold, idle, no_context or unexplained. For each margin, the report gives the threshold compactions the rule warned about and the ones it missed, its false alarms, and the median lead in minutes and tokens.