Skip to content

docs(#1811): add enforcement-delegation parity check to review checklist - #1812

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1811-add-delegation-parity-check
Open

docs(#1811): add enforcement-delegation parity check to review checklist#1812
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1811-add-delegation-parity-check

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

What:

Add enforcement-delegation collection-parity check as a fourth item to the "Review Checklist for New Policy Rules" section in AGENTS.md.

Why:

On PR #1805, a deny rule bypass was added that delegated enforcement to the test_attestation package. The inline comment claimed equivalent collection membership, but four destination rules lacked redhat_security collection membership — creating an enforcement gap. The review agent ran three times and approved each time because no checklist criterion prompted comparison of collection annotations between bypassed and destination rules. This new checklist item gives the agent a mechanical instruction: read the bypassed rule's collections:, read every destination rule's collections:, and flag any collection present in the former but absent from the latter.

Tickets:


Closes #1811

Post-script verification

  • Branch is not main/master (agent/1811-add-delegation-parity-check)
  • Secret scan passed (gitleaks — 57634e656f21e6224543b54bc767fc8ec1497779..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

Add a fourth item to the Review Checklist for New Policy Rules in
AGENTS.md covering enforcement-delegation collection parity. When a
deny rule conditionally bypasses to another package, reviewers must
now verify that the destination package's rules cover all collections
declared by the bypassed rule. This addresses the gap identified in
PR #1805 where four test_attestation rules lacked redhat_security
collection membership, creating an enforcement gap.

Closes #1811
@fullsend-ai-review

fullsend-ai-review Bot commented Aug 13, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:26 PM UTC · Completed 3:37 PM UTC

Commit: 87c4a29 · View workflow run →

@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unit-tests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Medium

Low

  • [formatting consistency] AGENTS.md:102 — The new checklist item uses a period after the bold label (**Enforcement delegation parity.**) while all three existing checklist items in this section use a colon (**...:**). This breaks the established **Label:** Description pattern.
    Remediation: Change **Enforcement delegation parity.** to **Enforcement delegation parity:**.

Labels: PR exclusively modifies AGENTS.md documentation

@fullsend-ai-review fullsend-ai-review Bot 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.

See the review comment for full details.

Comment thread AGENTS.md
the pattern.
- **Test coverage:** Every new rule needs tests in a corresponding `_test.rego` file. CI enforces
100% coverage.
- **Enforcement delegation parity.** When a deny rule conditionally skips its

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] formatting consistency

The new checklist item uses a period after the bold label (Enforcement delegation parity.) while all three existing checklist items in this section use a colon (Label:). This breaks the established Label: Description pattern.

Suggested fix: Change Enforcement delegation parity. to Enforcement delegation parity:.

@fullsend-ai-review fullsend-ai-review Bot added requires-manual-review Review requires human judgment documentation Improvements or additions to documentation labels Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation requires-manual-review Review requires human judgment size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add enforcement-delegation collection-parity review item to AGENTS.md

0 participants