Repository navigation
Expand file tree
/
Copy pathCODEOWNERS
More file actions
84 lines (80 loc) · 4.76 KB
/
Copy pathCODEOWNERS
File metadata and controls
84 lines (80 loc) · 4.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# .github/CODEOWNERS — governance routing: every Tier H governed surface but
# the low-risk arm's rows to every authorized approver.
#
# The ruling this file helps enforce (maintainer, verbatim):
# 「adr 只能由维护者自己确认,人工合并,ai 不得擅自合并。」
# It holds for every ADR change except an add-only note in the root tree (no
# removed line, no `Status:` line, nothing under `Decision`, no new, renamed or
# deleted file), which lands under the low-risk arm's conditions (Ruling-ref
# Leehom, 「同意 把低风险的 Tier H 放权给座位」).
#
# The owner list on EVERY row mirrors `GOVERNED_APPROVERS` in
# scripts/pm/check-governed-queue-guard.mjs — the one list of accounts whose
# APPROVED review lands a Tier H surface. Since 2026-11-17 that is `os-zhuang`
# alone (maintainer, triage session, verbatim: 「hotlong 从批准账户中去掉,只保留
# os-zhuang」), superseding the membership of 2026-08-27 (「os-zhuang hotlong
# 批准算数」), which this line carried until then. The rows mirror the Tier H
# rows of `GOVERNED_SURFACES` in scripts/pm/check-governed-merges.mjs. This file is static and can import
# neither, so the two stay in step the only way a static file can:
# `node scripts/pm/check-governed-queue-guard.mjs --self-test` reads this file
# (`codeownersMirrorVerdict`) and reds when a Tier H row has no line here, when
# any line names fewer or other owners than that constant, or when a Tier S row
# (`.claude/**`, which lands on a seat's review of record) is routed here. That
# row splits by declaration since 2026-11-19, and the two paths under it that
# no declaration moves to a seat — the hooks and the settings files — each
# carry a line of their own, which the same self-test demands. A
# Tier H row carrying the register's low-risk arm (`lowRisk`: the two skills
# catalogs and the root ADR tree) has NO line here and reds if one is added:
# the relay's per-pull review plan reads the arm and decides who is asked
# (ruling record 6891850019).
# Change the constant or the register first; this file follows in the same PR.
#
# What routing buys, and what it does not: GitHub requests a code owner's
# review when a pull is opened READY or marked ready for review. A DRAFT open
# requests nobody — measured on this repository's own Tier H pulls, where the
# request arrived at `ready_for_review` and never at the draft create. Every
# seat-driven Tier H pull is opened draft and stays draft until the approval,
# so the fleet relay requests the same accounts itself at `pr_create` and
# `pr_ready` (scripts/pm/fleet-write/ops.mjs, "The governed-review follow-up");
# this file is the platform half — for a pull opened ready or readied by hand —
# and the entry a ruleset's "require review from Code Owners" can bind to. A
# code owner without write access is ignored by GitHub without a word:
# `GET /repos/{owner}/{repo}/codeowners/errors` reads this file's own verdict.
#
# The login is verified, not assumed: `os-zhuang` is named by both rulings
# above and has readied and reviewed this repository's pulls. Until 2026-11-17
# every row also named `@hotlong` (verified then as the account authoring the
# bulk of main's history, 50353452+hotlong@users.noreply.github.com); the
# 2026-11-17 ruling removed it, because `hotlong` runs seats and an approver
# account never does.
#
# The enforcement chain is routed the same way, deliberately: a PR that edits
# the audit script, the approver constant or this file is a governance change —
# without these entries the rule could be lifted by editing the enforcers
# instead of the surfaces. Since 2026-11-19 the four guard scripts are register
# rows themselves (Tier H) and sit with the surfaces below; this file is the one
# enforcer still routed as a chain row.
# Tier H governed surfaces — the register's rows with tier H, less the
# low-risk arm's `/docs/adr/` and `/skills/` rows (see the header)
/AGENTS.md @os-zhuang
/CLAUDE.md @os-zhuang
/docs/NORTH-STAR.md @os-zhuang
/.github/workflows/ @os-zhuang
/scripts/pm/check-governed-merges.mjs @os-zhuang
/scripts/pm/check-governed-queue-guard.mjs @os-zhuang
/scripts/pm/record-recognisers.mjs @os-zhuang
/scripts/pm/dispatch-gates.mjs @os-zhuang
# Always Tier H under the root `.claude/` row, whatever a pull declares — the
# row itself has no line, since its other paths can land on a seat's record
/.claude/hooks/ @os-zhuang
/.claude/settings*.json @os-zhuang
# Tier H governed surfaces of the nested `ui/` workspace (#25712) — the same
# register rows, under `ui/`; `ui/.claude/` is Tier H, unlike the root tree;
# `/ui/skills/` carries the low-risk arm too and has no line
/ui/docs/adr/ @os-zhuang
/ui/.claude/ @os-zhuang
/ui/AGENTS.md @os-zhuang
/ui/CLAUDE.md @os-zhuang
/ui/.github/workflows/ @os-zhuang
# The enforcement chain
/.github/CODEOWNERS @os-zhuang