Repository navigation
Reconcile RC5 host contracts and refresh unpublished candidate - #40
Merged
Merged
Conversation
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
Reconciles the RC5 review findings from #39 and explicitly refreshes the still-unpublished
1.0.0-rc.5candidate. Node and browser shutdown documentation now describes the existing host-specific guarantees. This is comment/documentation work, with no runtime behavior, signature, default, dependency, engine, version or alias changes.Motivation / related issue
The independent review of
2565f5f93c2e1af4558611b43f92f199f4e8bb30found browser-visible shutdown JSDoc promising confirmed exits, stale root-only/no-replay guidance and unconditional-RC4 selector wording. This follow-up starts from merged maind22e93a25128db331b7ae81f2844adf04cea983d.What changed
ShutdownOptions.forceAfterJSDoc distinguishes Node completion/confirmed-exit cleanup from posting-safe browser endpoint retirement and terminal local accounting. Browser shutdown provides no native join or shared-backing quiescence proof; failed termination cannot report successful cleanup. Validation and first-shutdown options/promise are unchanged.frozen-rc5.jsonwas refreshed only by the existing explicit preparation writer, after build and input review. Frozen RC4 is unchanged. No validation exclusions were changed.Contract / API impact
All 60 executable
.jsfiles are byte-identical to the previous archive. Comment-stripped type shapes, public exports, manifests, test inventories and policies match. The only changed packed files are:src/types/index.ts— corrected JSDoc.dist/types/index.d.ts— emitted JSDoc.dist/types/index.d.ts.map— declaration/source position changes.The archive still contains 303 files, now 200346 bytes. Root README/releasing changes affect baseline inputs; stability guidance is part of the committed source tree. Baseline exclusions and source/declaration coverage are unchanged.
Candidate identities
867e93dc24057383e710a17245e78c6c014c228fe64bb331979deef4d457efa42e8067cd11a3a4038fb24684274622d4edc6879080db73dac73af4b2d58a4e5cc9297445f642c735f9bd1a3e09002b60ed136f76ac4f3ae197b2869cc910f324434ad124bc98e568New evidence/canonical staging is separate at
/home/miskovy/Documents/pjs/.node-tools/rc5-refresh-LSAQgo36/. Previous archiveae3a6daa…fffc83, baseline46d7d2e7…1e5ded, original receipts and failed attempts remain preserved. Their results qualify only the previous candidate; none are relabelled as current results.Testing
Fresh results, all bound to this corrected commit/tree (not the prior candidate):
Existing
rc:repro: two independent clean states produced identical packed-file inventories and actual compressed archive bytes, then staged the new canonical archive. State A passed the existing extended RC soak; state B independently built/packed/tested consumers.Existing
rc:qualify --profile=standard --tarball=<new-canonical>: passed all 476 contracts, 48 release/baseline regressions, both locked compilers, source/declaration/export/manifest freezes, lint/format/docs, installed consumers and standard RC soak (7904 accepted operations). The retained installed-package receipt contains 32 successful child outcomes, including both loading orders and emitted CommonJS/ESM TypeScript consumers.The same qualifier ran the existing exact-artifact npm 11.19.0 rehearsal in dry-run-only mode, installed that archive and checked its digest. Staged consumer paths did not repack the candidate.
Normal CI: all seven jobs passed, including the unchanged six-cell supported-minimum matrix, existing standard R2/R3 and candidate checks, and the real-browser job.
Existing
PJS_CANDIDATE_TARBALL=<new-canonical> npm run test:browser: all 92 local Chromium 156.0.8078.4 cases passed (23 each native/Vite, isolated/non-isolated), including dev/production under/app/, installed declarations with no Node types, Node-free import graphs and the no-replacement graceful-shutdown regression. Existing failed-termination/retained-ownership regressions remain and passed in the normal suites.The canonical digest was recomputed after all consumers/rehearsal:
f9bd1a3e09002b60ed136f76ac4f3ae197b2869cc910f324434ad124bc98e568. Prior evidence fingerprints remain unchanged. Full fresh receipts are retained outside Git alongsidecanonical/candidate.json,repro.json,qualifier.json,installed-consumers.json,browser.log,ci.jsonanddelta.json.No new profiles or benchmark campaigns are introduced. An initial sandbox launch of the documentation checker was blocked from spawning git (EPERM); the permission-enabled rerun and subsequent clean checks passed. No assertions/timeouts were weakened. No requested check remains failed or unavailable; untested browser engines/platforms and separate final-readiness requirements are not inferred passes.
Platforms tested
Local preparation/reproduction/exact-artifact qualification used explicit Node 24.22.1 and independently provisioned integrity-pinned npm 11.19.0 on Linux x64; locked compilers 7.0.2 / 6.0.3 executed installed consumers. Normal CI recorded actual Node 22.23.4 / 24.22.1 / 26.12.1 on both Linux x64 and Windows x64. No Firefox/WebKit, macOS or ARM64 claim is made.
Documentation
Updated root README,
docs/stability.md,docs/releasing.mdand shared shutdown JSDoc. Existing historical records, frozen RC4, release notes' historical attribution and release holds are preserved.Preflight on 28 October 2026 returned explicit npm/GitHub-release 404s and a successful empty remote-tag query. npm package metadata remained available with latest/next at RC4. This refresh creates no tag, release or registry state. Technical validation does not authorize publication, decide hold/Stage F applicability or establish final-v1.0 readiness.
Checklist