code-comments: soften to 2 contiguous lines, exempt eco-* repos #24

Closed
opened 2026-05-26 02:48:50 +00:00 by coilysiren · 0 comments
Owner

Problem

The code-comments validator at MAX_CONTIGUOUS=1 rejects every two-line Python explanation and every multi-line Go godoc. Survey across coilysiren/* finds 14,018 violations at TOL=1, 9,932 at TOL=2. The dominant pattern is first-party idiomatic style, not vendored content.

Eco-modding repos (eco-*) sit on Unity / C# trees with mod-author comment conventions that conflict with the rule shape entirely.

Fix

  • check_code_comments.py: bump MAX_CONTIGUOUS_COMMENT_LINES to 2. Two-line blocks pass; 3+ contiguous still flagged. Single-line + 90-char cap unchanged.
  • apply-agentic-os-hooks.py: per-repo skip list. Repos matching eco-* prefix get the managed block without code-comments. Other validators (documentation-layout, etc) still apply.

Out of scope

The vendored-file escape hatch from #22 (per-hook exclude preservation, git ls-files filter). Separately tracked.

Follow-up

After v0.2.8 ships and rolls out, file a cleanup issue per non-eco repo with non-zero violations. Fan out via coily dispatch interactive.

**Problem** The code-comments validator at MAX_CONTIGUOUS=1 rejects every two-line Python explanation and every multi-line Go godoc. Survey across coilysiren/* finds 14,018 violations at TOL=1, 9,932 at TOL=2. The dominant pattern is first-party idiomatic style, not vendored content. Eco-modding repos (eco-*) sit on Unity / C# trees with mod-author comment conventions that conflict with the rule shape entirely. **Fix** - `check_code_comments.py`: bump `MAX_CONTIGUOUS_COMMENT_LINES` to 2. Two-line blocks pass; 3+ contiguous still flagged. Single-line + 90-char cap unchanged. - `apply-agentic-os-hooks.py`: per-repo skip list. Repos matching `eco-*` prefix get the managed block without `code-comments`. Other validators (documentation-layout, etc) still apply. **Out of scope** The vendored-file escape hatch from #22 (per-hook exclude preservation, git ls-files filter). Separately tracked. **Follow-up** After v0.2.8 ships and rolls out, file a cleanup issue per non-eco repo with non-zero violations. Fan out via `coily dispatch interactive`.
Sign in to join this conversation.
No labels
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
coilyco-flight-deck/agentic-os#24
No description provided.