Skip to content

docs: add coverage threshold marker to TEST_EVIDENCE.md#96

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-cover-threshold-marker
Draft

docs: add coverage threshold marker to TEST_EVIDENCE.md#96
Copilot wants to merge 2 commits intomainfrom
copilot/add-cover-threshold-marker

Conversation

Copy link
Contributor

Copilot AI commented Feb 20, 2026

scripts/check_coverage_policy.py validates that docs/TEST_EVIDENCE.md contains a **>= 95%** marker matching the --fail-under-lines threshold in scripts/test_evidence.sh. The marker was absent, causing CI to fail at the "Check coverage policy consistency" step.

Summary

Added **>= 95%** to docs/TEST_EVIDENCE.md under the "Evidence captured by these tests" heading to satisfy the policy consistency check.

## Evidence captured by these tests

**>= 95%**

### Protocol compatibility

Related references

  • AGENTS.md
  • TESTING_EVIDENCE.md
  • docs/TEST_EVIDENCE.md
  • docs/TEST_COVERAGE_MATRIX.md

Change type

  • Bug fix
  • Feature
  • Refactor
  • Docs only
  • Test-only

Protocol and safety impact

  • No protocol logic changes
  • Determinism impact reviewed (ordering/hash/canonicalization)
  • Panic risk reviewed on request/runtime paths
  • Network-facing inputs validated fail-closed
  • No secrets/raw payloads added to logs

Testing checklist

  • Tests are black-box (public APIs/external behavior)
  • Tests do not copy/paste production logic into assertions
  • Numeric boundary cases are tested
  • Deterministic functions/flows include determinism assertions
  • cargo fmt --check passes
  • cargo clippy --workspace --all-targets -- -D warnings passes
  • cargo test --workspace passes
  • No new unsafe code

Evidence

$ python3 scripts/check_coverage_policy.py
Coverage policy consistency check passed (threshold: 95%)
Original prompt

Problem

The CI job is failing at the "Check coverage policy consistency" step because docs/TEST_EVIDENCE.md is missing the required coverage threshold marker.

The script scripts/check_coverage_policy.py validates that docs/TEST_EVIDENCE.md contains a line matching the pattern **>= 95%** (where 95 is extracted from --fail-under-lines 95 in scripts/test_evidence.sh line 57).

Error from CI:

Coverage policy mismatch detected:
- docs/TEST_EVIDENCE.md: expected to match /\*\*>=\s*95%\*\*/

Solution Required

Add the coverage threshold marker **>= 95%** to docs/TEST_EVIDENCE.md.

A good location would be in a coverage section. Add it after the "Evidence captured by these tests" heading (after line 29), like:

## Evidence captured by these tests

**>= 95%**

### Protocol compatibility

This will satisfy the policy consistency check and allow the CI pipeline to proceed.

This pull request was created from Copilot chat.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: jverdicc <23726212+jverdicc@users.noreply.github.com>
Copilot AI changed the title [WIP] Add coverage threshold marker to TEST_EVIDENCE.md docs: add coverage threshold marker to TEST_EVIDENCE.md Feb 20, 2026
Copilot AI requested a review from jverdicc February 20, 2026 03:06
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