@@ -60,7 +60,43 @@ bundle. This blocks browser windows and Node DOM shims from exposing an
6060unguarded secondary target. Pure Node loads restore the exact prior descriptors
6161synchronously after module evaluation, including removing names that were
6262previously absent. Cleanup failure permanently poisons loading. A
63- dedicated-worker loader remains future work.
63+ dedicated-worker loader uses the same exact descriptor restoration rule within
64+ its isolated realm.
65+
66+ ### Private browser worker endpoint
67+
68+ The package contains a production-shaped but private module-worker endpoint.
69+ It is not exported from the package and is not reachable through ` /vnext ` .
70+ There is no public worker constructor, executor, queue, language-service
71+ module, or session integration yet.
72+
73+ The endpoint:
74+
75+ - uses only the extension-qualified PostgreSQL and BigQuery builds above;
76+ - loads each grammar lazily after a valid request;
77+ - reuses the realm-neutral backend engine for module, AST, and parser-error
78+ normalization;
79+ - accepts and emits only a closed, versioned plain-data protocol;
80+ - returns normalized statement kind, bounded unsupported or failure evidence,
81+ and never returns source text, raw errors, or backend ASTs;
82+ - derives retryability from the closed failure code instead of trusting a
83+ separate wire flag;
84+ - restores the exact prior ` NodeSQLParser ` and ` global ` descriptors around
85+ each dynamic import; and
86+ - permanently poisons and closes its worker realm if cleanup cannot be proven
87+ exact.
88+
89+ The endpoint accepts only one request at a time. Overlap and malformed messages
90+ fail closed instead of creating an implicit worker-side queue. The future
91+ service-owned executor is responsible for serialization, correlation,
92+ deadlines, cancellation, generation replacement, and disposal.
93+
94+ Direct Chromium tests construct this source module worker and exercise both
95+ real grammar builds. The separate worker-placement fixture remains
96+ diagnostic packaging evidence: it records resource timing, emitted chunk
97+ reachability, and bundle sizes with a fixture-owned protocol. It is not the
98+ public integration boundary and must not be read as evidence that an executor
99+ or session API already exists.
64100
65101Approximate local Node 24 arm64 measurements for the installed package were:
66102
0 commit comments