An approved pull that has waited a week
The tick names the oldest approved pull and the needs stack lists those approved a week ago. Past a week the engine also acts (src/crew/approved_week.ts, called from autonomyTick), in any repository; only landing needs autonomy:
- Landed when it merges clean and every check on its head is green. Only an autonomous repository lands it, through its merge queue (
landIfGreen); where autonomy is off a person lands it and the needs row stays. The engine never merges as a person it borrows, and never on its own account. - Handed to its builder to bring up to date when main moved under it: one conflict run, never past the failed-attempt limit since the approval.
- Closed when its repository is archived, or every issue it closes was dropped, with one comment saying why.
The git merge test runs once per pair of tips, so a pull that has not moved costs nothing on the next tick. A held pull, a red or missing check, a person holding it and a pull with no builder are left alone: the needs row stays the fallback. At most three pulls are acted on per tick.