refactor: resolve critical production Sonar findings - #375
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
ty-everett
left a comment
There was a problem hiding this comment.
Maintainer review of exact head bdf5a22 against base 5f1f5d5: the SDK loop and default-callback changes are behavior preserving; the overlay extraction preserves notification payload, storage ordering, concurrency, and error isolation. The direct-TXID, source-transaction fallback, and nonmatching-input paths are covered. All 57 exact-head checks pass, including CodeQL, Sonar (0 new issues/hotspots), Codecov (all modified coverable lines covered), dependency review, Socket, artifact checks, coverage, platform checks, and mutation gates. No package, tag, or release is created by this PR. GitHub prohibits a PR author from formally approving their own PR, so this exact-SHA COMMENT records the completed ty-everett review before authorized admin merge.



What changed
whileloopvoidexpression from the defaultMasterCertificaterevocation callback while preserving its signature and return value@bsv/sdkand@bsv/overlayto2.2.2and synchronize governed documentation/health metadataWhy
This resolves the three non-complexity critical Sonar findings in production source on current
main(typescript:S1994,typescript:S3735, andtypescript:S2004) with behavior-preserving changes. The remaining blocker/bug-class findings are test-only and remain in the explicitly deferred QA phase of #324.Impact
There are no protocol, API, deployment, CORS/CSP, dependency-range, or storage-semantic changes. The package versions are candidate source versions only: this PR does not publish packages, create tags, or create releases.
Validation
pnpm audit:security: no known vulnerabilitiespack:checkpnpm health:check: 58/58 governance tests, zero findings/control errorsgit diff --checkPart of #324.