claude-dev-env 8.46.4 → 8.46.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/agents-archived/clean-coder.md +1 -1
- package/.agents/agents-archived/code-quality-agent.md +1 -1
- package/.agents/skills/grok-spawn/reference/worker-briefs.md +1 -1
- package/AGENTS.md +1 -1
- package/docs/CODE_RULES.md +1 -1
- package/hooks/blocking/code_rules_comments.py +4 -4
- package/package.json +1 -1
- package/system-prompts/software-engineer.xml +1 -1
|
@@ -135,7 +135,7 @@ Consult the advisor the spawn ticket names. When the ticket names the orchestrat
|
|
|
135
135
|
[3] Parameters and returns typed; no Any / no type-ignore directives?
|
|
136
136
|
[4] Do not add code comments. Preserve existing comments. Docstrings remain allowed.
|
|
137
137
|
[5] When a change touches code that an existing comment describes or is attached to, remove that comment in the same change and carry its meaning through clear names and structure. Leave comments tied to untouched code unchanged. Keep comment cleanup inside the requested task.
|
|
138
|
-
[6] Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed
|
|
138
|
+
[6] Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed. Do not add or justify them.
|
|
139
139
|
[7] Magic values and UPPER_SNAKE live in config/ where required?
|
|
140
140
|
[8] Function short; one job; guards over else-chains?
|
|
141
141
|
[9] Pre-check --check clean for the real destination path?
|
|
@@ -63,7 +63,7 @@ Tradeoff for category-restricted mode: parallel category invocation loses cross-
|
|
|
63
63
|
|
|
64
64
|
Leave comments tied to untouched code unchanged. Findings on production and test code report only on new code added by the diff; comments on lines that remain otherwise unchanged stay outside the audit's scope. New inline comments added by this PR's diff are themselves a category J finding (code self-documents through naming).
|
|
65
65
|
When a change touches code that an existing comment describes or is attached to, remove that comment in the same change and carry its meaning through clear names and structure. Leave comments tied to untouched code unchanged. Keep comment cleanup inside the requested task.
|
|
66
|
-
Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed
|
|
66
|
+
Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed. Do not add or justify them.
|
|
67
67
|
|
|
68
68
|
## Read-Only Stance
|
|
69
69
|
|
|
@@ -63,7 +63,7 @@ You edit code and run tests for one closed task. You never commit, push, or call
|
|
|
63
63
|
|
|
64
64
|
Do not add code comments. Preserve existing comments. Docstrings remain allowed.
|
|
65
65
|
When a change touches code that an existing comment describes or is attached to, remove that comment in the same change and carry its meaning through clear names and structure. Leave comments tied to untouched code unchanged. Keep comment cleanup inside the requested task.
|
|
66
|
-
Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed
|
|
66
|
+
Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed. Do not add or justify them.
|
|
67
67
|
|
|
68
68
|
## Scope
|
|
69
69
|
|
package/AGENTS.md
CHANGED
|
@@ -68,7 +68,7 @@ Match requested status, paths, links, and format. Name files, checks, blockers,
|
|
|
68
68
|
|
|
69
69
|
Do not add code comments. Preserve existing comments. Docstrings remain allowed.
|
|
70
70
|
When a change touches code that an existing comment describes or is attached to, remove that comment in the same change and carry its meaning through clear names and structure. Leave comments tied to untouched code unchanged. Keep comment cleanup inside the requested task.
|
|
71
|
-
Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed
|
|
71
|
+
Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed. Do not add or justify them.
|
|
72
72
|
|
|
73
73
|
Banned word: real
|
|
74
74
|
|
package/docs/CODE_RULES.md
CHANGED
|
@@ -7,7 +7,7 @@ Use this index for edits. [`.cursor/BUGBOT.md`](../../../.cursor/BUGBOT.md) poin
|
|
|
7
7
|
Do not add code comments. Preserve existing comments. Docstrings remain allowed.
|
|
8
8
|
|
|
9
9
|
When a change touches code that an existing comment describes or is attached to, remove that comment in the same change and carry its meaning through clear names and structure. Leave comments tied to untouched code unchanged. Keep comment cleanup inside the requested task.
|
|
10
|
-
Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed
|
|
10
|
+
Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed. Do not add or justify them.
|
|
11
11
|
|
|
12
12
|
A keep marker is the one comment that may be added and kept: a comment that opens with a prefix the repository lists under `comment_keep_markers` in `.claude/policy-lint.json`. Open [details](code-rules/comment-preservation.md) when editing comments.
|
|
13
13
|
|
|
@@ -201,10 +201,10 @@ def _is_keep_occurrence(comment_text: str, all_keep_markers: tuple[str, ...]) ->
|
|
|
201
201
|
"""Return True for a comment that opens with an accepted keep marker.
|
|
202
202
|
|
|
203
203
|
A keep marker is meant to be freely added and to survive edits to the
|
|
204
|
-
line it sits on
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
deliberately still blocks on add.
|
|
204
|
+
line it sits on. AGENTS.md requires ``noqa`` and ``TODO`` comments to be
|
|
205
|
+
removed and forbids adding or justifying them. This check excludes keep
|
|
206
|
+
markers itself, outside the shared exempt-marker set that
|
|
207
|
+
``check_comment_changes`` deliberately still blocks on add.
|
|
208
208
|
"""
|
|
209
209
|
return comment_text.startswith("#") and comment_text[1:].lstrip().startswith(
|
|
210
210
|
all_keep_markers
|
package/package.json
CHANGED
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
- Preserve existing comments.
|
|
117
117
|
- Do not add code comments.
|
|
118
118
|
- When a change touches code that an existing comment describes or is attached to, remove that comment in the same change and carry its meaning through clear names and structure. Leave comments tied to untouched code unchanged. Keep comment cleanup inside the requested task.
|
|
119
|
-
- Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed
|
|
119
|
+
- Production and tests follow one rule. Changed directive, TODO, FIXME, HACK, XXX, and type-ignore comments are removed. Do not add or justify them.
|
|
120
120
|
- Express new explanations through self-documenting names
|
|
121
121
|
- Docstrings remain allowed.
|
|
122
122
|
|