provident-storeroom 1.9.3 → 1.10.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 `1.9.3`.
33
+ PUBLISH-GUIDE-VERSION-LINE: THE VERSION THIS GUIDE DESCRIBES IS `1.10.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.
@@ -383,8 +383,8 @@ to a tier the key no longer holds refuses `TierNotFound`, and the message names
383
383
  (`write-and-read.md §4.2`, arm `R-4`'s message obligation).
384
384
 
385
385
  **There is one state in which two versions DO stand at one key, and it is the exception that makes the rule
386
- readable: a SHADOW.** When the key holds a version at a tier MORE persistent than the write's, the newer version
387
- is added alongside and the more persistent one wins the unqualified read. **So "one version per key" is not the
386
+ readable: a SHADOW.** When the key holds a version at a tier MORE persistent than the write's, the newer version is added alongside — and the SHADOW wins the unqualified read: an unqualified read selects the LOWEST-persistence version present, `temp` before `mem` before `file`, and a read narrowed by the `tier` argument selects within the passed set by the same rule (`write-and-read.md §3.4`, arm `W-5`;
387
+ `docs/specs/storeroom-native/contract.md §2.3`, whose zero-tier arm states it), while the tier readout's `readTiered` reports that selected version's own tier as each node's `_tier`. ⟶ CORRECTED 2026-11-06 (`D-122`), replacing a reading that gave the unqualified read to the more persistent version. **So "one version per key" is not the
388
388
  invariant; "the write's own tier decides which versions survive it" is** (`write-and-read.md §3.4`, arm `W-5`).
389
389
 
390
390
  **Whether declared semantics and shipped behaviour agree at every arm and every tier combination is not a
package/README.md CHANGED
@@ -31,7 +31,7 @@ an edit belongs.
31
31
 
32
32
  **⟶ 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.**
33
33
 
34
- PUBLISH-README-VERSION-LINE: THE VERSION THIS README DESCRIBES IS `1.9.3`.
34
+ PUBLISH-README-VERSION-LINE: THE VERSION THIS README DESCRIBES IS `1.10.0`.
35
35
 
36
36
  ## The one entry
37
37
 
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 `1.9.3`.
19
+ PUBLISH-NOTES-VERSION-LINE: THE VERSION THIS CHANGE LIST DESCRIBES IS `1.10.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,21 @@ the value to assert against, not the crate's own `Cargo.toml` version.
55
55
 
56
56
  ---
57
57
 
58
+ ## §1.10.0 · a MINOR — the tier readout: a third read verb that answers the durability tier of every node it returns
59
+
60
+ **THE VERSION IS `1.10.0` AND ITS CLASS IS A MINOR, AND WHAT IT ADDS IS ONE INSTANCE MEMBER — a read that tells you, at every node it answers with, WHICH VERSION WON and the tier that version stands at, without a second call** (`D-121`; `D-121-ter`; `docs/specs/storeroom-tier-readout/contract.md`).
61
+
62
+ 1. **`readTiered(address, tier?)`** — the third read verb — is an instance member (never a module export) and takes `read`'s two positions, the address and the optional tier, with `read`'s own walk and `read`'s own refusal set.
63
+ 2. **WHAT THE ANSWER LOOKS LIKE AT EACH KIND**: an OBJECT node answers `{ _tier, …members }` — its own members inline beside the tier — an ARRAY node answers `{ _tier, value: [ … ] }`, and a LEAF node answers `{ _tier, value: <the literal> }`; **so every node of the answer is an object**, and each `_tier` is that node's own tier (`'mem'`, `'file'` or `'temp'`), never a set.
64
+ 3. **`read` AND `readLiteral` ARE UNCHANGED** — no argument, no default, no arm, and their answers byte for byte; this verb is an addition beside them and not a rewrite of either.
65
+ 4. **A CALLER'S OWN STORED `_tier` IS NOT DELIVERED BY THIS VERB, AND `read` STILL ANSWERS IT** — the minted field wins on the node that carries it, which is this verb's one lossy name; nothing is destroyed and the truth stays reachable.
66
+ 5. **A `readTiered` ANSWER HANDED BACK TO `write` IS STORED AS ORDINARY DATA** — the `_tier` members and the `value` wrappers become your own stored members, because the write stores the object you hand it. **That is a consequence and not a rule: no clause forbids it, no clause blesses it, and nothing refuses or strips it.**
67
+ 6. **WHAT DOES NOT MOVE, LISTED AND CLOSED**: every stored value · every record · the closed status set · the kernel's export set · the module namespace's one name (`storeCreate`) · `read`'s and `readLiteral`'s answers.
68
+
69
+ **AND THIS SECTION DESCRIBES `1.10.0` AND CLAIMS NO TAG**: the cut-state is not a document's to state (`D-57`).
70
+
71
+ ---
72
+
58
73
  ## §1.9.3 · a PATCH — the registration instant reads a returned outcome and a repair's return as own members: one membership question, answered alike at the two instants
