Skip to content

enh(test-platform): add branch-coverage floor and promote no-source-grep on tests/** #1188

@trek-e

Description

@trek-e

Problem

Two test-rigor gates are weaker than ADR-456 intends:

  1. No branch-coverage floor. c8 enforces line floors only (lib ~70%, scripts ~55%). Untested branches in the high-risk UNMUTATED modules (state/phase/verify/init) are invisible.
  2. no-source-grep is warn and not applied to tests/**. Source-text-grep test smells slip in (the audit redesigns removed several: install Kilo block, sh-hook-paths, plan-review-convergence).

Action

  1. Add a c8 --branches floor (start ~60 global) plus a stricter per-file branch floor for the high-risk UNMUTATED modules.
  2. Promote no-source-grep to error and apply it to tests/**, splitting allowed product-/config-file reads (.md/.json/.yml) from blocked source-file grep (.cjs/.ts internal symbols). Fix any surfaced violations behaviorally.

Note: a complementary allow-test-rule tracking gate (requires #NNN on new exemptions) already landed during the audit; promoting no-source-grep makes that gate meaningful on tests/**.


Surfaced by the 2026-06-13 QA test-architecture audit of the ADR portfolio.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions