Skip to content

land-pr: invoking it is the authorisation, not a request to report - #779

Merged
github-actions[bot] merged 1 commit into
mainfrom
skill/land-pr-takes-control
Nov 7, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
skill/land-pr-takes-control

Conversation

@athvin

@athvin athvin commented Nov 7, 2026

Copy link
Copy Markdown
Owner

/land-pr <n> should mean "take this to green on main". The skill already
behaved that way on paper — AUTO_MERGE defaults true — but said so in a place
and a scope that invited the opposite.

What was actually wrong

Two things, and together they were worse than either:

  1. The standing authorisation sat in a parenthetical inside Defaults:, and
    it was scoped to the merge. Nothing said the rest of the arc — committing a
    fix, pushing it, rerunning a flaky job, opening a follow-up PR, reverting at
    the depth cap — was equally pre-authorised.
  2. The first entry on ## Stop and ask instead of looping was "a merge
    without AUTO_MERGE or an explicit yes"
    — a permission checkpoint filed
    among genuine blocks like a destructive Terraform plan and an exhausted
    budget. A list that mixes "I need your decision" with "I need your
    permission" trains the reader toward asking.

Read together the skill described a self-driving procedure and then offered a
question at every phase boundary.

The change

  • New ## Invoking this skill is the authorisation near the top: being handed a
    PR means taking it to green on main, not reporting on its progress. It names
    the actions that need no per-step yes and states plainly that merging and then
    asking whether to watch main is the same as not having run Phase 3.
  • Phase 2 loses its "only with AUTO_MERGE=true or an explicit yes" preamble.
    Pausing is now the thing that needs requesting, and AUTO_MERGE=false is how
    a user requests it — with the exit defined ("green, awaiting merge", merge
    command written out).
  • ## Stop and ask instead of looping → ## Blocked — stop and say why, stated
    as the whole list, plus an explicit not a block list: a red check
    (diagnose it), a flaky check (rerun it), a conflicted branch (rebase it), a
    long CI pass (keep polling — the user asked for the polling), a phase
    boundary.
  • House rule 4 disambiguated. allow_auto_merge is a GitHub feature that is off
    here; AUTO_MERGE is this skill's flag for whether you pause. The names
    collide, the facts are unrelated, and the new section leans on the flag.
  • Removed a now-duplicated line about one-line progress reporting, and stopped
    restating the three budget numbers in two places.

The failure being prevented looks diligent, which is why it needed writing
down: a procedure that reports and waits at every boundary leaves the user
polling the assistant that was asked to do the polling — and the false green
this skill exists to defeat is exactly what they will accept while doing it.

Eval 5 is the point

Scenarios 1–4 all end at a stop condition, so a session that asks for
permission at every boundary passes every one of them. The new scenario is
the only one that fails if control is handed back early: a PR with a genuine
compile error, a fix available, and the requirement that diagnose → push →
poll → merge → main loop happens in one uninterrupted turn, with "want me to
continue?" named as a must-not.

It also carries its own re-run trigger: every entry added to the blocked list
is a new way to stop legitimately, and therefore a new way to stop
illegitimately.

Gates

make skills-check green, tree clean. No generator touched, so there is no new
drift surface; the body and eval counts are both still inside the gated limits.

Sequencing note: #777 also edits this file, but only its description line (a
reciprocal routing clause for pr-review), so the two do not overlap. Whichever
lands second rebases cleanly.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MFnHDWdSvJoDtZLCg5dyyv

The autonomy was already there and said in the wrong place: `AUTO_MERGE=true`
sat in a parenthetical inside `Defaults:`, scoped to the merge alone, while the
first entry on the stop list was "a merge without `AUTO_MERGE` or an explicit
yes" — a permission checkpoint filed among genuine blocks. Read together, the
skill described a self-driving procedure and then invited a question at every
phase boundary.

So the asking is inverted. A new section states that being handed a PR means
taking it to green on `main`, names the actions that need no per-step yes
(commit, push, force-with-lease over own commits, rerun, squash-merge,
follow-up PR, revert at the depth cap), and says plainly that merging and then
asking whether to watch `main` is the same as not having run Phase 3.

The stop list becomes "Blocked — stop and say why", with the merge-permission
bullet gone and an explicit *not* a block list: a red check, a flaky check, a
conflicted branch, a long CI pass, a phase boundary. The failure being
prevented looks diligent, which is why it needed writing down — a procedure
that reports and waits at every boundary leaves the user polling the assistant
that was asked to do the polling.

Eval 5 is new and is the only one that can catch this: scenarios 1–4 all end at
a stop condition, so a session asking permission at every boundary passes every
one of them.

Also disambiguates house rule 4 — `allow_auto_merge` (a GitHub feature that is
off) versus this skill's `AUTO_MERGE` (whether you pause) — since the names
collide and the new section leans on the flag.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@athvin athvin added the merge-bus eligible for the merge bus label Nov 7, 2026
@github-actions github-actions Bot mentioned this pull request Nov 7, 2026
@github-actions
github-actions Bot merged commit 4d6e604 into main Nov 7, 2026
35 checks passed
@github-actions
github-actions Bot deleted the skill/land-pr-takes-control branch November 7, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-bus eligible for the merge bus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants