Fix task worktree path derivation to anchor on the main checkout #69

Merged
weichen merged 5 commits from feature/task-start-rootfix into main 2026-09-30 15:32:24 +00:00
5 Commits
Author SHA1 Message Date
weichen a4d4a13742 Fill task card objectives and verification evidence
ci / test (pull_request) Failing after 2m17s
Why: the task card and PR description are one document; objectives, results and verification evidence must be on the record before requesting review.
Evidence: card filled with smoke A/B results (sibling-path assertions both PASS) and sync row 7fab8feaf7/aecaa52e6b.
Impact: .task/feature-task-start-rootfix.md only; no code change.
Refs: feature-task-start-rootfix
2026-09-30 15:29:40 +00:00
weichen c9f27bc163 Record the sync checkpoint 2026-09-30 15:28:27 +00:00
weichen aecaa52e6b Merge remote-tracking branch 'origin/main' into feature/task-start-rootfix 2026-09-30 15:28:27 +00:00
weichen d3893609b7 Fix task worktree path derivation to anchor on the main checkout
Why: cmd_start derived the worktree location from $PWD, so running task.sh start from a repository subdirectory (or inside a task worktree) placed the new worktree at the wrong spot — e.g. scripts-wt-<slug> nested inside the repo.
Evidence: bash -n clean; functional smoke of the patched script from both the main checkout scripts/ subdir and the repo root created ../Agent-System-Dev-wt-<slug> as a sibling of the main checkout (paths asserted; pre-fix subdir run would nest inside the repo); git rev-parse --git-common-dir resolves to the main checkout from both locations (relative ../.git vs absolute).
Impact: scripts/task.sh cmd_start only; from the main checkout root the derived path is identical to before; new worktrees now always land as siblings of the main checkout regardless of invocation directory.
Refs: .task/feature-task-start-rootfix.md
2026-09-30 15:28:14 +00:00
weichen 19452ba7ca Record the task card for feature-task-start-rootfix 2026-09-30 15:22:51 +00:00