59
74
 
60
75
  **THE VERSION IS `1.9.3` AND ITS CLASS IS A PATCH, AND WHAT IT CARRIES IS ONE BEHAVIOUR A CONSUMER MEETS AT THE REGISTRATION INSTANT, DRIVEN RATHER THAN TRUSTED** (`D-120`; `docs/specs/storeroom-registration-own-members/contract.md`).
package/index.d.ts CHANGED
@@ -186,6 +186,24 @@ export type Tier = 'mem' | 'file' | 'temp';
186
186
  */
187
187
  export type TierSet = Tier | readonly Tier[];
188
188
 
189
+ /**
190
+ * **THE TIERED READOUT'S ANSWER — AND THIS ALIAS IS `readTiered`'s RETURN TYPE** (`PIN-3`'s three node
191
+ * forms; the architect's `Q-2` answer, *"the declared `TieredNode` union"*). **IT IS THE RETURN POSITION'S OWN
192
+ * DECLARATION AND NOT A TYPE LINE BESIDE IT**, and a `TieredNode` used anywhere else is forbidden.
193
+ *
194
+ * **THE SHAPE IS A TOTAL FUNCTION OF NODE KIND**: an OBJECT node is `{ _tier, …members }` with its members
195
+ * INLINE; an ARRAY node is `{ _tier, value: [ … ] }`; a LEAF node is `{ _tier, value: <the literal> }`. So
196
+ * every node of the answer is an OBJECT and no node's answer is a primitive or a bare array.
197
+ *
198
+ * **`_tier` IS THAT NODE'S OWN TIER — never a set**: `TierSet` is the ARGUMENT's type, and this answer
199
+ * carries one of `Tier`'s three tokens at each node and nothing else.
200
+ */
201
+ export type TieredNode =
202
+ | { readonly _tier: Tier; readonly [member: string]: TieredNode | Tier }
203
+ | { readonly _tier: Tier; readonly value: readonly TieredNode[] }
204
+ | { readonly _tier: Tier; readonly value: number | string | boolean };
205
+
206
+
189
207
  /**
190
208
  * The configuration a store is constructed from — **the store's FOUR declared keys and no FIFTH**
191
209
  * (`filePath` · `journalLength` · `listeners` · `constraints`), each passed through WITHOUT a default, a
@@ -975,6 +993,44 @@ export interface StoreInstance {
975
993
  read(address: Address, tier?: TierSet): unknown;
976
994
  /** The same read, narrowed to a leaf — a branch answers `ReadTargetIsBranch`; `tier` is `TierSet`, with the same SUPPLIED-`undefined` reading as `read`. */
977
995
  readLiteral(address: Address, tier?: TierSet): unknown;
