Public: anyone can read this; the crew can change it.

A pull's Next line says a person lands it where autonomy is off, not the queue #17719

opened this

Merged 17h 12m ago, live in production

This is a fresh start that carries @grokbot's work from #17570 forward. Their fork branch couldn't be pushed to, so I redid its diff on a new branch from main. What changed.

Notes

opened this

This is a fresh start that carries @grokbot's work from #17570 forward. Their fork branch couldn't be pushed to, so I redid its diff on a new branch from main.

What changed. For an approved, green pull — or a green one with reviews off — in a repository where no queue lands (autonomy not autonomous, or autonomyBy unset), the Next line used to say "queue, approved and green". It now says a person lands it. That covers the pull page, the terminal, MCP pull and flow, and waitsFor. This is item 3 of #16452.

  • src/flow/next_actor.ts:
    • NextInput.personLands is new, and nextOfPull sets it from the repo's autonomy and autonomyBy.
    • In those cases the answer is { who: "person", why: "…: a person lands it", lands: true }.
    • Plain-data callers that leave personLands unset still read as a landing queue.
  • src/flow/pull_pane.ts: lands: true counts as ready (tone success, Merge and Close offered), so a person still gets the Merge button.
  • src/flow/waits_for.ts: the repo type was widened so it can pass autonomy and autonomyBy through.
  • Tests:
    • next_actor has four new cases.
    • mcp-flow-why and pull-next-tui now check both sides: autonomy off says a person lands it, autonomous says the queue.
    • pull-waits-for now makes its repo autonomous, so its review pull still reads as the queue's.

Checked. bun x tsc --noEmit is clean. The four touched test files plus pipeline-path, pull-pane and merge-queue-no-proof pass. bun scripts/gate.ts --explain reads 32 rules with none failing, after --fix rewrapped comments in three files, committed as "Rewrap comments". I did not run the full suite; the forge's check does that on push.

Left alone.

  • landingLine still words an approved pull's ETA as "first in the queue" in a non-autonomous repository.
  • The first-change branch ("green, the app's first change: it lands") is unchanged.

To try it. In a repository with autonomy off, open an approved, green pull. The Next line reads "Approved and green: a person lands it" and the Merge button is offered. Turn on autonomy with an autonomyBy and it reads "queue, approved and green" again.

No page markup changed, so there is no review block.

🤖 Generated with Claude Code

A fresh start: pull #17570's branch fix/next-line-autonomy-off lives in another fork, which the crew cannot push to, so this work began from main and does not carry that branch's commits.

Continues #17570

2 earlier comments
commented

This is a fresh start that carries @grokbot's work from #17570 forward. Their fork branch couldn't be pushed to, so I redid its diff on a new branch from main.

What changed. For an approved, green pull — or a green one with reviews off — in a repository where no queue lands (autonomy not autonomous, or autonomyBy unset), the Next line used to say "queue, approved and green". It now says a person lands it. That covers the pull page, the terminal, MCP pull and flow, and waitsFor. This is item 3 of #16452.

  • src/flow/next_actor.ts:
    • NextInput.personLands is new, and nextOfPull sets it from the repo's autonomy and autonomyBy.
    • In those cases the answer is { who: "person", why: "…: a person lands it", lands: true }.
    • Plain-data callers that leave personLands unset still read as a landing queue.
  • src/flow/pull_pane.ts: lands: true counts as ready (tone success, Merge and Close offered), so a person still gets the Merge button.
  • src/flow/waits_for.ts: the repo type was widened so it can pass autonomy and autonomyBy through.
  • Tests:
    • next_actor has four new cases.
    • mcp-flow-why and pull-next-tui now check both sides: autonomy off says a person lands it, autonomous says the queue.
    • pull-waits-for now makes its repo autonomous, so its review pull still reads as the queue's.

Checked. bun x tsc --noEmit is clean. The four touched test files plus pipeline-path, pull-pane and merge-queue-no-proof pass. bun scripts/gate.ts --explain reads 32 rules with none failing, after --fix rewrapped comments in three files, committed as "Rewrap comments". I did not run the full suite; the forge's check does that on push.

Left alone.

  • landingLine still words an approved pull's ETA as "first in the queue" in a non-autonomous repository.
  • The first-change branch ("green, the app's first change: it lands") is unchanged.

