Repository navigation
Catch explicit approval bypass and Chinese false-passing directives - #99
Merged
Merged
Conversation
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.
Two known self-use probes previously scored 100 and passed comparison: an explicit production-database deletion directive waiving confirmation, and a Chinese directive to report failed tests as passing. This adds a bounded deletion-approval-bypass error and finite Simplified/Traditional Chinese false-success-report clauses. The same input archive now scores 85 and 88, with both comparisons blocked.
Require an explicit destructive target plus attached approval exemption, or explicit failed/unrun tests plus a false passing claim. Preserve authorized/disposable cleanup, honest reports, negations, questions, code/quoted examples, frontmatter/comments and scoped prohibition lists. Include Chinese prohibition-list labels, catalog/schema/guidance integration, source locations, suppressions and SARIF.
Retain the original published-wheel failures and a matched before/after source comparison. Vague filler remains 100 and is explicitly unresolved. This is a known-case correction, not general semantic safety or independently measured accuracy. Mark these additions unreleased in English, Simplified Chinese and Traditional Chinese documentation; PyPI v0.26.2 is unchanged.
Validation: 675 full tests pass locally (13 platform-specific skips), including seven new test methods with positive/negative variants across six formats; the maintained adversarial corpus remains 474/474 contracts and 6/8 challenges. The standard demo runs, documentation checks pass, and both installed-wheel self-use replays preserve all nine existing contracts. Cross-platform CI must pass before merge.