Skip to content

docs(comment-policy): sync agent-prompt-surface guidance from upstream (SD-2923) - #3110

Merged
caio-pizzol merged 1 commit into
mainfrom
caio-pizzol/SD-2923-policy-sync
May 4, 2026
Merged

docs(comment-policy): sync agent-prompt-surface guidance from upstream (SD-2923)#3110
caio-pizzol merged 1 commit into
mainfrom
caio-pizzol/SD-2923-policy-sync

Conversation

@caio-pizzol

Copy link
Copy Markdown
Contributor

Picks up two improvements from the upstream comment-policy reference at github.com/caiopizzol/comment-bench:

  • The "Treat stale comments as bugs" section now spells out the reason: in agent-heavy codebases, comments are prompt surface. A stale comment is not harmless decoration. It becomes the next instruction.
  • New "Treat agent-facing docs as comments" section extends the same rule to README.md, AGENTS.md, CLAUDE.md, runbooks, and tutorials. A stale root instruction is arguably more dangerous than a stale inline comment because agents treat it as project policy.

The local "Loaded terms" taxonomy added in #3103 is untouched. The CLAUDE.md / AGENTS.md snippet's final line bumped to "Treat stale comments and stale agent-facing docs as bugs."

Related: SD-2923 (comment hygiene umbrella).

…m (SD-2923)

Two changes from the upstream comment-policy at
github.com/caiopizzol/comment-bench:

- "Treat stale comments as bugs" now spells out why: in agent-heavy
  codebases, comments are prompt surface. A stale comment is not
  decoration; it becomes the next instruction.
- New "Treat agent-facing docs as comments" section: extends the policy
  to README.md, AGENTS.md, CLAUDE.md, runbooks, tutorials. A stale root
  instruction is more dangerous than a stale inline comment because
  agents may treat it as project policy.

Snippet's last line bumped to "Treat stale comments and stale
agent-facing docs as bugs." The local "Loaded terms" taxonomy is
untouched.
@caio-pizzol
caio-pizzol requested a review from a team as a code owner May 4, 2026 14:13
@linear

linear Bot commented May 4, 2026

Copy link
Copy Markdown

@caio-pizzol
caio-pizzol merged commit 0ab9966 into main May 4, 2026
12 of 13 checks passed
@caio-pizzol
caio-pizzol deleted the caio-pizzol/SD-2923-policy-sync branch May 4, 2026 14:14
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