Owner approval for rule changes — proposed, not activated
Prepared 2026-10-16. Sole proposed approving identity: @mediaintelligence. This draft changes no production setting and grants no merge/deploy permission.
Repository changes
The divergence ledger checks a fixed allowlist of path-and-reason identities, rejecting duplicate and same-count replacement entries. This is an identity allowlist, not a historical ratchet: it does not independently forbid reintroducing a previously removed approved identity or changing a probe. All such edits need owner review.
Every changed repository path takes the protected-path review route. This deliberately stops unattended merges of ordinary code and documentation too: business rules may be embedded in any file, so a path allowlist cannot guarantee owner control. CODEOWNERS routes every file exclusively to @mediaintelligence.
Branch workflows execute branch-controlled code. These scripts are defense in depth; they cannot secure their own editing authority. Existing branches with old workflow code also remain a risk until native controls are active.
Required platform activation, after owner approval
- Establish separate agent/GitHub App identities. No agent, workflow, runner, or third-party process may possess the owner's login, PAT, session, or administrative credential. A review authenticated as the owner cannot prove who used a shared token.
- Restrict repository/organization ruleset administration and bypass authority to the owner. Audit organization owners, repository admins, custom roles, installed Apps, deploy keys, PATs, workflow permissions, and external automation principals. Require strong owner authentication. An administrator who can edit enforcement can remove it; repository code cannot eliminate this root-of-trust limitation.
- Activate the main required-check ruleset (23473620 currently evaluate), preserve its existing 13 check contexts/integration bindings, require an up-to-date branch, and enforce checks on creation. Preserve active force-push and deletion protection.
- Add an ACTIVE pull-request rule with at least one approving CODEOWNER review, dismiss stale approvals on new changes, require resolution of review conversations, and no bypass actors. Ensure admins and integrations cannot bypass either ruleset. Restrict dismissal of the owner's review. Verify coverage of main and every release/deployment source branch; prohibit deploys from unprotected refs.
- Explicit approval is for the exact reviewed head and base. Any new commit or changed merge result requires fresh review. Owner-authored PRs cannot be self-approved: use a distinct agent identity to submit the proposal. Do not disable review enforcement as a workaround.
- Inventory every deployment/manual-dispatch/configuration path. Enforce owner-only
environment approval, prevent self-review and administrative bypass where
supported, restrict deployment branches, and remove direct cloud/config write
permission from agents. Scope approval to the exact artifact/SHA, environment,
and action. Policy database rows, runtime flags, IAM, secrets and external rule
stores need equivalent owner-controlled authorization outside GitHub.
Prerequisite (Copilot review of #1748):
deploy-homepage.ymllets only the owner's account dispatch, and an environment rule that forbids self-review would leave no identity able to approve the owner's own dispatch. Before enabling environment approval on the homepage, establish and owner-approve a compatible flow (the owner approves a dispatch initiated by a distinct agent identity, or the environment rule exempts the typed-gate dispatch path) and migrate the workflow under review; until then keep the homepage on its existing typed-gate owner dispatch. - Move existing merge lanes to the reviewed-PR path and remove direct-push authority. Branch-local gates, typed strings in files, bot reviews, prior blanket approvals, and green checks are not substitutes for authenticated owner approval.
Verification before claiming enforcement
Using a separate unprivileged agent identity in a controlled test repository with the same settings, verify rejection of direct push, API merge, auto-merge, workflow dispatch, stale review after a commit, gate/CODEOWNERS edits, and deployment/config changes without approval. Verify an owner-reviewed exact head can proceed, then verify new commits require approval again. Re-fetch production ruleset and environment settings after activation and retain the evidence.
The connected API cannot administer these settings, cannot read detailed branch protection (403), and does not expose environment protection here. Therefore this PR cannot claim that platform enforcement or all deployment routes are secured. Activation and identity audit remain owner-controlled administrative work.
Rollback
Before merge, close the draft to abandon it. After activation, a rollback is itself a rule change requiring fresh owner approval. Never automatically disable native review enforcement to restore a failing automation lane.