Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# GitHub uses the last matching rule. Keep the repository fallback first.
* @Dong1017
/evidence/ @Dong1017 @zengchuang-hw @Bounty-hunter @amy-why-3459 @jiangkuaixue123 @david6666666
/plugins/ @zengchuang-hw
/src/inferrsi/apps/ @zengchuang-hw
/src/inferrsi/benchmark/ @Bounty-hunter
/src/inferrsi/contracts/ @Dong1017 @david6666666
/src/inferrsi/harness/ @amy-why-3459
/src/inferrsi/knowledge/ @jiangkuaixue123
34 changes: 33 additions & 1 deletion docs/agent-collaboration.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,43 @@ and `knowledge-model-policy` to run on `merge_group`. Until it is enabled, use
the current ruleset and merge controls. When a merge breaks `main`, revert it
first, then fix forward in a new PR. See [red-main](../.agents/skills/red-main/SKILL.md).

### Code-owner review

GitHub requests reviewers using [CODEOWNERS](../.github/CODEOWNERS) on the PR's
base branch when a ready PR opens or a draft becomes ready. For unattended
reviewer agents, mention the reviewer on the PR and identify the current head.

Before merging, verify a formal **Approve** from an eligible lead reviewer for
each matched ownership rule. When a rule names multiple owners, any eligible
owner can lead. A reviewer covering multiple rules should identify the paths in
their review and counts once toward the two independent approvals. A formal
reviewer agent submitting as a code owner's account can lead the review when
the account and agent satisfy the existing eligibility rules.

If the owner is unavailable or ineligible, request an independent backup
manually and record the substitution on the PR. For rules with multiple owners,
ask another eligible owner. Use these backups for single-owner rules.

| Rule | Owner | Backup lead reviewer |
| --- | --- | --- |
| `*` (including `.github/CODEOWNERS`) | `@Dong1017` | `@david6666666` |
| `/plugins/`, `/src/inferrsi/apps/` | `@zengchuang-hw` | `@Dong1017` |
| `/src/inferrsi/benchmark/` | `@Bounty-hunter` | `@amy-why-3459` |
| `/src/inferrsi/harness/` | `@amy-why-3459` | `@Bounty-hunter` |
| `/src/inferrsi/knowledge/` | `@jiangkuaixue123` | `@Dong1017` |

If no eligible lead is available, record the gap on the PR for a maintainer to
resolve before merging. Review changes to CODEOWNERS under the
[high-risk requirements](#high-risk-changes). For any high-risk change, an
approval counts for both lead review and high-risk approval when the reviewer
meets both requirements.

## High-risk changes

- **Scope.** CI workflows and required checks, releases (workflow, version,
tags, publishing), secrets and credentials, and permissions (workflow
`permissions`, repository access, rulesets, the approver list).
`permissions`, repository access, rulesets, the approver list, and
`.github/CODEOWNERS`).
- **Approvals.** Require two independent approvals. At least one approving
account must appear on [the high-risk approver list](../.github/high-risk-approvers.json)
at the verified protected `main` commit and still have repository write
Expand Down
Loading