provident-storeroom 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.guide.md CHANGED
@@ -30,7 +30,7 @@ preflight REFUSES when these two lines do not read what it computed** (`scripts/
30
30
  one check, read-only). **THE TWO LINES ARE THIS GUIDE'S OPERATIVE FIGURES; every dated paragraph below is the
31
31
  reading of its own date and is read through them.**
32
32
 
33
- PUBLISH-GUIDE-VERSION-LINE: THE VERSION THIS GUIDE DESCRIBES IS `2.0.1`.
33
+ PUBLISH-GUIDE-VERSION-LINE: THE VERSION THIS GUIDE DESCRIBES IS `2.1.0`.
34
34
  PUBLISH-GUIDE-CUT-STATE: NOT STATED -- this document describes the behaviour at the version line above, and the cut-state is the release's to state, not a shipped document's (`D-57`).
35
35
 
36
36
  **⟶ AND THE CUT-STATE SENTENCE ABOVE IS WITHDRAWN, 2026-10-28 — THE CUT-STATE IS NOT A DOCUMENT'S TO STATE.** `RCA-8(g)` ANNOTATE-BESIDE, and the architect's ruling verbatim (`strata/decisions.md` · `D-57`): *"Drop the cut-state."* **The two marked lines above stand BYTE-FOR-BYTE as the reading of their own date and are read THROUGH this clause — not one byte of either is deleted — and the sentence this clause withdraws is the SECOND of them, the one that claims to say whether the release this guide travels in is cut.** **THE REASON IS MEASURED, THREE TIMES OVER, AND IT IS STRUCTURAL RATHER THAN A MISTAKE: A SHIPPED DOCUMENT IS SEALED BEFORE THE TAG THAT MAKES ITS CUT-STATE TRUE**, so every release packed before its tag ships a document denying itself, and a guard running in that release's own preflight can only ever confirm *"not cut"* — `1.2.0` shipped *"NOT CUT"*, `1.3.0` shipped *"`v1.3.0` DOES NOT EXIST"*, and the change list's head was stale within minutes of the tag that falsified it. **SO THE CUT-STATE SENTENCE IS DROPPED AS A CLAIM AND THE VERSION LINE STAYS**, because the version line is the ONE figure a tarball can be right about: the manifest knows it and travels beside it. **`scripts/publish.sh --figures` GENERATES AND ASSERTS THE VERSION LINE AND NOTHING ELSE** — the cut-state generation and its assertion are removed in the same act, so a tag set that moves can no longer redden this guide — **and the same one line is asserted in THREE shipped documents: this guide, `README.md` beside it, and the change list** (`DEF-AC`'s remaining demand, *"guard the release notes too"* and *"`README.md` still declares no version at all"*). **THE TAG SET IS NOT DELETED AND NOT DENIED: it is a RECORD OF RELEASES held in the change list, PAST TENSE — a list of what has been cut — and never a claim about the current one.** **AND WHAT THIS CLAUSE DOES NOT SAY, SAID PLAINLY BECAUSE A READER WILL LOOK FOR IT: it does not say whether the version this guide prints is cut.** That is not a document's to state; the record of what has been cut is in `RELEASE-NOTES.md`, and the registry is the registry.
@@ -160,8 +160,9 @@ own readme enumerates them one by one and describes no other realm as supported.
160
160
  **`@auspicion/provident-storeroom-js-wasm` is this same store on a WebAssembly host**, and it differs from the
161
161
  package this guide documents in three ways a consumer meets at once:
162
162
 
163
- * **THE BINDINGS ARE HANDED IN, NOT LOOKED FOR.** `storeCreate(bindings, cfg)` takes the module as its first
164
- position — the package instantiates nothing, loads no addon and reaches no filesystem.
163
+ * **THE BINDINGS ARE HANDED IN, NOT LOOKED FOR.** The arm's own `initSync(bytesOrModule)` performs the synchronous
164
+ initialization of the module **the host supplies** and answers the glue namespace; `storeCreate(bindings, cfg)`
165
+ takes that namespace as its first position. The package fetches nothing, loads no addon and reaches no filesystem.
165
166
  * **THERE IS NO `filePath`.** The key is not in domain on that arm, a construction that carries it is refused at the
166
167
  `cfg` gate, and the **`file` tier means *durable with no path***: the store keeps its durability against a
167
168
  caller's function (`saveCall`), and a save it cannot confirm is a save it does not claim.
@@ -2580,12 +2581,17 @@ same code, **and what differs is how the bindings arrive and what the `file` tie
2580
2581
  ### §13.1 What it is, and how you construct one
2581
2582
 
2582
2583
  **THE BINDINGS ARE HANDED IN AND NEVER LOOKED FOR.** The Node build resolves a `.node` artefact down three rungs
2583
- (§2.3); **this one instantiates nothing, loads no addon and reaches no filesystem**, so the HOST instantiates the module
2584
- and hands it in. **THE FACTORY TAKES TWO POSITIONS — `storeCreate(bindings, cfg)` — and the first is the module:**
2584
+ (§2.3); **this one loads no addon and reaches no filesystem, and it exposes its own bindings step so you never name the
2585
+ glue file**: **the HOST supplies the package's own `storeroom_js_binding_bg.wasm` bytes or a compiled
2586
+ `WebAssembly.Module`, the arm's own `initSync` performs the synchronous initialization, and `storeCreate` takes the
2587
+ namespace it answers at its first position.** **THE FACTORY TAKES TWO POSITIONS — `storeCreate(bindings, cfg)`:**
2585
2588
 
2586
2589
  ```js
2587
- // the HOST instantiates: read or fetch the package's own `storeroom_js_binding_bg.wasm`, hand it to the glue's
2588
- // own `initSync`, and pass the initialised module namespace to the factory as position one.
2590
+ import { initSync, storeCreate } from '@auspicion/provident-storeroom-js-wasm';
2591
+
2592
+ // the HOST supplies the bytes or the compiled module; the package's own initSync initializes it and answers the
2593
+ // bindings — the glue namespace, not the raw wasm exports.
2594
+ const bindings = initSync(bytesOrModule);
2589
2595
  const store = storeCreate(bindings, {
2590
2596
  journalLength: 256, // REQUIRED, as on the Node build
2591
2597
  listeners: [], // REQUIRED, even when empty
@@ -2594,11 +2600,14 @@ const store = storeCreate(bindings, {
2594
2600
  });
2595
2601
  ```
2596
2602
 
2597
- **A FIRST POSITION THAT IS NOT THE MODULE IS REFUSED BEFORE ANY BYTE OF YOUR `cfg` IS READ** — `null`, `undefined`, a
2598
- primitive, a function, and an object carrying no callable `storeCreate` — **in the package's own class form: a
2599
- `TypeError` whose `status` member is ABSENT**, because **no store exists at that instant — no instance, no verb, no op**
2600
- (`D-157` item 3; `bindings/js/src/entry/addon-slot.mjs`'s `installAddon`). **The slot is left empty by the refusal**, so
2601
- every later call answers the same form rather than a half-installed table.
2603
+ **A FIRST POSITION THAT IS NOT THE BINDINGS IS REFUSED BEFORE ANY BYTE OF YOUR `cfg` IS READ** — `null`, `undefined`, a
2604
+ primitive, a function, an object carrying no callable `storeCreate` and no callable `initSync`, **and the raw `initSync` output the
2605
+ glue returns** — **in the package's own class form: a `TypeError` whose `status` member is ABSENT**, because **no store
2606
+ exists at that instant — no instance, no verb, no op** (`D-157` item 3; `bindings/js/src/entry/addon-slot.mjs`'s
2607
+ `installAddon`). **THE RAW `initSync` OUTPUT IS NOT THE BINDINGS**: it is the wasm exports object, its verbs answer raw
2608
+ triples, and a construction handed it is refused **at construction and by name**, not at the first verb (`D-206`).
2609
+ **The slot is left empty by the refusal**, so every later call answers the same form rather than a half-installed
2610
+ table.
2602
2611
 
2603
2612
  **`saveCall` AND `initialImage` ARE `cfg` KEYS ON BOTH ARMS** — they joined the four the construction already carried
2604
2613
  (`D-131`; `D-137`) — **and on this arm they are the whole of durability.** **THE ENTRY'S OWN LOAD-TIME GRAPH STAYS
package/README.md CHANGED
@@ -13,7 +13,10 @@ supported.**
13
13
  architect's *"Lift the realm claim restriction and plan for the change"*; `D-157` item 1). **`@auspicion/provident-storeroom-js-wasm`
14
14
  carries the same store on a WebAssembly host**, its bindings handed in instead of looked for: no Node-API addon, no
15
15
  `filePath` (the key is not in domain there — a browser cannot write one), the `file` tier meaning *durable with no
16
- path*, saved through a caller's `saveCall` and seeded through an `initialImage`. **IT IS A SECOND PACKAGE AND NOT A
16
+ path*, saved through a caller's `saveCall` and seeded through an `initialImage`. **ITS ENTRY EXPOSES THE BINDINGS STEP —
17
+ `initSync(bytesOrModule)` initializes the host's module and answers the glue namespace `storeCreate(bindings, cfg)` takes
18
+ at its first position** (`D-206`; FR-1) — **and the raw wasm exports object the glue's own `initSync` returns is refused
19
+ by name at construction, never at the first verb.** **IT IS A SECOND PACKAGE AND NOT A
17
20
  SECOND ARM OF THIS ONE, AND NOTHING ABOVE MOVES FOR IT**: this package's realm claim, its one `exports` arm, its one
18
21
  module name and its `require` condition stand byte-for-byte. **AND THE SENTENCE THIS PARAGRAPH SITS UNDER REMAINS
19
22
  TRUE OF THIS PACKAGE**: what ships here reaches Node ESM and nothing else.
@@ -50,7 +53,7 @@ an edit belongs.
50
53
 
51
54
  **⟶ AND THE ONE FIGURE THIS PAGE CAN BE RIGHT ABOUT IS GENERATED AND ASSERTED, 2026-10-28 — `DEF-AC`'s third part, and `D-57`'s one surviving figure.** `RCA-8(g)` ANNOTATE-BESIDE: **every clause above stands BYTE-FOR-BYTE and is read THROUGH this one; nothing above moves.** **THE DEFECT THIS CLOSES: THIS PAGE DECLARED NO VERSION AT ALL** — a shipped document a consumer reads first, saying nothing about which release it describes — **so `scripts/publish.sh --figures` now GENERATES the line below from `bindings/js/package.json`'s `version` and REFUSES when it disagrees, exactly as it does at the guide's and the change list's own marked lines: three shipped documents, three version lines, one generator, one assertion.** **AND THE CUT-STATE IS NOT STATED HERE, OR ANYWHERE ELSE IN THIS PACKAGE'S DOCUMENTS** (`D-57`, the architect verbatim: *"Drop the cut-state"*): a document is sealed before the tag that would make its cut-state true, so **the cut-state is not a document's to state**; the record of what has been cut is the change list's, and it is past tense. **EVERY OTHER CLAIM OF THIS PAGE STANDS EXACTLY AS IT STOOD.**
52
55
 
53
- PUBLISH-README-VERSION-LINE: THE VERSION THIS README DESCRIBES IS `2.0.1`.
56
+ PUBLISH-README-VERSION-LINE: THE VERSION THIS README DESCRIBES IS `2.1.0`.
54
57
 
55
58
  ## The one entry
56
59
 
package/RELEASE-NOTES.md CHANGED
@@ -16,7 +16,7 @@ claims to be installable.**
16
16
 
17
17
  **⟶ AND THE CUT-STATE IS DROPPED FROM THIS FILE, 2026-10-28 — `D-57`, THE ARCHITECT VERBATIM: *"Drop the cut-state."*** `RCA-8(g)` ANNOTATE-BESIDE: **the title line and every dated paragraph of this file stand BYTE-FOR-BYTE as the reading of their own date, THIS clause is the one that reads them, and not one byte is deleted.** **THE REASON IS STRUCTURAL AND IT WAS MEASURED THREE TIMES: A SHIPPED DOCUMENT IS SEALED BEFORE THE TAG THAT MAKES ITS CUT-STATE TRUE**, so every release packed before its tag ships a document denying itself, and a guard running in that release's own preflight can only ever confirm *"not cut"* — `1.2.0` shipped *"NOT CUT"*, `1.3.0` shipped *"`v1.3.0` DOES NOT EXIST"*, and this file's own head was stale within minutes of the tag that falsified it. **SO EVERY SENTENCE BELOW THAT CLAIMS WHETHER SOME VERSION IS OR IS NOT CUT — *"PREPARED — NOT CUT"*, *"no `v1.3.0`"*, *"nothing in this section is cut"*, *"the release is not cut"*, *"what is installed today is still `1.1.0`"*, and each reading printed beside them — IS READ THROUGH THIS CLAUSE: the cut-state is not a document's to state.** **WHAT SURVIVES IS THE ONE FIGURE A SHIPPED DOCUMENT CAN BE RIGHT ABOUT, AND IT IS GENERATED FROM THE MANIFEST AND ASSERTED BY THE PREFLIGHT:**
18
18
 
19
- PUBLISH-NOTES-VERSION-LINE: THE VERSION THIS CHANGE LIST DESCRIBES IS `2.0.1`.
19
+ PUBLISH-NOTES-VERSION-LINE: THE VERSION THIS CHANGE LIST DESCRIBES IS `2.1.0`.
20
20
 
21
21
  **AND THE TAG SET SURVIVES AS A RECORD OF RELEASES — PAST TENSE, A LIST OF WHAT HAS BEEN CUT, NEVER A CLAIM ABOUT THE CURRENT ONE** (the record stands in `§1.4.0` below — the section this file's head called `§main` until it was re-cut to name the version it prepares, 2026-10-28 — beside the section for the tree this file describes). (`D-57`; `DEF-AC` (b) — `scripts/publish.sh --figures` generates that line from `bindings/js/package.json`'s `version` and refuses on any disagreement, in this file, in `bindings/js/README.md` and in the shipped guide: three documents, three version lines, one generator, one assertion.)
22
22
 
@@ -55,6 +55,65 @@ the value to assert against, not the crate's own `Cargo.toml` version.
55
55
 
56
56
  ---
57
57
 
58
+ ## §2.1.0 · a MINOR — the WebAssembly arm's bindings step: `initSync(input)` answers the glue namespace through the package name, the raw `InitOutput` is refused at construction, and the Node arm moves no byte
59
+
60
+ **THE VERSION IS `2.1.0` AND ITS CLASS IS A MINOR — `D-206`, THE ARCHITECT'S *"Proceed with FR-1 proposed changes as
61
+ 2.1.0 version"*.** **THE ARTEFACT THAT MOVES IS `@auspicion/provident-storeroom-js-wasm`, THE SIXTH PACKAGE, BESIDE THE
62
+ MAIN PACKAGE AND ITS FIVE NATIVE SIBLINGS, WHICH MOVE TO THE SAME VERSION AND CHANGE NO BYTE OF THEIR RUNTIME.**
63
+
64
+ **THE FINDING IS `FR-1`, THE DOWNSTREAM HANDOFF OF 2026-11-29.** The wasm arm's factory is
65
+ `storeCreate(bindings, cfg)`, and its first position is the **glue module's namespace** — the object carrying the
66
+ value-taking wrappers `read`, `write`, `listen`, and the rest. The package published no function that produced that
67
+ object: the glue was in `files` but not in `exports`, `initSync` was not a package export, and the only route was a
68
+ filesystem path into `node_modules/.../storeroom_js_binding.js`. **AND THE TRAP WAS WORSE THAN THE MISSING DOOR**: the
69
+ glue's own `initSync` returns the **raw wasm exports**, which also carry a callable `storeCreate`, so the old
70
+ `isBindings` test admitted it; the store then answered raw `[valueRef, errorRef, errorFlag]` triples from `read` and
71
+ threw at `answer.watched` from `write`.
72
+
73
+ **WHAT A CONSUMER ON `2.0.1` MEETS, AND WHAT THIS RELEASE CHANGES:**
74
+
75
+ 1. **THE ARM'S ENTRY NOW EXPOSES THE BINDINGS STEP.** `initSync(input)` takes the host's bytes, a compiled
76
+ `WebAssembly.Module`, or the glue's own `{ module }` carrier; it performs the synchronous initialization and answers
77
+ **the glue module's namespace**, ready for `storeCreate`. The host still supplies the module; the package still fetches
78
+ nothing and reaches no filesystem. **IT IS A WRAPPER AND NOT A RE-EXPORT**: wasm-bindgen's `initSync` returns the raw
79
+ exports, so re-exporting it would hand back exactly the object this release refuses.
80
+ 2. **THE FACTORY DOES NOT MOVE.** `storeCreate(bindings, cfg)` keeps its two positions and every existing consumer that
81
+ already passes the glue namespace observes the same store, the same fifteen members and the same refusals. The change
82
+ is additive.
83
+ 3. **THE RAW `InitOutput` IS REFUSED AT CONSTRUCTION.** `isBindings` now requires **both** own callables — `storeCreate`
84
+ and `initSync` — and the raw exports object, which carries the first and not the second, is caught by its own branch.
85
+ The refusal is `PAR-JS-12`'s one `TypeError` with **no `status` member** (`D-157` item 3), and its message names the
86
+ raw `initSync` output instead of letting the `structuredClone` probe call it *"a Proxy"*.
87
+ 4. **THE ARM'S DECLARATION GAINS THE THIRD REALM REGION.** `bindings/js/index.d.ts` brackets the bindings step beside
88
+ the `filePath` and `factory` regions; the WASM arm's emission reads `export function initSync(input: unknown): unknown;`
89
+ and the Node arm keeps the source's own comment and **declares no such function**. **The return is `unknown` for the
90
+ same reason the factory's first position is**: the package knows it answers the glue namespace, but that namespace's
91
+ shape is the glue's, and the runtime validates what arrives.
92
+ 5. **THE GUIDE TEACHES THE ROUTE.** `docs/guides/package-use.md` §13.1 and its second-realm bullet now show
93
+ `import { initSync, storeCreate } from '@auspicion/provident-storeroom-js-wasm'`, the host supplying the bytes/module,
94
+ and `storeCreate(bindings, cfg)`; the sentence that told a consumer to reach *"the glue's own `initSync`"* is gone,
95
+ because that was the unimplementable step.
96
+ 6. **THE CELLS.** `CW-11` drives the package-name route and the raw-output refusal; `CW-4` now proves the glue is in the
97
+ entry's transitive set while no `node:` specifier or top-level `await` joins it; `CW-6` keeps the arm's nineteen glue
98
+ entries; `CW-10` compiles `initSync(input)` and `storeCreate(bindings, cfg)` against the staged arm, with
99
+ `storeCreate(cfg)` and `filePath: 'x'` still refused; and `realm-declaration.test.mjs` walks the third region.
100
+
101
+ **WHAT DOES NOT MOVE, NAMED ONE BY ONE:** **the store, in every arm and every entry** — the fifteen instance members,
102
+ the nineteen wasm entries, the save channel, the crossing and every status and message · **the Node package's public
103
+ surface** — one `storeCreate`, one `exports` arm, one declaration · **the arm's `storeCreate(bindings, cfg)`** and every
104
+ consumer already passing the glue namespace · **the glue's own module shape** — the wrapper namespace is still what the
105
+ factory takes, and the raw exports are still what the glue's `initSync` returns · and **the closed status set**, because
106
+ the raw-output refusal is a call-shape `TypeError` and mints no member.
107
+
108
+ **THE VERSION: `2.1.0` AT FIFTEEN SITES, MOVING TOGETHER** — the main manifest's `version`, its five exact
109
+ `optionalDependencies` pins, the six `platforms/*/package.json` versions (the five native siblings and the WebAssembly
110
+ package), and the three generated version lines (`bindings/js/README.md`, `bindings/js/README.guide.md` and this change
111
+ list's landed copy). **The artefact is stamped from the manifest by `bindings/js/build.rs`, so `version()` answers
112
+ `2.1.0`**, and that is the value to assert against. **AND THIS RELEASE DESCRIBES `2.1.0` AND CLAIMS NO TAG**: the
113
+ cut-state is not a document's to state (`D-57`).
114
+
115
+ ---
116
+
58
117
  ## §2.0.1 · a PATCH — the WebAssembly arm's declaration spells the factory with the TWO positions its runtime and its guide require: one shipped artefact corrected in the declaration alone, the instrument that would have caught it, and no byte of the runtime moved
59
118
 
60
119
  **THE VERSION IS `2.0.1` AND ITS CLASS IS A PATCH, AND THE CLASS IS NOT A JUDGEMENT THIS FILE MAKES: IT IS `D-203`
package/index.d.ts CHANGED
@@ -697,6 +697,11 @@ export interface BaseState {
697
697
  * sentence above is `2.0.0`'s own reading and stands; **what a reader needs is that this declaration now describes `2.0.1`**, whose class is a `PATCH` because
698
698
  * `D-203`'s fix changes the ARM's emitted declaration and no runtime byte** (`D-203` item 5: *"a patch on the arm at most … could not construct at all"*).
699
699
  * **The `MAJOR` reading above is not withdrawn: it is `2.0.0`'s, and this file has carried two classes since.**
700
+ * **⟶ AND THE VERSION LINE MOVES ONCE MORE, 2026-11-29 — `D-206` / FR-1 / 2.1.0.** **The two readings above stand as
701
+ * their dates' own; what a reader needs now is that this declaration describes `2.1.0`, whose class is a `MINOR` because
702
+ * the arm's entry gains the `initSync` value-level name and no published member is removed or narrowed.** **The Node
703
+ * arm's own declared surface is unmoved**: its one `storeCreate(cfg)` and its fifteen-member instance are the bytes they
704
+ * were, and the bindings step is the WASM arm's emission alone (the `bindings` region above).
700
705
  */
701
706
  export interface JournalOp {
702
707
  readonly opId: string;
@@ -1686,6 +1691,23 @@ export interface StoreInstance {
1686
1691
  export function storeCreate(cfg: StoreConfig): StoreInstance;
1687
1692
  // ⟦realm:factory:end⟧
1688
1693
 
1694
+ /**
1695
+ * **THE BINDINGS STEP IS THE DECLARATION'S THIRD REALM-CONDITIONAL BYTE — ADDED 2026-11-29, `D-206` / FR-1 / 2.1.0.**
1696
+ * **The WebAssembly arm's entry exposes `initSync(input)` so a host reaches the bindings through the package name and
1697
+ * not through `node_modules/.../storeroom_js_binding.js`** (`FR-1`; the downstream handoff of 2026-11-29). The Node arm
1698
+ * has no such export: its construction resolves the addon itself, so there is no host-supplied module to initialize and
1699
+ * no bindings value for a caller to hold. **THE TWO COMMENT LINES THAT BRACKET THE BODY BELOW ARE THE REGION MARKERS
1700
+ * `scripts/emit-declarations.mjs` READS** — at this file's two-space marker depth, like the `filePath` and `factory`
1701
+ * regions — and **the WASM arm's emission replaces the Node comment with `export function initSync(input: unknown):
1702
+ * unknown;` while the Node arm keeps the comment and every other byte.** **The return is `unknown` on purpose**: the
1703
+ * package knows it answers the glue namespace, but the shape of that namespace is the glue's and not this declaration's,
1704
+ * and the runtime is what validates the first position `storeCreate` then reads (`D-203` item 2's own reading of a
1705
+ * host-supplied module).
1706
+ */
1707
+ // ⟦realm:bindings:begin⟧
1708
+ // THE NODE ARM HAS NO BINDINGS STEP: the WebAssembly arm's declaration replaces this line with `initSync`.
1709
+ // ⟦realm:bindings:end⟧
1710
+
1689
1711
  /**
1690
1712
  * **THE POST-CREATION CONSTRAINT PAIR — `parameter-semantics.md §2.24` (`PAR-JS-24`)**: the key the three
1691
1713
  * constraint methods name — **an `address` inside `§1.5`'s segment array, and an `id` that is a NON-EMPTY
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "provident-storeroom",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "U-STOREROOM-PUBLISH: the published Node ESM binding for the native Rust store of Provident-Storeroom — the entry resolves the scoped per-target platform package first, the checkout's own module-relative addon second, and answers the store's single declared absent-addon form when neither loads",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0",
@@ -42,11 +42,11 @@
42
42
  "src/constraint-kernel.mjs"
43
43
  ],
44
44
  "optionalDependencies": {
45
- "@auspicion/provident-storeroom-js-linux-x64-gnu": "2.0.1",
46
- "@auspicion/provident-storeroom-js-linux-arm64-gnu": "2.0.1",
47
- "@auspicion/provident-storeroom-js-darwin-x64": "2.0.1",
48
- "@auspicion/provident-storeroom-js-darwin-arm64": "2.0.1",
49
- "@auspicion/provident-storeroom-js-win32-x64-msvc": "2.0.1"
45
+ "@auspicion/provident-storeroom-js-linux-x64-gnu": "2.1.0",
46
+ "@auspicion/provident-storeroom-js-linux-arm64-gnu": "2.1.0",
47
+ "@auspicion/provident-storeroom-js-darwin-x64": "2.1.0",
48
+ "@auspicion/provident-storeroom-js-darwin-arm64": "2.1.0",
49
+ "@auspicion/provident-storeroom-js-win32-x64-msvc": "2.1.0"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
@@ -141,14 +141,16 @@ export function installAddonPath(path) {
141
141
 
142
142
  /// **THE ONE SETTER FOR THE MODULE, CALLED ONCE BY THE INJECTED ARM'S ENTRY** (`storeCreate(bindings, cfg)`).
143
143
  ///
144
- /// **THE DOMAIN IS AN OBJECT CARRYING A CALLABLE OWN `storeCreate`, AND EVERYTHING ELSE IS REFUSED IN THE DECLARED
145
- /// FORM** — `null`, `undefined`, a primitive, a function, and an object that carries no such member. The class test
146
- /// is an OWN DATA read (`getOwnPropertyDescriptor`), so a caller's own accessor is never invoked and no trap runs on
147
- /// this path (`A76`; `DD-34`'s discipline one layer over). **THE REFUSAL IS THE SAME ONE `withAddon()` ANSWERS WITH
148
- /// AN EMPTY SLOT** — `FilePathUnreachable` in the four-member form, the subject the arm declares — because *"the
149
- /// factory was handed nothing, or something that is not the bindings"* is the state `design.md` §8 names and no
150
- /// ruling gives it a member of its own; **the slot is left EMPTY by the refusal**, so every later call answers the
151
- /// same form rather than a half-installed table.
144
+ /// **THE DOMAIN IS THE GLUE MODULE'S NAMESPACE, AND IT IS TESTED BY TWO OWN CALLABLES — `storeCreate` AND, FROM
145
+ /// `D-206` / FR-1 / 2.1.0, `initSync` — AND EVERYTHING ELSE IS REFUSED IN THE DECLARED FORM** — `null`,
146
+ /// `undefined`, a primitive, a function, an object that carries neither member, and **the raw `InitOutput` the
147
+ /// glue's own `initSync` answers**, which carries `storeCreate` but no `initSync` and is named by its own branch
148
+ /// below. The class test is an OWN DATA read (`getOwnPropertyDescriptor`), so a caller's own accessor is never
149
+ /// invoked and no trap runs on this path (`A76`; `DD-34`'s discipline one layer over). **THE REFUSAL IS THE SAME
150
+ /// CLASS FORM `withAddon()` ANSWERS WITH AN EMPTY INJECTED SLOT** — `PAR-JS-12`'s one `TypeError`, its `status`
151
+ /// member ABSENT — because *"the factory was handed nothing, or something that is not the bindings"* is the state
152
+ /// `design.md` §8 names and no ruling gives it a member of its own (`D-157` item 3); **the slot is left EMPTY by the
153
+ /// refusal**, so every later call answers the same form rather than a half-installed table.
152
154
  ///
153
155
  /// **A REPEATED INSTALL OF THE SAME MODULE REBUILDS NOTHING**: the table is built once per module object, so the
154
156
  /// answer a part takes at `entryOf()` is stable for the life of the construction. (A host that hands a SECOND
@@ -172,8 +174,23 @@ export function installAddon(module) {
172
174
  // read with `D-154`'s second realm and `D-155` item 3's injected instance (the factory's first position is the
173
175
  // architect's own spelling, so its misuse is the host's and not a store state).
174
176
  //
177
+ // **⟶ AND THE RAW `InitOutput` IS REFUSED BY ITS OWN NAME FROM 2026-11-29 — `D-206` / FR-1 / 2.1.0.** **IT IS THE
178
+ // OBJECT THE GLUE'S OWN `initSync` ANSWERS** — the raw wasm exports, carrying `storeCreate`, `read`, `write` and a
179
+ // `memory` — **and it is NOT the glue module's namespace**, whose wrapper functions take values off the externref
180
+ // table. **THE BRANCH STANDS BEFORE `classSpelling` ON PURPOSE**: on this arm `classSpelling` uses the
181
+ // `structuredClone` probe, and the raw exports object carries functions, so the probe throws and the class would be
182
+ // misreported as *"a Proxy"* — a message that names neither the object nor the mistake. **THE FORM IS STILL
183
+ // `PAR-JS-12`'S `TypeError` WITH NO `status`** (`D-157` item 3): no store exists, no verb is reached, and no member
184
+ // of the closed set names this state.
185
+ //
175
186
  // **AND THE SLOT IS STILL LEFT EMPTY BY THE REFUSAL**, so every later call answers the same class form rather than a
176
187
  // half-installed table.
188
+ if (isRawInitOutput(module)) {
189
+ throw new TypeError(
190
+ "storeCreate: the injected bindings are the raw WebAssembly exports object returned by the glue's initSync, "
191
+ + "not the glue module's namespace; pass the result of this package's initSync",
192
+ );
193
+ }
177
194
  throw new TypeError(
178
195
  `storeCreate: the injected bindings are ${classSpelling(module)}, and the first position is the WebAssembly module's own namespace object`,
179
196
  );
@@ -392,10 +409,29 @@ function defineEntry(table, name, entry) {
392
409
  Object.defineProperty(table, name, { value: entry, writable: true, enumerable: true, configurable: true });
393
410
  }
394
411
 
395
- /// **WHETHER A HANDED VALUE IS THE BINDINGS** — an object carrying a callable OWN data `storeCreate`, read by
396
- /// descriptor so no caller's accessor runs and no trap is invoked (`A76`'s class-first discipline, one layer over).
412
+ /// **WHETHER A HANDED VALUE IS THE BINDINGS** — the glue module's namespace, read by descriptor so no caller's
413
+ /// accessor runs and no trap is invoked (`A76`'s class-first discipline, one layer over). **TWO OWN CALLABLES FROM
414
+ /// `D-206` / FR-1 / 2.1.0: `storeCreate` AND `initSync`** — the first is the construction the dispatch table forwards,
415
+ /// the second is the module-only member that tells the namespace from the raw `InitOutput`, which carries the first
416
+ /// and not the second.
397
417
  function isBindings(module) {
398
- return module !== null && typeof module === 'object' && typeof ownMember(module, 'storeCreate') === 'function';
418
+ return module !== null && typeof module === 'object'
419
+ && typeof ownMember(module, 'storeCreate') === 'function'
420
+ && typeof ownMember(module, 'initSync') === 'function';
421
+ }
422
+
423
+ /// **WHETHER A HANDED VALUE IS THE RAW `InitOutput`** — the object wasm-bindgen's own `initSync` returns: **the raw
424
+ /// wasm exports**, which carry the `storeCreate` entry and a `memory` and **no `initSync`**. **IT IS NOT THE GLUE
425
+ /// MODULE'S NAMESPACE** — that one is the module's exports, carries `initSync`, and carries no `memory` — so this
426
+ /// predicate is the one test that tells the trap from the bindings before any verb is reached (`D-206` / FR-1 / 2.1.0).
427
+ /// **IT READS BOTH MEMBERS BY DESCRIPTOR** (no accessor, no trap) and never coerces the value.
428
+ function isRawInitOutput(module) {
429
+ if (module === null || typeof module !== 'object') return false;
430
+ if (typeof ownMember(module, 'initSync') === 'function') return false;
431
+ const memory = ownMember(module, 'memory');
432
+ return typeof WebAssembly === 'object' && WebAssembly !== null
433
+ && typeof WebAssembly.Memory === 'function'
434
+ && memory instanceof WebAssembly.Memory;
399
435
  }
400
436
 
401
437
  // ---------------------------------------------------------------------------------------------