T-G6T3-baseline-capture-runs-worktree-init
Status: closed/superseded · Impact: medium · Complexity: small
/sdlc:task-work Step 3a captures the quality baseline from the main checkout
against origin/main, before Step 4 runs worktree_init. In projects whose
checks need installed dependencies (e.g. npm run test / npm run typecheck),
the main checkout has no node_modules, so the baseline run records exit 127
(command not found) and meaningless command-echo “findings” instead of real
ones — a misleading baseline that Step 7’s drift diff then subtracts against.
Baseline capture should run against a dependency-installed tree (run
worktree_init first, or capture from the initialised worktree) so the
pre-existing-drift baseline reflects real check output.
From
T-VQ1N-ci-quality-checksin <git@github.com:sksizer/markdown-contract.git>: The quality baseline (Step 3a) is captured from the main checkout, wherenode_modulesis not installed, so both verbs recordedexit 127(command not found) and meaningless npm-echo “findings” instead of real ones — a misleading baseline. Baseline capture should runworktree_initfirst (or capture from a deps-installed tree) so the pre-existing-drift baseline reflects real check output.
See also (related project-root / baseline-dir resolution work, for the receiver
to fold or distinguish at definition time):
T-44OO-plugin-scripts-self-discover-project-root — note that is about where
the baseline file is written (project-root discovery), whereas this gap is about
the checks recording exit 127 because dependencies are not installed when
the baseline is captured.
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-06-27 UTC from
T-VQ1N-ci-quality-checks in <git@github.com:sksizer/markdown-contract.git>.