Skip to content

Re-apply anti-slop rules to existing code comments - #20

Merged
connollydavid merged 1 commit into
mainfrom
claude/anti-slop-cleanup
Jun 12, 2026
Merged

Re-apply anti-slop rules to existing code comments#20
connollydavid merged 1 commit into
mainfrom
claude/anti-slop-cleanup

Conversation

@connollydavid

Copy link
Copy Markdown
Owner

Re-apply the anti-slop rules to existing code comments

A one-shot audit (no-phase --all, engine at no-phase-skill d3c280c, which now also flags the review/finding code-as-name class) surfaced anti-slop tells in the submodule's existing code comments — they predate the commit-message gate, so they were never caught.

33 comment-only rewordings across 18 .c/.h files:

  • Phase N labels in file headers (catalog.c — … (Phase 4)), the smoke client's internal section names (Phase 1/2/3ready handshake / request-response / property-based tests), and assorted test-comment (Phase 4) tags — describe the thing, not its plan position.
  • A finding #1 review-reference in test_file_ops.c → dropped (kept the weed date).
  • Two Returns 1 pass, 0 fail lines → 1 on success, 0 on failure (a linter false positive on pass as an outcome, but clearer regardless).

Comment-only — the build is unchanged and green; no behaviour change. A re-audit of .c/.h is now zero. The .md obligation docs reference host phases as roadmap pointers (outside the code-comment scope the hook enforces) and are left as-is. Independent of the open CI PR.

🤖 Generated with Claude Code

…anti-slop re-apply)

A full re-apply of the no-phase anti-slop rules (engine at no-phase-skill
d3c280c, which also flags the review/finding code-as-name class) over the
submodule's existing code comments - tells that predate the commit gate. Drops
'Phase N' labels from file headers, the smoke client's internal section names,
and test comments (describing the thing instead of its plan position), and a
'finding #1' review-ref in test_file_ops. Comment-only: the build is unchanged
and green. Two 'Returns 1 pass, 0 fail' lines were reworded to '1 on success,
0 on failure' - a linter false positive on 'pass' as an outcome, but clearer
anyway. The .md obligation docs (host-phase cross-references, outside the
code-comment scope) are left as-is.
@connollydavid
connollydavid merged commit f444b39 into main Jun 12, 2026
6 of 8 checks passed
@connollydavid
connollydavid deleted the claude/anti-slop-cleanup branch June 12, 2026 21:44
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