# Per-domain review gates for cx-cli.
#
# Ownership is grouped into five domains: traces, metrics, dataprime,
# config-surface, and platform (the catch-all). Every domain currently
# resolves to @coralogix/team-cxai as a placeholder; when real domain
# teams form, swap their handles in below.
#
# GitHub uses last-matching-pattern wins, so the `*` catch-all comes
# first and the domain-specific rules override it. The `**/<name>/`
# patterns match a domain's directory wherever it appears in the tree
# (src/commands/, tests/, tests/e2e/, skills/) so adding a new
# integration-test or skills directory under an existing domain name
# does not require a CODEOWNERS edit.

*                                      @coralogix/team-cxai

# === traces (logs, spans, RUM) ===
**/logs/                               @coralogix/team-cxai
**/spans/                              @coralogix/team-cxai
/skills/query-logs/                    @coralogix/team-cxai
/skills/query-spans/                   @coralogix/team-cxai
/skills/rum/                           @coralogix/team-cxai

# === metrics ===
**/metrics/                            @coralogix/team-cxai
/skills/metrics-query/                 @coralogix/team-cxai

# === dataprime (DataPrime query language + semantic search + embedded docs) ===
**/dataprime/                          @coralogix/team-cxai
/skills/telemetry-querying/            @coralogix/team-cxai
/assets/                               @coralogix/team-cxai

# === config-surface (alerts, dashboards) ===
**/alerts/                             @coralogix/team-cxai
**/dashboards/                         @coralogix/team-cxai
/skills/cx-alerts/                     @coralogix/team-cxai
/skills/create-dashboard/              @coralogix/team-cxai

# === user-facing docs (blocking review from technical writers) ===
/README.md                             @coralogix/team-technical-writers @coralogix/team-cxai
/docs/                                 @coralogix/team-technical-writers @coralogix/team-cxai

# contributor/ falls through to the * catch-all (@coralogix/team-cxai only)

# Everything else (shared infra, profiles, cleanup, search-fields, CI,
# build files, dev tooling, etc.) is owned by platform via `*`.
