Skip to content

test(agents): cover one-call recover of a gated candidate to a draft PR - #18871

Merged
chubes4 merged 2 commits into
mainfrom
fix/issue-17775-homeboy
Nov 23, 2026
Merged

chubes4 merged 2 commits into
mainfrom
fix/issue-17775-homeboy

Conversation

@chubes4

@chubes4 chubes4 commented Nov 23, 2026

Copy link
Copy Markdown
Member

Summary

Issue #17775 asks that homeboy agent-task recover on a gated candidate stopped at candidate_recoverable push the branch and open a draft PR in one call, without re-running the agent or manual git. The recovery planner already does this, so this change adds regression tests that pin the behavior, plus a formatting fix the base commit needed.

What changed

  • New test gated_candidate_recovers_to_a_draft_pull_request_in_one_call in cook_tests.rs: a candidate that passed its gates but has no review form plans Publish, and one default recover call pushes the branch and opens exactly one draft PR without calling any agent step.
  • The same test checks that running recover again does not plan Publish and opens no second PR.
  • CapturePublishRecoveryPerformer (test helper) now records push, draft and create counts and gets a new constructor.
  • Applied rustfmt to agent_task_gate/failure_evidence.rs, which failed the fmt check on the base commit.

Verification

  • 1-verify-2d009b4c2fff7c140a0e853344ad59d7dd2bd2a362627a962da72a2e39704a8f.txt (cargo fmt --all --check): passed on 25d5535. Base main@2f43cf2 advanced to fe6a6a2 (base_behind_by: 30; rebase onto the current base before merging). 15854 ms; retained gate metadata.

  • 2-verify-aaf750d30a0e7ed378059034b15ad55a7c8cd12ca5d8aa08fb0d9716e2921440.txt (cargo check --workspace --all-targets): passed on 25d5535. Base main@2f43cf2 advanced to fe6a6a2 (base_behind_by: 30; rebase onto the current base before merging). 98169 ms; retained gate metadata.

  • HOMEBOY_LINT_BASE=2f43cf2f984680f2816bc554e4f7df46bfe31f4e homeboy --placement l (HOMEBOY_LINT_BASE=2f43cf2f984680f2816bc554e4f7df46bfe31f4e homeboy --placement local review lint homeboy --path . --cha…): passed on 25d5535. Base main@2f43cf2 advanced to fe6a6a2 (base_behind_by: 30; rebase onto the current base before merging). 207025 ms; retained gate metadata.

  • repro: none (no repro gate was declared, so these gates do not prove the issue).

  • CI: pending

Cook run
  • Gate 1: tree c447d875e47e0176313a20b06a4902f7b77518ec
  • Gate 2: tree c447d875e47e0176313a20b06a4902f7b77518ec
  • Gate 3: tree c447d875e47e0176313a20b06a4902f7b77518ec

Evidence

Evidence is missing: no measurements, before/after observations or repro results were supplied.

AI disclosure

Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served claude-opus-5-5. Cook time: 21m27s.

The AI read the issue, traced the recover decision and publish path, confirmed the behavior already exists, and wrote regression tests that pin it, under the direction of the Cook requester. Gates were run by Homeboy. A human reviews before merge.

Closes #17775

@chubes4
chubes4 merged commit 3f5115a into main Nov 23, 2026
17 checks passed
@chubes4
chubes4 deleted the fix/issue-17775-homeboy branch November 23, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Succeeded provider stops at candidate_recoverable ('publication: not attempted'); needs manual recover to publish

1 participant