aidd-lint rule: hard-wrap #104
Labels
No labels
P0
P1
P2
P3
bug
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#104
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Hard-wrapped prose in AiDD files. Verbatim,
plugins/os-sdlc/skills/mine-lints/SKILL.md:21-22(current -- still present afterc6a4177):Costs: (a) editors soft-wrap on top of the hard wrap, producing the double-wrapped mess seen in review; (b) grep -- human or AI -- cannot match a phrase broken across a line boundary (
grep "the way Sandi Metz would -- before"misses this line). Markdown rendering is identical either way; the only real cost of unwrapping is coarser git diffs (accepted).Decision this rule encodes: AiDD prose is one logical line per bullet/paragraph -- no wrap column.
Detection
-/*, numbered item, heading, blockquote, fence)."<file>:<lines N-M>: paragraph is hard-wrapped. AiDD prose is one logical line per bullet/paragraph (autocorrectable)."Correction
Pass/fail examples
Provenance
mine-lints simplification 2026-07-23; user review of editor rendering. Part of the aidd-lint system (see mapping ticket).
Implementation plan
AUDIT DEFAULTS FIRST (standing convention):
mdformat --wrap=noandprettier --prose-wrap neveralready implement this autofix -- the cop should wrap/enforce one of them rather than reimplement joining logic. Only hand-roll if neither respects the skip-list (fences/tables/frontmatter) correctly. TDD either way.Implemented on branch aidd-lint/tier-1 (plugins/os-aidd-lint, cop: hard_wrap.rb). 55-test suite green; report-only corpus scan run. Awaiting human review — open items noted on #109.
Implemented on branch aidd-lint/tier-1 (plugins/os-aidd-lint, cop: hard_wrap.rb). 55-test suite green; report-only corpus scan run. Awaiting human review — open items noted on #109.
Implemented on main:
lib/aidd_lint/cops/hard_wrap.rb, registered inregistry.rb(HardWrap), tests attests/cops/hard_wrap_test.rb(8 runs, 14 assertions, 0 failures). Closing.