# CODEOWNERS
#
# Ownership and review rules for the Brunix Assistance Engine repository.
#
# Teams:
#   @BRUNIX-AI/engineering — Core engineering team. Owns the production
#     codebase, infrastructure, gRPC contract, and all architectural decisions.
#     Required reviewer on every pull request targeting `online`.
#
#   @BRUNIX-AI/research — Scientific research team. Responsible for RAG
#     evaluation, embedding model benchmarking, dataset generation, and
#     experiment documentation. Write access to research/ and docs/product/.
#     All changes to production code require review from engineering.
#
# This file is enforced by GitHub branch protection rules on `online`.
# See: Settings → Branches → online → Require review from Code Owners

# Default — every PR requires engineering approval
* @BRUNIX-AI/engineering @rafa-ruiz

# ── Production engine ────────────────────────────────────────────────────────

# gRPC contract — any change requires explicit CTO sign-off
Docker/protos/brunix.proto @BRUNIX-AI/engineering @rafa-ruiz

# Core engine — graph, server, prompts, state, evaluation
Docker/src/ @BRUNIX-AI/engineering @rafa-ruiz

# ── Ingestion & knowledge base ───────────────────────────────────────────────

# Ingestion pipelines
scripts/pipelines/ @BRUNIX-AI/engineering @rafa-ruiz

# Grammar config — any change requires a full index rebuild
scripts/pipelines/ingestion/avap_config.json @BRUNIX-AI/engineering @rafa-ruiz

# Golden dataset — any change requires a new EvaluateRAG baseline before merging
Docker/src/golden_dataset.json @BRUNIX-AI/engineering @rafa-ruiz

# ── Research ─────────────────────────────────────────────────────────────────

# Research folder — managed by the research team, no engineering approval needed
# for experiment documentation, benchmarks and datasets
research/ @BRUNIX-AI/research @BRUNIX-AI/engineering

# ── Governance & documentation ───────────────────────────────────────────────

# ADRs and PRDs — all decisions require CTO approval
docs/ADR/ @BRUNIX-AI/engineering @rafa-ruiz
docs/product/ @BRUNIX-AI/engineering @rafa-ruiz

# Governance documents
CONTRIBUTING.md @BRUNIX-AI/engineering @rafa-ruiz
SECURITY.md @BRUNIX-AI/engineering @rafa-ruiz
.github/ @BRUNIX-AI/engineering @rafa-ruiz
