Repository navigation
fix(work-items): resolve the repository root in its own call - #15380
Conversation
Thirty-two snippet and path sites across attend-queue, scan-todos, setup, ship, track, triage and work embedded `$(git rev-parse --show-toplevel)` inside a larger command, the shape #6929 found a worktree-isolated session refuses. decompose and track add were already rewritten to separate calls. The shared tracker reference gains a "Project root" section: resolve `$CLAUDE_PROJECT_DIR` (printenv) and, when unset, `git rev-parse --show-toplevel` in their own Bash calls, then spell the printed path out. Each site now writes a literal `<project root>` and points at that section, keeping the CLAUDE_PROJECT_DIR-first precedence. The section carries the worktree-isolation pointer record. The scan-todos eval samples that quoted the old git grep command now use a literal path. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojQwC9uJAfmSt4EHZm
Fold the project-root note into the paragraph after the claim snippet, so triage/SKILL.md stays at 499 lines, under the 500-line hard cap. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojQwC9uJAfmSt4EHZm
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Lane-Activity: pr-refine/fix-docs
|
claude-security-review reviewed Security review: PR #15380, fix(work-items): resolve the repository root in its own callNo security issues found. I read every hunk of all 26 changed files in the full diff. None of them match a listed trusted path. The change has a few parts:
What I checked:
critical-findings: 0 |
|
claude-review reviewed Code review: no findingsI read every hunk of all 26 changed files. The PR replaces each What I checked:
Not covered here: the PR's own Verification section (markdownlint, the fragment check,
|
No related issue: a cross-plugin item the stage-3 skill re-audit withheld for one fix; it has no tracking issue.
Summary
Thirty-two snippet and path sites in the work-items skills embedded
$(git rev-parse --show-toplevel)inside a larger command. #6929 found that a worktree-isolated session refuses that shape, anddecomposeandtrack addwere already rewritten to resolve the root in a separate call. This PR gives every other site the same treatment.Fix
plugins/work-items/reference/tracker-seam.mdgets a new Project root section. Resolve the root in separate Bash calls (printenv CLAUDE_PROJECT_DIR, thengit rev-parse --show-toplevelwhen that prints nothing) and spell the printed path out. The section carries the pointer record: the worktrees isolation section (anchor checked live today), as-of 2026-11-11, and a recheck trigger. The seam's own dispatcher snippet now uses the placeholder too.<project root>and links that section.$CLAUDE_PROJECT_DIRstill wins when it is set, as before. Sites by file:attend-queue: SKILL.md (tracker fallback)scan-todos: SKILL.md (git -Croot)setup: SKILL.md (convention-home root and the adapter path in prose),reference/capability-tier-backfill.md,reference/check.md,reference/personal-override-ignore-probes.mdandreference/providers.mdship: SKILL.md andactions/run.mdtrack: actionsaudit,done,due(2),edit,recheck(2),search,start(2) andstatstriage: SKILL.mdwork: SKILL.md (2) andcontext/candidate-discovery.md(4)evals/st-no-group-selected-no-edit/samples/, seven sample answers across four files quoted the old scan-todos command. They now use a literal path. Thescans-with-git-grepregex grader still matches them.Verification
git grep 'rev-parse --show-toplevel)' -- plugins/work-items/skillsnow finds only the pre-fix(work-items): decompose publish snippet is refused in worktree-isolated sessions #6929 recheck-trigger text indecomposeandtrack add.scripts/check-changelog-fragments.sh --check: valid.validate-cases.py plugins/work-items/evals: no FAIL; the WARNs were already there.scripts/check-changed-skills.sh: all 7 changed skills PASS. The first push hit the triage SKILL.md 500-line hard cap, and the second commit fixes that.check-affected: passed.Related
decompose/track addrewrite."$TRACKER" <verb>, where the command name is computed at runtime. The isolation page lists that as another shape it can refuse.decomposeandtrack addcall the plugin-root path directly instead. Converting every"$TRACKER"call site is a separate change.🤖 Generated with Claude Code
https://claude.ai/code/session_01VcupojQwC9uJAfmSt4EHZm