refactor(machine-specific-paths): source shared machine-path pattern bodies - #139
Conversation
…bodies The per-OS regex bodies were a hand-synced copy of the same bodies carried by the guardrails plugin (claude-code-plugins) and medley's tools/shared/path-detection. They now live in machine-path-patterns.sh — the standards-managed materialization (melodic-software/standards#171) — and the driver keeps only its own wrapping (PATH_BOUNDARY prefix, git-grep execution). Closes #138 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S3Gt4Q3aggmM2Gb72aRmkr
|
Claude finished @kyle-sexton's task in 1m 38s —— View job ReviewThis is a clean, low-risk refactor. The mechanics are solid and there's no functional regression. A few things worth noting: Pattern fidelity — verified byte-identicalAll 5 regex bodies transferred without alteration:
Sourcing mechanicsThe source line uses One edge case to be aware of: if the script is ever invoked as a bare name with no path separator in Library file structure
ShellCheck annotationsBoth files carry the right directives:
SecurityNo new attack surface. The path passed to Overall: Approved from a correctness and security standpoint. The refactor is straightforward and the implementation matches the stated intent. |
The action's per-OS regex bodies were a hand-synced copy of the same bodies carried by the guardrails plugin (claude-code-plugins) and medley's tools/shared/path-detection. The bodies now live in machine-path-patterns.sh — the standards-managed materialization added by melodic-software/standards#172 — and the driver keeps only its own wrapping (PATH_BOUNDARY prefix, git-grep execution). Byte-identical to the canonical, so the first sync reconciles as a no-op. Positive and negative smoke verified (planted C:/Users violation detected; clean tree passes).
Closes #138
Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01S3Gt4Q3aggmM2Gb72aRmkr