Repository navigation
Reject statically contradicted Python coverage checks - #53
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.
A real assertion plus an incorrect explanation could still upgrade a static
reached_onlyresult tocovered. For example,price(2, 5) == 10cannot detect addinground(qty * unit, 2), but the source-backed submission introduced in #51 accepted that claim.Add a conservative Python source guard that rejects the cited evidence with
assertion_does_not_distinguishwhen the fixed head comparison accepts both the current return and the return with that change undone. Rejection preserves the accepted report and lets the agent supply another assertion or revise its assessment; it never assigns a replacement verdict.The guard handles direct, resolved calls with bounded integer inputs, plain single-assertion tests, and single-return functions. It folds an allowlist of integer operations without importing or executing analyzed code. Unsupported syntax, uncertain bindings, setup, side effects, floating point, or any captured
conftest.pymake it abstain. Acceptance remains an agent assessment. Update the skill and English/Chinese usage documentation to explain the error and its limits.Closes #52.
Validation:
coveredrejected with exit 1; correctedreached_onlyaccepted with exit 0.