provident-storeroom 1.9.3 → 1.11.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 +158 -7
- package/README.md +1 -1
- package/RELEASE-NOTES.md +60 -3
- package/index.d.ts +136 -7
- package/index.mjs +456 -16
- package/package.json +6 -6
- package/src/entry/delivery.mjs +107 -0
- package/src/entry/frame.mjs +73 -2
- package/src/entry/kernel-registration.mjs +144 -11
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.
|
|
33
|
+
PUBLISH-GUIDE-VERSION-LINE: THE VERSION THIS GUIDE DESCRIBES IS `1.11.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
|
-
|
|
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
|
|
@@ -494,9 +494,26 @@ guide's constraint story that is not yet observable.
|
|
|
494
494
|
|
|
495
495
|
## §6 · Watching for changes: the listener surface
|
|
496
496
|
|
|
497
|
-
**Listeners fire on `write` and `delete`,
|
|
498
|
-
|
|
499
|
-
(`archive/pre-strata-docs-2026-10-24/docs/specs/storeroom-native/write-and-read.md §6.5`).
|
|
497
|
+
**Listeners fire on `write` and `delete`, on a `rollback`'s judgement, and at the four REGISTRATION instants —
|
|
498
|
+
and never on a read.** A read is not a change, and a store that fired on reads would fire on every render; **nor
|
|
499
|
+
does any read-driven traversal fire a listener** (`archive/pre-strata-docs-2026-10-24/docs/specs/storeroom-native/write-and-read.md §6.5`).
|
|
500
|
+
|
|
501
|
+
**⟶ AND THE LIST IS CORRECTED IN PLACE, 2026-11-06 — `PIN-13`, `D-125` item `2` (iii).** The shipped sentence read
|
|
502
|
+
*"Listeners fire on `write` and `delete`, and never on a read … **nor does a boot or any read-driven traversal
|
|
503
|
+
fire a listener**"* — **a closed list of TWO firing acts, and a claim about the boot that is FALSE from this
|
|
504
|
+
date.** **THE CORRECTED LIST IS THREE ACTS, AND THE FOURTH TERM IS AN INSTANT AND NOT A VERB:** **a `write`** and
|
|
505
|
+
**a `delete`** (the acts this section was written for), **a `rollback` whose judgement runs your pairs' repairs**
|
|
506
|
+
(`D-117` item `1`: the reversal delivers, after its save), **and the four REGISTRATION instants** — `storeCreate`,
|
|
507
|
+
**a boot over an existing `filePath`**, `addConstraint` and a re-arm (**`D-125` item `1`**, verbatim: *"Widen:
|
|
508
|
+
`addConstraint`, a re-arm, the boot and the creation ALL deliver after their repairs"*). **THE RULE IS THE
|
|
509
|
+
REPAIR'S WRITE AND NOT THE ACT'S KIND**: wherever a repair runs, the listeners its write fires are delivered —
|
|
510
|
+
after the constraints pass, after the save, with **no delivery on a refusing arm** — so **a boot DOES fire a
|
|
511
|
+
listener where a repair's write triggers one, and its set at that instant is your adopted listeners whose watched
|
|
512
|
+
address exists.** **A READ STILL FIRES NOTHING, and `listen`/`register` themselves still fire nothing**: those two
|
|
513
|
+
are the listener surface and not a repair's write. **AND A LISTENER BODY THAT THROWS IS ANSWERED AS ITSELF —
|
|
514
|
+
`caught === thrown` — at a `write`, at a `delete` and inside a `rollback`'s judgement; at the four REGISTRATION
|
|
515
|
+
instants it refuses the act at rank `21` `ListenerBodyThrew` instead** (`§8.1`'s set, one member wider below;
|
|
516
|
+
`docs/specs/storeroom-js/surface.md §2.7` item 4's carve).
|
|
500
517
|
|
|
501
518
|
```js
|
|
502
519
|
const handle = store.listen('greeting-watch', [['greeting']]); // YOU spell the handle; the addresses are a SET
|
|
@@ -513,6 +530,42 @@ store.unlisten(handle); // withdraw the
|
|
|
513
530
|
{})` answered `undefined`.** **Each address in the set is itself an array of segments — `[['b']]` is a set of one
|
|
514
531
|
address — and `[]` (the empty set) is in the domain.**
|
|
515
532
|
|
|
533
|
+
**★ AND THE ELEMENT SHAPE OF `cfg.listeners[]` — THE ONE FORM OF THIS KEY THE GUIDE NEVER STATED, ADDED HERE
|
|
534
|
+
2026-11-11 AT GATE 4's FINDING (`role_l4_implementer`).** **THE CONSTRUCTION'S `listeners` KEY TAKES AN ARRAY OF
|
|
535
|
+
`{ address, handle, listener }` ELEMENTS, AND ALL THREE MEMBERS ARE REQUIRED** (`D-123` item `2`, the architect,
|
|
536
|
+
verbatim: *"Refuse listeners that don't carry functions, and fire all ones with an existing address after
|
|
537
|
+
constraints pass. Why would a listener that doesn't have a function to fire on the listened address be accepted?"*;
|
|
538
|
+
`PIN-8`):
|
|
539
|
+
|
|
540
|
+
```js
|
|
541
|
+
const store = storeCreate({
|
|
542
|
+
journalLength: 256,
|
|
543
|
+
listeners: [
|
|
544
|
+
{ address: ['greeting'], handle: 'greeting-watch', listener: (address) => console.log('changed at', address) },
|
|
545
|
+
],
|
|
546
|
+
});
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
- **`address`** is a JS array of segments — ONE address, in the same form `listen`'s set holds inside itself.
|
|
550
|
+
- **`handle`** is the handle you spell: a plain non-empty `string`, exactly the `listen` handle — **so a `cfg`
|
|
551
|
+
listener and a later `listen(handle, …)` name the same channel.**
|
|
552
|
+
- **`listener`** is the JS function the adopted handle fires, and it takes the ONE argument every listener body
|
|
553
|
+
takes: the address the act landed at. **IT IS REQUIRED AND IT IS CHECKED BEFORE ANY FILESYSTEM ACT**: a
|
|
554
|
+
two-member element, or an element whose `listener` is not a function, refuses the construction at its step 2 in
|
|
555
|
+
the package's one thrown form with `status: 'AddressMalformed'` and the container `'listeners'` — **no code is
|
|
556
|
+
minted for either and no file is created** (`PIN-9`).
|
|
557
|
+
- **AND THE FUNCTION NEVER CROSSES: only `{ address, handle }` reaches the store**, which is why the store's own
|
|
558
|
+
listener records stay two-membered. **THE PACKAGE ARMS THE SUBSTANCE** on the instance it returns, so a `cfg`
|
|
559
|
+
handle is registered and firing from the instant the instance exists — the same two acts a caller performs with
|
|
560
|
+
`listen` + `register`, done for you (`D-123` item `2`; `PIN-8`).
|
|
561
|
+
- **THE ARRAY IS `REQUIRED` AND MAY BE EMPTY** — `listeners: []` is the ordinary no-listener store — **and
|
|
562
|
+
DUPLICATES ARE KEPT**: two elements at one address are two store entries, and two elements naming one handle
|
|
563
|
+
leave the LAST body standing (§2.4 rule 2, one handle one function).
|
|
564
|
+
|
|
565
|
+
**AND THE FOUR REGISTRATION INSTANTS ARE WHERE THESE ELEMENTS FIRE:** a `cfg.listeners[]` element runs at the
|
|
566
|
+
creation, at a boot over an existing `filePath`, at `addConstraint` and at a re-arm — **and the throw carve is
|
|
567
|
+
`§6.5a`'s** (`PIN-6` (i); `D-125` item `1`).
|
|
568
|
+
|
|
516
569
|
### §6.1 `listen` takes an address SET and answers the handle
|
|
517
570
|
|
|
518
571
|
**THE SIGNATURE IS `listen(handle: Handle, addresses: readonly Address[]): Handle`** — arity `2`, position `1` a
|
|
@@ -806,6 +859,32 @@ it.** **There is no middle arm: nothing in your record reports a listener's thro
|
|
|
806
859
|
there is no record — only the error.** (`D-73`; `D-71`; `D-45`; `docs/specs/storeroom-js/contract.md §2.7`'s clause
|
|
807
860
|
of the same date; `§6.6`'s item 5, where a DEPTH-TWO throw's destination is measured.)
|
|
808
861
|
|
|
862
|
+
**★★ AND THE ASYMMETRY HAS A CARVE, AT ITS OWN TWO SENTENCES — THE FOUR REGISTRATION INSTANTS ARE NOT A `write` —
|
|
863
|
+
CORRECTED 2026-11-11 AT GATE 4's FINDING (`role_l4_implementer`; ANNOTATE-BESIDE).** **EVERY CLAUSE ABOVE STANDS
|
|
864
|
+
BYTE-FOR-BYTE AND IS READ THROUGH THIS ONE; `caught === thrown` is UNMOVED at a `write`, at a `delete` and inside a
|
|
865
|
+
`rollback`'s judgement, and no measurement above is re-run or withdrawn.** **THE TWO SENTENCES IT NARROWS ARE NAMED
|
|
866
|
+
AND STAND BYTE-FOR-BYTE ABOVE: *"★ A LISTENER'S THROW PROPAGATES TO YOU. YOUR write throws the listener's error"*
|
|
867
|
+
and *"★ AND THE CONSEQUENCE, STATED SO IT IS NOT A SURPRISE: A LISTENER THAT THROWS LEAVES YOUR WRITE
|
|
868
|
+
UNANSWERED."*** **THEY ARE TRUE OF AN ACT THAT HAS AN ANSWER TO LOSE, AND A REGISTRATION IS NOT ONE: AT THE FOUR
|
|
869
|
+
REGISTRATION INSTANTS — `storeCreate`, a boot over an existing `filePath`, `addConstraint` and a re-arm — a fired
|
|
870
|
+
listener body's throw is CONVERTED AND REFUSES THE ACT.** **RANK `21` `ListenerBodyThrew`** — a member of the
|
|
871
|
+
closed status set from 2026-11-06 (`D-124` item `2`, verbatim: *"A CREATION-FIRED BODY THAT THROWS REFUSES AT A
|
|
872
|
+
MINTED RANK `21` `ListenerBodyThrew`"*, *"The closed fail set moves `20 → 21`"*; `D-125` item `2`: *"a fired body's
|
|
873
|
+
throw at those instants is `D-124` item `2`'s rank `21` `ListenerBodyThrew` by the same reading"*) — **so you
|
|
874
|
+
receive the package's ONE THROWN REFUSAL FORM `{status, message, log, address}` and NOT the listener's own value**,
|
|
875
|
+
and the sentence *"catch in the body, decide whether to rethrow"* above becomes **mandatory rather than
|
|
876
|
+
advisory** at those four instants: **a rethrown body refuses the construction (no instance is returned) or the
|
|
877
|
+
registration (the call is refused).** **TWO THINGS ARE UNMOVED AND BOTH MATTER TO YOUR ERROR HANDLER:** the
|
|
878
|
+
delivery sits **after** the registration's saves (`PIN-2`'s ASK → REPAIRS LAND → RE-RUN → SAVE → DELIVER → THE
|
|
879
|
+
ANSWER), so **no rollback composes and the bytes an earlier repair's save wrote stand** (`PIN-10`, `PIN-12`); and
|
|
880
|
+
**at a registration that has already answered an identity the throw PRE-EMPTS the answer while the pair stands
|
|
881
|
+
registered** — the caller receives the refusal and never the identity, and no withdrawal arm is declared
|
|
882
|
+
(`D-125` residual `3`'s default, `PIN-10`). **THE SETS EACH INSTANT DELIVERS ARE `§6`'s, NOT THIS CLAUSE'S:** at a
|
|
883
|
+
`storeCreate` and at a boot it is the adopted listeners whose watched address exists (`PIN-6` (i)); at
|
|
884
|
+
`addConstraint` and a re-arm it is the repair's write's own `triggered` set (`PIN-6` (ii)). (`D-124` item `2`;
|
|
885
|
+
`D-125` items `1`–`2`; `PIN-2`, `PIN-6`, `PIN-10`; `docs/specs/storeroom-js/surface.md §2.7` item `4`'s carve;
|
|
886
|
+
`docs/L1/creation-sweep.md`'s `§3`.)
|
|
887
|
+
|
|
809
888
|
**★ AND THE PRACTICAL HAZARD THIS ASYMMETRY MAKES REAL, WRITTEN HERE SO YOU MEET IT IN A TEST RATHER THAN IN PRODUCTION: THE WRITE'S DATA LANDED AND ITS ANSWER DID NOT — SO A BLIND RETRY RE-APPLIES A WRITE THAT ALREADY SUCCEEDED.** `RCA-8(g)` ANNOTATE-BESIDE: **every clause of §6.5a above stands BYTE-FOR-BYTE and is read THROUGH this one; no ruling, no measurement and no member moves — what this clause adds is the one consequence of the measured arm that a caller's ERROR HANDLER will otherwise get wrong.** **IT FOLLOWS FROM THE MEASUREMENT ABOVE AND NEEDS NO NEW ONE:** *"the data had already landed (`read(['a'])` answered `1`), because the commit resolved before its delivery ran; what the throw takes away is the ANSWER, not the write"* — **so `try { store.write(...) } catch { retry() }` runs that write a SECOND time, and the store has no way to tell the two apart: there is no commit identity on your side, no idempotency key and no record, because after a throw there is no record** (`§6.5a`'s closing sentence). **AND THE ERROR IS YOURS AND NOT THE PACKAGE'S SHAPE:** it carries **no depth, no handle, no address** (`§6.6` item 5) — a throw at depth two arrives as the same `Error` object a depth-one throw would — **so a retry policy cannot key on where the chain broke, and a listener body's own `catch` is the only containment arm there is.** **WHAT TO WRITE INSTEAD: catch in the body, decide whether to rethrow, and make the write your retry re-issues one whose landing you can recognise** — an `op` you kept from an earlier answer, a value you wrote, or a read before you write. (`D-73`; `D-71`; the `§6.5a` measurement; `§6.6` item 5; `docs/specs/storeroom-js/contract.md §2.7` item 4.)
|
|
810
889
|
|
|
811
890
|
**★★ AND ONE THING THE ANSWER DOES NOT TELL YOU, MEASURED IN BOTH ARMS ON THIS CHECKOUT 2026-10-29 AND DECLARED HERE RATHER THAN LEFT FOR YOU TO DISCOVER — `D-76` ITEM 2 (`DEF-AU`, ITS SECOND HALF): A `ConstraintPassRefused` DOES NOT SAY WHOSE ACT IT REFUSED.** `RCA-8(g)` ANNOTATE-BESIDE: **every clause above stands BYTE-FOR-BYTE and is read THROUGH this one; no status is minted, no member is added and the throw's BEHAVIOUR IS UNMOVED — the behaviour is correct, and what was owed is this sentence and the rule at its end.** **THE HAZARD: your listener's own act is refused, the listener body does not catch it, and the refusal crosses to you — you catch `ConstraintPassRefused`, `message` and `log` exactly as you would if YOUR write had been refused, WHILE YOUR WRITE'S DATA IS IN THE STORE.** **THAT IS `D-73`'s RETRY HAZARD IN ITS SHARPEST FORM, BECAUSE THE ANSWER DOES NOT EVEN LOOK DIFFERENT.** **MEASURED, BOTH ARMS, ONE PAIR, ONE MESSAGE:**
|
|
@@ -1546,7 +1625,34 @@ failing trigger's arguments and never hand-authored at a call site
|
|
|
1546
1625
|
(`archive/pre-strata-docs-2026-10-24/docs/specs/storeroom-native/seams-and-lifecycle.md §8.2`, archived);
|
|
1547
1626
|
**`index.d.ts` carries both, verbatim from the store.**
|
|
1548
1627
|
|
|
1549
|
-
### §8.1 The set is TWENTY and open by design
|
|
1628
|
+
### §8.1 The set is TWENTY-ONE and open by design
|
|
1629
|
+
|
|
1630
|
+
**⟶ RE-DERIVED AGAIN 2026-11-06 — THE SET IS TWENTY-TWO, ON THE ARCHITECT'S RULING `D-126` ITEM `2`, VERBATIM:
|
|
1631
|
+
*"Mint/revive a code: a corrupt image refuses the construction"*, whose member L1 pins at `docs/L1/creation-sweep.md`
|
|
1632
|
+
`§3` `PIN-11` as rank `22` `FileImageRefused`.** **`StoreStatus` carries TWENTY-TWO members, plus the open escape
|
|
1633
|
+
arm `(string & {})`** — ranks `1`…`21` stand exactly as the clauses below print them, and **the appended term is
|
|
1634
|
+
`FileImageRefused` at rank `22`: THE ONE STATUS A CORRUPT IMAGE ANSWERS WITH**, at the CONSTRUCTION and at no other
|
|
1635
|
+
instant. **`storeCreate` throwing it returns NO INSTANCE**: the store reads `cfg.filePath` before the package asks
|
|
1636
|
+
anything, so no image is installed and no listener is delivered, **and the corrupt file STANDS — un-written-to,
|
|
1637
|
+
un-truncated and un-repaired**, which is the evidence you keep. **Its subject is the store's own image and not the
|
|
1638
|
+
constraint list** — your `cfg.constraints` may be absent and innocent when those bytes are read, so rank `16`
|
|
1639
|
+
`ConstraintListInvalid` is never the answer here — **and a ZERO-LENGTH file and an ABSENT file are still no image at
|
|
1640
|
+
all**: both still construct, both load nothing and both cross no code. The algebra reads
|
|
1641
|
+
`11 + 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 = 22` ✓. **Every paragraph, table row and title below is the reading of
|
|
1642
|
+
its own date and is read THROUGH this clause** (the guide's figures move with the set's own membership, which is
|
|
1643
|
+
this section's own rule); **the heading's `TWENTY-ONE`, and the `TWENTY` the clauses below print, are the figures of
|
|
1644
|
+
their own dates and are read through this clause too.**
|
|
1645
|
+
|
|
1646
|
+
**⟶ RE-DERIVED AGAIN 2026-11-06 — THE SET IS TWENTY-ONE, ON THE ARCHITECT'S RULING `D-124` ITEM `2`, VERBATIM:
|
|
1647
|
+
*"A CREATION-FIRED BODY THAT THROWS REFUSES AT A MINTED RANK `21` `ListenerBodyThrew`"*, *"The closed fail set
|
|
1648
|
+
moves `20 → 21`"*.** **`StoreStatus` carries TWENTY-ONE members, plus the open escape arm `(string & {})`** —
|
|
1649
|
+
ranks `1`…`20` stand exactly as the clauses below print them, and **the appended term is `ListenerBodyThrew` at
|
|
1650
|
+
rank `21`: THE ONE STATUS A REGISTRATION-FIRED LISTENER BODY'S THROW ANSWERS WITH**, at `storeCreate` (a
|
|
1651
|
+
construction and a boot over an existing `filePath`), at `addConstraint` and at a re-arm, and at those four
|
|
1652
|
+
instants only. **`ConstraintBodyThrew` KEEPS rank `18` and IS NOT WIDENED** — its subject is the CONSTRAINT body, and the minting clause's rule is that a code names the subject and the one thing wrong with it — **and at every OTHER instant the identity promise stands byte-unmoved: `caught === thrown`.** The algebra reads
|
|
1653
|
+
`11 + 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 = 21` ✓. **Every paragraph, table row and title below is the reading of its
|
|
1654
|
+
own date and is read THROUGH this clause** (the guide's figures move with the set's own membership, which is this
|
|
1655
|
+
section's own rule); **the heading's `TWENTY` is the figure of its own date and is read through this clause too.**
|
|
1550
1656
|
|
|
1551
1657
|
**⟶ RE-DERIVED AGAIN 2026-10-26 — THE SET IS TWENTY, ON THE ARCHITECT'S TWO RULINGS, VERBATIM: *"Expand the
|
|
1552
1658
|
returned fail-state list to include the refusal"* and *"Assert the constraints on rollback"*.** **`StoreStatus`
|
|
@@ -1707,6 +1813,51 @@ store's file is safe, and it is not a reset** (`native/contract.md §10.4` parts
|
|
|
1707
1813
|
**no instance, no file, no directory and no byte** — which holds for the later-argument failures too, and is what
|
|
1708
1814
|
the ordering buys (`native/contract.md §10.4` part 4; `§8.1` #1 and #12).
|
|
1709
1815
|
|
|
1816
|
+
**⟶ AND THAT GUARANTEE IS THE ORDERING'S AND NOT THE CONSTRUCTION'S WHOLE — CORRECTED AT ITS OWN SENTENCE,
|
|
1817
|
+
2026-11-11, AT GATE 4's FINDING (`role_l4_implementer`; ANNOTATE-BESIDE).** **THE SENTENCE ABOVE STANDS
|
|
1818
|
+
BYTE-FOR-BYTE AND IS READ THROUGH THIS CLAUSE; no argument-validation order moves and no byte of the store's own
|
|
1819
|
+
`§10.4` guarantee is withdrawn.** **WHAT IT DOES NOT COVER: A CONSTRUCTION THAT REFUSES *AFTER* THE EXCLUSIVE
|
|
1820
|
+
CREATE.** The creation validates its arguments first — that is what the sentence buys — and then it **creates the
|
|
1821
|
+
store and, over it, performs the constraint SWEEP**: `storeCreate` sweeps the whole register, refuses an
|
|
1822
|
+
inconsistent result at rank `20` `ConstraintPassRefused` (a cycle, or a register a carried pair still violates
|
|
1823
|
+
after the rounds end) and refuses a fired listener body's throw at rank `21` `ListenerBodyThrew` (`D-123` item
|
|
1824
|
+
`1`, `D-124` items `1`–`2`, `D-125` items `2`–`4`). **AT THOSE ARMS THE EXCLUSIVE CREATE HAS ALREADY RUN, AND
|
|
1825
|
+
`PIN-12` DECLARES THAT THE FILE IT CREATED STANDS** — `PIN-12`, verbatim: *"A refused creation leaves the store's
|
|
1826
|
+
own created file and every earlier sibling registration's already-saved `file` landing standing, and no removal arm
|
|
1827
|
+
is declared"* — **and an earlier `cfg.constraints` element's repair that reached a `file`-tier save has left its
|
|
1828
|
+
bytes too.** **SO THE ARM-BY-ARM RULE FOR YOU: a construction refused for an OUTSIDE ARGUMENT leaves nothing
|
|
1829
|
+
(asserted above and unchanged); a construction refused by the SWEEP, or by a fired listener body's throw, leaves
|
|
1830
|
+
the zero-length file the store created and any bytes an earlier repair's save wrote, and no instance.** **NO
|
|
1831
|
+
ROLLBACK COMPOSES AND NO REMOVAL ARM EXISTS** (`D-107`'s composition is per route and the delivery sits after every
|
|
1832
|
+
save, `PIN-10`, `PIN-12`), **so a retry that expects an absent `filePath` must unlink it itself.** (`D-123` item
|
|
1833
|
+
`4`'s diagnosis requirement; `strata/decisions.md` · `D-124` · `D-125`; `docs/L1/creation-sweep.md`'s `PIN-12`.)
|
|
1834
|
+
|
|
1835
|
+
**⟶ AND THE ARM-BY-ARM RULE ABOVE GAINS ITS THIRD ARM FROM 2026-11-06 — A CONSTRUCTION REFUSED ON A CORRUPT
|
|
1836
|
+
IMAGE — CORRECTED AT THE SAME SENTENCE (`role_l4_implementer`; ANNOTATE-BESIDE).** **THE SENTENCE
|
|
1837
|
+
*"AND EVERY CONSTRUCTION ARGUMENT IS VALIDATED BEFORE ANY FILESYSTEM ACT … so a refused construction leaves no
|
|
1838
|
+
instance, no file, no directory and no byte"* AND THE CARVE'S OWN ARM LIST ABOVE
|
|
1839
|
+
STAND BYTE-FOR-BYTE AND ARE READ THROUGH THIS CLAUSE; no argument order, no reachability form, no save instant and
|
|
1840
|
+
no `PIN-12` byte moves.** **WHAT THEY DO NOT COVER, AND IT IS THE ONE REFUSAL WHOSE SUBJECT IS THE PATH'S OWN
|
|
1841
|
+
CONTENT: a `filePath` that EXISTS, is REACHABLE and is NOT EMPTY, and whose bytes are not this store's image.**
|
|
1842
|
+
**`storeCreate` READS THAT FILE BEFORE THE PACKAGE ASKS ANYTHING AND REFUSES THE CONSTRUCTION AT RANK `22`
|
|
1843
|
+
`FileImageRefused`** — `D-126` item `2`, verbatim: *"Mint/revive a code: a corrupt image refuses the construction"*
|
|
1844
|
+
(`strata/decisions.md` · `D-126` item `2`; the member L1 pins at `docs/L1/creation-sweep.md` `§3` `PIN-11`) — **so
|
|
1845
|
+
no instance is returned, and the file is left EXACTLY AS IT WAS FOUND: un-written-to, un-truncated, un-repaired
|
|
1846
|
+
and NOT REMOVED.** **"LEAVES NOTHING" THERE MEANS THE CONSTRUCTION DID NOTHING, NOT THAT THE PATH IS EMPTY:** the
|
|
1847
|
+
bytes were already at the path, no arm of the construction wrote one, and the refusal precedes every save, **so no
|
|
1848
|
+
rollback composes and no removal arm exists — and that is the point: the evidence survives, so you can tell a
|
|
1849
|
+
corrupt image from an empty path and repair or move the file yourself rather than have the next save write a
|
|
1850
|
+
readable image over it** (`D-118` item 1). **AND THE THREE CLASSES ARE TOLD APART HERE SO YOU DO NOT APPLY ONE TO
|
|
1851
|
+
ANOTHER:** an **ABSENT** `filePath` and a **ZERO-LENGTH** one are still **no image at all** — both still construct,
|
|
1852
|
+
both load nothing and both cross no code (`native/contract.md §10.4` part 3; `DD-38`); a present, non-empty image
|
|
1853
|
+
the store **READS** loads normally; and a present, non-empty image it **REFUSES** refuses the construction at rank
|
|
1854
|
+
`22` and at no other instant. **YOUR ERROR HANDLER THEREFORE HAS TWO CONSTRUCTION REFUSALS ABOUT THE PATH ITSELF** —
|
|
1855
|
+
`FilePathUnreachable` (the path cannot be used, `§8.1`) and `FileImageRefused` (the path holds something that is
|
|
1856
|
+
not this store's) — **and nothing at all for the two silent classes**, **and the second is the one to catch
|
|
1857
|
+
separately, because it is the only one after which a file you must not touch is still sitting at your `filePath`.**
|
|
1858
|
+
(`D-126` item `2`; `docs/L1/creation-sweep.md`'s `PIN-11`; `native/contract.md §8.1`'s row `22` and this guide's
|
|
1859
|
+
`§8.1` clause of 2026-11-06 above.)
|
|
1860
|
+
|
|
1710
1861
|
**THE FILE IS THE STORE'S, NOT YOURS.** Do not read, edit, parse or migrate it by hand; its shape is the store's
|
|
1711
1862
|
own and a hand-migration is a corruption waiting to happen. **If you need a migration, read the old value through
|
|
1712
1863
|
`read` and write the new one through `write`** (`A117`/`A127`'s private-state rule; `write-and-read.md §7.2`).
|
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.
|
|
34
|
+
PUBLISH-README-VERSION-LINE: THE VERSION THIS README DESCRIBES IS `1.11.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.
|
|
19
|
+
PUBLISH-NOTES-VERSION-LINE: THE VERSION THIS CHANGE LIST DESCRIBES IS `1.11.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,63 @@ the value to assert against, not the crate's own `Cargo.toml` version.
|
|
|
55
55
|
|
|
56
56
|
---
|
|
57
57
|
|
|
58
|
+
## §1.11.0 · a MINOR — the creation sweep: the `listener` a `cfg.listeners[]` entry must now carry, a fail set that ends at `22`, and a delivery at four registration instants — one line, three classes
|
|
59
|
+
|
|
60
|
+
**THE VERSION IS `1.11.0` AND ITS CLASS IS A MINOR — `D-126` ITEM 3, THE ARCHITECT'S RULING OF 2026-11-06 (`strata/decisions.md:6620`–`:6628`), VERBATIM: *"`MINOR` → 1.11.0, one line, three classes printed in the notes"*.** **`PUB-DD-9` IS THE AUTHORITY FOR THE CLASS, IN ITS OWN ROW'S WORDS** — *"a set change in the store's own membership is NOT by itself a package major"* (`docs/specs/storeroom-publish/contract.md:117`) — **so `D-124` item 3's `MAJOR` PRESUMPTION FOR THE SET'S HALF IS SUPERSEDED BY THAT ROW AND NOT BY ANY PASS'S READING OF IT; `1.10.1` is FORECLOSED at `D-126` item 3's own sentence** (`D-39`'s *"a semver breach"* on the last set-growth-under-a-patch, with a breaking input requirement riding on top); **and `2.0.0` is not taken.** **ONE NUMBER, AND THE THREE CLASSES STAND BESIDE IT UNFOLDED** — a version is the maximum of the moves it carries, and no unit of this project has been cut twice (`§1.7.0`'s four message changes as one `MINOR`; `§1.6.2`'s record member and seven behaviours as one `PATCH`). **NO VERSION CELL MOVES BY THIS SECTION**: the eleven cells and the three generated version lines are the CUT's (`D-124` item 3), and this section names the number and not the cut-state (`D-57`).
|
|
61
|
+
|
|
62
|
+
**THE THREE CLASSES, ONE SENTENCE EACH.**
|
|
63
|
+
|
|
64
|
+
1. **THE ELEMENT.** A `cfg.listeners[]` entry now REQUIRES its `listener` function — the element is `{ address, handle, listener }`, three own members with the third required — **a two-member entry is REFUSED, and the function is STRIPPED at the crossing and reaches the store at no depth** (`D-123` item 2; `PIN-8`; `bindings/js/src/entry/frame.mjs:48`'s shape test and `:60`'s `{ address, handle }` projection).
|
|
65
|
+
2. **THE FAIL SET.** The closed set moved `20 → 22` across this unit — rank `21` `ListenerBodyThrew` (`D-124` item 2) and then rank `22` `FileImageRefused` (`D-126` item 2, `PIN-11`) — **and the census is RE-DERIVED rather than summed: `11 + 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 = 22` ✓** (`src/error.rs:171`'s `pub const CODES: [&str; 22]`; `bindings/js/index.d.ts:421`'s `StoreStatus`, its escape arm still standing exactly once).
|
|
66
|
+
3. **THE WIDENING.** The delivery now occurs at FOUR registration instants — the creation, the boot, `addConstraint` and a re-arm — **with a creation's sweep of its own register beside them**, where before this unit a registration reached no delivery seam at all (`D-123` item 2; `D-124` item 4; `D-125` items 1, 3, 4).
|
|
67
|
+
|
|
68
|
+
**WHAT A CONSUMER ON `1.10.0` MEETS, AT EACH ENTRY POINT — DRIVEN RATHER THAN TRUSTED, EACH AT THE BYTE THAT ANSWERS IT:**
|
|
69
|
+
|
|
70
|
+
1. **A CONSTRUCTION REFUSES A TWO-MEMBER `cfg.listeners[]` ENTRY, AND IT REFUSES IT BEFORE ANY FILESYSTEM ACT.** The refusal is `AddressMalformed` with the subject `listeners`, in the encoder's own form, and its sentence names the member the entry lacks — *"… carries undefined at its listener member, and a listeners entry's listener is a JS function and it is the body the adopted handle fires"* (`frame.mjs:403`–`:409`). **THE INSTANT IS STEP 2 OF THE ACT ORDER**: `admittedListenerBatch(cfg)` stands at `index.mjs:410`, the construction's FIRST FILESYSTEM ACT is `addon_.storeCreate(encoded)` at `:413`, **so a refused construction still leaves nothing behind** (`PIN-9`; `contract.md §10.4` part 5). **AND A TYPESCRIPT BUILD DOES NOT CATCH IT**: `StoreConfig.listeners` is still `readonly listeners: readonly unknown[]` (`index.d.ts:247`) — the element's three members are DESCRIBED in that key's docblock and TYPED NOWHERE — so `tsc` accepts a two-member entry and the package refuses it at run time.
|
|
71
|
+
2. **A BOOT REFUSES IT TOO — AND A BOOT OVER A CORRUPT IMAGE NOW REFUSES RATHER THAN OPENING A STORE OVER IT.** The boot is the same construction act at the same byte (`D-90` (5); a construction over an existing `filePath`), so the element's refusal is identical; and a `filePath` holding a present, non-empty image the loader cannot read now crosses the minted rank `22` `FileImageRefused` **instead of answering an instance indistinguishable from an empty path** (`D-126` item 2; `src/store.rs`'s step `7`, through its one read of the path). **A ZERO-LENGTH FILE AND AN ABSENT FILE ARE STILL NO IMAGE AND CROSS NO CODE.**
|
|
72
|
+
3. **`addConstraint` AND A RE-ARM GAIN AN OBSERVABLE, NOT A REFUSAL.** No `listeners` array is in play at either route, so the element's shape moves nothing there; **what moves is that a repair's write now DELIVERS the listeners it fired, after the save and before the answer** (`D-125` item 1; `PIN-6` (ii); `index.mjs:1227`–`:1228` and `:1413`–`:1414`; `delivery.mjs:543`–`:544`) — **so the caller's view of a registration gains a third observable** (`D-125` item 2 (i)) **while `addConstraint` still answers the identity and a re-arm still answers `undefined`** (`D-125` item 2). **A FIRED BODY'S THROW AT EITHER NOW REFUSES AT RANK `21`** (`PIN-10`), and a registration that REFUSES still delivers nobody (`D-117` item 2).
|
|
73
|
+
4. **THE MIGRATION ROUTE THIS TREE OFFERS, AND WHAT IT CANNOT BUY BACK.** An entry that wants to construct first and be armed later keeps constructing by passing `listener: () => {}` — a function, admitted, stripped, and armed into the instance's registry like any other — **and installing the real body at the first `register(handle, fn)`** (`surface.md §2.4` rule 2's replacement rule). **WHAT IT CANNOT BUY BACK IS THE CREATION'S OWN FIRING**: the seat is `deliverAtTheCreation(state, adopted)` at `index.mjs:2163`, which stands after the sweep's passing close and BEFORE the answer — **so the creation fires the placeholder you passed, and no `register` a caller can make is early enough to be the body that fires there** (`PIN-2`; `PIN-6` (i)). **A body that must see the creation's state, or must be allowed to throw at it, belongs in `cfg.listeners[]`.**
|
|
74
|
+
|
|
75
|
+
**WHAT MOVES, EACH ITEM WITH THE RULING IT RESTS ON:**
|
|
76
|
+
|
|
77
|
+
1. **THE CREATION SWEEPS ITS REGISTER — AND A CONVERGING CASCADE IS REFUSED BY DESIGN.** The construction carries every admitted pair and then repeats a round until a round lands NO repair; **a pair may land AT MOST ONE REPAIR**, a pair asked again that WOULD repair again is a CYCLE and **refuses at rank `20` `ConstraintPassRefused`**, and **a pair asked again that PASSES is not a cycle — asking is not repairing** (`D-124` item 1; `D-125` item 4; `index.mjs:1957`'s guard scope, `:1985`'s markers and `:1989`–`:2022`'s rounds; `kernel-registration.mjs:759`, `:792`). **NO ROUND CAP, NO RESTART BUDGET, NO ATTEMPT AND NO `AttemptRef` IS MINTED** — termination is arithmetic and not budgetary — **and a pair that would converge in TWO steps is refused at the same member with the same sentence, which is the ruling and not a defect** (`D-126` item 1; `PIN-4`). **THE SCOPE IS THE CREATION'S AND THE BOOT'S ALONE** (`D-125` item 3).
|
|
78
|
+
2. **THE FOUR DELIVERY INSTANTS, IN `D-117`'S ORDER, WITH ONE ORDER AND TWO SETS.** ASK → REPAIRS LAND → RE-RUN → SAVE → DELIVER → THE ANSWER; **at `storeCreate`, and therefore at the boot, the delivered set is the ADOPTED set ∩ the addresses that RESOLVE in the register; at `addConstraint` and a re-arm it is THE STORE'S OWN `triggered`** (`D-117` item 2; `PIN-2`; `PIN-6` (i)–(ii)). **ONCE PER DISTINCT HANDLE, WITH THE TRIGGERING ADDRESS AS THE ONE ARGUMENT** — the listener's own watched address at the creation — **an EMPTY SET IS A COUNT OF ZERO AND NOT SILENCE, an address that does not resolve is SILENT and is not a refusal, and NO DELIVERY COMPOSES ON A REFUSING ARM** (`PIN-6` (iii)–(v); `PIN-7`).
|
|
79
|
+
3. **RANK `20` CARRIES THE CYCLE AND THE POST-ROUND INCONSISTENCY** — one member, arm-neutral by its own row, none minted for either; the creation and the boot refuse the CONSTRUCTION, `addConstraint` and a re-arm refuse the REGISTRATION (`PIN-5`; `kernel-registration.mjs:931`).
|
|
80
|
+
4. **RANK `21` `ListenerBodyThrew` — A FIRED BODY'S THROW REFUSES THE ACT AT ALL FOUR INSTANTS, AND NO ROLLBACK COMPOSES.** The delivery sits after the save, so the closes' saved bytes stand; the throw pre-empts the answer, so a caller receives the throw and — where the route answers one — never the identity, **and the pair remains registered with no withdrawal arm declared** (`D-124` item 2; `PIN-10`; `index.mjs:267`–`:271`, `:328`). **AND THE THROWABLE ITSELF IS NOT CARRIED**: this refusal reads the address and no `message`, so a body's error arrives with no cause and no stack — an OPEN item and not a promise (`D-126` residual 3).
|
|
81
|
+
5. **RANK `22` `FileImageRefused` — A CORRUPT IMAGE REFUSES THE CONSTRUCTION AND THE CORRUPT BYTES STAND.** The STORE mints this one at the construction's step `7`, through its one read of the path and therefore before the package's first ask, with the `filePath`'s own spelling as its subject and `address: null` as its truth — **nothing was written to the file, so there is no rollback to compose and no removal arm to declare** (`D-126` item 2; `PIN-11`; `src/store.rs`'s step `7`).
|
|
82
|
+
6. **THE DIAGNOSIS IS NOW A DISTINCTION A CALLER CAN MAKE.** An incompatible list crosses a code whose subject is the CONSTRAINTS (`19` or `20`) and a corrupt image crosses `22`, whose subject is the STORE'S OWN IMAGE — which is what `D-123` item 4 requires of a refusal — **and rank `16` `ConstraintListInvalid`'s load arm stays `DECLARED, NO PRODUCER`** (`D-123` item 4; `PIN-11`).
|
|
83
|
+
7. **AND THE TWO DEFECTS GATE 4 MEASURED ARE FIXED — BOTH INVISIBLE TO A GREEN SUITE.** **THE SWEEP'S SUPPRESSION NO LONGER OUTLIVES ITS CONSTRUCTION**: the guard's scope is the construction's own and is cleared at `index.mjs:2039`, before the listeners are applied, before the delivery and before the answer — **so a pair that repaired during a construction keeps its `repair` on every later refusal for the life of the instance** (`PIN-16`; `CSW-27`). **AND THE GUARD NO LONGER INVENTS A `message`**: where the body's own outcome carries no own `message`, the wrapper returns it UNTOUCHED (`index.mjs:205`), so a form outside `PAR-C-5`'s closed three arms repairs nowhere at any instant instead of repairing at a creation and running nothing at `addConstraint` (`PIN-17`; `CSW-28`).
|
|
84
|
+
|
|
85
|
+
**WHAT DOES NOT MOVE, LISTED AND CLOSED:**
|
|
86
|
+
|
|
87
|
+
- **`D-90`'s SKIP** (`kernel-registration.mjs:379`'s `pairApplication` test, and `:883`'s in the pass): a pair whose parent does not resolve is still skipped at every instant, and the sweep reads that rule THROUGH and not around it (`D-123` item 1).
|
|
88
|
+
- **`D-104`'s LANDING DELIVERY, `D-117`'s REVERSAL DELIVERY, `D-106`'s SAVE, `D-107`'s ROLLBACK COMPOSITION AND THE WRITE'S TERMINAL-ARM DELIVERY** — each frozen by name (`PIN-14` (i)–(ii)).
|
|
89
|
+
- **THE EMPTY BATCH IS STILL A NO-OP**: a construction that carries no pair asks nobody, lands no repair and answers its instance.
|
|
90
|
+
- **THE SWEEP'S MEMBERSHIP DOES NOT WIDEN WITH THE DELIVERY**: `addConstraint` and a re-arm keep the registration instant's own single-pair scope and can only refuse, and `register` sweeps no register at all (`D-125` item 3; `PIN-14` (iii)).
|
|
91
|
+
- **THE INSTANCE'S OWN MEMBER SET STAYS FIFTEEN** (`10 + 1 + 1 + 2 + 1 = 15`, `index.mjs:500`), **THE STORE'S `Listener` RECORD STAYS THE CLOSED TWO-MEMBER `{ address, handle }`** (`src/records.rs:257`–`:259`), **and THE ADDON'S EXPORT CENSUS STAYS `4 + 12 = 16`** (`bindings/js/src/facade.rs:375`).
|
|
92
|
+
- **A LISTENER BODY'S THROW STILL CROSSES AS `caught === thrown`** at a `write`, a `delete` and a `rollback`'s judgement — the rank `21` arm above is the four registration instants' and no other instant's.
|
|
93
|
+
|
|
94
|
+
**THE TWO CORRECTIONS THIS UNIT CARRIES IN THIS FILE, EACH AT ITS OWN SENTENCE, WITH THE SUPERSEDED TEXT LEFT READABLE BESIDE IT** (`RCA-8(g)` ANNOTATE-BESIDE; `D-125` item 1): **`§1.8.1`'s `RLD-6` DESCRIPTOR** — the bullet that reads *"the registration instant unmoved (`G3-22`'s two zeros re-asserted)"* — **and `§1.8.1`'s `G3-22` BULLET** — the bullet that reads *"`listenerDelta === 0` stays green because a registration's attempt carries no `record`, and `RLD-6` re-asserts it in the fix's own file so the carrier cannot grow a path to that instant"*. **Both are corrected at their own bytes below, and no other byte of `§1.8.1` moves.**
|
|
95
|
+
|
|
96
|
+
**AND THIS SECTION DESCRIBES `1.11.0` AND CLAIMS NO TAG**: the cut-state is not a document's to state (`D-57`).
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## §1.10.0 · a MINOR — the tier readout: a third read verb that answers the durability tier of every node it returns
|
|
101
|
+
|
|
102
|
+
**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`).
|
|
103
|
+
|
|
104
|
+
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.
|
|
105
|
+
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.
|
|
106
|
+
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.
|
|
107
|
+
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.
|
|
108
|
+
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.**
|
|
109
|
+
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.
|
|
110
|
+
|
|
111
|
+
**AND THIS SECTION DESCRIBES `1.10.0` AND CLAIMS NO TAG**: the cut-state is not a document's to state (`D-57`).
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
58
115
|
## §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
116
|
|
|
60
117
|
**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`).
|
|
@@ -159,10 +216,10 @@ export type RepairOutcome =
|
|
|
159
216
|
- **THE GUIDE'S LIVE-LISTENER ANCHOR.** `§7.3`'s clause that *"live"* names the SECOND of `§6.2`'s two acts: **an entry a `listen` wrote that `register` has not filled is a RESERVATION — it delivers to no listener and carries no kind — and the cross-kind refusal is read for a listener a `register` has made live.** **It moves no refusal and no status: the four messages `§1.7.0` declares are untouched by it.** **Both corrections move documents and landings and no code byte, and the patch's behaviour change is item 1's alone.**
|
|
160
217
|
|
|
161
218
|
**THE CELLS THE FIX CARRIES, NAMED SO A READER CAN CHECK THE BATTERY AGAINST THEM:**
|
|
162
|
-
- **THIRTEEN NEW CELLS.** Eight in `tests/e2e/repair-listener-delivery.test.mjs` — **`RLD-1`** the delivery (the defect itself: a count of `1` where the unfixed tree answered `0`), **`RLD-2`** the doubly-fired handle (one invocation, one member element), **`RLD-3`** the failing arm (its `discarded`-witness half HELD on `Q-7` and recorded, never asserted), **`RLD-4`** the seat, **`RLD-5`** `pending`'s re-derivation (the pair element, the member's de-duplication, `pending ⊄ triggered`), **`RLD-6`** the registration instant
|
|
219
|
+
- **THIRTEEN NEW CELLS.** Eight in `tests/e2e/repair-listener-delivery.test.mjs` — **`RLD-1`** the delivery (the defect itself: a count of `1` where the unfixed tree answered `0`), **`RLD-2`** the doubly-fired handle (one invocation, one member element), **`RLD-3`** the failing arm (its `discarded`-witness half HELD on `Q-7` and recorded, never asserted), **`RLD-4`** the seat, **`RLD-5`** `pending`'s re-derivation (the pair element, the member's de-duplication, `pending ⊄ triggered`), **`RLD-6`** the registration instant DELIVERS TOO — `fired` `0 → 1` across a repair's route-write at `addConstraint`, with its watcher's `0` standing — re-pinned `2026-11-06` (`D-125` item 1), **`RLD-7`** the delete-shaped commit (HELD on `Q-2`: driven, coherent, its delivery recorded), **`RLD-8`** the two-repair commit (both listeners once each) — **and five at the kernel's own surface in `tests/integration/js-constraints/repair-listener-delivery.test.mjs`** — **`RLD-I1`** the predicate (a carried pair's id does not merge, a listener's handle does), **`RLD-I2`** the discard's widened scope, **`RLD-I3`** the seat before the re-run, **`RLD-I4`** the credit gate, **`RLD-I5`** the nested-attempt guard (one invocation, not two). **⟶ AND THE `RLD-6` FRAGMENT ABOVE IS CORRECTED AT ITS OWN SENTENCE, 2026-11-06 — `RCA-8(g)` ANNOTATE-BESIDE, `D-125` ITEM `1`: the withdrawn bytes are *"the registration instant unmoved (`G3-22`'s two zeros re-asserted)"*, and they are the reading of their own date.** **THE CELL NOW ASSERTS THE DELIVERY AT THAT INSTANT** — `fired` `0 → 1` with `watcherDelta` `0` standing and the identity answered — **and it turns under `docs/L1/creation-sweep.md §6` item `1`'s THIRD reason, the registration's delivery, and not under the sweep's** (`F-10` corrected; `tests/e2e/repair-listener-delivery.test.mjs:581`–`:671`).
|
|
163
220
|
- **THE TWO CLAIM RE-DERIVATIONS, IN THE SAME ACT.** `tests/integration/js-constraints/constraint-kernel-layers.test.mjs`'s loop *"a layer (b) handle is a handle THIS call's write returned"* and `constraint-kernel-negatives.test.mjs`'s passing-arm set equality **both become non-total on a repaired write, and both are re-derived as clauses** — each was GREEN on its own fixture, and each would have gone red on the first fixture that lands a repair firing a handle outside the commit's set, which `RLD-5` creates.
|
|
164
221
|
- **ONE `observed` CELL PROMOTED WITH ITS FIGURE UNMOVED.** `FTS-11.6` (`tests/e2e/file-tier-save/scenarios.mjs`) asserted nothing and printed *"the number of times the delivered body ran on the repair-join arm"*; **from this patch it asserts that figure, `1`, and `1` is discriminating**: a merge that appended the repair's set a second time would make it `2`, and a merge that let a carried pair's id through would hand the delivery a constraint's registration to resolve as a listener's.
|
|
165
|
-
- **AND `G3-22` IS THE MECHANISM'S STRUCTURAL CONSTRAINT, NOT ITS SUBJECT.** `tests/e2e/registration-write-route.test.mjs`'s `listenerDelta === 0` stays green because a registration's attempt carries no `record`, and `RLD-6` re-asserts it in the fix's own file so the carrier cannot grow a path to that instant.
|
|
222
|
+
- **AND `G3-22` IS THE MECHANISM'S STRUCTURAL CONSTRAINT, NOT ITS SUBJECT.** `tests/e2e/registration-write-route.test.mjs`'s `listenerDelta === 0` stays green because THAT REGISTRATION REFUSES — the repair declines after its route-write, the call answers rank `19`, and no delivery composes on a refusing arm (`D-117` item 2; `PIN-6` (v)) — **while `RLD-6`, re-pinned `2026-11-06`, carries the PASSING arm's reading in the fix's own file: the registration does reach the delivery channel, and its `fired` count moves `0 → 1`** (`D-125` item 1; `docs/L1/creation-sweep.md §6` item `1`). **⟶ CORRECTED AT ITS OWN SENTENCE, 2026-11-06 — `RCA-8(g)` ANNOTATE-BESIDE: the withdrawn bytes are *"`listenerDelta === 0` stays green because a registration's attempt carries no `record`, and `RLD-6` re-asserts it in the fix's own file so the carrier cannot grow a path to that instant"*, and they are the reading of their own date.** **THE CARRIER HAS GROWN THAT PATH**, by name: `delivery.mjs`'s `installRegistrationDelivery` and its channel (`:524`–`:544`), which the entry arms around `addConstraint` and `constraintOn` (`index.mjs:1227`–`:1228`, `:1413`–`:1414`).
|
|
166
223
|
|
|
167
224
|
**WHAT TRAVELS, SAID SO NO CONSUMER READS A CLAIM THIS PATCH'S TARBALL DOES NOT CARRY** (`D-51` item 1's lesson, applied before it can bite again): **the declaration's clause ships** — `bindings/js/index.d.ts`'s `CommitRecord.pending` docblock carries the dated re-derivation, and `index.d.ts` is named by the manifest's `files` — **and the guide's clauses ship too** — the guide lands BYTE-FOR-BYTE as `README.guide.md`, and that row is named as well — **and this change list ships at `node_modules/provident-storeroom/RELEASE-NOTES.md`.** **So a consumer holding the tarball reads the `pending` sentence's re-derivation at both of its shipped homes.**
|
|
168
225
|
|
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
|
|
@@ -203,14 +221,28 @@ export interface StoreConfig {
|
|
|
203
221
|
/** The journal's declared length: a positive integer (`PAR-JS-3`). */
|
|
204
222
|
readonly journalLength: number;
|
|
205
223
|
/**
|
|
206
|
-
* The listeners a construction adopts (`PAR-JS-4`): an array of `{ address, handle }` records, the
|
|
207
|
-
* array included.
|
|
224
|
+
* The listeners a construction adopts (`PAR-JS-4`): an array of `{ address, handle, listener }` records, the
|
|
225
|
+
* EMPTY array included.
|
|
208
226
|
*
|
|
209
227
|
* **AND THE KEY IS REQUIRED, NOT OPTIONAL**: an ABSENT `listeners` is the ONE absence the construction
|
|
210
228
|
* does not admit and answers `AddressMalformed` for, so `listeners?` — the shipped spelling — invited a
|
|
211
229
|
* call that can never construct. **The ELEMENT SHAPE IS THE STORE'S TO REFUSE**: a member that is not an
|
|
212
|
-
* `{ address, handle }` record, or whose `handle` is not a plain non-empty `string`, is admitted
|
|
213
|
-
* refused by the store's own construction, because the package mints no second refusal for that
|
|
230
|
+
* `{ address, handle, listener }` record, or whose `handle` is not a plain non-empty `string`, is admitted
|
|
231
|
+
* here and refused by the store's own construction, because the package mints no second refusal for that
|
|
232
|
+
* position.
|
|
233
|
+
*
|
|
234
|
+
* **⟶ AND THE ELEMENT'S THIRD MEMBER IS REQUIRED FROM 2026-11-06 — `PIN-8`, `PIN-9`, `D-123` item `2`.** The
|
|
235
|
+
* record is `{ address, handle, listener }`, **`listener: Listener`**, and **it NEVER CROSSES**: the encoder
|
|
236
|
+
* drops it at the crossing exactly as a `cfg.constraints` element's `constraint` is dropped (`D-26`'s move one
|
|
237
|
+
* key over), the store's `ListenerEntry` and its `{address, handle}` record stay two-membered, and **the
|
|
238
|
+
* PACKAGE arms the substance** into its own registry at the construction — so **the adopted handle holds a body
|
|
239
|
+
* from the instant the instance exists.** **AN ENTRY THAT CARRIES NO FUNCTION IS REFUSED — IT IS NOT A
|
|
240
|
+
* LISTENER — and the refusal precedes the construction's first filesystem act**, so no file is ever created
|
|
241
|
+
* for it (`PIN-9`; `contract.md §10.4` part 5): the architect's ground is his own, *"Why would a listener that
|
|
242
|
+
* doesn't have a function to fire on the listened address be accepted?"* **AFTER THE CONSTRAINTS PASS AND
|
|
243
|
+
* AFTER THE SAVE, THE ADOPTED LISTENERS WHOSE WATCHED ADDRESS RESOLVES ARE FIRED — ONCE PER DISTINCT HANDLE,
|
|
244
|
+
* WITH THAT ADDRESS AS THEIR ONE ARGUMENT** (`D-123` item `2`; `PIN-6`; `D-125` item `1`), and a body that
|
|
245
|
+
* throws there refuses the act at rank `21` `ListenerBodyThrew`.
|
|
214
246
|
*/
|
|
215
247
|
readonly listeners: readonly unknown[];
|
|
216
248
|
/** The file the file tier is backed by, where one is declared (`PAR-JS-2`; ABSENT is in domain). */
|
|
@@ -354,6 +386,37 @@ export interface StoreConfig {
|
|
|
354
386
|
* falsifies it — **so `write`'s and `rollback`'s refusal paths may no longer answer it and the `file` tier's
|
|
355
387
|
* own failing save still does.** **IT IS THE MEMBER THIS DECLARATION PUBLISHES FOR THE REFUSAL, WHICH IS WHAT
|
|
356
388
|
* MAKES THE UNION HONEST ABOUT WHICH LAYER FAILED RATHER THAN A WIDENING FOR ITS OWN SAKE.**
|
|
389
|
+
*
|
|
390
|
+
* **⟶ AND AMENDED AGAIN 2026-11-06, BY THE ARCHITECT'S RULING `D-124` ITEM `2` (`strata/decisions.md:6459`),
|
|
391
|
+
* VERBATIM: *"A CREATION-FIRED BODY THAT THROWS REFUSES AT A MINTED RANK `21` `ListenerBodyThrew`"*, *"The closed
|
|
392
|
+
* fail set moves `20 → 21`"* and *"The subject is the LISTENER BODY and not the constraint body"*.** **THE SET IS
|
|
393
|
+
* TWENTY-ONE, RANKED `1`…`21`, AND THE APPENDED TERM IS `ListenerBodyThrew` AT RANK `21`** — **the member a
|
|
394
|
+
* LISTENER BODY's throw crosses as at the four REGISTRATION INSTANTS** (`D-125` item `1`: `storeCreate`, a boot
|
|
395
|
+
* over an existing `filePath`, `addConstraint` and a re-arm), and at those four only: *"a fired body's throw at
|
|
396
|
+
* those instants is `D-124` item `2`'s rank `21` `ListenerBodyThrew` by the same reading."* **NO RANK OF `1`…`20`
|
|
397
|
+
* MOVES, the algebra reads `11 + 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 = 21` ✓, and the escape arm `(string & {})`
|
|
398
|
+
* still stands EXACTLY ONCE, after the members.** **`ConstraintBodyThrew` KEEPS RANK `18` AND IS NOT WIDENED**
|
|
399
|
+
* (`D-124` item `2`: its subject is the CONSTRAINT body). **AND EVERY FIGURE ABOVE IS READ THROUGH THIS CLAUSE:**
|
|
400
|
+
* the *"twenty"*s and the *"`20`"*s in them are the figures of their own dates. **AT EVERY OTHER INSTANT THE
|
|
401
|
+
* IDENTITY PROMISE STANDS BYTE-UNMOVED** — a listener body's throw at a caller's `write`, at a `delete` and
|
|
402
|
+
* inside a `rollback`'s judgement still crosses AS ITSELF, `caught === thrown` (`surface.md §2.7` item 4;
|
|
403
|
+
* `contract.md:4299`), which is the carve's own scope and `CSW-25`'s control.
|
|
404
|
+
*
|
|
405
|
+
* **⟶ AND AMENDED AGAIN 2026-11-06, BY THE ARCHITECT'S RULING `D-126` ITEM `2` (`strata/decisions.md:6612`),
|
|
406
|
+
* VERBATIM: *"Mint/revive a code: a corrupt image refuses the construction"*, whose member L1 pins at
|
|
407
|
+
* `docs/L1/creation-sweep.md` `§3` `PIN-11`.** **THE SET IS TWENTY-TWO, RANKED `1`…`22`, AND THE APPENDED TERM IS
|
|
408
|
+
* `FileImageRefused` AT RANK `22`** — **the member a CORRUPT IMAGE crosses as at the CONSTRUCTION and at no other
|
|
409
|
+
* instant**, MINTED BY THE STORE ITSELF at `src/store.rs`'s step `7` through the one read of the path and
|
|
410
|
+
* therefore **before the package's first ask**: no image is installed, no pair is carried and no instance
|
|
411
|
+
* exists. **ITS SUBJECT IS THE STORE'S OWN IMAGE AND NOT THE CONSTRAINT LIST** — `cfg.constraints` may be absent
|
|
412
|
+
* and innocent when the corrupt bytes are read, so rank `16` `ConstraintListInvalid` has the wrong subject at
|
|
413
|
+
* this instant — **and THE CORRUPT FILE STANDS, un-written-to and un-repaired**: nothing was written to it and
|
|
414
|
+
* the refusal precedes every save, so no rollback composes and no removal arm is declared. **NO RANK OF `1`…`21`
|
|
415
|
+
* MOVES, the algebra reads `11 + 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 = 22` ✓, and the escape arm
|
|
416
|
+
* `(string & {})` still stands EXACTLY ONCE, after the members.** **A ZERO-LENGTH FILE AND AN ABSENT FILE ARE
|
|
417
|
+
* STILL NO IMAGE** and still load nothing and cross NO code (`§10.4` part 3; `DD-38`) — the corrupt arm is not
|
|
418
|
+
* widened into the empty one. **AND EVERY FIGURE ABOVE IS READ THROUGH THIS CLAUSE:** the *"twenty-one"*s and
|
|
419
|
+
* the *"`21`"*s in them are the figures of their own dates.
|
|
357
420
|
*/
|
|
358
421
|
export type StoreStatus =
|
|
359
422
|
| 'AddressMalformed'
|
|
@@ -376,6 +439,8 @@ export type StoreStatus =
|
|
|
376
439
|
| 'ConstraintBodyThrew'
|
|
377
440
|
| 'ConstraintRefusedAtRegistration'
|
|
378
441
|
| 'ConstraintPassRefused'
|
|
442
|
+
| 'ListenerBodyThrew'
|
|
443
|
+
| 'FileImageRefused'
|
|
379
444
|
| (string & {});
|
|
380
445
|
|
|
381
446
|
/**
|
|
@@ -455,8 +520,15 @@ export interface LogEntry {
|
|
|
455
520
|
* NAME**: a refusal about a `cfg`, a constraint LIST, a handle, an attempt identity or an artefact path names
|
|
456
521
|
* no act at an address and says so with the declared `null`, never by omitting the member.
|
|
457
522
|
*
|
|
458
|
-
* **IT IS NOT A FIFTH STATUS AND NOT A HEURISTIC**: the closed set is `StoreStatus`'s and stays twenty
|
|
459
|
-
* member is authored by the package at the refusal's own crossing, so no consumer reproduces a rule to
|
|
523
|
+
* **IT IS NOT A FIFTH STATUS AND NOT A HEURISTIC**: the closed set is `StoreStatus`'s and stays **twenty-one**,
|
|
524
|
+
* and the member is authored by the package at the refusal's own crossing, so no consumer reproduces a rule to
|
|
525
|
+
* read it. **⟶ CORRECTED IN PLACE 2026-11-11 — GATE 4's FINDING: THE FIGURE READ *"twenty"* AND IS FALSE AT
|
|
526
|
+
* TWENTY-ONE.** `D-124` item `2` moved the closed fail set `20 → 21` by appending `ListenerBodyThrew` at rank
|
|
527
|
+
* `21` (`strata/decisions.md:6459`; the operative statement is `StoreStatus`'s own block above, whose algebra
|
|
528
|
+
* reads `11 + 2 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 = 21` ✓ and whose membership below carries the member), and
|
|
529
|
+
* **this sentence's subject — that `address` is a member of the REFUSAL and not a member of the STATUS SET —
|
|
530
|
+
* is untouched by the move**: what was wrong was the figure, not the rule. **NO MEMBER IS ADDED, NO RANK MOVES
|
|
531
|
+
* AND NO OTHER FIGURE OF THIS DECLARATION IS READ THROUGH THIS CLAUSE.**
|
|
460
532
|
* **ITS NAME IS THE DECLARATION'S OWN CONVENTION**: its siblings are one bare noun each naming exactly the
|
|
461
533
|
* datum carried, and this one is the datum the whole declaration already calls `address` — the segment array
|
|
462
534
|
* `read`/`write`/`delete` take, `AttemptContext.address`, `JournalOp.address`, `pair.address`.
|
|
@@ -975,6 +1047,44 @@ export interface StoreInstance {
|
|
|
975
1047
|
read(address: Address, tier?: TierSet): unknown;
|
|
976
1048
|
/** The same read, narrowed to a leaf — a branch answers `ReadTargetIsBranch`; `tier` is `TierSet`, with the same SUPPLIED-`undefined` reading as `read`. */
|
|
977
1049
|
readLiteral(address: Address, tier?: TierSet): unknown;
|
|
1050
|
+
/**
|
|
1051
|
+
* **Read a node's durability tier beside its value** — the third read verb, with `read`'s own arity
|
|
1052
|
+
* (`address`, then the optional `tier`), `read`'s own declared walk and `read`'s own refusal set, and with
|
|
1053
|
+
* the ANSWER COMPILED.
|
|
1054
|
+
*
|
|
1055
|
+
* **THE SHAPE IS A TOTAL FUNCTION OF NODE KIND** (`TieredNode`): an OBJECT node answers `{ _tier, …members }`
|
|
1056
|
+
* with its members INLINE, and it carries no `value` wrapper; an ARRAY node answers `{ _tier, value: [ … ] }`
|
|
1057
|
+
* with `value` dense and in index order; a LEAF node answers `{ _tier, value: <the literal> }`, `value` being
|
|
1058
|
+
* the literal itself, exactly as written. **Every node of the answer is therefore an OBJECT, and no node's
|
|
1059
|
+
* answer is a primitive or a bare array.**
|
|
1060
|
+
*
|
|
1061
|
+
* **EACH `_tier` IS THAT NODE'S OWN TIER**: an object's and an array's is its own anchor tier, a leaf's is
|
|
1062
|
+
* the tier of the version the read selected — so the answer's fields are the persistence ladder the read
|
|
1063
|
+
* walked, never one tier repeated and never a child inheriting its parent's. **It is ONE of `Tier`'s three
|
|
1064
|
+
* tokens and NEVER an array, a map or a count**: `TierSet` is the ARGUMENT's type, and the answer never
|
|
1065
|
+
* carries a set.
|
|
1066
|
+
*
|
|
1067
|
+
* **THE ONE COLLISION, DECLARED RATHER THAN LEFT TO BE DISCOVERED: a member you stored at the name `_tier`
|
|
1068
|
+
* is NOT DELIVERED by this verb** — the minted field wins on the node that carries it — **while the default
|
|
1069
|
+
* `read` at the same address and tier still answers your stored value**, so nothing is destroyed and the
|
|
1070
|
+
* truth is reachable. **That is the one lossy field, in this one verb**; every other stored name, `value`
|
|
1071
|
+
* among them, is delivered untouched.
|
|
1072
|
+
*
|
|
1073
|
+
* **AND A `readTiered` ANSWER HANDED BACK TO `write` IS STORED AS ORDINARY DATA**: the `_tier` members and
|
|
1074
|
+
* the `value` wrappers become your own stored members, exactly as the write stores any other object you
|
|
1075
|
+
* hand it. **This is a DECLARED CONSEQUENCE AND NOT A RULE — no clause forbids that write-back and no
|
|
1076
|
+
* clause blesses it, nothing is refused for it and nothing is stripped out of it.** **Nor is this answer a
|
|
1077
|
+
* stored value: it is the read's answer compiled, and it does not round-trip.**
|
|
1078
|
+
*
|
|
1079
|
+
* **AND IT IS NOT A VERSION-SET READOUT**: it reports WHICH version won and never which versions stand, so
|
|
1080
|
+
* a key holding a `file` version and a `mem` version answers the same shape as a key holding only the
|
|
1081
|
+
* winner. **The surface's one tier-SET answer remains `delete`'s `receipt.tiers`.**
|
|
1082
|
+
*
|
|
1083
|
+
* **AND `undefined` AT THE `tier` POSITION IS NOT THE SAME CALL AS NO POSITION AT ALL** (`PAR-JS-6`,
|
|
1084
|
+
* exactly as at `read`): a SUPPLIED `undefined` is PRESENT and the store answers `AddressMalformed` for it,
|
|
1085
|
+
* while only the call that spells no tier reads the whole set.
|
|
1086
|
+
*/
|
|
1087
|
+
readTiered(address: Address, tier?: TierSet): TieredNode;
|
|
978
1088
|
/**
|
|
979
1089
|
* Write `value` at `address` on `tier` — EXACTLY ONE token, never an array (`PAR-JS-7`).
|
|
980
1090
|
*
|
|
@@ -1148,13 +1258,32 @@ export interface StoreInstance {
|
|
|
1148
1258
|
* anchor (`bindings/js/README.md`: *"a listener and a constraint do not share one handle"*), and the
|
|
1149
1259
|
* refusal's `address` member is `null`: the subject is the identity, and naming one of a listener's N mirror
|
|
1150
1260
|
* addresses would assert a membership no clause supports.
|
|
1261
|
+
*
|
|
1262
|
+
* **⟶ AND THIS ACT DELIVERS THE LISTENERS ITS REPAIR'S WRITE FIRES — `D-125` item `1`, `PIN-6` (ii), `PIN-2`,
|
|
1263
|
+
* 2026-11-06.** **WHEREVER A REPAIR RUNS, THE LISTENERS ITS WRITE FIRES ARE DELIVERED — `storeCreate`, a boot
|
|
1264
|
+
* over an existing `filePath`, `addConstraint`, and a re-arm — after the constraints pass, after the save, in
|
|
1265
|
+
* `D-117`'s order, instant for instant, with no delivery on a refusing arm.** **THE SET AT THIS INSTANT IS THE
|
|
1266
|
+
* STORE'S OWN `triggered`** — *"the very record `write` answers"* — **delivered ONCE PER DISTINCT HANDLE, with
|
|
1267
|
+
* the repair's own op address as the one argument**, and **BEFORE this call answers.** **THE ANSWER'S DECLARED
|
|
1268
|
+
* TYPE IS UNMOVED: the identity is still the answer** (`D-125` item 2). **A fired body's throw pre-empts that
|
|
1269
|
+
* answer and crosses as rank `21` `ListenerBodyThrew`, the pair stands registered and its save stands**
|
|
1270
|
+
* (`PIN-10`; `Q-13`), so the caller's view of a registration gains a third observable — *"the listeners its
|
|
1271
|
+
* repairs fired"* (`D-125` item 2 (i)) — and an EMPTY SET is a count of `0` and not silence (`PIN-6` (v)).
|
|
1151
1272
|
*/
|
|
1152
1273
|
addConstraint(pair: ConstraintPair, constraint: Constraint): ConstraintIdentity;
|
|
1153
1274
|
/** **THE ENABLE HALF** (`§2.12` item 2 (a) and item 3's `constraintOn` row): `undefined`. **The
|
|
1154
1275
|
* `constraint` position is REQUIRED and is a NO-OP on every success** — the caller supplies as a function
|
|
1155
1276
|
* the identity it holds at that pair, the entry never substitutes one, and it is the element the entry
|
|
1156
1277
|
* carried at that pair that is evaluated at the next write. **Idempotent success where the pair already
|
|
1157
|
-
* stands ENABLED.**
|
|
1278
|
+
* stands ENABLED.**
|
|
1279
|
+
*
|
|
1280
|
+
* **⟶ AND THE RE-ARM DELIVERS TOO — `D-125` item `1`, 2026-11-06.** The re-registration's `K-1` reaches the
|
|
1281
|
+
* same registration route, so **the listeners its repair's write fires are delivered ONCE PER DISTINCT
|
|
1282
|
+
* HANDLE, after the save and before this call answers its `undefined`**, with the repair's op address as the
|
|
1283
|
+
* one argument (`PIN-6` (ii), (iv); `PIN-2`). **NO DELIVERY ON A REFUSING ARM** — a re-arm whose repair the
|
|
1284
|
+
* `D-107` composition rolled back delivers nothing (`PIN-6` (v)) — and **an empty set is a count of `0`**.
|
|
1285
|
+
* **A fired body's throw pre-empts the answer and crosses as rank `21` `ListenerBodyThrew` while the instance
|
|
1286
|
+
* and every other pair stand** (`PIN-10`; `Q-13`; `Q-15`). */
|
|
1158
1287
|
constraintOn(pair: ConstraintPair, constraint: Constraint): void;
|
|
1159
1288
|
/** **THE DISABLE HALF** (`§2.12` item 2 (a) and item 3's `constraintOff` row): `undefined`; the pair's
|
|
1160
1289
|
* element is NOT evaluated on a subsequent write, and **a write the disabled constraint would have
|