# ========================================================================
# 🛡️ CODEOWNERS — Enterprise Ownership & Review Workflow
# Maintainer: Dhruv13x
# Purpose: Define authoritative code ownership and review enforcement
# ========================================================================

# 🎯 Rules priority:
# 1) Folder-specific rules override global rules
# 2) PRs touching owned areas require review from owners

# ------------------------------------------------------------------------
# 👑 Global maintainers — own the repository root
# Ensures always-at-least-one core maintainer signs off
# ------------------------------------------------------------------------
* @dhruv13x @<co-maintainer> @<backup-maintainer>

# ------------------------------------------------------------------------
# 🧠 Architecture / Core Logic
# ------------------------------------------------------------------------
/src/ @dhruv13x @<arch-team-lead> @<platform-team>
/src/**/engine/ @<perf-critical-team> @dhruv13x

# ------------------------------------------------------------------------
# 🧪 Tests & QA
# ------------------------------------------------------------------------
/tests/ @<qa-team> @dhruv13x
/tests/integration/ @<infra-team>

# ------------------------------------------------------------------------
# 🔧 DevOps, CI/CD, Release workflows
# ------------------------------------------------------------------------
/.github/ @<devops-team> @dhruv13x
.github/workflows/ @<security-team> @<release-ops>

# ------------------------------------------------------------------------
# 📚 Documentation
# ------------------------------------------------------------------------
/docs/ @<docs-team> @dhruv13x
README.md @<docs-team> @dhruv13x

# ------------------------------------------------------------------------
# ⚖️ Legal & Policy
# ------------------------------------------------------------------------
LICENSE @<legal-team> @dhruv13x
SECURITY.md @<security-team>
CODE_OF_CONDUCT.md @<community-team> @dhruv13x

# ------------------------------------------------------------------------
# 🎩 Packaging / Publishing / Build config
# ------------------------------------------------------------------------
/pyproject.toml @<build-release-team> @dhruv13x
/.github/workflows/publish.yml @<release-ops> @<security-team>

# ------------------------------------------------------------------------
# 🧱 Infrastructure, scripts, tooling
# ------------------------------------------------------------------------
/scripts/ @<automation-team> @dhruv13x
/tools/ @<platform-team>

# ------------------------------------------------------------------------
# 🔌 Plugins / Extensions
# ------------------------------------------------------------------------
/src/**/plugins/ @<plugin-ecosystem-maintainers>

# ------------------------------------------------------------------------
# 🧪 Security scanners, secret auditing, compliance rules
# ------------------------------------------------------------------------
/verify_secrets.py @<security-team>
/audit/ @<security-team> @dhruv13x

# ------------------------------------------------------------------------
# 🧼 Code style / lint configs (formatter, linter, mypy, coverage)
# ------------------------------------------------------------------------
/ruff.toml @<quality-team> @dhruv13x
/mypy.ini @<quality-team>
/coverage.* @<quality-team>

# ------------------------------------------------------------------------
# 🧪 Ops & Infra configs
# ------------------------------------------------------------------------
/docker/ @<devops-team>
/infra/ @<sre-team>

# ------------------------------------------------------------------------
# ✅ Fallback rule — everything else requires core review
# ------------------------------------------------------------------------
/* @dhruv13x