šŸ”§ chore(github): Guard alone holds its own files, and CODEOWNERS goes (#578)

Merged
AT
3d ago
+45-27

Slice: #578

Alok turned off "Require review from Code Owners" in main's ruleset on
2026-11-24 (read back: require_code_owner_review: false,
required_approving_review_count: 0), so no niyam pull request waits for
his review. This removes the file that asked for it and says, wherever a
live doc said CODEOWNERS holds a change, that Guard holds it.

What it does

  • Deletes .github/CODEOWNERS. Every path it named is already a guard file:
    .github/workflows/shared-guard.yml under the .github/ floor, and
    scripts/guard.mjs, scripts/guard.test.mjs, scripts/merge-queue.mjs
    and scripts/merge-queue.test.mjs through "guard": ["scripts/*.mjs"] in
    .github/niyam.json. A change to one passes niyam-guard / judge only
    when its approved slice names it under **Guards:**.
  • docs/decisions.md: a 2026-11-24 Decision ending P-63's owner review,
    with the trade in one line (a pull request cannot weaken Guard for its own
    merge, but a merged weakening judges every later one; Guard's tests and
    Cubic catch it) and Alok's 2026-11-23 words. Past records stay as history.
  • README.md (Guard section) and CLAUDE.md (Merging) now say Guard, not
    CODEOWNERS, holds a change to the guard itself.

Left as it is

  • README's onboard note that onboard leaves a client's CODEOWNERS as it
    is, and the tests on client CODEOWNERS files: about clients, still true.
  • scripts/merge-queue.mjs:3 still says the file is "held for the owner in
    CODEOWNERS". It is a guard file this slice does not name under
    **Guards:**, so changing it here would fail Guard. It needs a slice of
    its own naming it.

Not changed: Cubic still reviews, and an open review thread still holds
the merge. veda's side is veda-hq/veda#559.

Evidence: pnpm check exits 0 locally.

Alok approved the slice with a šŸ‘ on
https://github.com/veda-hq/niyam/issues/578#issuecomment-7129918865
(2026-11-24T11:38:29Z).

šŸ¤– Generated with Claude Code


Summary by cubic

Removes .github/CODEOWNERS and the owner review it required, since Alok turned off "Require review from Code Owners" in main's ruleset and no niyam pull request waits on his review anymore.

  • Guard already protects every path CODEOWNERS named, either through the .github/ floor or via "guard": ["scripts/*.mjs"] in .github/niyam.json, so changes to those files still require an approved slice listing them under **Guards:**, unless Guard exempts a mechanical pin move (Dependabot's sha bumps, an onboard's version moves to a niyam release).
  • Since main's caller runs the niyam release it pins, a pull request cannot weaken Guard for its own merge; a weakening that merges judges later pull requests only once it is released and pinned, and Guard's tests and Cubic catch it.
  • Records the decision in docs/decisions.md and updates README.md and CLAUDE.md to say Guard, not CODEOWNERS, holds its own files.
  • scripts/merge-queue.mjs still has a stale CODEOWNERS comment; updating it here would fail Guard, so it needs its own slice.