fix: scope checkPaths to ROUTER.md only#80
Merged
theDakshJaitly merged 3 commits intoJun 18, 2026
Conversation
Filter claims passed to checkPaths so only those extracted from ROUTER.md are validated as paths. Eliminates false MISSING_PATH errors from scaffold files that use backticks for non-path content (config values, IPs, annotation keys, glob patterns). Fixes mex-memory#79
theDakshJaitly
approved these changes
Jun 18, 2026
theDakshJaitly
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the clear fix and for validating it against the real scaffold that surfaced #79.
I reviewed the diff and verified locally with:
- npm test -- test/public-api.test.ts test/checkers.test.ts test/claims.test.ts
- npm run typecheck
- npm run build
Scoping checkPaths to ROUTER.md looks like the right behavior for now: it preserves path validation where the scaffold declares navigation, while avoiding noisy MISSING_PATH errors from inline config values in context and pattern docs.
LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Filters the claims array passed to
checkPathsso it only includes claims extracted fromROUTER.md. This eliminates falseMISSING_PATHerrors from context docs, pattern files, and tool config files where backtick-wrapped strings are general-purpose inline code, not path declarations.Why
Fixes #79 —
checkPathswas extracting every backtick-wrapped string from all scaffold markdown files and attempting to resolve each as a file path. Strings likecsi.kubeletRootDir: /var/lib/kubelet,argocd.argoproj.io/sync-wave, and192.168.5.0/24were flagged asMISSING_PATHerrors (-10 points each), producing a drift score of 0/100 on real-world scaffolds.Changes
src/drift/index.ts— Addedbasenameimport; filteredallClaimsto onlyROUTER.mdbefore passing tocheckPathstest/public-api.test.ts— Added 3 integration tests verifying the scoping behaviorCHANGELOG.md— Added entry under[Unreleased]Verification
Tested against https://github.com/Taegost/homelab-k8s branch
feat/mex-integration(the repo where the issue was reported):The remaining 7 warnings are
BROKEN_LINKissues inpatterns/INDEX.mdfrom a different checker — unchanged by this fix.🤖 Generated with Claude Code