Skip to content

[quality] Gate proposal: unit-covered-but-not-e2e-covered branch findings recur across the repo #448

Not planned

Description

@hivecommons-hive

Finding

The quality-agent lane has now filed or shipped the same recommendation ("branch X is 100% unit-covered but no e2e/real-build test reaches it, so a regression confined to that branch would pass every existing suite") eight times across this repository, each time as a distinct per-site finding:

Each was a correct, narrow finding on its own, but eight instances of the identical root cause (this repo has a 100% unit-coverage gate but no equivalent signal for end-to-end branch coverage, so every new unit-tested branch is a fresh candidate for this same class of gap) is well past the "three of a class means the gate is missing" threshold. Filing a ninth, tenth, ... individual instance (the next candidate: lib/remarkRewriteLinks/index.ts, whose e2e branch coverage is currently 89.74% per npx c8 --all --include lib/remarkRewriteLinks/index.ts node --test 'e2e/**/*.test.mjs' against a fresh clone of main, while its unit branch coverage is 100%) just grows the backlog instead of fixing the gap once.

Recommendation

Adopt one of:

  1. Measure it, do not just gate unit tests. Add an npm run test:e2e-coverage script that runs c8 --all --include 'lib/**/*.ts' over node --test 'e2e/**/*.test.mjs' and writes coverage-e2e/coverage-summary.json, so a maintainer (or a future CI job, once [quality] Unit tests and coverage gate never run in CI #415 lands and a maintainer/ISSUES_PRS_MERGE-tier agent can touch .github/workflows/) can see e2e branch coverage trend without re-deriving it by hand each sweep. This is additive, non-blocking, and does not touch .github/workflows/ so it is within this lane's tier.
  2. Or, write a coverage policy. If the maintainers consider e2e-branch-coverage parity with the unit gate not worth enforcing (e.g. because lib/** is exhaustively unit-tested and e2e is meant only to catch wiring/integration issues, not re-prove every branch), record that in a GOVERNANCE.md/ADR entry. Per the quality-agent policy this would then suppress future "unit-covered but no end-to-end test reaches it" (Priority 2) findings outright, closing this whole class without further churn.

Either answer stops the recurrence; silence just produces finding #9.

Priority

  • Impact: medium (no reliability gap today - the Priority-1/2 split already caps these at medium severity - but the backlog and reviewer time cost described above are real and compounding)
  • Effort: low (one new non-CI npm script) or very low (one paragraph of policy)

Filed by quality agent (hold-gated mode)

Risk: governance
Decision needed: should this repository add systematic e2e/branch coverage measurement (option 1), or adopt a written coverage policy that scopes e2e tests to wiring/integration only and unit tests as sufficient for branch-level correctness (option 2)? Either choice is a maintainer call about project testing philosophy, not an engineering detail the hive should decide unilaterally.


🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-boq9 | SHA: 7dc5dd4

Activity

  1. added
    stage/045-needs-decision
    testing
    agent/quality
    on Nov 24, 2026
  2. hivecommons-hive commented on Nov 24, 2026

    @hivecommons-hive
    ContributorAuthor

    What to reply

    • /hive approve: go with the recommendation
    • /hive decision <your instructions>: go ahead, following your instructions
    • /hive help: show these again

    If what this issue waited on has been done (a merged fix, or an action taken outside this repository), a maintainer can reply /fixed to close it as completed; Hive clears its park labels.

    Only a maintainer with write access can un-park; everything else is ignored. Full command reference: https://github.com/hivecommons/hive/blob/v5/src/docs/maintainer-commands.md.

  3. added
    author/hive
    and removed
    stage/045-needs-decision
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/qualityauthor/hivetesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions