implement-issue continues its own open pull request; interactive runs plan first #30

Merged
dario merged 1 commit from dario/continue-pr into main 2026-11-20 10:38:41 +01:00 AGit
Owner

Summary

  • implement-issue continues its own open pull request. Before the run, the dispatcher looks for an open pull request the factory's account opened for the same work item (branch prefix factory/issue-<n>-, or the tracker item's branch). If there is one, it checks out that branch and names the pull request in the run prompt. The skill has the agent read the feedback (get_pull_request, list_reviews), address it, push to the same branch and comment on the pull request instead of opening a new one. The run succeeds when the pull request's head moved. Several open ones are refused. Until now the skill ended the run when it found an existing pull request, and it relied on the agent noticing it.
  • Interactive runs start with a plan and wait (prompts/interactive-rules.md), so the person can correct it or add instructions before anything changes. Until now the agent started working on the task prompt right away.

Evidence

  • After the review of the factory's pull request for #27, continuing it needed a new interactive run, and the instruction to continue the existing branch could only be given by interrupting the agent, which had already started on the task prompt.
  • The same gap appeared after the review of the Azure DevOps pull request for #23: there was no way to have the factory address review feedback on its own pull request.

Test evidence

  • just check: passes.
  • New tests in internal/dispatch: an open pull request is continued (prompt wording, working copy on its branch with its commits; success with a push, no_result without); pull requests from other accounts are ignored; two open ones are refused; the interactive rules contain the plan-first rule.

Open questions

  • The agent sees review summaries and conversation comments, but not inline review comments (list_reviews returns no inline comments).

🤖 Generated with Claude Code

## Summary - **implement-issue continues its own open pull request.** Before the run, the dispatcher looks for an open pull request the factory's account opened for the same work item (branch prefix `factory/issue-<n>-`, or the tracker item's branch). If there is one, it checks out that branch and names the pull request in the run prompt. The skill has the agent read the feedback (`get_pull_request`, `list_reviews`), address it, push to the same branch and comment on the pull request instead of opening a new one. The run succeeds when the pull request's head moved. Several open ones are refused. Until now the skill ended the run when it found an existing pull request, and it relied on the agent noticing it. - **Interactive runs start with a plan and wait** (`prompts/interactive-rules.md`), so the person can correct it or add instructions before anything changes. Until now the agent started working on the task prompt right away. ## Evidence - After the review of the factory's pull request for #27, continuing it needed a new interactive run, and the instruction to continue the existing branch could only be given by interrupting the agent, which had already started on the task prompt. - The same gap appeared after the review of the Azure DevOps pull request for #23: there was no way to have the factory address review feedback on its own pull request. ## Test evidence - `just check`: passes. - New tests in `internal/dispatch`: an open pull request is continued (prompt wording, working copy on its branch with its commits; success with a push, `no_result` without); pull requests from other accounts are ignored; two open ones are refused; the interactive rules contain the plan-first rule. ## Open questions - The agent sees review summaries and conversation comments, but not inline review comments (`list_reviews` returns no inline comments). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Before an implement-issue run, the dispatcher looks for an open pull
request the factory's account opened for the same work item (branch
prefix factory/issue-<n>-, or the tracker item's branch). If there is
one, it checks out that branch, names the pull request in the run
prompt, and the skill has the agent address its feedback, push to the
same branch and comment on the pull request instead of opening a new
one. Such a run succeeds when the pull request's head moved. Several
open ones are refused. The agent no longer has to notice the existing
pull request itself; the skill used to end the run in that case.

Interactive sessions now start with a short plan and wait for the
person, so they can add instructions before anything changes; until
now the agent started working on the task prompt right away.

Evidence: continuing the factory's pull request for #27 after a review
needed a new run and an instruction the person could only give by
interrupting the agent; the same gap appeared after the review of the
Azure DevOps pull request for #23.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dario merged commit 89f92b943e into main 2026-11-20 10:38:41 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dario/factory!30
No description provided.