Skip to content

Add Documentation DO/DON'T section in agents.md#1103

Merged
suri-kumkaran merged 3 commits into
mainfrom
users/suryangupta/agents-docs-guidance
Jun 8, 2026
Merged

Add Documentation DO/DON'T section in agents.md#1103
suri-kumkaran merged 3 commits into
mainfrom
users/suryangupta/agents-docs-guidance

Conversation

@suri-kumkaran

@suri-kumkaran suri-kumkaran commented May 25, 2026

Copy link
Copy Markdown
Contributor

Adds a Documentation DO/DON'T section to agents.md alongside the existing Test Patterns block.

Surfaced during review of #1027 and other PRs, where module- and item-level docs drifted toward manually-maintained type listings and signature restatements. New section captures the "less is more" framing, reminds agents not to duplicate what rustdoc already provides, and codifies the three patterns the reviewer called out as noise.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds contributor guidance to keep Rust documentation focused on durable semantics rather than duplicating rustdoc output, helping prevent module/item docs from drifting into manually maintained type/signature listings.

Changes:

  • Adds a new “Documentation” DO/DON’T section to agents.md.
  • Encourages using cargo doc --no-deps to rely on rustdoc-generated structure (signatures, listings, re-exports, links).
  • Codifies specific anti-patterns to avoid (manual type/function lists, signature restatements, unnecessary docs for internal visibility items).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter

codecov-commenter commented May 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.45%. Comparing base (e3139b4) to head (9e00a09).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1103      +/-   ##
==========================================
- Coverage   89.49%   89.45%   -0.04%     
==========================================
  Files         479      484       +5     
  Lines       90337    91407    +1070     
==========================================
+ Hits        80844    81765     +921     
- Misses       9493     9642     +149     
Flag Coverage Δ
miri 89.45% <ø> (-0.04%) ⬇️
unittests 89.10% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 84 files with indirect coverage changes

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

Comment thread agents.md Outdated
Comment thread agents.md Outdated
@suri-kumkaran suri-kumkaran merged commit 36e2856 into main Jun 8, 2026
22 checks passed
@suri-kumkaran suri-kumkaran deleted the users/suryangupta/agents-docs-guidance branch June 8, 2026 17:07
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.

5 participants