Repository navigation
Require source-backed evidence for covered assessments - #51
Merged
Merged
Conversation
This was referenced Nov 27, 2026
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 and why
A test can call changed code and contain an assertion without detecting the change. For example, approval gains support for
draft, but a test still suppliespending_approvaland asserts1 == 1. Previously a manually submittedcoveredverdict could be accepted and displayed as “Behavior checked.”This change requires new covered assessments to include the actual test setup, a quoted assertion and the reason that the same test would fail if the assessed change were undone. Python checks bind the assertion to the named frozen test and reject a limited set of always-true literal expressions. Other languages require the assertion text in the cited head-side source. Rejected replacements preserve the previously accepted report, and older saved reports remain readable.
The skill and task context now direct the agent to trace the actual fixtures, inputs and mocks, keep the head-side test fixed, and distinguish an output change from an assertion that detects it. The viewer and summaries say “Assessed as covered” and expose the supporting reasoning. Documentation is updated in English and Chinese.
The CLI still does not execute analyzed code or prove behavioral relevance. Nonconstant but unrelated assertions still require correct agent judgment; base/head test execution is outside this module.
The manual false-positive case was reported in the select 1 review.
How it was checked
Python: 670 tests passed; Ruff lint and format; public-file boundary audit; fixture regeneration and clean diff; both wheel builds and package checks.
Viewer: 72 unit tests and 5 browser tests passed, plus ESLint and TypeScript/build, after incorporating the latest main branch. Browser checks used the existing Google Chrome executable through PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH.
Independent skill evaluation: before rebasing, three fresh agent contexts assessed eight synthetic Python/TypeScript cases without being given the expected answers. All eight initial submissions and final reports matched the expected verdicts, with no rejection/retry. This is a small current-version evaluation, not a measured old/new accuracy comparison.
Manual reproduction: missing checks are rejected with
covered_needs_checks; a complete payload citing1 == 1is rejected withvacuous_assertion. Both rejections preserve an acceptedreached_onlyreport.All analyzed fixtures were read as source only; their code and tests were not imported or executed.
The checks in CONTRIBUTING.md pass, including a clean diff after fixture regeneration.
Viewer checks pass and the rebuilt HTML is committed.
Documents