- All playbooks
- Agent PR volume
- Gate aggregate jobs on !cancelled() so cancelled runs skip them
Gate aggregate jobs on !cancelled() so cancelled runs skip them
A cancelled run ends without assigning runners to its aggregate jobs.
Company examples
How OpenClaw used this technique
Read what OpenClaw changed and follow the original sources.
Gate aggregate jobs on !cancelled() so cancelled runs skip them
A cancelled run ends without assigning runners to its aggregate jobs.
On a superseded run, all 23 old jobs ended cancelled and the four aggregate jobs had no runner assigned. Source
- Use it when
- Your CI cancels superseded runs and has verdict or aggregate jobs gated with if: always().
- Before applying it
- In any run that was not itself cancelled, a dependency that ended red, cancelled or skipped still turns the aggregate red.
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