aidd-lint rule: cross-section-duplication #103
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#103
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
The same rule stated in two sections of one file, drifting independently. Verbatim,
plugins/os-sdlc/skills/mine-lints/SKILL.mdas of5ea6bbf-- lines 54-56 (Workflow step 4):and lines 75-76 (Forbidden Moves):
Fixed in
c6a4177by moving the check into the ticket template and pointing at it.Detection
"<file>:<line>: restates <file>:<other-line> (section '<other-section>'). State the rule once; point from the other location."Correction
Pass/fail examples
Provenance
mine-lints simplification 2026-07-23, commit
c6a4177. Part of the aidd-lint system (see mapping ticket).Implementation plan
Same markdown-lint infra; TDD; threshold (0.8, 8 tokens) in
.aidd-lint.ymlconfig, tunable.Implemented on branch aidd-lint/tier-1 (plugins/os-aidd-lint, cop: cross_section_duplication.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: cross_section_duplication.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/cross_section_duplication.rb, registered inregistry.rb(CrossSectionDuplication), tests attests/cops/cross_section_duplication_test.rb(4 runs, 10 assertions, 0 failures). Closing.