Skip to content

test: guard fail-closed checker behavior - #3

Merged
AmazingAng merged 1 commit into
AmazingAng:mainfrom
klmtseng:test/guard-fail-closed-checker
Aug 7, 2026
Merged

test: guard fail-closed checker behavior#3
AmazingAng merged 1 commit into
AmazingAng:mainfrom
klmtseng:test/guard-fail-closed-checker

Conversation

@klmtseng

@klmtseng klmtseng commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

This adds a small regression check for the fail-closed behavior discussed in #1. It verifies that the must-not scan passes only when grep returns "no matches", and still fails when the scan itself breaks. The goal is to make the negative-control behavior durable rather than relying only on the one-off validation recorded in evidence.md. No product-code changes and no new dependencies.

@klmtseng
klmtseng force-pushed the test/guard-fail-closed-checker branch from 088b796 to 173f40c Compare August 7, 2026 14:09
@AmazingAng
AmazingAng merged commit 707c4ee into AmazingAng:main Aug 7, 2026
1 check passed
AmazingAng added a commit that referenced this pull request Aug 7, 2026
A regression mixing up the two failure branches (pattern present vs scan
broke) previously returned the same rc 1 and would have passed the
self-test. Proven non-vacuous with a throwaway mutant (return 2 -> 1
made the self-test fail).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
AmazingAng added a commit that referenced this pull request Aug 7, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@AmazingAng

Copy link
Copy Markdown
Owner

lgtm, merged

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.

2 participants