Repository navigation
failure-classes: register FC-zero-match-reported-as-success - #14469
Merged
Git-on-my-level merged 1 commit intoSep 18, 2026
Merged
Conversation
A matcher that hits zero paths must fail closed. The prepare/validate test that asserts exit 1 is the guard. Failure-Class: new Co-authored-by: Cursor <[email protected]>
Git-on-my-level
deleted the
task/msd-ci-fc-zero-match-reported-as-success
branch
September 18, 2026 03:09
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 changed and why
Registers one failure class:
FC-zero-match-reported-as-success.A matcher that includes or excludes work from a gate must not treat a pattern matching zero
paths as success. Matching nothing is failing open: the class, check, or candidate silently
disappears and the author proceeds as though the matcher had a real target. It is
indistinguishable, in the output, from a matcher that is working.
This repository had exactly that in
scripts/failure-class prepare, which matchesscope_hintswith
fnmatch, so a hint written with a trailing slash instead of**matched nothing andpassed. #14466 carries the fix; the class is registered separately because the protocol allows
one added definition per PR.
Product invariants affected
none
How it was verified
python3 scripts/failure-class validatepasses with the definition present, and bothscope_hintsentries are real tracked paths. The named prevention artifact,FailureClassCliTests.test_scope_hint_matching_zero_paths_is_error, asserts exit 1 and thescope_hint_matches_nothingreason rather than a warning — so a regression to fail-open breaksthe test instead of passing quietly.
Failure class (fixes)
Failure-Class: new
🤖 Generated with Claude Code