Skip to content

mod-authoring rule glob plugins/*/types/** matches no file, failing the instruction-placement gate #5832

Closed

Description

@kyle-sexton

Summary

.claude/rules/mod-authoring.md (added by #5781) lists plugins/*/types/** under paths:. No tracked file matches it, so the instruction-placement glob gate fails on main. The glob targets a mod's types/index.d.ts (docs/conventions/mod-authoring/README.md:69). That file cannot exist yet because ADR 0035 defers mods, so the glob was written ahead of any file it could match.

The same gate run also fails on a test fixture rule. Its glob matches no file in the repository, by design.

Evidence (origin/main at a287fa49d)

$ plugins/instruction-placement/scripts/glob-tools.sh rules --root .
PATTERN .claude/rules/mod-authoring.md  plugins/*/hooks/**  1  225  ok
PATTERN .claude/rules/mod-authoring.md  plugins/*/types/**  1  0    zero-match
PATTERN plugins/harness-ops/skills/changelog/evals/fixtures/consumer-repo/.claude/rules/one.md  src/**/*.ts  1  0  zero-match
SUMMARY 5912 6 2 0 FAIL
  • git ls-files | grep /types/ is empty.
  • .claude/rules/mod-authoring.md:1-6 is the frontmatter.
  • The gate is not wired into CI, so nothing reports the failure.

Options

  1. Drop plugins/*/types/**. Any mod also edits hooks/hooks.json, which plugins/*/hooks/** already covers. Re-add the glob when the first mod ships.
  2. Keep the glob and teach glob-tools.sh rules an explicit allowance for a glob written before its target exists. This changes the gate's contract.
  3. Separately, have glob-tools.sh rules skip, or support excluding, .claude/rules trees under eval fixtures.

Recommendation: option 1, plus option 3 for the fixture. Basis: judgment. The rule's operative instruction concerns hooks/hooks.json.

Acceptance criteria

  • glob-tools.sh rules --root . on main reports verdict PASS, or reports only findings that are documented as expected.
  • The mod-authoring rule still loads when a file under plugins/*/hooks/ is read.
  • If the gate gains an exclusion or allowance, glob-tools.test.sh covers it.

Activity

  1. added
    needs-triage
    on Oct 2, 2026
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

    needs-triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions