Repository navigation
chore(github): add code owners for the code guidance skill - #608
Conversation
alizaidis
left a comment
There was a problem hiding this comment.
Two governance/security items to address before merging #608 ahead of #607:
-
Expand
.github/CODEOWNERSto 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 underskills/.
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.17wording in #607 to match.) - All four existing executable skills under
-
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 viagh api repos/GoogleCloudPlatform/accelerated-platforms/branches/main/protectionbefore #607 is rebased and approved soR-7.17is actively enforced on #607 itself.
8633cce to
3aeca89
Compare
|
Good call on both, made the updates.
|
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>
3aeca89 to
4dbc53a
Compare
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
left a comment
There was a problem hiding this comment.
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:
- 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. - We confirm them with
gh api repos/GoogleCloudPlatform/accelerated-platforms/branches/main/protection. - #607 then needs a code owner's approval on its latest push.
Summary
Adds
.github/CODEOWNERSfor agent skills and agent instruction files. Codingagents load these as instructions, and root or nested agent files take
precedence over skills, so changes to them need a code owner's approval.
/skills/(all agent skills),AGENTS.md,CLAUDE.md,GEMINI.md,.gemini/,.claude/,.cursor/,.cursorrules(at anydirectory depth),
/.github/copilot-instructions.md,/.github/instructions/, and/.github/CODEOWNERS.account was checked with the GitHub API and has write or admin access.
Admin settings needed on
mainThe branch is already protected. To enforce ownership, a repository admin
enables these settings under Settings → Branches →
main:After merge, verify them with
gh api repos/GoogleCloudPlatform/accelerated-platforms/branches/main/protectionbefore #607 is rebased and approved.
Merge order
R-7.17.