Skip to content

docs(contributing): standardize AI disclosures - #660

Merged
jdx merged 1 commit into
mainfrom
agent/standardize-ai-disclosures
Jul 28, 2026
Merged

docs(contributing): standardize AI disclosures#660
jdx merged 1 commit into
mainfrom
agent/standardize-ai-disclosures

Conversation

@jdx

@jdx jdx commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • expand the AI disclosure requirement to cover pull request descriptions and reviews as well as comments and discussions
  • define one consistent disclosure format containing the tool, model, and version
  • require unavailable when runtime identifiers are not exposed so agents do not guess

Impact

AI-assisted GitHub contributions will carry a consistent, more informative disclosure across all contribution surfaces.

Validation

  • git diff --check

AI-assisted — Tool: OpenAI Codex; model: OpenAI/GPT-5; version: unavailable.


Note

Low Risk
Documentation-only change to contributor guidelines; no runtime, security, or application code is affected.

Overview
Standardizes how AI-assisted GitHub contributions must be labeled in AGENTS.md under GitHub Interactions.

The old rule only required a generic “AI-generated” note on PR comments and discussions. It now applies to pull request descriptions, reviews, comments, and discussion posts, and mandates a single footer format: *AI-assisted — Tool: <tool>; model: <provider>/<model>; version: <version-or-unavailable>.*

Agents must use runtime-exposed tool/model/version identifiers and write unavailable when those values are not provided—no guessing.

Reviewed by Cursor Bugbot for commit ef33317. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

  • Documentation
    • Updated contribution guidance with a standardized disclosure format for AI-authored GitHub content.
    • Disclosures now include the tool, model, and version, using “unavailable” when runtime details cannot be provided.
    • Applies to pull request descriptions, reviews, comments, and discussion posts.

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Changes

AI disclosure guidance

Layer / File(s) Summary
Standardized GitHub disclosure instruction
AGENTS.md
Requires AI-assisted GitHub content to include the tool, provider/model, and version in a specified format, using unavailable when identifiers are missing.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Poem

I’m a bunny with a policy line,
Making AI notes clear and fine.
Tool and model, version too,
Say “unavailable” when they’re not in view.
Hop, disclose, and ship!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the docs change to standardize AI disclosure requirements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@greptile-apps

greptile-apps Bot commented Jul 28, 2026

Copy link
Copy Markdown

Greptile Summary

Standardizes disclosure requirements for AI-assisted GitHub contributions.

  • Extends disclosure coverage to pull request descriptions and reviews.
  • Introduces a shared tool, model, and version format.
  • Directs contributors to use unavailable instead of guessing identifiers.

Confidence Score: 4/5

The documentation-only change is safe to merge, with a non-blocking ambiguity in how the standardized template represents an unavailable model identifier.

The new fallback prose covers unavailable model and version identifiers, but the template explicitly provides an unavailable variant only for version, allowing inconsistent model-field formatting.

Files Needing Attention: AGENTS.md

Important Files Changed

Filename Overview
AGENTS.md Expands and standardizes AI disclosure guidance, but leaves the required representation of an unavailable model identifier ambiguous.

Fix All in Claude Code

Reviews (1): Last reviewed commit: "docs(contributing): standardize AI discl..." | Re-trigger Greptile

Comment thread AGENTS.md
When AI contributes GitHub content—including a pull request description, review, pull request
comment, or discussion post—append this disclosure:

`*AI-assisted — Tool: <tool>; model: <provider>/<model>; version: <version-or-unavailable>.*`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Clarify unavailable model formatting

The template requires model: <provider>/<model>, while the following instruction requires unavailable when the model is not exposed. This leaves contributors choosing incompatible forms such as model: unavailable or model: unavailable/unavailable, undermining the intended consistent disclosure format.

Context Used: AGENTS.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code

@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 `@AGENTS.md`:
- Around line 125-128: Update the AI disclosure guidance around the
“AI-assisted” template to require exact runtime-exposed values independently for
tool, provider/model, and version. Specify that any unavailable field, including
tool, must use “unavailable”; prohibit leaving placeholders or inferring
identifiers.
🪄 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: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 0c796b71-7806-40de-9070-1b3f06258192

📥 Commits

Reviewing files that changed from the base of the PR and between 28042e5 and ef33317.

📒 Files selected for processing (1)
  • AGENTS.md

Comment thread AGENTS.md
Comment on lines +125 to +128
`*AI-assisted — Tool: <tool>; model: <provider>/<model>; version: <version-or-unavailable>.*`

Use the exact model and version identifiers exposed by the runtime. Never infer or guess them; use
`unavailable` when either value is not exposed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Define the fallback for every identifier, including the tool.

The rule only specifies unavailable for missing model/version values, while <tool> has no equivalent fallback. Require each field to use its exact runtime-exposed value independently, or unavailable when that field is not exposed; never leave placeholders or infer values.

Proposed wording
-Use the exact model and version identifiers exposed by the runtime. Never infer or guess them; use
-`unavailable` when either value is not exposed.
+Use the exact tool, model, and version identifiers exposed by the runtime. Never infer or guess any
+field; use `unavailable` for each identifier that is not exposed.

Based on learnings, AI disclosures must include exposed tool, model, and version details, using unavailable for missing identifiers.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
`*AI-assisted — Tool: <tool>; model: <provider>/<model>; version: <version-or-unavailable>.*`
Use the exact model and version identifiers exposed by the runtime. Never infer or guess them; use
`unavailable` when either value is not exposed.
`*AI-assisted — Tool: <tool>; model: <provider>/<model>; version: <version-or-unavailable>.*`
Use the exact tool, model, and version identifiers exposed by the runtime. Never infer or guess any
field; use `unavailable` for each identifier that is not exposed.
🤖 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 125 - 128, Update the AI disclosure guidance around
the “AI-assisted” template to require exact runtime-exposed values independently
for tool, provider/model, and version. Specify that any unavailable field,
including tool, must use “unavailable”; prohibit leaving placeholders or
inferring identifiers.

Source: Learnings

@jdx
jdx enabled auto-merge (squash) July 28, 2026 04:08
@github-actions

Copy link
Copy Markdown
Contributor

Instruction counts

benchmark trend instructions Δ wall (min) Δ
schema █▁ 6,829,447 → 6,829,383 -0.00% 3.92 → 4.33ms +10.46%
usage █▁ 10,694,536 → 10,694,382 -0.00% 4.47 → 5.06ms +13.38%

No instruction-count regression above 1%.

Only instruction counts gate. Wall clock is shown for context — on identical hardware it moves 4-20% run to run.

Measured by tak — instruction-counted CLI benchmarks, stored in this repository's git notes.

ef33317b3078 vs 28042e568a09 · measured on the runner, not pushed to the history.

@jdx
jdx merged commit 2678011 into main Jul 28, 2026
18 checks passed
@jdx
jdx deleted the agent/standardize-ai-disclosures branch July 28, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant