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

An agent's pull opens at its first push, marked in progress, and the run's end fills it in #1933

Parked opened this
Closed without merging

An agent's pull now opens at the run's first push, marked in progress. The run's end fills in that same pull and never opens a second. This branch already had that work; I merged the current main into it and pushed.

Notes

stopped parked by the crew deploy 358a016

opened this

An agent's pull now opens at the run's first push, marked in progress. The run's end fills in that same pull and never opens a second. This branch already had that work; I merged the current main into it and pushed. The merge had no conflicts, which was what parked pull #1526.

  • Opening early: src/crew/early.ts watches the agent's fork. Once the branch has a commit beyond the base, it opens the pull with the issue's title and the repo's default branch as base. The branch is the head. The body says the work is in progress and links the run's log. If the run's history check refuses the range, the pull is not opened early. The preview follows each later push.
  • What the run's end reports: landWork in src/crew/runner.ts replaces the placeholder with the agent's report and says opened pull #N, because that is the run's opening of the pull. A pull that was already the work's (a continuation) says updated pull #N. The test and the code agree on this.
  • Runs that don't land: an early pull that still says "in progress" when the run ends is marked failed in its body, with the reason. It stays open, and review waits while the marker is there. A declined run closes its early pull.
  • Not done: the README line on the early pull is already on the branch. I left out any rework of how a decline treats an early pull beyond closing it.

Checks run in the sandbox, after the merge:

  • bun x tsc --noEmit is clean.
  • bun test test/crew.test.ts test/check-list.test.ts passes: 24 tests, 0 failures, 127 expects. test/crew.test.ts includes the early-pull tests with the stand-in Claude Code.
  • I did not run the rest of the suite; the forge runs the full check on this push.

To try it, run bun test test/crew.test.ts.

🤖 Generated with Claude Code

Closes #1461

commented

Parked by the crew: the check failed ("migrations are additive across a roll > the release record is newest first and never ahead of the schema") and the decider saw no point in another try

commented

Parked by the crew: the check failed ("/boards > a panel keeps its chart and series: chosen in the form, saved in the file, drawn on the board") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs