- All playbooks
- Retain reusable compiler state and shorten repeated guard preparation
Retain reusable compiler state and shorten repeated guard preparation
Reusing compiler state avoids rebuilding the same analysis inputs in repeated pull request checks.
Company examples
How OpenClaw used this technique
Read what OpenClaw changed and follow the original sources.
Retain reusable compiler state and shorten repeated guard preparation
Reusing compiler state avoids rebuilding the same analysis inputs in repeated pull request checks.
Selected type graphs (11 core graphs plus extension tests, scripts and root tests) fell from 687.69 to 146.58 seconds in median command-wall time over three runs. Source
- Use it when
- Every pull request run starts type checks and guard scripts from scratch even when compiler inputs barely changed.
- Before applying it
- Restored state is revalidated by the compiler against current inputs, and cache invalidation controls cover changed fingerprints. Every selected type graph and guard still runs with no assertions weakened.
Company Playbooks
- Read Anthropic’s playbookRun only affected tests
- Read DoorDash’s playbookRun build and test in parallel, sharded across CI agents
- Read Linear’s playbookBenchmark the same job on faster hardware
- Read Mastra’s playbookStarSling runners for the slowest test workflow
- Read OpenAI’s playbookRank CI fixes by the minutes they save
- Read Ramp’s playbookType-check with a native checker
- Read Shopify’s playbookLet an agent iterate against one CI metric
- Read Spotify’s playbookBuild arm64 on native arm64 runners
- Read Stripe’s playbookRun only the tests a change can reach
- Read Uber’s playbookBuild the merge-queue speculations most likely to be needed
- Read OpenClaw’s playbookSelect only the tests and proofs a change can affect