Skip to content

docs: resolve the project root in its own calls at the remaining show-toplevel fallbacks - #16892

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-15499-44129812538-1
Nov 18, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-15499-44129812538-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #15499

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Applied #15380's project-root form at the three remaining non-ADR sites. Each one now writes a literal <project root> and says to resolve it first in separate Bash calls (printenv CLAUDE_PROJECT_DIR, then git rev-parse --show-toplevel), following plugins/work-items/reference/tracker-seam.md "Project root". This replaces the embedded ${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}. ADR 0015 stays as written because an ADR records a decision as made. The review also found a pre-existing bug in the same apply-convention snippet, now fixed: the layer=team git check-ignore probe was the only git command without -C "$REPO_ROOT", so a session outside the working tree would read the git error as "no match" and the snippet would report false success.

Not verified

  • Tidy not run: the change spans 2 areas (docs/contracts, plugins/source-control), above the tidy cutoff of 1
  • Markdown lint, lychee link checks and typos run only in CI (check-affected lists them as CI-only, and typos is not installed here); left to the PR's CI
  • The edited bash snippets were not executed: the lane allows no interpreter runs, so their correctness rests on reading and the subagent review
  • git status shows untracked runner dotfiles at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc). This run did not create them, so they should not go into the patch

Fix

  • docs/contracts/config-cascade/README.md: the work-items row of "Root rule by plugin" now names the recurring-schedule path as <project root>/.github/recurring-schedule.json, resolved per tracker-seam.md "Project root"
  • docs/contracts/loop-lane/README.md: the "Skip an issue (worker lane)" snippet drops the root= fallback and reads <project root>/docs/conventions/work-items.yaml; the prose before it says to resolve the root in its own calls and links tracker-seam.md#project-root
  • plugins/source-control/skills/setup/reference/apply-convention.md: both REPO_ROOT assignments (layer=team and layer=local) are now REPO_ROOT="<project root>", with a resolve-first instruction above them; the layer=team one-call note is reworded (REPO_ROOT is set once for every command, not…
  • .changes/source-control/work-resolve-issue-issue-15499-44129812538-1-5f4b3d50.md: new patch fragment for the source-control setup changes

Verification

The runner ran each check from the base copy against 9908840:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • Grep for CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel) across the repo (excluding .lane): before the change it matched ADR 0015:46, config-cascade:789, loop-lane:1477 and apply-convention:378/405. After the final edit, re-run: only ADR 0015:46 matches
  • check-changelog-fragments: all 6 fragments valid (run after the final edit)
  • check-changed-skills: plugins/source-control/skills/setup PASS, 0 errors; 3 warnings about SKILL.md size and description length that this change did not cause
  • check-affected: 15 passed, 7 skipped, the rest CI-only, over 4 changed files (run after the final edit)
  • Fresh-context review subagent over the three edited files: form applied correctly at all three sites, no $root left behind, the loop-lane relative link and the #project-root anchor resolve, and one pre-existing check-ignore bug found, now fixed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44129812538

Left out: the items under Not verified.

Related

#15499

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 9908840794aef9e12c68c5d3774bf47e3175077c. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate holds it on its risk score (evidence-unbound:claude-review: not bound:
  rerun-not-allowed; evidence-unbound:claude-security-review: not bound: rerun-not-allowed)

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 74015e18915c618131f7a76d58d1cdc7e86e1dc6: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16892

No security issues found. I read every hunk of all 4 changed files. None of them matches a trusted-path glob.

This was a blocking-only review: this lane already reviewed an earlier head (9908840). The new head is a merge from main, and the PR's diff is the same as before.

  • docs/contracts/config-cascade/README.md, docs/contracts/loop-lane/README.md: the embedded ${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)} is replaced with a literal <project root>. The text now says to resolve it first in separate Bash calls (printenv CLAUDE_PROJECT_DIR, else git rev-parse --show-toplevel). The root comes from the same sources in the same order, so trust in what it points at is unchanged.
  • plugins/source-control/skills/setup/reference/apply-convention.md: both REPO_ROOT assignments are changed the same way. The layer=team ignore probe is now git -C "$REPO_ROOT" check-ignore -v -- "$TEAM_FILE". It runs against the resolved root and adds a -- separator. Before, a session outside the working tree got a git error that the probe read as "no match". The check is now stricter and nothing in it is weakened.
  • .changes/... fragment: changelog text only.

Instruction-surface lens: no standing instruction is deleted, narrowed or softened. The STOP on an ignored team file and the two-probe branching for layer=local are both still there. The diff has no plugin manifests, workflows, token requests, trust controls or merge-hold paths.

Embedded text: the PR context holds no directive aimed at the review lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 74015e18915c618131f7a76d58d1cdc7e86e1dc6: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #16892 (blocking only)

This lane reviewed an earlier head (9908840), so this pass reported only blocking findings. The new head 74015e18 merges main into the branch. The PR's own diff has not changed: the same 4 files, all read in full. I found no blocking findings.

What I checked

  • plugins/source-control/skills/setup/reference/apply-convention.md:
    • Both REPO_ROOT sites now read "<project root>", and the paragraph above them says to resolve the root first (L375-L384).
    • The layer=team probe now runs git -C "$REPO_ROOT" check-ignore -v -- "$TEAM_FILE" (L391). It now matches the status, add and diff calls that follow it.
  • docs/contracts/loop-lane/README.md: the snippet no longer uses $root, and the relative link to tracker-seam.md#project-root is in place.
  • docs/contracts/config-cascade/README.md: the work-items row now describes the <project root> form.
  • The changelog fragment is a patch bump, which fits a docs and snippet fix.

Closing issue #15499 acceptance criteria

  • config-cascade row uses the form: met.
  • loop-lane uses the form: met.
  • apply-convention uses the form at both REPO_ROOT sites: met.
  • ADR 0015 is left as written: met (it is not in the diff).
  • The grep criterion: met for the three edited files, since none of them has the fallback any more.

The earlier review's whole-PR advisory finding was that no test guards against the fallback coming back. It is not repeated here because this review reports blocking findings only.

Not verified: nobody ran the edited bash snippets. The author says so in the PR, and this lane did not run them either.

Other checks

  • Paved paths: none apply.
  • Path-scoped rules: I found no .claude/rules/ rule that matches these files.
  • Plugin manifests: none changed.
  • Embedded instructions: the PR context contains none aimed at the lane.

Loosened-check verdict: fail (the default, because the wrapper supplied no loosened_check_verdict: or loosened_check_patterns: lines); patterns: 0. The diff does not loosen any check, and the check-ignore change makes one stricter.

Spend: none beyond this review run.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44212946945

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 74015e18915c618131f7a76d58d1cdc7e86e1dc6, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 74015e1

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-16892-74015e18915c618131f7a76d58d1cdc7e86e1dc6, expires on 2026-12-18.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=74015e18915c618131f7a76d58d1cdc7e86e1dc6 rubric=10.2.1 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 304b57d Nov 18, 2026
55 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-15499-44129812538-1 branch November 18, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: apply #15380's project-root form to the remaining show-toplevel fallbacks

1 participant