Files
Benoît Cortier 2a41e52083 ci(pr-automation): recover reviewer stages (#1922)
Recover transient reviewer failures without repeating successful stages.
Retry a stage once after a configurable delay of 120 seconds by default,
using the runtime's retryability verdict and rechecking current
eligibility, head, base, and evidence limits before spending another
request.
Force mode bypasses policy but not evidence or stale-head safeguards;
exhausted output repair remains terminal.

Keep pinned evidence and successful results within one workflow
invocation.
The caller retains publication and the global concurrency lock,
including during the delay; later workflow runs start with a fresh
bounded budget.
Required reviewers remain caller-selected, including an explicit empty
list, with the classification gate as the fallback only when that input
is absent.

Configure up to four request retries and two in-conversation repairs per
reviewer invocation, with trusted review-specific validation.
Return one shared report containing stage outcomes, failed-attempt and
declined-retry reasons, and metrics that preserve unavailable usage and
count both attempts.

Grant the caller the read-only Actions and Checks permissions required
by recovery preflight, so the pipeline can land before its reporting
consumer.
The workflow remains callable only through `workflow_call`, runs at most
three specialists concurrently, and never executes pull request code.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-09 06:38:31 +09:00
..