From 966fb20f30a06935c74912bf9128fd44864770d5 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 4 Mar 2026 17:06:08 -0500 Subject: [PATCH] feat: add CODEOWNERS file for maintainer approval requirements Add CODEOWNERS file to establish code review requirements for the Ambient Code Platform. All files currently require approval from @ambient-maintainers. The file includes documentation and examples for future bot-based approval workflows, where automated approvals could be permitted for most files while restricting critical files (CLAUDE.md, CRDs, operator code) to human maintainer oversight. Note: Requires enabling "Require review from Code Owners" in repository branch protection settings to take effect. Assisted-by: Claude Sonnet 4.5 Signed-off-by: Ralph Bean --- .github/CODEOWNERS | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..2cf0d1975 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,31 @@ +# CODEOWNERS - Code ownership and review requirements +# +# This file defines code ownership and review requirements for the Ambient Code Platform. +# When "Require review from Code Owners" is enabled in the repository settings +# (Settings > Branches > Branch protection rules), GitHub will automatically +# require approval from the specified owners before PRs can be merged. +# +# Documentation: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners +# +# Pattern format: +# - Use gitignore-style patterns +# - Order matters: last matching pattern takes precedence +# - Use @org/team-name or @username for owners +# +# Future consideration: +# When we introduce automation bots for PR approvals, we can maintain human +# oversight on critical files while allowing bot approvals on most code: +# +# Example future configuration: +# # Default: bot can approve most files +# * @ambient-bot +# +# # Critical files require human maintainer approval +# CLAUDE.md @ambient-maintainers +# .github/CODEOWNERS @ambient-maintainers +# components/manifests/base/crds/ @ambient-maintainers +# components/operator/ @ambient-maintainers +# + +# Current configuration: All files require maintainer approval +* @ambient-maintainers