Skip to content

fix(path-detection): broaden Windows checkout-root names beyond repos - #250

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/backfill-broadened-win-checkout-roots
Jul 22, 2026
Merged

fix(path-detection): broaden Windows checkout-root names beyond repos#250
kyle-sexton merged 1 commit into
mainfrom
fix/backfill-broadened-win-checkout-roots

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Backfills the broadened Windows checkout-root alternation (repos|Repos|projects|Projects|dev|Dev) in HPP_WIN_REPO_BODY / HPP_ESCAPED_WIN_REPO_BODY that melodic-software/claude-code-plugins#932 shipped directly in its managed materialization, plus contract tests pinning the new roots.

Without this, standards-sync keeps proposing a revert of the reviewed downstream behavior: the current sync PR (melodic-software/claude-code-plugins#951) stomps the broadened patterns and fails the downstream guardrails contract tests (hardcoded-path-check.test.sh: "windows Projects checkout root" cases). After this merges, the push-triggered sync refreshes that PR to the runner-policy lockfile change only, unblocking Dependabot alert remediation there.

The component file is byte-identical to the downstream reviewed copy (blob 785d1809).

Related

No linked issue.

Backfill the broadened HPP_WIN_REPO_BODY / HPP_ESCAPED_WIN_REPO_BODY
checkout-root alternation (repos|Repos|projects|Projects|dev|Dev) that
claude-code-plugins#932 shipped directly in its managed materialization,
and pin the new roots with contract tests. Restores upstream-downstream
convergence so the standards-sync PR stops reverting the reviewed
downstream behavior.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFq1q99cNeZjKhDzHv2BQw
@claude

claude Bot commented Jul 22, 2026

Copy link
Copy Markdown

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@github-actions

Copy link
Copy Markdown

Warning

Automated review did not complete — this is an infrastructure failure, not a review verdict.

Treat any Claude comment on this PR (including a placeholder like "I'll analyze this and get back to you") as incomplete, not "no findings."

Re-running the job, or pushing a new commit, will retry the review.

@kyle-sexton
kyle-sexton merged commit fa13102 into main Jul 22, 2026
44 of 45 checks passed
@kyle-sexton
kyle-sexton deleted the fix/backfill-broadened-win-checkout-roots branch July 22, 2026 21:05
kyle-sexton added a commit that referenced this pull request Jul 23, 2026
…ing separator (#255)

## Summary

The five `HPP_*` bodies required a separator AFTER the child segment,
which inverted detection both ways in a live consumer incident
(melodic-software/claude-code-plugins#1093):

- A real bare path value at end of line (`root = <drive>:/Dev/GitHub`)
has no trailing separator and was **missed** — a false negative on
exactly the config-value shape the bodies exist to catch.
- Prose satisfied the requirement anyway: the space-permitting segment
class greedily consumed words until a later slash on the same line,
flagging a comment as a "Windows repo path" while the actual violations
passed clean.

Fix: the segment classes now exclude whitespace and the double quote,
and the mandatory trailing separator is gone. Bare values at a natural
boundary (EOL, whitespace, quote) are detected; prose spans cannot match
(at least one non-space child character must follow the root); a root
with NO child segment (`C:\Users`, a lone `D:/repos/`) still never
matches.

## Deliberately flipped pins

`machine-path-patterns.test.sh` pinned "bare roots stay clean" as a
regression guard. Those pins are flipped, not worked around: that
design's only stated rationale was prose safety, which the
whitespace-excluding class now provides without the false-negative cost.
New pins cover both directions of the old inversion (bare values must
flag; prose spans must not — including a span-equality assertion that
the prose line's match is the path token itself, never a greedy span).
README updated to match (cross-doc reconciliation done in-PR; no other
doc references the old boundary semantics).

## Consumer impact (manifest targets)

Semantic widening reaches all three mapped targets on next sync — bare
home/checkout values will start flagging:

- **claude-code-plugins** (`path-detection-guardrails`): already carries
the identical body file plus a bare-form update to its `/Users/Shared`
exclusion stage — melodic-software/claude-code-plugins#1095. Local and
upstream copies are byte-identical.
- **medley** (`path-detection-tools`): its hook-layer driver has the
same `/Users/Shared/` exclusion shape
(`tools/shared/path-detection/hardcoded-path-patterns.sh`) and needs the
same one-line bare-form follow-up when this syncs.
- **ci-workflows** (`path-detection-action`): no affected exclusion
stage found in `check-machine-specific-paths.sh`.

## Verification

- `components/path-detection/machine-path-patterns.test.sh` **34/0**
- shellcheck clean on both files (the escaped body's `SC1003` disable
became unnecessary — no trailing backslash remains)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

## Related

No linked issue — the driving incident is tracked downstream:
melodic-software/claude-code-plugins#1093 (consumer bug report), fixed
there by melodic-software/claude-code-plugins#1095 with this component
change mirrored byte-identically. Prior art: #250 (checkout-root
broadening from the same consumer chain).

Co-authored-by: Claude Fable 5 (200k context) <noreply@anthropic.com>
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.

1 participant