996
+ /**
997
+ * **Read a node's durability tier beside its value** — the third read verb, with `read`'s own arity
998
+ * (`address`, then the optional `tier`), `read`'s own declared walk and `read`'s own refusal set, and with
999
+ * the ANSWER COMPILED.
1000
+ *
1001
+ * **THE SHAPE IS A TOTAL FUNCTION OF NODE KIND** (`TieredNode`): an OBJECT node answers `{ _tier, …members }`
1002
+ * with its members INLINE, and it carries no `value` wrapper; an ARRAY node answers `{ _tier, value: [ … ] }`
1003
+ * with `value` dense and in index order; a LEAF node answers `{ _tier, value: <the literal> }`, `value` being
1004
+ * the literal itself, exactly as written. **Every node of the answer is therefore an OBJECT, and no node's
1005
+ * answer is a primitive or a bare array.**
1006
+ *
1007
+ * **EACH `_tier` IS THAT NODE'S OWN TIER**: an object's and an array's is its own anchor tier, a leaf's is
1008
+ * the tier of the version the read selected — so the answer's fields are the persistence ladder the read
1009
+ * walked, never one tier repeated and never a child inheriting its parent's. **It is ONE of `Tier`'s three
1010
+ * tokens and NEVER an array, a map or a count**: `TierSet` is the ARGUMENT's type, and the answer never
1011
+ * carries a set.
1012
+ *
1013
+ * **THE ONE COLLISION, DECLARED RATHER THAN LEFT TO BE DISCOVERED: a member you stored at the name `_tier`
1014
+ * is NOT DELIVERED by this verb** — the minted field wins on the node that carries it — **while the default
1015
+ * `read` at the same address and tier still answers your stored value**, so nothing is destroyed and the
1016
+ * truth is reachable. **That is the one lossy field, in this one verb**; every other stored name, `value`
1017
+ * among them, is delivered untouched.
1018
+ *
1019
+ * **AND A `readTiered` ANSWER HANDED BACK TO `write` IS STORED AS ORDINARY DATA**: the `_tier` members and
1020
+ * the `value` wrappers become your own stored members, exactly as the write stores any other object you
1021
+ * hand it. **This is a DECLARED CONSEQUENCE AND NOT A RULE — no clause forbids that write-back and no
1022
+ * clause blesses it, nothing is refused for it and nothing is stripped out of it.** **Nor is this answer a
1023
+ * stored value: it is the read's answer compiled, and it does not round-trip.**
1024
+ *
1025
+ * **AND IT IS NOT A VERSION-SET READOUT**: it reports WHICH version won and never which versions stand, so
1026
+ * a key holding a `file` version and a `mem` version answers the same shape as a key holding only the
1027
+ * winner. **The surface's one tier-SET answer remains `delete`'s `receipt.tiers`.**
1028
+ *
1029
+ * **AND `undefined` AT THE `tier` POSITION IS NOT THE SAME CALL AS NO POSITION AT ALL** (`PAR-JS-6`,
1030
+ * exactly as at `read`): a SUPPLIED `undefined` is PRESENT and the store answers `AddressMalformed` for it,
1031
+ * while only the call that spells no tier reads the whole set.
1032
+ */
1033
+ readTiered(address: Address, tier?: TierSet): TieredNode;
978
1034
  /**
979
1035
  * Write `value` at `address` on `tier` — EXACTLY ONE token, never an array (`PAR-JS-7`).
980
1036
  *
package/index.mjs CHANGED
@@ -257,8 +257,8 @@ export function storeCreate(cfg) {
257
257
  // CHANNEL:** the addon's per-verb entries read the store from position `0` of the call array, and position
258
258
  // `0` is this object. **NO ENTRY CARRIES A LEADING INSTANCE POSITION** (`export-set-and-dispatch.md §4`).
259
259
  const instance = {
260
- /// **`surface.md §2.4` item 9 (f)'s clause of 2026-10-18 — THE PRODUCT'S DECLARED MEMBER SET IS TWELVE
261
- /// OWN MEMBERS, `10 + 1 + 1 = 12` ✓: THE TEN METHODS, `register` AND `constraints`.** **`settle` IS
260
+ /// **`surface.md §2.4` item 9 (f)'s clause of 2026-10-18 — THE PRODUCT'S DECLARED MEMBER SET IS FIFTEEN
261
+ /// OWN MEMBERS, `10 + 1 + 1 + 2 + 1 = 15` ✓: THE TEN METHODS, `register`, `constraints`, THE TWO REMOVAL MEMBERS AND `readTiered`.** **`settle` IS
262
262
  /// REMOVED WHOLE** (`REMOVED-WHOLE`, item 9's pointer of that date): the member set moved `13 → 12`, and
263
263
  /// **THE TWO REMAINING SINGLES ARE NAMED** because *"a lone `+1` would not compute"* — the first `1` is
264
264
  /// `register` and the second is `constraints`, the registered-constraint read. Each is reached through
@@ -268,7 +268,7 @@ export function storeCreate(cfg) {
268
268
  /// store-reaching names have no second spelling at any layer.
269
269
  /// **THE STATE STAYS PRIVATE** (`docs/specs/storeroom-js/surface.md §2.1` (e) item 1): `state` below is this factory's own closure and is
270
270
  /// keyed in `INSTANCES` — NO own member is store data, a record, a Map, a Set, a tier, an address, a
271
- /// handle or a commit, and the twelve members above are the whole of what a caller sees.
271
+ /// handle or a commit, and the fifteen members above are the whole of what a caller sees. **⟶ CORRECTED 2026-11-06: this clause printed `twelve`, `10 + 1 + 1 = 12`, and was stale twice over at that print — the held-listener-identity unit's `12 → 14` move of 2026-10-19 added `removeListener` and `removeConstraint`, and `U-STOREROOM-TIER-READOUT`'s `readTiered` takes the set `14 → 15`; the operative figures are `index.d.ts`'s `StoreInstance` and `surface.md §2.4` item 9 (f), and NO CODE LINE MOVES WITH THIS CORRECTION.**
272
272
  /// **`on` AND `off` ARE MERGED AWAY AND ARE NOT MEMBERS** (`A127`): the listener registration route is
273
273
  /// `listen` + `register` and its withdrawal is `unlisten`, exactly as the seven store-reaching methods
274
274
  /// and `register` below spell them.
@@ -309,6 +309,20 @@ export function storeCreate(cfg) {
309
309
  // THE ENTRY IS INVOKED BY `Reflect.apply`, NOT BY A SPREAD — see `read`'s clause of 2026-10-24 above.
310
310
  return decodeValue(carryRefusal(() => Reflect.apply(entryOf().readLiteral, this, args), args));
311
311
  },
312
+ /** **`D-121-ter` item 5: `readTiered` — `read`'s OWN ARITY AND DECLARED WALK AND REFUSAL SET, WITH THE ANSWER COMPILED** (`U-STOREROOM-TIER-READOUT`, 2026-11-06; `contract.md`'s `PIN-2`). A MEMBER and NEVER a module export: the namespace stays ONE name, `storeCreate` (`PIN-2` (iv)). Its three devices are `read`'s own — the address encoded at the first position, the tier appended by `appendOwn` on the caller's own `arguments.length`, and the entry invoked by `Reflect.apply` — and no byte of `read` or `readLiteral` moves. */
313
+ readTiered(address, tier) {
314
+ // The FIRST device is `read`'s, verb for verb: a position the call supplied no value for is handed as
315
+ // the runtime's own `undefined` — NEVER an absent array slot — and a SUPPLIED `undefined` at the tier
316
+ // position is PRESENT and takes the row's own `AddressMalformed` (`crossing.md §1.3`; `PAR-JS-6`).
317
+ const args = arguments.length >= 1 ? [encodeAddress(address, undefined, 'first argument')] : [];
318
+ // The SECOND device is `read`'s too: the append is an own-property define and not an index write, so a
319
+ // caller's getter on `Array.prototype` cannot turn the append into a raw host `TypeError` (`appendOwn`;
320
+ // `F8-2`'s write vector).
321
+ appendOwn(args, encodeTier(tier, arguments.length >= 2, false, 'first argument'));
322
+ // THE THIRD DEVICE: the entry is invoked by `Reflect.apply`, never by an argument spread, so a forged
323
+ // iterator cannot hand the entry a different list (`F8-1`/`F8-2`; see `read`'s clause).
324
+ return decodeValue(carryRefusal(() => Reflect.apply(entryOf().readTiered, this, args), args));
325
+ },
312
326
  write(address, tier, value, commit) {
313
327
  // **⟶ THE RECEIVER IS CHECKED HERE, BEFORE EITHER ROUTE IS CHOSEN — `write` IS THE ONE MEMBER WITH TWO
314
328
  // OF THEM.** Its three-position call reaches the STORE through the KERNEL (`constraintWrite`) rather
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "provident-storeroom",
3
- "version": "1.9.3",
3
+ "version": "1.10.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",
@@ -41,11 +41,11 @@
41
41
  "src/constraint-kernel.mjs"
42
42
  ],
43
43
  "optionalDependencies": {
44
- "@auspicion/provident-storeroom-js-linux-x64-gnu": "1.9.3",
45
- "@auspicion/provident-storeroom-js-linux-arm64-gnu": "1.9.3",
46
- "@auspicion/provident-storeroom-js-darwin-x64": "1.9.3",
47
- "@auspicion/provident-storeroom-js-darwin-arm64": "1.9.3",
48
- "@auspicion/provident-storeroom-js-win32-x64-msvc": "1.9.3"
44
+ "@auspicion/provident-storeroom-js-linux-x64-gnu": "1.10.0",
45
+ "@auspicion/provident-storeroom-js-linux-arm64-gnu": "1.10.0",
46
+ "@auspicion/provident-storeroom-js-darwin-x64": "1.10.0",
47
+ "@auspicion/provident-storeroom-js-darwin-arm64": "1.10.0",
48
+ "@auspicion/provident-storeroom-js-win32-x64-msvc": "1.10.0"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"