Skip to content

MISSING_PATH false positives: negation only heading-scoped, non-path tokens treated as paths, dot-dir glob blind spot #143

Description

@m3

Summary

mex check (0.7.0-0.7.2) emits MISSING_PATH errors for files that are intentionally absent or were never paths at all, which zeroes drift scores on healthy repos.

Three defects

  1. Negation is heading-scoped only (isNegatedSection). Bullets describing deletions inside normal sections — e.g. "Deleted orphaned files: check_commands.js, ..." — still produce path claims for intentionally-absent files.
  2. Non-path tokens extracted as paths: ELO-style deltas (+/-N), overall/overall, middot lists (8ball/pro · 9ball/pro), globs (web/routes/admin/*.js), trailing dirs (screenshots/).
  3. Dot-directory blind spot: the fallback filename glob lacks dot: true, so a backticked deploy.yml living in .github/workflows/ never matches, producing a false error.

Repro and evidence

Full root-cause plus a verified fix against our installed 0.7.0:

  • added inline line-level negation context (deleted / removed / dropped / retired / orphaned / unreferenced / no longer)
  • NON_PATH_TOKEN filter for deltas, middot lists, globs and trailing dirs before claim extraction
  • negated/implausible claims demote MISSING_PATH from error to warning (visible as noise, not score killers)
  • dot: true on the fallback filename glob

Verified across a 10-project estate: one project went from 23 MISSING_PATH errors (score 0) to 0 errors; 7 known-good projects stayed 100/100.

Happy to send the patch diff or open a PR if useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions