Repository navigation
Description
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:
- [quality] assetBaseUrl deploy-preview wiring (getCurrentBranch/getGitHubRepoUrl -> rewrite plugin) had no test coverage #418/test: cover assetBaseUrl deploy-preview wiring in docusaurus.config.ts #419 - assetBaseUrl deploy-preview wiring (getCurrentBranch/getGitHubRepoUrl -> rewrite plugin)
- [quality] Real git-fallback wiring into docusaurus.config.ts assetBaseUrl has no end-to-end coverage #435/test: cover real git branch/remote fallback wiring in docusaurus.config.ts #436 - real git-fallback wiring into docusaurus.config.ts assetBaseUrl
- test: cover cross-plugin image href handling in e2e link-rewrite suite #437 - cross-plugin image href handling
- test: cover extensionless cross-plugin reference link in e2e suite #438 - extensionless cross-plugin reference link
- [quality] remarkRewriteLinks .mdx stripping branches unit-covered but not exercised end-to-end #440/test: cover .mdx link rewriting in the real e2e build #441 - .mdx link-rewriting branches (cross-plugin + site-absolute)
- test: cover git branch/remote fallback in the real e2e build #444 (open) - getCurrentBranch()/getGitHubRepoUrl() git-fallback branches
- test: cover getBuildContext repo/main fallback in the real e2e build #445 (open) - getBuildContext() repo/main fallback branches
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:
- Measure it, do not just gate unit tests. Add an
npm run test:e2e-coveragescript that runsc8 --all --include 'lib/**/*.ts'overnode --test 'e2e/**/*.test.mjs'and writescoverage-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. - 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 aGOVERNANCE.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
hivecommons-hive commentedon Nov 24, 2026
What to reply
/hive approve: go with the recommendation/hive decision <your instructions>: go ahead, following your instructions/hive help: show these againIf what this issue waited on has been done (a merged fix, or an action taken outside this repository), a maintainer can reply
/fixedto 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.