Skip to content

Add a coverage gate for the TypeScript plugin suite (deferred from unleash-tier-routing) #780

Closed

Description

@jflowers

Context

The unleash-tier-routing change (openspec/changes/unleash-tier-routing/) recorded the TypeScript plugin suite's coverage baselines in its design risk notes but deliberately deferred adding a coverage gate — that is a governance decision requiring its own spec workflow:

  • Round-1 verification: 94.61% statements (34 files / 961 tests)
  • Round-3 verification: 94.58% statements (34 files / 965 tests)
  • Command: cd .opencode && npx vitest run --coverage (branches 87.4%, functions 96.34%, lines 94.84%)

The deferral was flagged by the round-3 Divisor review council (divisor-testing, coverage-governance): without a tracking issue, a deferral is indistinguishable from an abandoned one.

Scope

  • Add a statements coverage threshold near the recorded baseline for the .opencode/ plugin suite (@vitest/coverage-v8 thresholds)
  • Wire it into CI (ci_local.yml or the plugin-test target) as a ratchet/gate
  • Decide threshold policy (floor vs ratchet) in that change's own spec workflow — this issue only tracks the debt

Constraints

  • Any threshold/gate change MUST go through its own spec workflow (governance change; agents must not modify quality gates unilaterally)
  • Baselines recorded in openspec/changes/unleash-tier-routing/design.md (Risks) and tasks.md 9.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions