Skip to content

chore: fix stale label guidance, add issue-type policy#1315

Merged
njhensley merged 6 commits into
NVIDIA:mainfrom
njhensley:chore/update-agent-labeling-guidance
Jun 11, 2026
Merged

chore: fix stale label guidance, add issue-type policy#1315
njhensley merged 6 commits into
NVIDIA:mainfrom
njhensley:chore/update-agent-labeling-guidance

Conversation

@njhensley

Copy link
Copy Markdown
Member

Summary

Fix stale label guidance in CLAUDE.md/AGENTS.md: drop the non-existent enhancement/bug/documentation "type labels", point PR authors at the real theme/*+dependencies labels, and add an Issue policy covering org issue types.

Motivation / Context

CLAUDE.md recommended PR "type labels" enhancement, bug, and documentation that do not exist in the repo — they were used on 0 of the last 40 merged PRs. The real PR labels in use are area/*, size/*, theme/*, and dependencies. Those three phantom names are actually NVIDIA org-level issue types, which apply to issues, not PRs. This corrects the guidance and documents how to set org issue types on new issues.

Fixes: N/A
Related: N/A

Type of Change

  • Documentation update

Component(s) Affected

  • Docs/examples (docs/, examples/)
  • Other: agent-instruction files (.claude/CLAUDE.md, AGENTS.md)

Implementation Notes

  • Line 640: replaced the bogus type-label recommendation with the real theme/* labels + dependencies, and a note that enhancement/bug/documentation are org issue types, not repo labels.
  • Line 623: label documentation`` → area/docs for doc-only PRs.
  • Added an Issue policy block recommending an org issue type (Task/Bug/Enhancement/Epic/Initiative/Documentation) on new issues, with both gh issue create --type and the gh api … -f type= REST fallback (local gh 2.46 has no --type flag), plus a note that the Project board Type/Priority fields are a separate, project-scoped mechanism.
  • AGENTS.md re-synced from the canonical .claude/CLAUDE.md; verified with tools/check-agents-sync.

Testing

./tools/check-agents-sync   # OK: AGENTS.md is in sync with .claude/CLAUDE.md

Docs-only change (no Go files touched).

Risk Assessment

  • Low — Isolated change, well-tested, easy to revert

Rollout notes: N/A — agent-instruction text only.

Checklist

  • Tests pass locally (make test with -race)
  • Linter passes (make lint)
  • I did not skip/disable tests to make CI green
  • I added/updated tests for new functionality
  • I updated docs if user-facing behavior changed
  • Changes follow existing patterns in the codebase
  • Commits are cryptographically signed (git commit -S)

@njhensley njhensley requested a review from a team as a code owner June 11, 2026 16:41
@njhensley njhensley added the theme/community Contributor onboarding, docs, and external engagement label Jun 11, 2026
lockwobr
lockwobr previously approved these changes Jun 11, 2026
@njhensley njhensley enabled auto-merge (squash) June 11, 2026 16:45
@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR updates contribution policy guidance in .claude/CLAUDE.md and AGENTS.md. It standardizes the label reference for doc-only PRs from documentation to area/docs in the make qualify gating rules. The PR replaces prior guidance about adding type labels with updated theme label instructions, and adds a new "Issue policy" section that documents required GitHub org issue types and instructs contributors to set them using the gh CLI or REST API when creating new issues.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and clearly summarizes the main change: fixing stale label guidance and adding issue-type policy, which matches the core objectives.
Description check ✅ Passed The description is detailed and comprehensively related to the changeset, explaining the motivation, specific line changes, testing, and risk assessment.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/CLAUDE.md:
- Around line 646-652: Update the doc text around the two commands: remove the
invalid REST API example "gh api repos/NVIDIA/aicr/issues -f title='…' -f
body='…' -f type='Bug'" and replace the incorrect version claim for the CLI flag
so the line with "--type Bug" reads that the flag was introduced in gh v2.94.0+,
not 2.63; also add a short note that org issue types cannot be set via the
standard Issues REST create/edit endpoints and must be set via the gh CLI
(v2.94.0+), the web UI, or project/automation that has project-scoped
permissions.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: ebd40028-f7a2-4e2d-bad0-a5bdfd013fe1

📥 Commits

Reviewing files that changed from the base of the PR and between 6e95906 and d0990df.

📒 Files selected for processing (2)
  • .claude/CLAUDE.md
  • AGENTS.md

Comment thread .claude/CLAUDE.md
@njhensley njhensley disabled auto-merge June 11, 2026 16:48

@mchmarny mchmarny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Guidance is accurate and well-reasoned — the theme/* correction and issue-type policy are both good additions. One medium concern: the gh api REST fallback for setting issue types likely doesn't work (REST issues endpoint doesn't accept a type field; it's GraphQL-only). Everything else is clean. Nothing blocks merge if the REST example is corrected or removed.

Comment thread .claude/CLAUDE.md Outdated

@coderabbitai coderabbitai 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.

♻️ Duplicate comments (2)
.claude/CLAUDE.md (1)

648-649: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Incorrect REST API guidance contradicts past review findings.

Line 649 states "Current REST Issues create/edit endpoints also accept type for users with push access," but the prior review's web search definitively found that the standard GitHub REST Issues create/edit endpoints do NOT support setting organization issue types via a type parameter—it's a query-only parameter for filtering, not a write-enabled field.

Remove the claim about REST endpoints accepting type and simplify to: "With older gh versions, use the web UI or ask maintainers to set the type."

📝 Proposed correction
   - Prefer `gh issue create --type Bug ...` (requires `gh` v2.94.0+); use `gh issue edit <n> --type Bug` for existing issues.
-  - With older `gh` versions, use the web UI or automation with the needed permissions. Current REST Issues create/edit endpoints also accept `type` for users with push access, but avoid stale ad hoc `gh api` examples because older clients or API versions may reject or silently drop the field.
+  - With older `gh` versions, use the web UI to set the type after creating the issue.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/CLAUDE.md around lines 648 - 649, Remove the incorrect claim
"Current REST Issues create/edit endpoints also accept `type` for users with
push access" and replace it with a simplified statement like "With older `gh`
versions, use the web UI or ask maintainers to set the type." Locate the
offending sentence (the phrase starting with "Current REST Issues create/edit
endpoints...") and update the surrounding guidance to avoid suggesting REST API
support for a writable `type` field, keeping the note about using web UI or
maintainers for older gh clients.
AGENTS.md (1)

648-649: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Same incorrect REST API guidance as in .claude/CLAUDE.md.

Line 649 incorrectly states that REST Issues create/edit endpoints accept type. This mirrors the issue flagged in .claude/CLAUDE.md at line 649—the standard REST API does not support setting org issue types via a type body parameter.

Apply the same correction here as in .claude/CLAUDE.md.

📝 Proposed correction
   - Prefer `gh issue create --type Bug ...` (requires `gh` v2.94.0+); use `gh issue edit <n> --type Bug` for existing issues.
-  - With older `gh` versions, use the web UI or automation with the needed permissions. Current REST Issues create/edit endpoints also accept `type` for users with push access, but avoid stale ad hoc `gh api` examples because older clients or API versions may reject or silently drop the field.
+  - With older `gh` versions, use the web UI to set the type after creating the issue.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 648 - 649, The sentence claiming "Current REST Issues
create/edit endpoints also accept `type`" is incorrect; update AGENTS.md to
remove/replace that claim with the corrected guidance used elsewhere: state that
the REST Issues create/edit endpoints do not support a `type` body parameter,
recommend using `gh issue create --type Bug` / `gh issue edit <n> --type Bug`
with gh v2.94.0+ or the web UI/automation with proper permissions for older
clients, and remove any stale `gh api` examples that rely on sending `type`.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In @.claude/CLAUDE.md:
- Around line 648-649: Remove the incorrect claim "Current REST Issues
create/edit endpoints also accept `type` for users with push access" and replace
it with a simplified statement like "With older `gh` versions, use the web UI or
ask maintainers to set the type." Locate the offending sentence (the phrase
starting with "Current REST Issues create/edit endpoints...") and update the
surrounding guidance to avoid suggesting REST API support for a writable `type`
field, keeping the note about using web UI or maintainers for older gh clients.

In `@AGENTS.md`:
- Around line 648-649: The sentence claiming "Current REST Issues create/edit
endpoints also accept `type`" is incorrect; update AGENTS.md to remove/replace
that claim with the corrected guidance used elsewhere: state that the REST
Issues create/edit endpoints do not support a `type` body parameter, recommend
using `gh issue create --type Bug` / `gh issue edit <n> --type Bug` with gh
v2.94.0+ or the web UI/automation with proper permissions for older clients, and
remove any stale `gh api` examples that rely on sending `type`.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: c44ed5e4-d381-4fdc-938f-43074af77daa

📥 Commits

Reviewing files that changed from the base of the PR and between d0990df and 6dd7500.

📒 Files selected for processing (2)
  • .claude/CLAUDE.md
  • AGENTS.md

@njhensley njhensley enabled auto-merge (squash) June 11, 2026 18:13
@njhensley njhensley merged commit 90fced4 into NVIDIA:main Jun 11, 2026
30 checks passed
@njhensley njhensley deleted the chore/update-agent-labeling-guidance branch June 23, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs size/S theme/community Contributor onboarding, docs, and external engagement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants