Public: anyone can read this; the crew can change it.
A changes-requested pull always moves: the requested pass reassigns it to its builder, as the steward has had to by hand #2852
This pull makes a changes-requested pull always get another run. If a reviewer asks for changes and the builder's run ends without a push, the pull gets one more run on its own, so nobody has to reassign it by hand.
stopped closed without shipping deploy 4984286
3 earlier comments
When a reviewer asks for changes and the builder's run ends without a push, the pull now gets one more run on its own, so nobody has to reassign it by hand. If that run also ends without a push, the pull waits for a person.
Why it stalled. The requested pass (src/crew/requested.ts) stopped at "a run since the verdict ended without a push". Retrying would not have helped: the builder's own reply was now the newest thing on the pull, so the follow-up guard (nothingNew in src/crew/news.ts) found "nothing new" and skipped it. Only a reassignment, whose run skips that guard, got the pull moving. In autonomous mode answeredWithoutChange also closed the pull after that first run.
What changed
src/core/requested.ts: two new queries.requestedPullreads one pull's row with the same query as before, and the row now carriesreviewId.unansweredRunslists the runs other than reviews that started after the verdict and ended. While the verdict is still on the head, each of those ended without a push.src/crew/news.ts:unansweredVerdicttreats the verdict as news again when exactly one such run has happened since it.nothingNewchecks this last, so the usual case costs no extra queries. This lets the second run through both the queue-time and start-time guards.src/crew/brief.tsandsrc/crew/runner.ts: that second run's brief quotes the reviewer's words and what the last run answered (its reply on the pull, or its summary if it left none). It also says this is the last run before a person takes over.src/crew/requested.ts: the pass queues that one extra run. AfterUNANSWERED_RUNS(2) it reports "2 runs since the verdict ended without a push; waits for a person". It still queues at most one run per pull at a time, and only within the free builder slots.- The tick line now says why the rest did not move, for example
requested="1/4 moved; 2 handed to a person after the review rounds, 1 a run is in flight", so "0/N moved" no longer looks like a stall when every pull is legitimately waiting. src/crew/autonomy.ts:answeredWithoutChangecloses the pull only after that second run has also ended without a push.
Tests
test/requested.test.ts:- A pull gets a follow-up within one tick, and a second tick does not start another.
- After a run ends without a push, one more run is queued with the verdict and the previous answer.
- After that one, the pull waits for a person.
- The brief's wording and the tick-line wording are each checked.
- I changed two existing assertions because the issue changes the behaviour they described:
- In
test/requested.test.ts, "a run that answered nothing is not asked again" is now "asked once more, then a person". - In
test/review-gate.test.ts, the pull is now closed after the second run without a push, not the first.
- In
- The type check passes, and the crew, guard, review, park and autonomy suites pass.
- Three failures from that run are not caused by this change:
crew-interrupted("a young lock that blocks checkout") fails on main too.crew-sandbox-realneeds ripgrep, which this sandbox doesn't have.crew-proposaltimed out under load but passes when run alone.
Not done: pulls marked "handed to a person after the review rounds" still don't move on their own. That stop is a deliberate step for a person after three rounds of review, and the issue's done list doesn't ask to lift it. A person reassigning the pull still moves it, as before.
To try: on an assisted repository, request changes on a builder's pull and let the builder's run end without pushing. On the next tick a second feedback run is queued, and its brief quotes the verdict and the previous answer. When that run also ends without a push, the tick logs "2 runs since the verdict ended without a push; waits for a person".
🤖 Generated with Claude Code
This pull makes a changes-requested pull always get another run. If a reviewer asks for changes and the builder's run ends without a push, the pull gets one more run on its own, so nobody has to reassign it by hand. That run's brief includes the verdict the previous run left unanswered (unanswered in TaskInput, from news.ts).
The failed check was a merge conflict with main in src/crew/brief.ts. This branch and #2840 each added a new optional field at the same place in TaskInput: unanswered here, design there. The merge keeps both fields and changes nothing else.
The type check is clean. The tests that cover this change and the merged code pass (60 tests in 11 files): requested, review-gate, crew-review, crew-feedback, crew-brief-* and the design-review suites.
The branch already has the merge as 4984286c, under an auto-generated message I didn't write. I tried to give it a plainer message, but that commit was already on the branch and replacing it would need a force push. I left it as it is; the code is identical either way.
🤖 Generated with Claude Code
A changes-requested pull with its verdict on the current head is no longer stuck after one run that pushes nothing. The requested pass now gives that verdict one more run and only then leaves the pull to a person.
Why it stalled. The requested pass in src/crew/requested.ts gave up on any run after the verdict that ended without a push. A retry would not have helped either. The builder's own reply was the newest word on the pull, so the follow-up guard (nothingNew) found "nothing new" and skipped it. Only a person reassigning the pull got a new run started. In autonomous mode, answeredWithoutChange also closed the pull after that first run.
What changed
src/core/requested.ts: the existing query can now also read a single pull (requestedPull), and its row carriesreviewId. A newunansweredRunslists the runs, other than reviews, that started after the verdict and ended.src/crew/news.ts:unansweredVerdictcounts the verdict as news again when exactly one such run has happened.nothingNewasks this last, so the common case costs no extra queries. This lets the extra run through the guard both when it is queued and when it starts.src/crew/brief.tsandsrc/crew/runner.ts: the extra run's brief quotes the reviewer's words and the previous run's answer: its reply on the pull, or else its run summary. It also says that after this run a person takes the pull.src/crew/requested.ts: the pass queues that extra run. AfterUNANSWERED_RUNS(2) it reports "2 runs since the verdict ended without a push; waits for a person". The tick line now says why the rest did not move, for example1/4 moved; 2 handed to a person after the review rounds, 1 a run is in flight.src/crew/autonomy.ts:answeredWithoutChangecloses the pull only once that extra run has also ended without a push.
Tests. test/requested.test.ts covers the issue's case: a pull with an idle builder gets a follow-up within one tick, and a second tick starts no second run. It also covers the extra run and its brief, the hand-off to a person, and the new tick-line wording. Two existing assertions changed because the issue changes the behaviour they checked:
- "a run that answered nothing is not asked again" now expects one more run, then a person.
- In
test/review-gate.test.ts, the pull is now closed after the second run without a push, not the first.
The type check is clean and the crew, guard, review, park and autonomy suites pass, except three failures I don't think this change causes:
crew-interruptedfails on main too.crew-sandbox-realneeds ripgrep, which isn't installed in this sandbox.crew-proposaltimed out under load but passes when run alone.
The forge's own check on the current head (4984286c, which also merges main into this branch) was still running when I looked. This run changed no code.
Not done: pulls "handed to a person after the review rounds" still don't move on their own. That hand-off after three rounds is deliberate, and the issue doesn't ask to remove it. Reassigning the pull still moves it, as before.
To try: on an assisted repository, request changes on a builder's pull and let the builder's run end without pushing. The next tick queues one more feedback run, and its brief quotes the verdict and the previous answer. When that run also ends without a push, the tick logs "2 runs since the verdict ended without a push; waits for a person".
🤖 Generated with Claude Code
Declined: nothing is left to do on this branch. The pull for issue #2847, pull #2852, is open and mergeable, and is waiting for a person to merge it. The crew's reviewer approved it, and the check after approval passed on a head already proven green. The branch has every commit on main and has nothing new to push. Nothing was said on the issue or the pull since my last run, so I changed no code and pushed nothing. Run log: https://forge.open-platform.sh/trevato/forge/runs/01m5ardfg3bnx3fgjzw75r4x2w
This pull makes a changes-requested pull always get another run. If a reviewer asks for changes and the builder's run ends without a push, the pull gets one more run on its own, so nobody has to reassign it by hand. That run's brief includes the verdict the previous run left unanswered (
unansweredinTaskInput, fromnews.ts).The failed check was a merge conflict with main in
src/crew/brief.ts. This branch and #2840 each added a new optional field at the same place inTaskInput:unansweredhere,designthere. The merge keeps both fields and changes nothing else.The type check is clean. The tests that cover this change and the merged code pass (60 tests in 11 files):
requested,review-gate,crew-review,crew-feedback,crew-brief-*and the design-review suites.The branch already has the merge as
4984286c, under an auto-generated message I didn't write. I tried to give it a plainer message, but that commit was already on the branch and replacing it would need a force push. I left it as it is; the code is identical either way.🤖 Generated with Claude Code
Continues #2852