- All playbooks
- Give an agent the last mile: watch CI, rebase and retry flaky checks
Give an agent the last mile: watch CI, rebase and retry flaky checks
Let an agent shepherd each change through CI to the merge.
Company examples
How OpenAI used this technique
Read what OpenAI changed and follow the original sources.
Give an agent the last mile: watch CI, rebase and retry flaky checks
Translated to GitHub Actions
- What OpenAI built
- OpenAI's Symphony gives each ticket's agent the gh CLI and skills to watch CI, rebase and retry flaky checks.
- Your GitHub Actions version
- An agent that watches CI on its pull request, rebases when needed, resolves conflicts and retries flaky checks.
OpenAI's Symphony gives each ticket's agent the gh CLI and skills to read CI logs. In a large monorepo, where the last mile of landing a pull request is slow and fragile, the system watches CI, rebases when needed, resolves conflicts and retries flaky checks. By the time a ticket reaches Merging, the team has high confidence the change will land without human babysitting.
- Use it when
- Landing a pull request takes repeated manual rebases, conflict fixes and reruns of the same flaky checks.
- Before applying it
- Bound the retries and record each flake so a retried check still leaves a trail to fix, and leave required checks and approvals in force.
- GitHub Actions adaptation
- Compare the source system with your own workflow before applying this translation.
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