Skip to content

chore(github): add code owners for the code guidance skill - #608

Merged
alizaidis merged 2 commits into
mainfrom
chore/codeowners-code-guidance
Nov 24, 2026
Merged

alizaidis merged 2 commits into
mainfrom
chore/codeowners-code-guidance

Conversation

@syeda-anjum

@syeda-anjum syeda-anjum commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds .github/CODEOWNERS for agent skills and agent instruction files. Coding
agents load these as instructions, and root or nested agent files take
precedence over skills, so changes to them need a code owner's approval.

  • Owned paths: /skills/ (all agent skills), AGENTS.md, CLAUDE.md,
    GEMINI.md, .gemini/, .claude/, .cursor/, .cursorrules (at any
    directory depth), /.github/copilot-instructions.md,
    /.github/instructions/, and /.github/CODEOWNERS.
  • Owners: @syeda-anjum @laurentgrangeau @gushob21 @karajendran @alizaidis. Each
    account was checked with the GitHub API and has write or admin access.

Admin settings needed on main

The branch is already protected. To enforce ownership, a repository admin
enables these settings under Settings → Branches → main:

  • Require a pull request before merging
    • Require review from Code Owners
    • Dismiss stale pull request approvals when new commits are pushed
    • Require approval of the most recent reviewable push
  • Do not allow bypassing the above settings

After merge, verify them with
gh api repos/GoogleCloudPlatform/accelerated-platforms/branches/main/protection
before #607 is rebased and approved.

Merge order

  1. This PR.
  2. docs(skills): add ACP contribution and code review guidance skill #607 (the skill), which refers to this file in R-7.17.

@alizaidis alizaidis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two governance/security items to address before merging #608 ahead of #607:

  1. Expand .github/CODEOWNERS to cover all skills and higher-precedence agent instruction files:
    If the goal is preventing unreviewed prompt-injection or agent-instruction changes, gating only /skills/acp-oss-contribution-code-guidance/ leaves two bypasses open:

    • All four existing executable skills under /skills/ (llm-d-benchmarking, llm-d-deploy-stack, llm-d-workload-tuner, gke-inference-stack-deploy) and any newly added /skills/<new-skill>/ folder remain unowned.
    • Root/dotfile agent instruction files (AGENTS.md, CLAUDE.md, GEMINI.md, .github/copilot-instructions.md, .gemini/, .claude/, .cursor/) are auto-loaded by coding agents with higher system-prompt precedence than skills under skills/.

    Recommend expanding .github/CODEOWNERS (using the same code-owner list on each line) to cover:

    /skills/
    /.github/CODEOWNERS
    /.github/copilot-instructions.md
    /AGENTS.md
    /CLAUDE.md
    /GEMINI.md
    /.gemini/
    /.claude/
    /.cursor/
    

    (Please also update the R-7.17 wording in #607 to match.)

  2. Verify branch-protection activation before rebasing/merging #607:
    Once #608 merges and a repo admin enables the 4 settings listed in the PR description, let's verify them via gh api repos/GoogleCloudPlatform/accelerated-platforms/branches/main/protection before #607 is rebased and approved so R-7.17 is actively enforced on #607 itself.

@syeda-anjum
syeda-anjum force-pushed the chore/codeowners-code-guidance branch from 8633cce to 3aeca89 Compare November 11, 2026 02:23
@syeda-anjum

syeda-anjum commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

Good call on both, made the updates.

  1. CODEOWNERS now covers all of /skills/ plus AGENTS.md, CLAUDE.md,
    GEMINI.md, .gemini/, .claude/, .cursor/, and
    .github/copilot-instructions.md, with the same owners on every line. I
    updated R-7.17 in docs(skills): add ACP contribution and code review guidance skill #607 to match.
  2. Once this merges and the settings are on, I'll paste the
    branches/main/protection output here before I rebase docs(skills): add ACP contribution and code review guidance skill #607

Coding agents load skills and root agent instruction files as instructions,
so changes to them need a code owner's approval. Own /skills/, AGENTS.md,
CLAUDE.md, GEMINI.md, .gemini/, .claude/, .cursor/,
.github/copilot-instructions.md, and this file.

Signed-off-by: Syeda Anjum <syedaanjum@google.com>
@syeda-anjum
syeda-anjum force-pushed the chore/codeowners-code-guidance branch from 3aeca89 to 4dbc53a Compare November 23, 2026 21:14
The header said branch protection on main already enforces code owner review. That is true only after an admin enables "Require review from Code Owners". Also add codeowners to the cspell ignore list so a local cspell run on this file is clean.

Signed-off-by: Ali Zaidi <raincloud@google.com>
@alizaidis
alizaidis enabled auto-merge (squash) November 24, 2026 19:14
@alizaidis
alizaidis disabled auto-merge November 24, 2026 19:14
@alizaidis
alizaidis enabled auto-merge (squash) November 24, 2026 19:14
@alizaidis
alizaidis disabled auto-merge November 24, 2026 19:14
@alizaidis
alizaidis enabled auto-merge (squash) November 24, 2026 19:14

@alizaidis alizaidis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates. Approving.

The patterns for agent instruction files now match at any depth, which closes the
gap where a nested AGENTS.md or .cursor/ directory would have been unowned.
Adding .cursorrules and /.github/instructions/ is a good extension. GitHub's
CODEOWNERS validation reports no errors for this branch. Applied on top of
current main, it passes the dictionary, Prettier, cspell, addlicense, and
final-newline checks.

I pushed one small follow-up commit (90965899) so this can merge today. It
rewords the header so it doesn't claim branch protection is already on, and adds
codeowners to the cspell ignore line.

After merge:

  1. A repository admin enables these settings on main: require a pull request,
    require review from Code Owners, dismiss stale approvals, require approval of
    the most recent push, and do not allow bypassing.
  2. We confirm them with
    gh api repos/GoogleCloudPlatform/accelerated-platforms/branches/main/protection.
  3. #607 then needs a code owner's approval on its latest push.

@alizaidis
alizaidis merged commit 254ef6f into main Nov 24, 2026
50 checks passed
@alizaidis
alizaidis deleted the chore/codeowners-code-guidance branch November 24, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants