Skip to content

chore: require code-owner review for compiled knowledge pages - #209

Merged
jflowers merged 1 commit into
unbound-force:mainfrom
jflowers:quick/require-code-owner-review-for-compiled-k
Nov 15, 2026
Merged

jflowers merged 1 commit into
unbound-force:mainfrom
jflowers:quick/require-code-owner-review-for-compiled-k

Conversation

@jflowers

Copy link
Copy Markdown
Contributor

Summary

Closes #194

Shipped the code-owner review gate for compiled knowledge pages (dewey #194, epic #153 Phase 5) as the template other knowledge repos copy:

  • New .github/CODEOWNERS: the maintainer (@jflowers) owns .uf/dewey/compiled/** and .uf/dewey/knowledge/**; .uf/dewey/learnings/** and every other path stay deliberately unowned, so daily learnings-only chore(dewey) PRs keep auto-merging while compiled/curated knowledge requires human code-owner review (the feat: git is the source of record for page trust tiers #203 trust vouch).
  • AGENTS.md: new "Human-Gate Enforcement (Code Owners)" section documenting that the human-gate GitHub label tells tooling to keep its hands off, that CODEOWNERS is what actually enforces the gate, and that enabling "Require review from Code Owners" in default-branch ruleset 26764121 is an admin-only repo-settings edit (guidance shipped, not code).
  • Created the missing human-gate label in unbound-force/dewey with a description matching the documented semantics.

Docs/config only — no Go code changed (2 files, +39 lines). Review council: APPROVE WITH ADVISORIES — 4/4 reviewers succeeded (adversary @ heavy, architect, curator, guard @ standard), 0 fix iterations, dispatch 290976ec.

How to Test

  1. Inspect the diff: .github/CODEOWNERS owns .uf/dewey/compiled/** and .uf/dewey/knowledge/** by @jflowers with no entry for learnings; AGENTS.md carries the new "Human-Gate Enforcement (Code Owners)" section right after "Commit Scope (Learnings)".
  2. CI parity (run locally, green): go build -v ./..., go vet ./..., go test -race -v -count=1 -coverprofile=coverage.out ./... (17 packages ok), gaze crap --format=json --coverprofile=coverage.out --max-crapload=48 --max-gaze-crapload=45 ./... (CRAPload 48/48, GazeCRAPload 39/45 — PASS). golangci-lint run ./... exits 1 with 7 staticcheck findings byte-identical on main (pre-existing, non-blocking).
  3. After merge, once an admin enables "Require review from Code Owners" in default-branch ruleset 26764121: a PR touching .uf/dewey/compiled/ must stay blocked when uf-divisor is the only approver and become mergeable once @jflowers approves; a learnings-only chore(dewey) PR must still auto-merge (issue chore: require code-owner review for compiled knowledge pages #194 acceptance).

How to Demo

Walk through the gate mechanics on this very PR after an admin enables "Require review from Code Owners" on ruleset 26764121: show that a bot approval alone leaves the PR blocked (code-owner requirement unmet), then show a learnings-only chore(dewey) PR still auto-merging because .uf/dewey/learnings/** is unowned. The diff itself is the demo of the template: two files, +39 lines, no Go code.

Key Files Changed

  • .github/CODEOWNERS (+18, new) — owns .uf/dewey/compiled/** and .uf/dewey/knowledge/** by @jflowers
  • AGENTS.md (+21) — new "Human-Gate Enforcement (Code Owners)" section

Known Issues

  • MEDIUM advisory (non-blocking follow-up, review council): CODEOWNERS does not own .github/CODEOWNERS itself — a follow-on PR modifying only that file could strip the gate with bot approval + auto-merge. Recommended follow-up: own the enforcement file itself.
  • LOW advisory: no structural defects — CODEOWNERS scoping and AGENTS.md parity confirmed correct.

This PR was generated by /uf.finale (AI-assisted).

Ship the code-owner review gate for knowledge artifacts (dewey unbound-force#194,
epic unbound-force#153 Phase 5) as the template other knowledge repos copy.

- Add .github/CODEOWNERS owning .uf/dewey/compiled/** and
  .uf/dewey/knowledge/** by @jflowers — a bot approval (e.g.
  uf-divisor) no longer satisfies the review requirement on those paths
- Keep .uf/dewey/learnings/** and all other paths unowned so daily
  chore(dewey) learnings PRs keep auto-merging
- Document the Human-Gate Enforcement (Code Owners) section in
  AGENTS.md: human-gate label semantics, CODEOWNERS enforcement, and
  the admin-only ruleset 26764121 enablement step

Docs/config only — no Go code changed.

Assisted-by: glm-5
Generated with AI assistance (glm-5)
@jflowers jflowers self-assigned this Nov 15, 2026
@jflowers
jflowers enabled auto-merge (rebase) November 15, 2026 01:26

@uf-divisor uf-divisor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Council Verdict: APPROVE

The Divisor review council returns APPROVE — 4/4 reviewers succeeded (adversary @ heavy; architect, curator, guard @ standard), each returning APPROVE with 0 findings and 0 advisories.

Dispatch Provenance

Run Agent Tier Model Verdict
bec09733 divisor-adversary heavy enmaas/rits/meta-models/Muse-Spark-Open-816B-A42B-NVFP4 APPROVE
0655f8a2 divisor-architect standard enmaas/rits/meta-models/Muse-Spark-Open-816B-A42B-NVFP4 APPROVE
19c069d3 divisor-curator standard enmaas/rits/meta-models/Muse-Spark-Open-816B-A42B-NVFP4 APPROVE
6325766b divisor-guard standard enmaas/rits/meta-models/Muse-Spark-Open-816B-A42B-NVFP4 APPROVE

Dispatch correlation: 7c7bbc85-b8d5-424b-80ef-bc575dc6d965.

CI Status

Check Status
build-and-test PASS
MegaLinter PASS

Local Tool Results (pre-flight, ci-aware)

Both detected Go tools (go test, golangci-lint) skip — no in-scope files: the diff touches only .github/CODEOWNERS (+18) and AGENTS.md (+21), docs/config only. Verdict: PASS.

Summary

This PR ships the code-owner review gate for knowledge artifacts (closes #194, epic #153 Phase 5) as the template other knowledge repos copy. .github/CODEOWNERS gives @jflowers ownership of .uf/dewey/compiled/** and .uf/dewey/knowledge/** while leaving .uf/dewey/learnings/** and every other path unowned; AGENTS.md documents the human-gate label semantics, the CODEOWNERS enforcement mechanics, and the admin-only ruleset 26764121 enablement step.

Alignment

No issues found. Both #194 acceptance criteria are covered: a PR touching .uf/dewey/compiled/ blocks on bot-only approval (ownership entries shipped; enforcement activates once an admin enables "Require review from Code Owners" on ruleset 26764121 — a repo-settings edit deliberately not committed here), and a learnings-only chore(dewey) PR keeps auto-merging (learnings paths stay unowned).

Security

No issues found.

Constitution Compliance

No issues found.

Note

The PR body documents a non-blocking follow-up from the pre-dispatch council: .github/CODEOWNERS does not own itself, so a follow-on PR modifying only that file could strip the gate with bot approval + auto-merge.

This review was generated by /uf.review-pr (AI-assisted).

@jflowers
jflowers merged commit eb4720c into unbound-force:main Nov 15, 2026
2 checks passed
@jflowers
jflowers deleted the quick/require-code-owner-review-for-compiled-k branch November 15, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: require code-owner review for compiled knowledge pages

2 participants