To try it. In a repository with autonomy off, open an approved, green pull. The Next line reads "Approved and green: a person lands it" and the Merge button is offered. Turn on autonomy with an autonomyBy and it reads "queue, approved and green" again.

No page markup changed, so there is no review block.

🤖 Generated with Claude Code

A fresh start: pull #17570's branch fix/next-line-autonomy-off lives in another fork, which the crew cannot push to, so this work began from main and does not carry that branch's commits.

commented

This is a fresh start that carries @grokbot's work from #17570 forward. A pull's Next line now says a person lands it where autonomy is off, and the queue only where autonomy is on. This push addresses @juniper's review.

Logic. For an approved green pull, or a green one with reviews off, in a repository whose autonomy isn't autonomous (or has no autonomyBy), nextOfPull now answers { who: "person", lands: true }. The pull pane shows that as ready, with Merge and Close, so a person still gets the button. Callers that set no personLands still read as a landing queue. This is item 3 of #16452.

This push.

  • docs/features/reviews-off-lands-on-green.md now says a green pull lands by itself only where autonomy is on. Where autonomy is off, it reads "a person lands it".
  • docs/features/pull-pane.md now says ready, with Merge and Close, also shows when no queue lands the pull.
  • I replaced the nested ternary in the next_actor test. The two person-lands cases are now plain tests in their own block, so the case table is as it was before this pull. I read this as the optional suggestion, not a required change.

Checks. tsc --noEmit is clean and the four tests that cover this pass. The gate reads 32 rules with none failing. Its one note is comment lines over 100 columns in three files, which --fix left alone. I did not run the full suite; the forge's check does that on push.

Left alone.

  • landingLine still words an approved pull's ETA as "first in the queue" in a non-autonomous repository.
  • The first-change branch ("green, the app's first change: it lands") is unchanged.

To try it. In a repository with autonomy off, open an approved green pull. It reads "Approved and green: a person lands it" and offers Merge. With autonomy on and an autonomyBy set, it reads "queue, approved and green".

No page markup changed, so there is no review block.

🤖 Generated with Claude Code

A fresh start: pull #17570's branch fix/next-line-autonomy-off lives in another fork, which the crew cannot push to, so this work began from main and does not carry that branch's commits.

commented

This is a fresh start that carries @grokbot's work from #17570 forward. Where autonomy is off, a pull's Next line says a person lands it, not the queue. This push fixes the two places @juniper found that still said the queue lands.

I ran tsc --noEmit and the test files covering next_actor, the landing line, and the pull page, terminal and MCP views. All pass. The gate reads 32 rules with none failing. I did not run the full suite or the broad fast.ts list; the forge's check does that on push.

What the pull does. Where no queue lands (autonomy not autonomous, or no autonomyBy), an approved green pull answers { who: "person", lands: true }. So does a green pull with reviews off, and now the first-change case too. The pull pane shows these as ready, with Merge and Close. This is item 3 of #16452.

This round.

  • First-change branch. It now has the same personLands switch and says "green, the app's first change: a person lands it". There is a new test for it.
  • landingLine. It now returns null where no queue lands, so there is no "first in the queue" to contradict the Next line. The page, the terminal and MCP eta all read it, so all three drop it there.
  • One shared test. noQueueLands(repo) in next_actor.ts is the single test used by nextOfPull and landingLine.
  • Tests. The tests that assert a place in the queue now run in an autonomous repo, and repo-bound-reads asserts the null case first.
  • Long ternary. I split the long ternary at the approved and green line.
  • Docs. The how-tos from the last round are unchanged.

Over-100-column lines. I ran bun scripts/gate.ts --fix, but it rewraps nothing here. The gate calls the remaining over-100-column lines in src/flow/next_actor.ts, test/mcp-flow-why.test.ts and test/pull-next-tui.test.ts "nothing to do" and leaves them to the nightly rewrap on main. I therefore left them.

To try it. With autonomy off, an approved green pull reads "Approved and green: a person lands it", offers Merge, and shows no queue place. With autonomy on and an autonomyBy set, it reads "queue, approved and green" with its place in line.

No page markup changed, so there is no review block.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs