aidd-lint rule: dead-reference-pointer #102
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#102
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
Preventive rule -- no live offense today. The aidd-lint fix pattern is "relocate detail to a references/*.md and point to it" (see step-bulk), which makes pointers load-bearing: a broken pointer silently deletes the relocated instructions from the agent's reachable context. Exemplar of the pattern done right,
plugins/os-sdlc/skills/mine-lints/SKILL.md(current):Detection
/[\w.\/-]+\.md/, resolved relative to the file's directory (also try repo root forplugins/...absolute-style paths).</>placeholders."<file>:<line>: points at <path>, which does not exist. Create it or fix the path."Correction
Pass/fail examples
references/does-not-exist.mdwhen no such file is on disk.references/reconcile-gate.mdandreferences/implement-cop.mdexist); a link tohttps://example.com/x.md; a templatedreferences/<name>.mdplaceholder.Provenance
mine-lints simplification 2026-07-23; consequence of adopting relocate-don't-delete as the standard fix. Part of the aidd-lint system (see mapping ticket).
Implementation plan
Same markdown-lint infra; TDD; fixtures include a temp directory with and without the target file.
Implemented on branch aidd-lint/tier-1 (plugins/os-aidd-lint, cop: dead_reference_pointer.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: dead_reference_pointer.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/dead_reference_pointer.rb, registered inregistry.rb(DeadReferencePointer), tests attests/cops/dead_reference_pointer_test.rb(24 runs, 50 assertions, 0 failures). Closing.