- All playbooks
- Reuse validation for unchanged inputs
Reuse validation for unchanged inputs
Skip repeated validation only when the relevant inputs and previous passing result establish that the work is unchanged.
Compare approaches
How companies used this technique
Read what each company changed and follow the original sources.
Skip jobs whose tests already passed for the same inputs
Every Linear run first checks which paths a pull request touched and whether its tests already passed for the same inputs. The workflow gates on those checks at the job level, so skipped work never reserves a runner.
- Use it when
- Expensive jobs run on pull requests that leave their inputs unchanged, or run again after the same inputs already passed.
- Before applying it
- The gating jobs sit on the critical path, so keep them small and fast. A recorded pass has to cover every input the skipped job reads.
Avoid revalidating a transformation that changed nothing
The Ruby SDK's RBS formatter compares the final string with the original and skips lexing both again when they are identical. Changed output still gets the comment-preservation check before it is written.
Formatter median 5.79s to 4.11s across four warm local runs Source
- Use it when
- A formatter or code generator re-validates output that is identical to its input.
- Before applying it
- Compare the final output, after every restoration step. Every changed result still goes through the original checks.
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 playbookMove a CPU-bound test suite to a faster CPU
- 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