Harden Overlay package profiles and release contracts - #363
Conversation
|
Sonar remediation is pushed at exact head The first analysis correctly stopped the PR: new-code duplication was 3.6% (13 lines, gate 3%),
Focused validation on this head: Topics format/lint/typecheck pass; 34 suites, 302 tests pass with one pre-existing skip; source-only coverage passes; helper tests pass 4/4; all Overlay/Discovery/Topics/Express packed-consumer checks pass; repository health remains 31/31 controls, 12 findings, 11 exceptions, 0 errors. No gate was suppressed and no Sonar setting was changed. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Codecov patch remediation is pushed at exact head The prior external report was not bypassed: it showed 13 hits, 9 misses, and 7 partial changed lines (44.83%). The new regression suite covers the nullable lookup branches, all Desktop Integrity and Slack Threads binary-shape outcomes, all shared BSV-20/error-normalization branches, unresolved input discovery, both missing previous-coin source boundaries, and a balanced previous-token transfer. Local evidence on this exact head:
No coverage threshold, Codecov setting, or exclusion was changed. |
|
ty-everett
left a comment
There was a problem hiding this comment.
Maintainer exact-head approval in substance (ty-everett): I reviewed commit ce814152eed692f19227c322ac8bbf6ad7654234, based directly on main@96ad2b2e1f52d185d3f1621311758dc1554aee2d.
Review findings were remediated before merge:
- the first Sonar analysis failed at 3.6% new-code duplication and reported cognitive-complexity / positional-parameter findings; shared strict parsing and named options reduced duplication to 0.7%, and the final quality gate has 0 open issues, 0 hotspots, and A ratings for reliability, security, and maintainability;
- the first Codecov patch check failed at 44.83%; 24 focused boundary regressions were added, and exact-head Codecov now reports 30 hits, 0 misses, 0 partials, and 100% patch coverage;
- Overlay's broken
./storagepackage entry is corrected; ESM/CommonJS declarations and tarball consumers are validated; Overlay Express consumes exact local release-candidate tarballs; - Discovery and Topics compile strictly, nullable/malformed/error paths are guarded, and all four package lints are warning-free;
- public-by-default Overlay Express cross-domain access is retained, with opt-in exact allowlisting and deployment-owned CSP documented.
Exact-head evidence: 31/31 PR checks pass, including full split coverage, CodeQL, Dependency Review, Socket, Sonar, repository health, platform checks, Node 24, and merge gate. Local package suites total 740 passed with 4 pre-existing skips; all package format/lint/typecheck/pack contracts pass; repository health is 31/31 controls with findings reduced 24 to 12 and 0 errors; audit reports no known vulnerabilities. There are 0 PR CodeQL alerts, 0 Dependabot alerts, 0 secret-scanning alerts, no review threads/change requests, no package version changes, and no publication.
GitHub does not permit an author to submit an APPROVED review on their own pull request, so this COMMENT review records the completed exact-head maintainer decision. I approve this SHA for the authorized admin squash merge; admin authority is used only to satisfy that impossible self-approval requirement.



Summary
@bsv/overlay,@bsv/overlay-discovery-services,@bsv/overlay-topics, and@bsv/overlay-expresson the node-library health profile./storageentry, and validate locally packed release candidates across dependent packagesNo package version is changed and nothing is published by this PR.
Why
Tracker #324 identifies these four Overlay packages as the next incomplete broad package-quality wave. Workspace builds hid broken package boundaries: Overlay advertised a nonexistent
./storageentry, and Overlay Express could only be validated against unpublished workspace dependencies. Strict compilation also exposed unsafe nullable lookup and malformed-script paths.Validation
pnpm audit --audit-level=high: no known vulnerabilitiesCloses no tracker item until exact-head CI, security analysis, review, merge, and exact-
mainvalidation are complete. Progress is recorded in #324.