Skip to content

failure-classes: register FC-zero-match-reported-as-success - #14469

Merged
Git-on-my-level merged 1 commit into
mainfrom
task/msd-ci-fc-zero-match-reported-as-success
Sep 18, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
task/msd-ci-fc-zero-match-reported-as-success

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

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 matches scope_hints
with fnmatch, so a hint written with a trailing slash instead of ** matched nothing and
passed. #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 validate passes with the definition present, and both
scope_hints entries are real tracked paths. The named prevention artifact,
FailureClassCliTests.test_scope_hint_matching_zero_paths_is_error, asserts exit 1 and the
scope_hint_matches_nothing reason rather than a warning — so a regression to fail-open breaks
the test instead of passing quietly.

Failure class (fixes)

Failure-Class: new

🤖 Generated with Claude Code

Review in cubic

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
Git-on-my-level merged commit 48baad2 into main Sep 18, 2026
42 checks passed
@Git-on-my-level
Git-on-my-level deleted the task/msd-ci-fc-zero-match-reported-as-success branch September 18, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant