T-2HDX-normalize-cwd-relative-baseline-paths
Status: planning/draft · Impact: medium · Complexity: small
/sdlc:task-work subtracts a pre-captured quality baseline from the gate output
to isolate new drift, but that subtraction is a string match on finding lines.
Some runners (notably knip / lint:deps) emit paths relative to the cwd, so the
same finding renders differently from the main-repo cwd versus a worktree cwd and
fails to match — leaking pre-existing findings into the new-drift report. This task
closes that gap in the SDLC plugin’s task-work baseline diff so a baseline
captured in one cwd subtracts cleanly under a gate run in another. Originating from
T-D8TE-ratchet-biome-complexity-ceiling in https://github.com/sksizer/markdown-contract.
Originating post-mortem: knip (lint:deps) emits cwd-relative paths (../../../.git/hooks/… from a worktree vs .git/hooks/… from the main repo), so a baseline captured from the main-repo cwd cannot string-match findings from a worktree gate run. The baseline diff should normalize cwd-relative finding paths (or always capture and run from a canonical cwd) so main-repo baselines subtract cleanly under a worktree run.
TBD — receiver to fill before promoting from planning/draft.
Proposed
Section titled “Proposed”TBD — receiver to fill before promoting from planning/draft.
Approach
Section titled “Approach”TBD — receiver to fill before promoting from planning/draft.
Files to touch
Section titled “Files to touch”TBD — receiver to fill before promoting from planning/draft.
Acceptance criteria
Section titled “Acceptance criteria”TBD — receiver to fill before promoting from planning/draft.
Out of scope
Section titled “Out of scope”- none
Dependencies
Section titled “Dependencies”- none
Discovery context
Section titled “Discovery context”Spawned by /sdlc:spawn-task-pr on 2026-07-04 UTC from T-D8TE-ratchet-biome-complexity-ceiling in
https://github.com/sksizer/markdown-contract.