Repository navigation
CI: labels and assignee for PRs of the coverage agent - #124393
Merged
Merged
Conversation
PRs that the coverage agent opens under the `clickgapai` account on branches `covgap/*` need three things that the agent's own token cannot set, because the account has no triage rights on the repository: the label `can be tested`, so that CI runs for an account outside `trusted_contributors.json`; the label `ci-force-all`, so that a test-only PR gets the full CI run; and the human owner as assignee, who answers reviewers (the agent never does, per `AI_POLICY.md`). The label hook runs with the CI bot's rights and before the trust gate, so it sets all three. The rule is data-driven (`AGENT_PRS`), keyed by the agent login and a branch prefix: other agents that share the account, such as ClickGap on `qa-bot/*`, are not affected, and the account itself gains no standing. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Contributor
|
Workflow [PR], commit [a9300ab] Summary: ✅ AI ReviewSummaryThis PR adds a data-driven allowlist for PR Metadata
Final Verdict✅ No blocking findings in the current code. The only issue I would still clean up before merge is the changelog-category mismatch above. |
maxknv
approved these changes
Oct 7, 2026
… the label hook The PR workflow runs `can_be_tested` as its first pre-hook and the label hook fourth, so the label `can be tested` added by the label hook came too late for the first run of an agent PR: `Config Workflow` failed with "'can be tested' label is required". `can_be_tested` now consults the same `AGENT_PRS` rules through `agent_pr_rules`, so a registered agent PR passes the trust check on the first run. The label hook keeps adding the label for visibility. Co-Authored-By: Claude Fable 5.1 <[email protected]>
alexbakharew
enabled auto-merge
October 7, 2026 10:52
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.
PRs that the coverage agent opens under the
clickgapaiaccount on branchescovgap/*need three things that the agent's own token cannot set, because the account has no triage rights on the repository: the labelcan be tested, so that CI runs for an account outsidetrusted_contributors.json; the labelci-force-all, so that a test-only PR gets the full CI run; and the human owner as assignee, who answers reviewers (the agent never does, perAI_POLICY.md).The label hook runs with the CI bot's rights and before the trust gate, so it sets all three. The rule is data-driven (
AGENT_PRS), keyed by the agent login and a branch prefix: other agents that share the account, such as ClickGap onqa-bot/*, are not affected, and the account itself gains no standing.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Workflow [PR]
Sync PR [sync-upstream/pr/124393]
Version info
26.10.1.1745-master(included in26.10and later)