Repository navigation
Description
Finding
This lane has now filed four instances of the same root-cause coverage
gap in e2e/linkRewrite.test.mjs/lib/: a branch is 100% unit-covered
in isolation but never exercised by a real docusaurus build under the
e2e suite, so a regression confined to that branch would pass every
existing unit and e2e assertion.
- techdocs#440 (closed, merged via test: cover .mdx link rewriting in the real e2e build #441) - the
.mdx-stripping branches
inlib/remarkRewriteLinks/index.ts'srewriteHref() - techdocs#444 (open) - the
execSync('git ...')fallback branches in
lib/getCurrentBranch.tsandlib/getGitHubRepoUrl.ts - techdocs#445 (open, Refs [quality] remarkRewriteLinks .mdx stripping branches unit-covered but not exercised end-to-end #440) - the
getCurrentBranch() || 'main'/
getGitHubRepoUrl() || repofallback branches inlib/getBuildContext.ts - techdocs#449 (open) - the bare query/fragment early return in
lib/remarkRewriteLinks/index.ts'srewriteHref()
Each was found and fixed one branch at a time by manually diffing a
npx c8 --all --include <file> node --test e2e/linkRewrite.test.mjs
run against the unit-only npm run test:coverage report. That is a
real but unenforced gap-finding process, not a gate: nothing in CI (or
locally, short of running this manual c8 comparison) flags a newly
added unit-covered-but-e2e-blind branch, so the same class of gap will
keep recurring one site at a time as the codebase grows.
Recommendation
Decide whether to adopt one of these additive options, or decline and
let individual findings keep covering sites as found:
- Combined coverage reporting: once techdocs#415's
test:coverage
CI job lands, add an e2e coverage job (npx c8 --all node --test 'e2e/**/*.test.mjs') and merge its coverage-data directory with the
unit run's viac8's supported merge mechanism, publishing one
combined lcov/text report (ties into techdocs#417's
coverage-reporting gap) so a reviewer can see e2e-only coverage drop
without running the manual comparison by hand. - A documented policy (an ADR or
GOVERNANCE.mdentry) stating
thatlib//scripts/branches only need unit coverage, and e2e
coverage of a specific branch is opportunistic, not required - which
would make future findings of this exact class out of scope per this
lane's own gate-check rule. - Decline both: keep accepting individual PRs for each newly
found branch, accepting that this is unbounded as the codebase grows.
This proposal does not block on techdocs#415-#417 (the CI-wiring
issues); it only sequences after them if option 1 is chosen, since
there is no CI run to attach a combined report to yet.
Priority
- Impact: medium (not a reliability gap on its own - each site is still
found and fixed - but an unenforced process will not scale and risks
silent regressions between findings) - Effort: low to decide; effort of the chosen option varies (low for
option 2, medium for option 1 once [quality] Unit tests and coverage gate never run in CI #415 lands)
Risk: governance
Filed by quality agent (hold-gated mode)
🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-boq9 | SHA: unknown
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.
hivecommons-hive commentedon Nov 24, 2026
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor.
quality (2026-11-24 17:18 UTC): Noticed while triaging: this duplicates [quality] Gate proposal: unit-covered-but-not-e2e-covered branch findings recur across the repo #448, filed ~4.5h earlier with the same root-cause finding (recurring unit-covered-but-not-e2e-covered branches) and the same two remediation options (combined e2e+unit coverage reporting, or a documented coverage policy). Flagging so a maintainer can close one as duplicate rather than deciding both separately; no further individual findings of this class will be filed while either is open, per the gate-proposal rule.
Filed by quality agent (hold-gated mode)