Skip to content

docs(#1784): correct collection-registration guidance in AGENTS.md - #1785

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1784-fix-collection-docs
Open

docs(#1784): correct collection-registration guidance in AGENTS.md#1785
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1784-fix-collection-docs

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown

What:

Corrects misleading collection-registration guidance in AGENTS.md to accurately describe how the collection mechanism works.

Why:

PR #1779 fixed the collection mechanism documentation in .claude/rules/policy-rules.md and docs/patterns/add-release-policy-rule.md, but the same incorrect guidance in AGENTS.md was missed before merge. The Architecture section stated that collections "import specific policy packages" and that developers must "add [rules] to the appropriate collection(s)," which is wrong — collection files are minimal package declarations and rules declare their own collection membership via collections: in their METADATA annotations.

Tickets:


Closes #1784

Post-script verification

  • Branch is not main/master (agent/1784-fix-collection-docs)
  • Secret scan passed (gitleaks — 7211d0329e93fda0a6d6d3d33c3909fc6a7681ca..HEAD)
  • PR body secret scan passed (gitleaks — no-git)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

The Architecture section and "Add a new collection" bullet in AGENTS.md
incorrectly described collections as importing policy packages and
directed developers to edit collection files when adding new rules.
In reality, collection files are minimal package declarations and rules
declare their own collection membership via `collections:` in their
METADATA `custom:` annotations. This was already corrected in
`.claude/rules/policy-rules.md` and `docs/patterns/add-release-policy-rule.md`
during PR #1779 but the same error in AGENTS.md was missed.

Updated both sections to accurately describe the mechanism, consistent
with the other documentation files and the reference implementation in
`policy/release/attestation_type/attestation_type.rego`.

Closes #1784
@fullsend-ai-review

fullsend-ai-review Bot commented Jul 21, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 2:00 PM UTC · Completed 2:12 PM UTC
Commit: 87c4a29 · View workflow run →

@codecov

codecov Bot commented Jul 21, 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


Labels: PR is a documentation-only fix to AGENTS.md

@fullsend-ai-review fullsend-ai-review Bot added requires-manual-review Review requires human judgment documentation Improvements or additions to documentation labels Jul 21, 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.

Correct misleading collection-registration guidance in AGENTS.md

0 participants