chore: enforce helper formatting and coverage gates - #356
Merged
Conversation
ty-everett
requested review from
BraydenLangley,
sirdeggen and
tonesnotes
as code owners
July 26, 2026 08:44
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
ty-everett
commented
Jul 26, 2026
ty-everett
left a comment
Collaborator
Author
There was a problem hiding this comment.
Maintainer approval-in-substance for exact reviewed head 1e249656750c5c2e7af2f93730b31b80502d3e54 (PR patch commit 2ffee84d5c39acdedb22e52054dea8120e41775a, followed only by a clean sync of merged main).
Verified before merge:
- all 30 exact-head check runs succeeded, including CI merge gate, Node 24, CodeQL, dependency review, Socket, browser/mobile, repository health, docs, conformance, and aggregate coverage upload;
- Codecov measured the actual PR patch at 92.46% and passed its patch gate before the main sync;
- SonarCloud reports quality gate OK, 0 open/confirmed issues, and 0 security hotspots on the current PR;
- 0 unresolved or outdated review threads and no actionable maintainer comments;
- Open BSV License v6 consistency remains enforced by repository health;
- no package version or publication action is included.
GitHub prevents an author from self-approving, so this COMMENT review records the requested ty-everett maintainer approval-in-substance for the exact head; the merge will use the authorized admin path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Advances tracker #324 Wave 10 by completing zero-drift formatting adoption for the four legacy helper source trees, restoring dormant coverage, and remediating every Sonar and Codecov finding introduced by the wave.
format:checkcontracts to@bsv/did,@bsv/did-client,@bsv/simple, and@bsv/templates--debug-checkconfirms AST stability@bsv/templatesroot test ownership from the nonexistent__tests__path to the actual__testsdirectory for lint and typecheckP2MSKH.tssuite toP2MSKH.test.ts, then replace stale chain/mock assumptions with deterministic transaction +SpendvalidationANYONECANPAY, address round-trips, guardrails, direct/missing signing context, and estimation fallbacknew Array(n)lint findings with explicitArray.fromconstructionreplaceAll, tighten the QR factory option type, and useflatMapfor multisig key concatenationMeasured outcome
The four helper suites now total 251 passing tests:
@bsv/did: 12 tests; 90.15% lines / 73.04% branches@bsv/did-client: 8 tests; 60.00% lines / 53.53% branches@bsv/simple: 130 tests; 65.83% lines / 57.00% branches (from 38.63% / 27.62%)@bsv/templates: 101 tests; 92.99% source lines / 78.55% source branches (from 72.67% / 59.75%)P2MSKH.ts: 95% lines / 89.47% branches / 100% functionsThe local LCOV-to-diff audit reports 95.96% full coverage of changed executable lines, above the existing 90% patch requirement.
Validation
format:checkscripts: pass--debug-checkover every formatted TypeScript file: passpnpm audit --audit-level=low: no known vulnerabilitiesLICENSE.txtNo package version was bumped and no artifact was published; versions remain accumulated for the final release-readiness report required by #324.