mirror of
https://github.com/Devolutions/IronRDP.git
synced 2026-11-24 01:04:51 +00:00
b0a3feb063
Harden PR-automation classification, review dispatch, and publication without relaxing SHA-bound safeguards. - Require a trusted, GitHub Actions-owned `AI classification` check with valid machine state at the current head before any reviewer starts. Forced reviews bypass policy and CI eligibility only; valid `Automation stopped` classifications remain force-reviewable, while missing, stale, or invalid classifications fail forced or manual `workflow_dispatch` invocations before provider work begins. Automatic CI and classification-complete races remain normal skips. - Retry exactly one malformed, read-only GitHub pull GET (`500 Unexpected end of JSON input`) at the post-check, pre-dispatch boundary observed in production. Do not retry writes or dispatch POSTs: stale, terminal, and exhausted paths neither dispatch nor replay the persisted check. Classification dispatch remains edge-triggered. - Use four classifier lanes and seven whole-pipeline lanes, with at most three specialists running per pipeline. The peak provider capacity is 25 concurrent requests: four classifiers plus three specialists across seven pipelines. Lanes are calculated in trusted JavaScript, not GitHub Actions expressions. - Preserve every validated finding, including clean reviews. Required reviewer failure is unavailable; optional failure produces deterministic reduced-coverage notices naming unavailable reviewers without provider diagnostic details. - Publish stage outcomes and LLM-only metrics with cumulative elapsed seconds plus explicit input, output, and total token columns. Totals include repeated context across requests and repairs; missing or partial usage remains explicit. Detailed failure diagnostics stay in the workflow summary, not pull-request reviews or checks. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>