chore(agents): add comment/reference rule, drop no-push guardrail#1168
Merged
Conversation
Add .agents/rules/code-comments.md (applies to all files): comment sparingly, never reference ephemeral artifacts (specs/tasks/tickets/ spec-kit command names) in any file, and use standard # type: ignore. Remove the stale "never push to GitHub" boundary from AGENTS.md now that agents run more autonomously.
CLAUDE.md is a thin @AGENTS.md router; add a Never-boundary so agents edit AGENTS.md instead.
Deploying infrahub-sdk-python with
|
| Latest commit: |
89ebe4b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://47be20fc.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://dga-chore-context-a5y7m.infrahub-sdk-python.pages.dev |
saltas888
approved these changes
Jul 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tightens the guidance coding agents follow, based on behaviors observed across recent PRs, and retires one stale guardrail now that agents operate more autonomously.
Key Changes
AGENTS.mdandCLAUDE.md, so archived planning docs don't leak into the codebase.# type: ignore[<code>]form that mypy/pyright/pytype honor, never the dead# ty: ignore.AGENTS.md.Test Plan
uv run invoke lint-docspasses (rumdl reports no issues).ls -L .claude/rules/listscode-comments.md.Summary by cubic
Adds a global rule for agent comments and references with standardized
# type: ignore[...]usage. Replaces the stale "no auto-push" boundary with a "never editCLAUDE.md" rule to route edits toAGENTS.md..agents/rules/code-comments.md(applies to all files): comment sparingly; never reference ephemeral artifacts; use# type: ignore[<code>]only.AGENTS.md: removed "never push to GitHub automatically"; added "never updateCLAUDE.md(editAGENTS.mdinstead)".Written for commit 89ebe4b. Summary will update on new commits.