Repository navigation
feat(governance): enforce owner-approved only on strict R2 - #71
Conversation
Co-authored-by: Antigravity <noreply@google.com>
AI Code Review (opencode /
|
Co-authored-by: Antigravity <noreply@google.com>
AI Code Review (opencode /
|
AI assistance
What changed
require_owner_approval_on_r2policy boolean (pr-governance/policy.schema.json,pr-governance/scripts/gate.cjs): whentrue, R2 changes specifically requireowner-approvedand rejectagent-approvedalone, while refusing contradictoryrequire_owner_approval_on_r2: true+require_clearing_label_on_r2: falseconfigurations.require_owner_approval_on_r2: trueon thestricttier andfalseonstandardandrelaxedtiers (scripts/policy-tiers.json,scripts/sync-policies.mjs).agent-approvedrejection, boundowner-approvedacceptance, conflict validation, and tier sync inpr-governance/scripts/test-gate.cjsandscripts/test-sync-policies.cjs.How verified
node --test pr-governance/scripts/test-*.cjs scripts/test-*.cjs: all tests passed (0 failures)./usr/local/bin/gitleaks git --config pr-governance/.gitleaks.toml --log-opts="origin/main..HEAD" --redact:no leaks found.Why
strictrepositories cannot be cleared byagent-approvedalone without explicit Owner sign-off.Risk
pr-governance/scripts/gate.cjs,pr-governance/policy.schema.json,scripts/policy-tiers.json,scripts/sync-policies.mjs): backwards-compatible default (falsewhen unset);strictrepositories opt in via policy sync once their pinnedPrGovernanceSHA includes this change.