Widen DeadReferencePointer path resolution before ambient hook rollout #110
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#110
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?
DeadReferencePointer's 51-hit scan is dominated by three false-positive classes:
${CLAUDE_PLUGIN_ROOT}-prefixed paths (runtime-resolved, not resolvable at lint time)graphify-out/)Resolve these before promoting the cop back to
:offensefor #108 ambient hook wiring. Cop demoted to:advisoryin the meantime.Fourth false-positive class found during tier-2 A/B verification: invoking bin/aidd-lint with a RELATIVE subject path makes Config.repo_root_for walk the unexpanded path, never finds .git when cwd != repo root, and dead-reference-pointer then false-positives on real files (observed on plugins/os-sdlc/reference/lint-rule-ticket-template.md). Absolute paths unaffected; the PostToolUse hook passes absolute paths, so production risk is low. Fix candidate: File.expand_path at Config entry points.
Consolidated into #150. Verified live against this checkout: the ${CLAUDE_PLUGIN_ROOT} class is fixed (WHOLE_PATH_PREFIX/truncated-match handling, #162, regression test in path_reference_scanner_test.rb:156). The bare-sibling-filename class (distill.md example) is an intentional design tradeoff per the cop's own comment (dead_reference_pointer.rb:76-86) — repo-wide bare search is deliberately not done outside CLAUDE.md files; fix is tightening the doc, not the cop. The runtime-generated-artifact class still reproduces and is carried into #150 as class 4. Closing as duplicate.