provident-storeroom 1.9.0 → 1.9.1
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 +54 -72
- package/README.md +4 -18
- package/RELEASE-NOTES.md +13 -1
- package/index.d.ts +19 -5
- package/index.mjs +22 -3
- package/package.json +6 -6
- package/src/entry/constraints.mjs +411 -48
- package/src/entry/delivery.mjs +55 -3
- package/src/entry/kernel-attempt.mjs +20 -2
- package/src/entry/kernel-registration.mjs +221 -20
- package/src/entry/kernel-terminal.mjs +54 -25
- package/src/entry/state.mjs +15 -1
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.
|
|
33
|
+
PUBLISH-GUIDE-VERSION-LINE: THE VERSION THIS GUIDE DESCRIBES IS `1.9.1`.
|
|
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.
|
|
@@ -442,8 +442,14 @@ state the addressed subtree now stands at, `{ present, value }`.**
|
|
|
442
442
|
`journalEntries()`, no `journalLength()` and no `clearJournal()`; **`rollback` is its only consumer, and the op
|
|
443
443
|
crosses to you as a returned value on every write** (`write-and-read.md §6.3`).
|
|
444
444
|
- **`journalLength` is your whole undo window.** The store compacts entries into a base state as the journal
|
|
445
|
-
fills, and **a rollback
|
|
446
|
-
|
|
445
|
+
fills, and **a rollback that meets a compacted entry no longer undoes nothing — from 2026-11-02 it REVERTS TO
|
|
446
|
+
THE LAST VALID STATE BY REGENERATING IT FROM THE DURABLE GROUND TRUTH**: the store rebuilds the state from the
|
|
447
|
+
`file` tier's own image, and from the state the store was created with where no image stands, and then replays
|
|
448
|
+
what its journal still reaches. **WHAT THAT MEANS FOR THE VERSIONS YOU NEVER MADE DURABLE, IN ONE SENTENCE:
|
|
449
|
+
inside the undo window a reversal puts back what it undid, memory-only versions included — and a version whose
|
|
450
|
+
only record the compaction has already swallowed does not come back.** **So the honest form of the promise is:
|
|
451
|
+
a reversal reaches as far as your journal still reaches, and the durable state is the floor it never falls
|
|
452
|
+
below.** **`strata/decisions.md` · `D-108`.**
|
|
447
453
|
- **A rollback appends no journal entry, and an undone entry is marked `compacted: true`.** **The `compacted` flag
|
|
448
454
|
is ONE predicate with TWO grounds** — compressed into the base state, or undone by a rollback — **and the record
|
|
449
455
|
carries no member to tell them apart** (`write-and-read.md §6.4` `M-9`).
|
|
@@ -455,7 +461,10 @@ constraint FAIL, answering `{status: 'ConstraintPassRefused', message, log}` at
|
|
|
455
461
|
constraint-refused `write` answers (`§8.1`).** **IT IS JUDGED AT THE TERMINAL STATE AND NEVER PER UNWINDING
|
|
456
462
|
STEP**, because a per-step check is unsound: a reversal passes through intermediate states no constraint would
|
|
457
463
|
approve, and only the state you are left standing in is a state a constraint can be asked about. **A LAWFUL
|
|
458
|
-
REVERSAL IS UNCHANGED
|
|
464
|
+
REVERSAL IS UNCHANGED — and no longer silent: a pair of yours that refuses the state it leaves may land its
|
|
465
|
+
REPAIR, and the listeners your own pairs' repairs fire are invoked once, with the triggering address, before the
|
|
466
|
+
member returns** — same `{opId, undoneOps, restoredTo}`, no status and no throw, no member added and no status
|
|
467
|
+
minted (`§9.3`; `strata/decisions.md` · `D-113` item 3, `D-117` item 1). **MEASURED 2026-10-26:
|
|
459
468
|
the shipped `rollback` still consults no constraint** — a refusal registered over the address a reversal
|
|
460
469
|
restores is not evaluated, and the reversal succeeds — **so treat this paragraph as the ruling's declaration
|
|
461
470
|
and NOT as today's behaviour**; the arm's carrier is owed at the `rollback` member and is the only part of this
|
|
@@ -911,7 +920,11 @@ your application carries, not state your store stores.**
|
|
|
911
920
|
|
|
912
921
|
**(3) ★ AND A PAIR WHOSE OWN KEY IS ABSENT IS APPLIED, AND MAY REPAIR ITSELF.** `['window']` on a store holding no `window` has the REGISTER for a parent, and the register is always a container — so **the absence of its own key is the state that pair judges**, which is the arm a repair can rescue. **It is the only arm a repair can rescue: a pair under an absent parent is never asked, so nothing runs to create that parent and a repair it carries cannot reach the arm** (`D-91` (iv)). **To have a repair create `window`, register the pair at `['window']`** — whose own absence is what is judged — and not at an address beneath it.
|
|
913
922
|
|
|
914
|
-
**(4) ★ AND THE ROUTE A REPAIR MAY TAKE AT A REGISTRATION INSTANT — `D-91`, THE ARCHITECT, VERBATIM: *"Give the registration instant a lawful write route."*** **A repair invoked at a registration instant — from `cfg.constraints`, from a boot over an existing `filePath`, from `addConstraint`, or from a re-enable — CAN WRITE, THROUGH A `write` FUNCTION ON THE RECORD IT IS HANDED.** **THE CONSTRAINT BODY'S OWN CONTEXT IS UNMOVED AND CARRIES NO SUCH MEMBER** (`D-92`: the route is the repair's alone), **so a body that needs a change returns a repair.** **THE ROUTE'S POSITIONS ARE THE STORE'S OWN THREE — `write(address, tier, value)` — AND THERE IS NO FOURTH: the commit is the registration's own and cannot be named**, and a call supplying one is refused before any store act. **ITS ANSWER IS THE STORE'S OWN WRITE RECORD — the very record the store's `write` answers — and the repair becomes creditable by `§7.6`'s repairable arm returning that record's own `op`**, which is the same rule a write's own repair is judged by, pointed at and not re-spelled here. **THE WRITE RUNS NO PASS OF ITS OWN:** the pair is judged by **THE REGISTRATION'S OWN RE-RUN over the op the repair returned**, so a repair that lands the state its own body admits makes the registration stand
|
|
923
|
+
**(4) ★ AND THE ROUTE A REPAIR MAY TAKE AT A REGISTRATION INSTANT — `D-91`, THE ARCHITECT, VERBATIM: *"Give the registration instant a lawful write route."*** **A repair invoked at a registration instant — from `cfg.constraints`, from a boot over an existing `filePath`, from `addConstraint`, or from a re-enable — CAN WRITE, THROUGH A `write` FUNCTION ON THE RECORD IT IS HANDED.** **THE CONSTRAINT BODY'S OWN CONTEXT IS UNMOVED AND CARRIES NO SUCH MEMBER** (`D-92`: the route is the repair's alone), **so a body that needs a change returns a repair.** **THE ROUTE'S POSITIONS ARE THE STORE'S OWN THREE — `write(address, tier, value)` — AND THERE IS NO FOURTH: the commit is the registration's own and cannot be named**, and a call supplying one is refused before any store act. **ITS ANSWER IS THE STORE'S OWN WRITE RECORD — the very record the store's `write` answers — and the repair becomes creditable by `§7.6`'s repairable arm returning that record's own `op`**, which is the same rule a write's own repair is judged by, pointed at and not re-spelled here. **THE WRITE RUNS NO PASS OF ITS OWN:** the pair is judged by **THE REGISTRATION'S OWN RE-RUN over the op the repair returned**, so a repair that lands the state its own body admits makes the registration stand. **AND THE ROUTE EXISTS AT A REGISTRATION INSTANT AND NOWHERE ELSE**: at a write's own evaluation you already hold the instance, the repair there is handed the record it always was, and nothing about that instant moves.
|
|
924
|
+
|
|
925
|
+
**★ AND A REGISTRATION THAT REFUSES UNDOES WHAT IT LANDED — CHANGED 2026-11-02, AND THIS IS THE ONE SENTENCE THE OLD TEXT HAD BACKWARDS ABOUT A BEHAVIOUR.** *"A write the route lands before a refusal STANDS"* is **WITHDRAWN**: **A REFUSAL ROLLS BACK, WITHOUT EXCEPTION.** **When a registration refuses — because the repair's body threw, because the repair credited no op, because the re-run refused the repair's own landing, or because a constraint body threw at the re-run — the registration composes a rollback over every op its route landed, and the store is left where the registration found it.** **THE COMPOSITION IS THE SAME INSTRUMENT A FAILING WRITE'S PASS COMPOSES WITH: ONE STORE `rollback` CALL PER DISTINCT ADDRESS THE ROUTE'S LANDINGS TOUCHED, AT THAT ADDRESS'S EARLIEST SUCH OP, SHALLOWEST ADDRESS FIRST** — so one call sweeps an address's whole subtree, and a registration whose landings sit at three addresses gets three calls and no more. **★ AND NO ARM OF THAT COMPOSITION STRANDS YOU — CHANGED AGAIN THE SAME DAY, AND THIS IS THE HALF THE OLD TEXT COULD NOT SAY: where one of those calls meets a store base that has been compacted, THE CALL REVERTS TO THE LAST VALID STATE BY REGENERATING IT FROM THE DURABLE GROUND TRUTH** (`§5.4`, `D-108`) — **so the address's edit does not stand, and the store is where the registration found it on this arm too.** **THE REFUSAL'S `status` DOES NOT MOVE FOR ANY OF IT — it is `ConstraintRefusedAtRegistration` on every arm.**
|
|
926
|
+
|
|
927
|
+
**★ AND ITS SAVE IS THE PASSING ARM'S CLOSE, AND NOWHERE ELSE — ADDED 2026-11-02 (`D-106`): A `file`-TIER WRITE THE ROUTE LANDS IS SAVED WHEN THE REGISTRATION'S ATTEMPT CLOSES ON ITS PASSING ARM, AND THAT CLOSE IS THE INSTANT THAT OWES IT.** It is the same `commit_file` a `file`-tier write's own save is (`§9.2`), named at the last `file`-tier op the route landed — **so the bytes at `filePath` carry the repaired value the moment the registration returns, and NOT when some later caller happens to save.** **ONE SAVE PER REGISTRATION, WHATEVER ITS REPAIRS:** the image a save writes is the whole register's, so a registration whose commit carries several `file`-tier repairs pays ONE serialization and every earlier repair rides in that image. **AND A REGISTRATION THAT MOVED NO `file`-TIER DATA SAVES NOTHING** — a repair that writes a scalar at `mem` or `temp` leaves every durable version standing and owes none, **while a repair that writes a CONTAINER value at an address holding a `file`-tier version replaces that version and owes its save like any other.** **A SAVE THAT CANNOT LAND IS REPORTED AND NOT SWALLOWED**: the store's own `FileCommitFailed`, after the store's journal rollback, exactly as a write's save answers it (`§9.4`) — **and the registration then refuses, on the paragraph above's arm, so that landing you were told was unsaved is undone too.** **★ AND A REFUSING ARM OWES NO SAVE OF ITS OWN**: it undoes its own landings, so the file and the memory agree, **and the bytes are made right by the reversal's own instrument (`§9.3`) and by nothing at the close** — which, on that arm, is the instrument writing NO byte, because the store it returns to is the store the file still holds (`strata/decisions.md` · `D-111` item 1) — and a second save there would write one image twice, which the store's per-record law refuses.
|
|
915
928
|
|
|
916
929
|
**(5) ★ AND THE LIST-PERSISTENCE PARAGRAPH ABOVE — the one that opens *"★ AND THE LIST IS NEVER PERSISTED — not in the file, not as a register key and not in any journal entry"* — IS READ THROUGH THIS ITEM FROM HERE, 2026-11-02, AND THIS ITEM IS THE SCOPE CLAUSE THAT PARAGRAPH OWES.** **THE LOADED STATE IS NOT VALIDATED FOR RESOLVABILITY:** a pair whose parent does not resolve is not refused at CONSTRUCTION and not refused at a boot over an existing `filePath`, **and no list is refused for it — the pair is CARRIED and SKIPPED, which is item (2)'s rule, and a skip is not a refusal of the pair or of the list.** **So at both of those instants `ConstraintListInvalid` — the one status that paragraph declares — answers THE MALFORMED LIST ALONE:** an element whose `address` is not a segment array, an `id` that is not a string, the list's own outside forms, **and the package's own construction-time rejections, which `§7.2` states at its own paragraphs and which this item points at rather than re-spells.** **AND A WELL-FORMED PAIR IS NEVER ANSWERED BY THE SHAPE ARM** — `native/contract.md §8.1` item 3's own sentence, which the withdrawal above makes TRUE of this tree rather than needing an amendment.
|
|
917
930
|
|
|
@@ -1689,73 +1702,42 @@ one** (`archive/pre-strata-docs-2026-10-24/docs/defects.md`, `DEF-2026-10-13-D`;
|
|
|
1689
1702
|
point `filePath` at a symlink deliberately, know that the store will end up holding a regular file at that name
|
|
1690
1703
|
and the link will be gone.**
|
|
1691
1704
|
|
|
1692
|
-
### §9.2
|
|
1693
|
-
|
|
1694
|
-
**`DD-28`'s sentence is law: *"`file`-TIER DURABILITY IS PRODUCED BY A SUCCESSFUL `file`-TIER `write` ONLY"
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
**AND `
|
|
1702
|
-
|
|
1703
|
-
write
|
|
1704
|
-
|
|
1705
|
-
nothing
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
performs
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
`rollback`
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
durable and the process then restarts, expect it back — and delete
|
|
1728
|
-
|
|
1729
|
-
**⟶ AND THE SENTENCE ABOUT THE BYTES IS ONE PRODUCER SHORT, 2026-10-27 — A REFUSED REVERSAL'S RESTORE NOW WRITES
|
|
1730
|
-
THEM WHERE IT MOVED A `file`-TIER NODE (`bd0fd8c`).** `RCA-8(g)` ANNOTATE-BESIDE: **the section above stands
|
|
1731
|
-
BYTE-FOR-BYTE and is read THROUGH this clause; THIS clause is a PURE INSERTION and moves no verb, no tier, no status
|
|
1732
|
-
and no record.** **WHAT MOVED: the restore a REFUSED `rollback` performs — the compensating act that puts the state
|
|
1733
|
-
back before the reversal — takes the `file` tier's projection before it and again after it, and where a version
|
|
1734
|
-
standing at `Tier::File` moved it SAVES the restored image with the store's one writer.** **SO THE BYTES AT
|
|
1735
|
-
`filePath` ARE THE LAST SUCCESSFUL SAVE'S, whose producers are a `file`-tier `write`'s commit AND a restore that moved
|
|
1736
|
-
a file-tier node** — and **`and no other state` stands whole: the boot reads the register image at the file tier and
|
|
1737
|
-
nothing else** (`native/contract.md §6.6` item `5`'s clause of 2026-10-27, the declaration's one home; `DD-28`'s
|
|
1738
|
-
amended cell). **WHAT DOES NOT MOVE, SAID SO THE READING IS NOT TAKEN WIDER THAN IT IS:** **a `delete` still performs
|
|
1739
|
-
no file I/O and a SUCCESSFUL `rollback` still performs none either**, so the paragraph above holds for both — the
|
|
1740
|
-
removed version still stands again after the re-boot; **the save is the REFUSED arm's alone, it appends no journal
|
|
1741
|
-
entry (a save is an effect and not an op), and a save that cannot land is reported (`FileCommitFailed`, the
|
|
1742
|
-
in-memory state restored and the bytes not updated) rather than swallowed.**
|
|
1743
|
-
|
|
1744
|
-
**⟶ AND A `file`-TIER `DELETE` NOW SAVES ITS OWN OP, 2026-10-29 — THE SECTION HEADING ABOVE IS READ THROUGH THIS
|
|
1745
|
-
CLAUSE AND SO IS EVERY SENTENCE OF IT THAT NAMES A `delete`.** `RCA-8(g)` ANNOTATE-BESIDE: **THE READING ABOVE WAS TAKEN ON A TREE WHERE A `delete` MINTED NO
|
|
1746
|
-
`CommitRecord`, so nothing ever named its journal op to the save — and a
|
|
1747
|
-
consumer was told to expect a durable deletion back after a restart.** **WHAT MOVED:** the delete now mints the
|
|
1748
|
-
same four-member record a write's `K-2` mints, the entry adopts it, and **the terminal arm saves the DELETE's own
|
|
1749
|
-
op on its passing arm** — the same `commit_file` a `file`-tier write's save is. **MEASURED, ON THIS TREE:**
|
|
1750
|
-
`store.write(['a'], 'file', 1)` then `store.delete(['a'], 'file')` leaves the bytes at `filePath` reading `{}`
|
|
1751
|
-
where they read `{"a":1}`, and a fresh `storeCreate` over that path answers `AddressNotFound` where it answered
|
|
1752
|
-
`1`. **WHAT STILL READS AS THE SECTION SAYS, SAID SO THE CORRECTION IS NOT TAKEN WIDER THAN IT IS:** **the `delete`
|
|
1753
|
-
VERB still commits nothing of its own** (`DD-28`; the save is the ARM's), **a `rollback` still performs no file
|
|
1754
|
-
I/O** (its control reading is unmoved), **a WHOLE-TARGET delete — no tier named — names an op standing at no
|
|
1755
|
-
tier, so nothing is saved and the version still comes back after a re-boot**, and **a save that cannot land is
|
|
1756
|
-
reported the write's way** (`FileCommitFailed`, the store's journal rollback first, the message second, the
|
|
1757
|
-
commit's log carrying the one `outcome` entry at `KC-9`) rather than swallowed. **So the one-line advice above is
|
|
1758
|
-
now: a `file`-tier deletion is durable; a whole-target deletion is not.**
|
|
1705
|
+
### §9.2 The file saves after ANY act that changes the `file`-tier data
|
|
1706
|
+
|
|
1707
|
+
**`DD-28`'s sentence is law, and it is read for what it is: *"`file`-TIER DURABILITY IS PRODUCED BY A SUCCESSFUL `file`-TIER `write` ONLY"* (`docs/specs/storeroom-native/contract.md` `DD-28`) is a statement about THE ACTS THAT OWE A SAVE, and no longer a closed list of them** (`strata/decisions.md` · `D-106` item 2). **THE RULE, IN THE FORM YOU CAN HOLD: the file saves after ANY action that changes the file-tier data, without exception.** **A `file`-tier `write` is the paradigm and not the boundary** — an act that moves `file`-tier data without being a `file`-tier write is under the same duty, **so an act that leaves the bytes alone after moving that data is a defect and not a nuance.**
|
|
1708
|
+
|
|
1709
|
+
**WHERE THE SAVE HAPPENS — FOUR INSTANTS, AND EACH ONE IS NAMED, BECAUSE A SAVE NAMED WITHOUT ITS INSTANT IS THE SENTENCE THAT HID THIS:**
|
|
1710
|
+
|
|
1711
|
+
- **(I) A WRITE'S TERMINAL ARM, ON ITS PASSING ARM** — its first act, before any delivered listener body runs. **A `mem`- or `temp`-tier write owes a save on this instant TOO, and exactly when it moved a `file`-tier version: a write of a CONTAINER value at an address holding a `file`-tier version REPLACES that version with its own subtree, so the durable version has left the register and the bytes must follow it — while a SCALAR at the same address SHADOWS the durable version instead, leaves it standing, and owes nothing** (`strata/decisions.md` · `D-106` item 2).
|
|
1712
|
+
- **(II) A `delete`'S TERMINAL ARM, ON ITS PASSING ARM** — at the delete's own op, and **at EVERY tier scope: a whole-target delete's op stands at no tier and the save still happens where the act removed at least one version standing at the `file` tier** (`§9.3`).
|
|
1713
|
+
- **(III) THE CLOSE OF A REGISTRATION, ON ITS PASSING ARM** — `addConstraint`, `constraintOn`'s re-arm, a `storeCreate` carrying `cfg.constraints`, and a boot over an existing `filePath` carrying them — **which saves the `file`-tier write a repair landed through the route `§7.2` (4) declares, and which saves NOTHING on a refusing arm** (`§7.2` (4)).
|
|
1714
|
+
- **(IV) A REVERSAL'S OWN END — AND IT IS TWO SAVES OF TWO DIFFERENT ACTS, WHICH THIS SENTENCE SEPARATES BECAUSE THE OLD ONE JOINED THEM** (`strata/decisions.md` · `D-112` items 1–2). **A `rollback` THAT PUT A `file`-TIER VERSION BACK IS SAVED BY THE PACKAGE, AFTER ITS CONSTRAINT JUDGEMENT HAS PASSED** — the store's `rollback` performs no write of its own, and the save is the same state-keyed write a restore makes, keyed to the image the path already holds and to no record; **the reversion comes FIRST and the save follows it.** **AND A REFUSED `rollback`'S COMPENSATING RESTORE STILL SAVES, AND THAT SAVE IS THE STORE'S OWN** — `restoreMark` replays and saves the restored image where the path does not already hold it, exactly as it has since 2026-10-27 (`§9.3`). **AND THE SAME INSTANT COVERS THE REVERSAL THAT MEETS A COMPACTED BASE**: it regenerates the last valid state instead of refusing it (`§5.4`, `§9.3`), and then the judgement's save writes it here.
|
|
1715
|
+
|
|
1716
|
+
**A CALLER'S `store.write(addr, 'file', value)` IS SAVED BY INSTANT (I) AND NOT BY THE VERB.** The package routes a three-position write through the kernel's commit and its attempt, **so the terminal arm IS in that path** — and **the addon's `write` verb performs no file I/O on any of its arms.**
|
|
1717
|
+
|
|
1718
|
+
**A REFUSAL IS NOT A SAVE'S INSTANT, AND THAT IS THE OTHER HALF OF THE SAME RULE: A REFUSAL ROLLS BACK.** **A registration that refuses — because its repair's body threw, because the repair credited no op, because the re-run refused the repair's own landing, OR BECAUSE A CONSTRAINT BODY THREW AT THE RE-RUN — composes a rollback over what its route landed, so there is nothing left standing for a save to carry and nothing the close owes** (the throwing arm's refusal is still `ConstraintBodyThrew`, and its `log` carries the rollback's own step where the rollback met a store code) **— and a write's own failing pass saves nothing at all, leaving the bytes byte-identical to what they were before the call.** **AND A REFUSAL IS NEVER A REFUSAL TO UNDO: where the reversal's own walk meets a base that has been compacted, the store regenerates the last valid state from the durable ground truth rather than leaving the edit standing** — **and where the image standing at `filePath` is one the store's own loader cannot read, that image is treated as NO image at all and the regeneration rebuilds from the state the store was created with, so a refusal rolls back there too and the save that follows puts a readable image back at the path** (`strata/decisions.md` · `D-118`) — **so a refusal leaves the store where the call found it, and this section declares no exception to that.** **The one thing a regeneration cannot put back is a version the compaction had already swallowed and no file image carries; that version is gone, and `§5.4` states it as the window's own edge rather than as a failure.**
|
|
1719
|
+
|
|
1720
|
+
**SO THE BYTES AT `filePath` ARE THE BYTES OF THE LAST SUCCESSFUL SAVE, whose instants are (I)–(IV) and no other act's.** **AND AN ACT THAT MOVES NO `file`-TIER DATA SAVES NOTHING AND OWES NOTHING**: a `mem`- or `temp`-tier write **that leaves every `file`-tier version standing — which a scalar write does at an address it shadows and a container write does only where no durable version stood there to be replaced**, a `delete` that removed only versions at other tiers, a reversal that put back only versions at other tiers, and a registration whose repairs never touched the `file` tier.
|
|
1721
|
+
|
|
1722
|
+
**⟶ WHAT THIS SECTION REPLACED, 2026-11-02 — ONE SENTENCE PER ITEM, AND NO MARK BESIDE ANY SENTENCE ABOVE.** **(a)** It taught that `store.write(addr, 'file', value)` *"COMMITS, with no kernel attempt and no terminal arm in the path"*; **WITHDRAWN — that sentence is false of the package's own surface**, where every `store.write` reaches the kernel's commit and its attempt and where the terminal arm is the save; it was true only of the addon verb, which writes no byte. **(b)** Its heading made durability *"a `file`-tier WRITE's act"*; **widened to the rule above.** **(c)** Its last paragraph said *"both saves stand"*, a bare write's and the terminal arm's; **WITHDRAWN — there is ONE save, at instants (I)–(IV), and a reader who counted two was counting one act twice.** **(d)** It said nothing about a refusal, which is the state a reader most needs: **added, and `§7.2` (4) is where the registration's arm is stated.** **(e)** Its refusal paragraph said the compacted floor *"is all-or-nothing, the call undoes nothing, and the refusal's `log` names the address whose edit survives it"*; **WITHDRAWN — the reversal regenerates and no address's edit survives a refusal** (`D-108`). **The rulings are `strata/decisions.md` · `D-106`, `D-107` and `D-108`, and the measurement behind the first is `strata/research.md` §13; this guide states the rule and takes no measurement of its own.**
|
|
1723
|
+
|
|
1724
|
+
### §9.3 A `delete` and a `rollback` save the `file`-tier data they move
|
|
1725
|
+
|
|
1726
|
+
**A `delete` SAVES, AT EVERY TIER SCOPE, AND THE SAVE IS ITS TERMINAL ARM'S AT THE RECORD'S OWN OP.** **A `file`-tier deletion is durable:** `delete(['k'], 'file')` followed by a fresh `storeCreate` over the same `filePath` answers `AddressNotFound` for what it removed. **★ AND A WHOLE-TARGET DELETE — NO TIER NAMED — SAVES TOO, FROM 2026-11-02 (`strata/decisions.md` · `D-106`):** its op stands at **no tier**, so the save is keyed to **WHAT THE ACT MOVED** — the versions the delete removed, read off the delete's own journal entry — and **where at least one of them stood at the `file` tier the bytes are written, while where none did nothing is written and nothing is owed.** **So the answer in one line: a deletion is durable at ANY scope, provided it removed something durable.**
|
|
1727
|
+
|
|
1728
|
+
**A SUCCESSFUL `rollback` SAVES THE VERSIONS IT PUT BACK, AND THE REVERSION COMES FIRST.** **THE SEMANTIC IS UNMOVED: a reversal reverts to the LAST VALID STATE, and that act is not contingent on any byte** (`D-107` item 3's *"Rollback should still revert to the last valid state"*). **Where a reversal restores a version standing at the `file` tier and the image the path already holds is not the state the reversal left, the RESTORED IMAGE IS WRITTEN — but the writer is the PACKAGE, and the instant is the END OF THE REVERSAL'S CONSTRAINT JUDGEMENT, not the `rollback` verb's own end** (`strata/decisions.md` · `D-112` items 1–2): **the store's `rollback` performs no write at all**, and the save is the same state-keyed write a restore makes — **it writes where the image the path holds is not the state the reversal left and writes nothing where it is** — so the version a reversal restored does **NOT** stand again after a re-boot, and a fresh `storeCreate` reads the value the reversal restored. **THE REVERSAL STILL APPENDS NO JOURNAL ENTRY** — *"a save is an effect and not an op"* — **and the next write's `seq` still continues as though the reversal had not happened; the save needs no op of its own because it is keyed to the STATE the reversal left and not to a record.** **A reversal that restores only `mem`- or `temp`-tier versions writes no byte.** **★ AND A REVERSAL THAT RETURNS THE STORE TO WHERE ITS CALL FOUND IT WRITES NOTHING, AND THAT IS THE SAME RULE APPLIED FOR THE FIRST TIME ON THE ARM THAT HAD IT WRONG — `strata/decisions.md` · `D-111` item 1.** **A reversal the kernel composes to undo a FAILING attempt is COMPENSATION and not an act of yours: it changes nothing durable, so there is nothing to save, and the file's bytes after a refused write are BYTE-IDENTICAL to what they were before the call** — measured, a zero-length file stays zero-length and a standing image's inode is not moved. **A CALLER'S OWN `rollback` IS AN ACT AND STILL SAVES** (item 2). **AND THE COMPENSATION IS EXCLUDED FROM THE SAVE BY THE ORDERING AND NOT BY THAT QUESTION** (`strata/decisions.md` · `D-112` item 3, correcting the sentence that stood here): a compensation reaches NEITHER the judgement NOR the save, so the question the save asks is **whether THIS save has been performed** — the image the path holds against the state the store stands at — and it is the whole of what stops a redundant write, because this arm has no record and no mark to consult.
|
|
1729
|
+
|
|
1730
|
+
**★ AND A REVERSAL THAT MEETS A COMPACTED BASE REGENERATES THE LAST VALID STATE INSTEAD OF REFUSING IT — FROM 2026-11-02 (`strata/decisions.md` · `D-108`), AND THIS IS THE ONE ARM THE OLD TEXT SENTENCE HAD BACKWARDS.** **When the entries a reversal would walk are old enough that the journal has compacted them, the store does NOT answer that the reversal fails and undoes nothing: it REBUILDS the last valid state from what is durable — the `file` tier's own image, and the state the store was created with where no image stands — and then replays what its journal still reaches.** **The reversion comes first and the save follows it here exactly as on the ordinary arm**, so a reversal that regenerated leaves the bytes agreeing with the memory too. **AND WHAT IT CANNOT PUT BACK, STATED PLAINLY BECAUSE YOU WILL MEET IT: a `mem`- or `temp`-tier version whose only record is an entry the compaction has already swallowed is not restored by a regeneration, and no file image carries it.** **That is the undo window's own edge — inside it a reversal puts back what it undid, and beyond it a reversal reaches as far as your journal still reaches.**
|
|
1731
|
+
|
|
1732
|
+
**★ AND A REVERSAL WHOSE SAVE CANNOT LAND TELLS YOU TWO THINGS, AND BOTH ARE TRUE AT ONCE: THE REVERSAL STANDS IN MEMORY, AND THE BYTES WERE NOT UPDATED.** **There is no journal entry to roll back — a reversal appends none — so the store cannot un-restore what it has already restored, and the refusal is `FileCommitFailed` AFTER the reversal stands.** **That is not the write's form and it is not a wider version of it: a write's failed save is rolled back in the journal first and the caller is never handed the rolled-back state, while a reversal's failed save leaves you a state the bytes do not describe — so read `filePath`, or a fresh boot, before you assume the reversal was durable.**
|
|
1733
|
+
|
|
1734
|
+
**★ AND A REVERSAL'S JUDGEMENT MAY NOW RUN YOUR PAIRS' REPAIRS, AND IT DELIVERS THE LISTENERS THOSE REPAIRS' WRITES FIRE — once per distinct handle, with the triggering address as their single argument, AFTER the save and BEFORE `rollback` returns its record** (`strata/decisions.md` · `D-113` item 3, `D-117` item 1). **THE PAIR THAT REFUSES THE STATE A REVERSAL LEAVES MAY CARRY A REPAIR ON ITS OWN ANSWER**: the repair lands in the same commit the judgement stands in, the reversal's judgement then asks again over the state that repair left, and the reversal stands with that edit — **so a `rollback` you expect to throw may instead land a repair and return its record.** **AND THE LISTENERS YOUR REPAIRS' WRITES FIRE ARE INVOKED, WHICH THEY WERE NOT BEFORE**: the body runs after the reversal's save and before this member returns, **and a judgement that refuses, a pair body that throws, and a reversal that fired nothing all invoke NOTHING** — the record is unmoved either way, same `{opId, undoneOps, restoredTo}`, no member added and no status minted.
|
|
1735
|
+
|
|
1736
|
+
**AND A REFUSED REVERSAL'S COMPENSATING RESTORE SAVES, as it has since 2026-10-27:** the restore that puts the state back before a reversal compares the `file` tier's projection of the state it restored with the image the path already holds and, where the two differ, saves the restored image — **so a restore that returns the store to what the file already describes writes no byte, and one that moves a `file`-tier version off it writes.** **So BOTH of a reversal's arms leave the bytes agreeing with the memory — and the two acts that make it so are DIFFERENT ACTS at DIFFERENT INSTANTS, which is the one thing the sentence that stood here had wrong** (`strata/decisions.md` · `D-112` items 1–3): a reversal that STANDS is saved by the package after its judgement (the paragraph above), and a reversal that is REFUSED is saved by the store's own restore, here. **The store's `rollback` writes no byte on either arm.**
|
|
1737
|
+
|
|
1738
|
+
**AND A DELETION OR A REVERSAL THAT CANNOT LAND ITS SAVE IS REPORTED, NOT SWALLOWED:** at a `delete`'s save, `FileCommitFailed` answers AFTER the store's own journal rollback has run (`§9.4`); at a reversal's, it answers after the reversion has stood and before any byte moved (the paragraph above).
|
|
1739
|
+
|
|
1740
|
+
**⟶ WHAT THIS SECTION REPLACED, 2026-11-02 — ONE SENTENCE PER ITEM, AND NO MARK BESIDE ANY SENTENCE ABOVE.** **(a)** Its heading said *"A `delete` and a `rollback` perform no file I/O"*; **WITHDRAWN for both verbs.** **(b)** Its first paragraph said a `delete` *"at ANY tier scope, INCLUDING one that removes `file`-tier versions — performs no file I/O"*, and its one-line advice said *"durability is a property of `file`-tier WRITES … if you delete something durable and the process then restarts, expect it back"*; **WITHDRAWN — a deletion is durable at any scope and a durable removal does not come back.** **(c)** Its 2026-10-29 clause said *"a WHOLE-TARGET delete — no tier named — … nothing is saved and the version still comes back after a re-boot"* and *"a `file`-tier deletion is durable; a whole-target deletion is not"*; **WITHDRAWN — both are false from this date.** **(d)** Its 2026-10-27 clause said a *"SUCCESSFUL `rollback` still performs none either"*; **and its *"the in-memory state restored and the bytes not updated"* half now reads as the reversal's own form rather than a refused arm's alone** — **the first WITHDRAWN, the second WIDENED to the arm this section's third paragraph declares.** **(e)** Its first paragraph said a rollback whose candidate set includes a compacted entry fails and undoes nothing; **WITHDRAWN — the reversal regenerates (`§5.4`, and the paragraph this section adds for it).** **The facts those two clauses established are the paragraphs of this section and not marks inside it.** **The rulings are `strata/decisions.md` · `D-106`, `D-107` and `D-108`; this section takes no measurement of its own.**
|
|
1759
1741
|
|
|
1760
1742
|
### §9.4 When the save itself fails
|
|
1761
1743
|
|
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.
|
|
34
|
+
PUBLISH-README-VERSION-LINE: THE VERSION THIS README DESCRIBES IS `1.9.1`.
|
|
35
35
|
|
|
36
36
|
## The one entry
|
|
37
37
|
|
|
@@ -261,23 +261,9 @@ RANK MOVES FOR THIS: the distinction is a closed set's business (`D-38`) and the
|
|
|
261
261
|
|
|
262
262
|
## The `file` tier, and what actually persists
|
|
263
263
|
|
|
264
|
-
**Durability is produced by a successful `file`-
|
|
265
|
-
|
|
266
|
-
`
|
|
267
|
-
performed no file I/O at any tier scope — **and that was measured false for a `delete` once it became an editing
|
|
268
|
-
verb with its own attempt**: a `file`-tier delete's save is the terminal arm's at the record's own op, so
|
|
269
|
-
**`delete(['k'], 'file')` followed by a fresh `storeCreate` over the same `filePath` answers `AddressNotFound`
|
|
270
|
-
rather than the version it removed** (measured `{"a":1}` → `{}`, boot `1` → absent). **A `ROLLBACK` still performs no
|
|
271
|
-
file I/O at any tier scope** — **a reversal appends no journal op (`M-9`), so its terminal arm has no op of its own
|
|
272
|
-
to save at** — **and a durable version a reversal removed in memory therefore stands again after a re-boot, which is
|
|
273
|
-
the store's declared boot and not a defect.**
|
|
274
|
-
|
|
275
|
-
**A kernel-driven write's `file`-tier save is a DIFFERENT save of a different scope**: it is the package's
|
|
276
|
-
terminal arm, performed on the passing arm alone, before any delivered listener body runs, keyed by the
|
|
277
|
-
record's `op` — and the same bytes may lawfully be committed by both acts. **AND A FAILING SAVE ANSWERS
|
|
278
|
-
`FileCommitFailed` AFTER the store's own journal rollback has already run**, so the caller receives the
|
|
279
|
-
failure and never the half-applied state; the package compensates for nothing. **A rollback whose candidate
|
|
280
|
-
set includes a compacted entry fails `RollbackCompacted` and undoes nothing** — the floor is all-or-nothing.
|
|
264
|
+
**Durability is a SAVE's, and the file saves after ANY action that changes the `file`-tier data** (`strata/decisions.md` · `D-106`, which reads `DD-28`'s *"`file`-tier durability is produced by a successful `file`-tier write ONLY"* as a statement about the acts that OWE a save and no longer as a closed list of them). **So a bare `file`-tier write persists**: `store.write(['k'], 'file', 1)` is saved by the **write's terminal arm on its passing arm** — the package routes a three-position write through the kernel's commit and its attempt, and the addon's `write` verb performs no file I/O on any arm — and a fresh `storeCreate` over the same `filePath` resolves the address. **AND THREE MORE INSTANTS SAVE, EACH FROM 2026-11-02:** **a `delete`'s terminal arm**, at any tier scope — `delete(['k'], 'file')` and `delete(['k'])` both leave the removal standing after a fresh boot, the whole-target one because the act removed a version standing at the `file` tier; **the CLOSE of a registration on its PASSING arm** — a `file`-tier write a repair lands through the registration's own route is saved when the registration's attempt closes, whether it came from `cfg.constraints`, from a boot, from `addConstraint` or from a re-arm, **and a registration that REFUSES saves nothing at the close because it ROLLS BACK what it landed on any of its refusing arms — a constraint body that throws at the re-run included — and leaves the store where the call found it**; and **a reversal** — a `rollback` that puts a `file`-tier version back is saved by the PACKAGE at the end of its constraint JUDGEMENT, on the state the reversal left (`strata/decisions.md` · `D-112` item 2: **the store's own `rollback` performs no write**), so a version a reversal restored does **NOT** stand again after a re-boot. **A `mem`- or `temp`-tier act that leaves every `file`-tier version standing saves nothing, because it moves no byte of the file — which a SCALAR write does at an address it shadows and a CONTAINER write does only where no durable version stood there to be replaced; a container write that REPLACES a `file`-tier version owes its save like any other.**
|
|
265
|
+
|
|
266
|
+
**A SAVE THAT FAILS ANSWERS `FileCommitFailed` AFTER the store's own journal rollback has already run**, so the caller receives the failure and never the half-applied state; the package compensates for nothing. **At a reversal's own save there is no journal entry to roll back — a reversal appends none — so the refusal tells you two things and both are true at once: the reversal stands in memory, and the bytes were not updated; the reversion is never a condition on the save.** **AND A ROLLBACK THAT MEETS A COMPACTED ENTRY NO LONGER FAILS AND UNDOES NOTHING: from 2026-11-02 it regenerates the last valid state from the `file` tier's own image — and from the state the store was created with where no image stands, an image its own loader cannot read being no image at all (`D-118`) — and then saves it** (`strata/decisions.md` · `D-108`, `D-118`), **so a refused registration leaves the store where the call found it on every arm, and the only version a regeneration cannot put back is one the compaction had already swallowed, whose sole record no file image carries.** **⟶ AND ONE SENTENCE THIS PAGE CARRIED IS WITHDRAWN, 2026-11-02: a kernel-driven write's save is NOT *"a different save of a different scope"* from a bare write's, and the same bytes are not *"lawfully committed by both acts"* — there is ONE save, at the terminal arm or at the reversal, and a reader who counted two was counting one act twice.**
|
|
281
267
|
|
|
282
268
|
## The value domain
|
|
283
269
|
|
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.
|
|
19
|
+
PUBLISH-NOTES-VERSION-LINE: THE VERSION THIS CHANGE LIST DESCRIBES IS `1.9.1`.
|
|
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,18 @@ the value to assert against, not the crate's own `Cargo.toml` version.
|
|
|
55
55
|
|
|
56
56
|
---
|
|
57
57
|
|
|
58
|
+
## §1.9.1 · a PATCH — the reversal's save, its delivery, its judgement's repair arm, the refusing registration's rollback, and the corrupt image's rebuild: five behaviours a consumer can observe
|
|
59
|
+
|
|
60
|
+
**THE VERSION IS `1.9.1` AND ITS CLASS IS A PATCH, AND WHAT IT CARRIES IS FIVE BEHAVIOURS, ONE LINE EACH, EACH A THING A CONSUMER CAN DRIVE RATHER THAN A SENTENCE TO TRUST** (`docs/specs/storeroom-file-save-coverage/carrier.md` §7.1; `D-117` item 5; `D-118`).
|
|
61
|
+
|
|
62
|
+
1. **A REVERSAL'S SAVE — THE FILE HOLDS THE STATE THE REVERSAL RESTORED, WRITTEN AFTER THE JUDGEMENT THAT JUDGED IT.** Where the store carries a `filePath`, a `rollback` that passes leaves the file holding the state it restored, saved after that judgement and before the member answers — so a re-opened store boots the reversal's state, and a body the judgement refused cannot have been saved.
|
|
63
|
+
2. **A REVERSAL'S DELIVERY — A LISTENER A REVERSAL'S REPAIR FIRES IS INVOKED ONCE, WITH THE TRIGGERING ADDRESS, BEFORE `rollback` RETURNS.** A reversal's judgement can run your pairs' repairs (`D-113` item 3), and the listeners those repairs' writes fire are now delivered: after that save and before the member returns its record, once per distinct handle, with the triggering address as the single argument. **A judgement that refuses invokes none of them** (`D-117` items 1–3).
|
|
64
|
+
3. **A REVERSAL'S JUDGEMENT RUNS YOUR REPAIRS, AND THE CREDIT IS THE FAILING PAIR'S.** The pair whose repair landed is marked applied — **not the op the repair returned** — and the re-run judges the landing the repair actually made, so a repair answering `undefined` or `{ ok: true }` is credited and only the declared failed arm `{ ok: false, message }` refuses (`D-105`).
|
|
65
|
+
4. **A REFUSING REGISTRATION NOW ROLLS BACK — NO LANDED EDIT SURVIVES A REFUSAL, WITHOUT EXCEPTION.** Every edit a registration landed is restored before the refusal answers; there is no arm of this tree on which a refusal leaves its landing standing (`D-107` item 1, now unconditional).
|
|
66
|
+
5. **A `filePath` WHOSE BYTES ARE NOT THE STORE'S IMAGE NO LONGER REFUSES — A REVERSAL REBUILDS FROM THE CREATION STATE AND THE NEXT SAVE WRITES A READABLE IMAGE.** A present image the store's own loader cannot read is treated as no image at all, exactly as where no file stands: the regeneration rebuilds from the store's creation state and the reversal proceeds, and the save that follows puts a readable image back over the bytes that were never readable as this store's state. **`RollbackCompacted` keeps its place in the twenty statuses and is `DECLARED, NO PRODUCER`** — this release retires no token and mints none (`D-118` items 1–2).
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
58
70
|
## §1.9.0 · a MINOR — the op-free repair credit: what a consumer sees now, the one declaration that moves, what does not move, the twelve re-derived cells, and the arithmetic that says how many commits
|
|
59
71
|
|
|
60
72
|
**⟶ THIS SECTION IS NEW, 2026-11-01, AND IT STATES THE VERSION AND NOT THE CUT-STATE.** `RCA-8(g)` ANNOTATE-BESIDE: **no byte of the sections below moves; this section is added above `§1.8.1`, whose body stands BYTE-FOR-BYTE as the reading of its own date and is read through no clause here.** **AND THIS SECTION DOES NOT STATE WHETHER `1.9.0` HAS BEEN RELEASED: the cut-state is the tag set's to carry and not a document's to state** (`D-57`; the head clause of 2026-10-28 and the authority clause of 2026-10-29 above, which govern every sentence here).
|
package/index.d.ts
CHANGED
|
@@ -625,11 +625,15 @@ export interface DeleteRecord {
|
|
|
625
625
|
* * **`pending` IS THE DELETE'S RESIDUE** — the store's returned set, WHOLE at the landing, minus the
|
|
626
626
|
* handles this delete's own pass checked off as it passed. **IT IS THE SET THE DELIVERY FIRES**: this
|
|
627
627
|
* act delivers `pending`, not the whole `triggered` list, exactly as a write does;
|
|
628
|
-
* * **A `file`-TIER DELETE SAVES ITS OWN OP
|
|
629
|
-
* `commit_file` on the act's PASSING arm, so the bytes
|
|
630
|
-
* clause 2, the same act a `file`-tier write gets). **THE
|
|
631
|
-
*
|
|
632
|
-
*
|
|
628
|
+
* * **A `file`-TIER DELETE SAVES ITS OWN OP — AND A WHOLE-TARGET DELETE SAVES ITS OWN OP TOO, FROM 2026-11-02** —
|
|
629
|
+
* the terminal arm names `op.opId` to the store's `commit_file` on the act's PASSING arm, so the bytes
|
|
630
|
+
* describe the state the delete left (`§2.11` clause 2, the same act a `file`-tier write gets). **THE SAVE
|
|
631
|
+
* IS KEYED TO WHAT THE ACT MOVED AND NOT TO THE OP'S OWN TIER WORD**: a whole-target delete's `op.tier`
|
|
632
|
+
* is `null`, and the store still saves it where the act removed at least one version standing at the `file`
|
|
633
|
+
* tier — **and a `mem`- or `temp`-tier WRITE that PURGED such a version is saved the same way, while a
|
|
634
|
+
* scalar at the same address SHADOWS it and serializes nothing** — and it serializes nothing where the
|
|
635
|
+
* act moved none (`strata/decisions.md` · `D-106`). **THE STORE'S `delete` VERB STILL COMMITS NOTHING**
|
|
636
|
+
* (`DD-28`; `native contract.md §7.2` item 5): the save is the ARM's, at the record's own op;
|
|
633
637
|
* * **THE LOG AND THE REPORT ARE ANSWERABLE BY REF** — `K.log(store, record.attempt)` and
|
|
634
638
|
* `K.report(store, record.attempt)` answer the delete's own attempt after it passed, not only from a
|
|
635
639
|
* refusal's `log` (`attempt-lifecycle.md §2.4` item 1: those items take an `AttemptRef` or its `id`);
|
|
@@ -951,6 +955,16 @@ export interface StoreInstance {
|
|
|
951
955
|
* (`D-38`, `D-40`, `D-41`). **A TypeScript signature has no `throws` clause, so this is the honest place to say
|
|
952
956
|
* it**: *the return type describes what a call returns when it returns, and the throw is part of the contract.*
|
|
953
957
|
* **A lawful reversal is unchanged** — same record, same members, no `log`. **Callers on `1.0.1` must handle it.**
|
|
958
|
+
*
|
|
959
|
+
* **⟶ AND A LAWFUL REVERSAL'S INVOCATION OF YOUR REGISTERED LISTENERS IS NOT A MEMBER AND NOT A THROW — THE
|
|
960
|
+
* BODIES RUN BEFORE THE RECORD IS RETURNED** (`strata/decisions.md` · `D-117` item 1, which rules a repair's
|
|
961
|
+
* write's `triggered` listeners delivered at this instant exactly as at a write's commit). **A pair that
|
|
962
|
+
* refuses the state the reversal leaves may carry a REPAIR, that repair lands in the judgement's own commit,
|
|
963
|
+
* and the listeners the repair's write fires are invoked ONCE PER DISTINCT HANDLE with the TRIGGERING ADDRESS
|
|
964
|
+
* as their single argument, AFTER the reversal's save and BEFORE this member returns** (`surface.md §2.4`
|
|
965
|
+
* rule 3; `PAR-JS-12`). **THE RECORD IS UNMOVED** — `{opId, undoneOps, restoredTo}`, no member added and no
|
|
966
|
+
* status minted — **and a judgement that refuses, a pair body that throws, and a reversal that fired nothing
|
|
967
|
+
* all invoke NOTHING.**
|
|
954
968
|
*/
|
|
955
969
|
/**
|
|
956
970
|
* Begin watching the addresses the caller names under the caller's own handle.
|
package/index.mjs
CHANGED
|
@@ -91,7 +91,7 @@ import { admittedConstraintBatch, constraintAddress, decodeBaseState, decodeJour
|
|
|
91
91
|
// which now name no address at all — `D-98` §3.4). The function keeps its home and its other readers in the
|
|
92
92
|
// entry's other parts.
|
|
93
93
|
import { FORGET_PAIR, INSTANCES, STORE_INDEX, STORE_RETIREMENT, TERMINAL_ARM, appendRepairLeg, carryRefusal, closeCommit, crossTriggered, currentWindow, entryOf, installAttemptSeam, isStoreReceiver, openCommit, writeRefusal } from './src/entry/state.mjs';
|
|
94
|
-
import { commitPositionRefusal, constraintOverwrittenByListen, deliver, installListenRoute, installRegistrationSeam, listenerStandingAt, listenOn, registerOn, terminalArm } from './src/entry/delivery.mjs';
|
|
94
|
+
import { commitPositionRefusal, constraintOverwrittenByListen, deliver, installListenRoute, installRegistrationSave, installRegistrationSeam, listenerStandingAt, listenOn, registerOn, terminalArm } from './src/entry/delivery.mjs';
|
|
95
95
|
import { ARGUMENT_POSITION_FIRST, addressSetKey, carryConstraint, constraintDetached, constraintPairKey, constraintRefuse, constraintSite, constraintUncarried, constraintDelete, constraintWrite, constraintsKernel, currentRaise, defineDiscardWitness, enumerateConstraints, judgeReversal, registrationCrossing, restoreHeldPair, reversalWatch, unionAddressSets, withEmptyLog, witnessDiscardedReversal, witnessRaise, withdrawStanding } from './src/entry/constraints.mjs';
|
|
96
96
|
const require_ = createRequire(import.meta.url);
|
|
97
97
|
const ADDON_PATH = join(dirOf(fileURLToPath(import.meta.url)), 'build', 'Release', 'storeroom_js_binding.node');
|
|
@@ -698,7 +698,12 @@ export function storeCreate(cfg) {
|
|
|
698
698
|
// THE ENTRY IS INVOKED BY `Reflect.apply`, NOT BY A SPREAD — see `read`'s clause of 2026-10-24 above.
|
|
699
699
|
const answer = carryRefusal(() => Reflect.apply(entryOf().rollback, this, args), args);
|
|
700
700
|
// AND THE JUDGEMENT AFTER IT, keyed to the store's own echo of the id the reversal named.
|
|
701
|
-
|
|
701
|
+
// **⟶ AND IT IS HANDED THIS INSTANCE'S OWN STATE FROM 2026-11-02 — `D-117` ITEM 2's DELIVERY**, whose one
|
|
702
|
+
// recipient set is the caller's registry and whose receiver is this member's own: `deliver` is the
|
|
703
|
+
// `surface.md §2.4` loop, so it takes the state that holds both (`§2.7` (iii) (a)). **NOTHING ELSE IN THIS
|
|
704
|
+
// MEMBER MOVES** — not its record (`:702`–`:706`), not `carryRefusal`, not the witness — **and the
|
|
705
|
+
// position is a private frame's fourth, not a member, an arity or a declared surface.**
|
|
706
|
+
judgeReversal(instance, watched, answer.opId, state);
|
|
702
707
|
const record = {
|
|
703
708
|
opId: answer.opId,
|
|
704
709
|
undoneOps: answer.undoneOps,
|
|
@@ -1570,9 +1575,23 @@ export function storeCreate(cfg) {
|
|
|
1570
1575
|
// **IT CHANGES NO ORDER OF ACTS**: the batch still arms `cfg.constraints` first and `cfg.listeners` are still
|
|
1571
1576
|
// applied afterwards through `listen` (`C-15`, unmoved), because installing a channel is not an act. **AND THE
|
|
1572
1577
|
// CHANNEL ADDS NO MEMBER** — `Symbol.for`-keyed and `enumerable: false`, so the product's declared FOURTEEN own
|
|
1573
|
-
// members are unmoved (`A117` (D6)), exactly as the
|
|
1578
|
+
// members are unmoved (`A117` (D6)), exactly as the channels beside it.
|
|
1574
1579
|
// ═════════════════════════════════════════════════════════════════════════════════════════════════════
|
|
1575
1580
|
installListenRoute(instance, state);
|
|
1581
|
+
// ═════════════════════════════════════════════════════════════════════════════════════════════════════
|
|
1582
|
+
// **⟶ AND THE REGISTRATION'S OWN SAVE CHANNEL, INSTALLED HERE FOR THE SAME MEASURED REASON — `D-106` ARM 1,
|
|
1583
|
+
// 2026-11-02.** **THE REGISTRATION'S CLOSE OWES A SAVE THE TERMINAL ARM NEVER PERFORMS**, and this is the
|
|
1584
|
+
// channel it names the last `file`-tier op its route landed to (`delivery.mjs`'s `installRegistrationSave`,
|
|
1585
|
+
// whose body is the SAME `commitFile` frame the terminal arm calls — one save path, two callers).
|
|
1586
|
+
//
|
|
1587
|
+
// **THE INSTALL SITE IS THIS NEIGHBOURHOOD AND NOT `:1709`/`:1715`'S, AND THE REASON IS THE SAME BYTE THE CLAUSE
|
|
1588
|
+
// ABOVE PRINTS**: the construction's batch arming walk below reaches `K-1` BEFORE either of those two seams
|
|
1589
|
+
// runs, so a save channel installed there would leave a `storeCreate` carrying `cfg.constraints` — and a boot
|
|
1590
|
+
// carrying them — with no route to the save at all. **IT CHANGES NO ORDER OF ACTS AND ADDS NO MEMBER**:
|
|
1591
|
+
// `Symbol.for`-keyed and `enumerable: false`, so the product's declared FOURTEEN own members are unmoved
|
|
1592
|
+
// (`A117` (D6)).
|
|
1593
|
+
// ═════════════════════════════════════════════════════════════════════════════════════════════════════
|
|
1594
|
+
installRegistrationSave(instance, state);
|
|
1576
1595
|
// **⟶ `docs/specs/storeroom-js/surface.md §2.12` ITEM 1 CLAUSE (b): `storeCreate` REGISTERS EACH OF `cfg.constraints`' ELEMENTS THAT CARRIES
|
|
1577
1596
|
// ITS OWN FUNCTION AT `K-1`, AT THE INSTANCE IT IS CONSTRUCTING** — the SAME call the ADD route makes, so
|
|
1578
1597
|
// a batch-populated pair is a pair the entry carries on the same footing (`docs/specs/storeroom-js/surface.md §2.12` item 3's preamble clause
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "provident-storeroom",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
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.
|
|
45
|
-
"@auspicion/provident-storeroom-js-linux-arm64-gnu": "1.9.
|
|
46
|
-
"@auspicion/provident-storeroom-js-darwin-x64": "1.9.
|
|
47
|
-
"@auspicion/provident-storeroom-js-darwin-arm64": "1.9.
|
|
48
|
-
"@auspicion/provident-storeroom-js-win32-x64-msvc": "1.9.
|
|
44
|
+
"@auspicion/provident-storeroom-js-linux-x64-gnu": "1.9.1",
|
|
45
|
+
"@auspicion/provident-storeroom-js-linux-arm64-gnu": "1.9.1",
|
|
46
|
+
"@auspicion/provident-storeroom-js-darwin-x64": "1.9.1",
|
|
47
|
+
"@auspicion/provident-storeroom-js-darwin-arm64": "1.9.1",
|
|
48
|
+
"@auspicion/provident-storeroom-js-win32-x64-msvc": "1.9.1"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|