Repository navigation
test(agents): cover one-call recover of a gated candidate to a draft PR - #18871
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Issue #17775 asks that
homeboy agent-task recoveron a gated candidate stopped atcandidate_recoverablepush 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
gated_candidate_recovers_to_a_draft_pull_request_in_one_callincook_tests.rs: a candidate that passed its gates but has no review form plansPublish, and one defaultrecovercall pushes the branch and opens exactly one draft PR without calling any agent step.Publishand opens no second PR.CapturePublishRecoveryPerformer(test helper) now records push, draft and create counts and gets anewconstructor.rustfmttoagent_task_gate/failure_evidence.rs, which failed the fmt check on the base commit.Verification
1-verify-2d009b4c2fff7c140a0e853344ad59d7dd2bd2a362627a962da72a2e39704a8f.txt (
cargo fmt --all --check): passed on25d5535. Basemain@2f43cf2advanced tofe6a6a2(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 on25d5535. Basemain@2f43cf2advanced tofe6a6a2(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 on25d5535. Basemain@2f43cf2advanced tofe6a6a2(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
c447d875e47e0176313a20b06a4902f7b77518ecc447d875e47e0176313a20b06a4902f7b77518ecc447d875e47e0176313a20b06a4902f7b77518ecEvidence
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