roadmap BUILT

204. A pushed lane branch with no draft pull request is a claim nobody can see

Built. In brief. AGENTS.md §90 (the claim is a draft pull request) says a lane's first act is a draft pull request, and says why: the draft is the claim. It is how two lanes cannot silently take the same milestone, the board is gh pr list --draft, it costs one command, and a draft cannot be stuck in the merge queue because a draft cannot be merged.

Without this, nothing checks it: two lanes can push milestone/* branches and open nothing, and the board is empty while two milestones are being worked.

Why prose was never going to hold this

The instruction was in both briefs, in the section headed First act, with the exact command to run. Both lanes read it and neither did it. That is rung four behaving exactly as AGENTS.md says rung four behaves, and it is the second instance of the same shape in this project's short history. The first was lanes ending their turn mid-gate, which that file already records as a recurring failure needing a standing rule rather than a per-brief reminder.

A brief is prose. Prose in a brief is not a weaker version of a mechanism; it is the same rung as prose anywhere else.

The check

Compare the pushed lane branches against the open drafts, and report the branches with no claim:

git ls-remote --heads origin 'milestone/*'   # what is being worked
gh pr list --draft --json headRefName        # what has claimed it

A report rather than a gate, in helpers/merge-drain.sh's family: nothing should fail a build over it, because the lane that most needs telling is one that is mid-work and about to open its pull request anyway. What it must do is be visible without anyone asking, which is the property the current arrangement lacks entirely.

What it must not do

What shipped

helpers/lane-claim-check.sh (provisional name), called once per pass from helpers/merge-drain.sh before its own empty-queue return. That siting is the answer to the open question below, and the reason is that the drain is the only unattended runner this project has. It fires every five minutes under launchd on patagonia, and a report nothing runs is the state this milestone was minted to end. A GitHub Actions cron was the alternative and is strictly better on one axis (it survives patagonia being asleep, which AGENTS.md records as an accepted gap rather than a solved one). It was not taken because the branch that built this was fenced out of .github/workflows/, and because adding a second unattended runner to say one more sentence is more machinery than the sentence is worth. If the drain's own launchd job ever goes away, this goes with it, and that is the coupling to know.

The grace period is 15 minutes, and the number was measured rather than picked. The branch that built this took 3 minutes from branch_creation to its draft pull request, and that included writing the file that made the branch non-empty, which is not optional. GitHub refuses a pull request with no commits between the head and main, so the literal first-act command block in every brief cannot be run straight through. 15 is five times the observed case and well under merge-drain.sh's 75-minute stale-draft threshold, which is the neighboring report and the one this must not shadow.

The clock runs from branch creation and a later push does not reset it, which is the opposite choice from stale_drafts next door and is deliberate. A lane that keeps committing is exactly the lane whose missing claim matters, so a last-commit clock would go quiet for the branches being worked hardest. The birth time comes from the repository activity feed, because a commit date cannot answer the question (a branch pushed empty carries main's commit date and would be reported the instant it existed).

It found a live case on its first run, which is the only evidence worth having. milestone/194-falsification-roadmap-status had been pushed with no pull request, and milestone/121-ripgrep was correctly reported as a merged lane's leftover branch rather than as a missing claim.

BUGS

Follow-on

Index row

§90 says the draft is the claim and nothing checks it, so the board can be empty while two milestones are being worked. Prose in a brief is rung four. A report in helpers/merge-drain.sh's family, never a gate, comparing git ls-remote --heads origin 'milestone/*' against gh pr list --draft. Shipped as helpers/lane-claim-check.sh, called once per pass from the merge drain, which is the only unattended runner this project has. Grace period 15 minutes, measured: the branch that built it took 3 minutes from branch creation to draft, and that included writing the file GitHub requires before it will accept a pull request at all. The clock runs from branch birth and a later push does not reset it, which is the opposite of the stale-draft report next door and for the opposite reason. Found a live unclaimed branch on its first run.