One way onto main
Four core repositories protect their main branch: the research service, the tooling repository, the market-data service and its web app. The research service and the tooling repository land approved work through merge lanes, and the two market-data repositories through GitHub auto-merge. An approval names the exact 40-character commit it read. It carries to a later commit only when that commit just catches up with main and the author's own change is byte-for-byte what was approved; anything else needs a fresh review. The other repositories follow the same review rule as working practice, without branch protection.
- A lane that arms itself. Every two minutes the tooling repository's lane arms each open pull request that is approved, green and within its rules, then merges them one at a time.
- A batch lane. Since 9 October the research service's main branch has had one writer: a lane that tests approved pull requests together on fresh main before they merge. It has built more than 250 batches since 19 September and landed 193. When the queue is short a batch holds a single pull request; 35 of the 193 held two to five.
- No self-merge. An author never queues its own pull request to merge. That happens only after an approval that still covers the head commit.
- CI can't mark its own work. In the research service, a change to the CI itself merges alone, with the full suite, so it is never batched with work it would judge.
- A fast route for fixes. In the tooling repository, repairs to CI get reserved capacity, so a broken pipeline is fixed quickly.
- Flakes have owners. A failure is confirmed on the same commit before anyone acts. A quarantined test needs an owner and an expiry within seven days, and no repository may quarantine more than five.