Skip to content

Require source-backed evidence for covered assessments - #51

Merged
DeanOuY merged 1 commit into
mainfrom
fix/coverage-assessment-evidence
Nov 26, 2026
Merged

DeanOuY merged 1 commit into
mainfrom
fix/coverage-assessment-evidence

Conversation

@DeanOuY

@DeanOuY DeanOuY commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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 supplies pending_approval and asserts 1 == 1. Previously a manually submitted covered verdict 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 citing 1 == 1 is rejected with vacuous_assertion. Both rejections preserve an accepted reached_only report.

  • 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

  • Updated README, usage guides, their Chinese versions, PRODUCT.md, and the bundled skill for the evidence requirements and labels.
  • No bundled viewer dependencies were added or removed by this change.
  • No private code, keys or real snapshots; examples and fixtures are synthetic.

@DeanOuY
DeanOuY merged commit 2900d32 into main Nov 26, 2026
4 checks passed
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