The four-strategy compaction bake-off is a Claude Code dynamic workflow. The exact script that produced Context Diet — Lab 001 is preserved here so the experiment can be replayed.
loadBearing if CI-enforced/incident-codified.bakeoff.workflow.js:
CLAUDE → absolute path to the target file.LIMIT / TARGET → the harness char budget and your headroom target.CONSTRAINTS string’s “must stay fully inline” list → re-derive the do-not-touch set
for your file (which sections are CI-enforced or incident-codified?).winner.claudeMd + winner.newFiles to Phase C (apply), then run
context_diet.py <file> --json for the after-measurement and make_charts.py for the charts.See METHODOLOGY.md §4 for the full reproduction protocol and §5 for threats to validity. The workflow is stochastic in candidate wording but deterministic in which rules must survive — cache the winning corpus and re-score it for a strict replay.
The canonical script is committed alongside this note as
bakeoff.workflow.js.