provident-storeroom 1.9.0 → 1.9.2
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 +72 -72
- package/README.md +19 -18
- package/RELEASE-NOTES.md +21 -1
- package/index.d.ts +109 -5
- package/index.mjs +41 -5
- package/package.json +6 -6
- package/src/entry/constraints.mjs +535 -49
- package/src/entry/delivery.mjs +55 -3
- package/src/entry/kernel-attempt.mjs +20 -2
- package/src/entry/kernel-foundations.mjs +34 -0
- 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.2`.
|
|
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
|
|
@@ -729,6 +738,18 @@ whose body writes `['b'] = 'bad'`, and a constraint at `['b']` that refuses `'ba
|
|
|
729
738
|
DIRECTLY is REFUSED, same `ConstraintPassRefused`, same message.** **So the constraint was armed throughout,
|
|
730
739
|
and what differs is only WHAT CROSSES — a caller's own refusal crosses, and a listener's does not.**
|
|
731
740
|
|
|
741
|
+
**⟶ AND TWO BYTES OF THAT MEASUREMENT ARE SUPERSEDED BY A LATER RULING, 2026-11-02 — `D-119`: THE SUBSTANCE IS
|
|
742
|
+
UNMOVED AND THE BYTE STRING IS NOT.** `RCA-8(g)` ANNOTATE-BESIDE: **every measurement above stands as the reading of
|
|
743
|
+
its own date and is read THROUGH this clause; what the drive printed RAW printed what the tree answered then, and
|
|
744
|
+
nothing here re-measures it.** **THE TWO BYTES ARE NAMED SO NEITHER IS FOUND LATER BY A READER WHO ASSUMED THEY STILL
|
|
745
|
+
STOOD: this bullet's *"no refusal, no status and no `log` member"*, and the control's *"RETURNED ITS OWN RECORD with
|
|
746
|
+
no status and no `log`"*.** **FROM `D-119` THE CALLER'S PASSING RECORD DOES CARRY `log` — AND IT CARRIES ITS OWN
|
|
747
|
+
COMMIT'S ENTRIES AND NOTHING OF THE LISTENER'S**, because a listener body's act is in the listener's own commit
|
|
748
|
+
(`D-60`; `D-53`) and that commit's list never crosses to the caller whose delivery fired it. **SO THE SENTENCE TO
|
|
749
|
+
CARRY AWAY IS UNCHANGED IN SUBSTANCE AND SHARPER IN FORM: what crosses is YOUR OWN act's list, and never the
|
|
750
|
+
listener's** — **a listener's refusal remains CONTAINED**, exactly as the next subsection states, and this member
|
|
751
|
+
does not become a channel for it. (`D-119`; `D-60`; `D-53`; `index.d.ts`'s `WriteRecord` clause of the same date.)
|
|
752
|
+
|
|
732
753
|
**WHAT THAT MEANS FOR YOU, SAID PLAINLY: YOU CANNOT READ A LISTENER'S SUCCESS FROM ANY RETURN VALUE.** **No
|
|
733
754
|
member, no log entry and no status on your record says a listener's own write landed; the only way your code
|
|
734
755
|
learns it is if the listener body tells you out of band.** **That is the design and not a gap, and it is the
|
|
@@ -911,7 +932,11 @@ your application carries, not state your store stores.**
|
|
|
911
932
|
|
|
912
933
|
**(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
934
|
|
|
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
|
|
935
|
+
**(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.
|
|
936
|
+
|
|
937
|
+
**★ 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.**
|
|
938
|
+
|
|
939
|
+
**★ 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
940
|
|
|
916
941
|
**(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
942
|
|
|
@@ -1090,6 +1115,8 @@ its address.** **The read is the whole difference.**
|
|
|
1090
1115
|
2. **THE ADDRESS YOUR REPAIR'S LISTENERS CARRY IS THE REPAIR'S OWN OP ADDRESS**, because the delivery's one argument is the leg's op and the leg is the repair's write's record where a repair landed. **It is ONE address for the whole batch, and a doubly-fired handle's attribution is asserted nowhere** (`§6.4`'s item `4`; `DD-22`, `DD-37`).
|
|
1091
1116
|
3. **`RepairContext.pending` GAINS THE SAME SOURCE — AND THIS IS A MEMBER YOUR OWN BODY READS** (the record clause above, `:1073`; `index.d.ts`'s `RepairContext`). The member is a FRESH LIST read per evaluation off the commit's record, **so in a commit with MORE THAN ONE REPAIR, every repair after the first is handed a `pending` carrying an EARLIER repair's listener elements.** **Its declared shape does not move** — six members, the pair element `{handle, address}`, a fresh list — **and the alternative is refused**: handing a repair the member minus those elements would make the context disagree with the record it stands for.
|
|
1092
1117
|
|
|
1118
|
+
**⟶ AND THE REPAIR THAT RAN FOR YOUR WRITE LEAVES ITS ENTRY ON YOUR OWN ANSWER, 2026-11-02 — `D-119`.** **THE LIST THIS SECTION HAS JUST DESCRIBED IS NOT ONLY A REFUSAL'S: a `write` that PASSES carries the commit's own log at `record.log`** (`D-119`: *"Cache the log and pass to the surface on resolution, same as on failure"*), **so the `repair-run` entry a repair left is a datum YOU read rather than infer — and that entry's `opId` is THE OP THE REPAIR LANDED**, which is the address it moved your write to, with the record's own `op` beside it naming the commit's last landing. **THE DELIVERY ABOVE IS UNMOVED**: `D-104` item `1`'s set is still `pending`'s, and what is DELIVERED is not this clause's subject — **one list is read by the caller and by a listener body that holds the same answer, and the delivery's membership does not move with it** (`D-119` item 4; `surface.md §2.7` item `6`). **AND `[]` ON THIS ARM IS HONEST WHERE THE WRITE JOINED A COMMIT RATHER THAN OPENING ONE**: a repair body's own nested `write` answers `[]`, and the enclosing write's answer carries the entries, its own and the repair's alike (`§8.0a`'s clause of the same date). **No member of your repair's record moves, and no member of the commit's record moves.** (`D-119`; `D-113` item 3; `D-53`.)
|
|
1119
|
+
|
|
1093
1120
|
**AND ONE THING THIS ACT MOVES THAT IS NOT A CLAIM — A LINE NUMBER, DECLARED RATHER THAN LEFT TO BE FOUND.** The two clauses of 2026-11-01 add **`12`** lines inside `§6.4` (the clause opens at `:662`) and **`7`** inside `§7.6` (the clause opens at `:1088`), so **a line number this guide printed in the tree the act inherited reads `+12` where it named a line at or after `§6.4`'s clause and `+19` where it named a line at or after `§7.6`'s**; **a printed number is read through that table until a re-anchoring pass re-derives it at its own site, and the words and the claims each of them carries are unmoved by this act** (`RCA-8(g)`; the same shape the 2026-11-01 anchor's own re-anchoring declared, and `typecheck/consumer-fixture.ts`'s citation of the worked example stays owed to its owner).
|
|
1094
1121
|
|
|
1095
1122
|
**⟶ AND HERE IS THE EXAMPLE THIS SECTION OWES — a repair that lands SOMEWHERE ELSE, which is this section's own subject, self-contained and driveable as written through the package's one export.** It is the shape the package's own e2e drive takes (`tests/e2e/repair-in-commit.test.mjs:95-115`), with the commit named by the repair's own hand:
|
|
@@ -1508,6 +1535,8 @@ refusal (`js/contract.md §2.6`'s `D-53` clause, item `6`).
|
|
|
1508
1535
|
**⟶ AND THE RECORD YOU ARE HANDED IS FINAL, 2026-10-28 — `D-55` ITEM 6 · `DEF-AO`, MEASURED.** `RCA-8(g)` ANNOTATE-BESIDE: **every clause above stands BYTE-FOR-BYTE and is read THROUGH this one; the log's home on the commit, its entries and its identity are unmoved.** **THE RULING, THE ARCHITECT, VERBATIM: *"Attempts don't log. This is what the commits are for. The commits have their log handed off to the client and are dropped after closing out."*** **SO: a closed attempt's report and its log DO NOT MUTATE AFTER THE HANDOFF — a consumer holding a refusal is holding the record, and a record that changes after it is given out is not a record.** **WHAT THE PACKAGE DOES: at the end of the commit's own processing — the restarted check's amendment included, which is part of closing out — the report and the log it carries are `Object.freeze`d**, so a later act can neither append an entry nor re-member the report. **THE LIST IS THE SAME LIST** (`D-53`: *"the crossed report IS that list"*) — the refusal you caught and `report(store, ref)`'s `log` are ONE array, now sealed. **AND THE LIST IS SEALED WITH ITS COMMIT**, never at a nested attempt's own handoff: a constraint body's nested write is part of your commit (`D-53`), so freezing the list from inside it would stop the enclosing attempt's own `append`. (`tests/e2e/discard-witness.mjs`'s `DW-10.6` holds the crossed refusal and the closed report, drives four further acts, and prints the bytes before → after beside `Object.isFrozen` on both; RED under a revert of the seal.)
|
|
1509
1536
|
**⟶ AND ITS SECOND HALF IS NOW DELIVERED, 2026-10-28 — `D-58` · THE DROP, AND NOTHING OF A RUNNING COMMIT.** `RCA-8(g)` ANNOTATE-BESIDE: **every clause above stands BYTE-FOR-BYTE and is read THROUGH this one; the seal, the list's identity and the log's home on the commit are unmoved.** **THE RULING, THE ARCHITECT, VERBATIM: *"The client does not need any insight into the current state of a commit/attempt before it completes. Don't expose any of it. After a commit/attempt resolves/rejects, the store does not need to retain the message log or other client-returned data. Don't retain it."*** **WHAT THAT MEANS FOR YOU, IN TWO SENTENCES. (1) A RUNNING COMMIT HANDS YOU NOTHING**: the log reader refuses a live attempt with `KC-7` — the same refusal the report reader already answered — so an in-flight `seq` list is no longer a thing you can read; **and (2) ONCE THE COMMIT RESOLVES OR REJECTS, THE STORE KEEPS NO MESSAGE LOG**: what it goes on holding is the outcome, the ops and the reversal's record, and the list it handed you — the entries on the refusal you caught, or on `report`'s return — is the ONLY copy, sealed at the handoff. **WHAT THIS COSTS, SAID PLAINLY**: on an arm whose handoff carries no list at all — a repair body that throws, and a PASSING `write` (whose answer is `{op, watched, triggered}` and has never carried one) — the entries are no longer readable after the call. **THAT IS THE RULING'S PRICE AND NOT A DEFECT**, and it is why the seal mattered: a record you hold is the record. (`tests/e2e/discard-witness.mjs`'s `DW-11.1`–`DW-11.4` print both readers, the pass's own instant, the retained shape before → after and the single-copy proof; each RED under its own `/tmp` revert.)
|
|
1510
1537
|
|
|
1538
|
+
**⟶ AND THE PASSING HALF OF *"WHAT THIS COSTS"* IS WITHDRAWN, 2026-11-02 — `D-119` · THE LOG CROSSES ON RESOLUTION TOO.** `RCA-8(g)` ANNOTATE-BESIDE: **every clause above stands BYTE-FOR-BYTE and is read THROUGH this one; the seal, the list's identity with the commit's, the drop and the running commit's `KC-7` are all unmoved.** **THE RULING, THE ARCHITECT, VERBATIM: *"Cache the log and pass to the surface on resolution, same as on failure. This is needed so that manual data changes can check what additional data changed downstream of their request."*** **SO ONE HALF OF THE SENTENCE ABOVE IS WITHDRAWN BY NAME** — *"on an arm whose handoff carries no list at all — a repair body that throws, and a PASSING `write` (whose answer is `{op, watched, triggered}` and has never carried one) — the entries are no longer readable after the call"* — **and the OTHER half stands: a repair body that throws still leaves no record at all.** **WHAT YOU READ NOW: a `write` and a `delete` that pass carry the commit's own list at `record.log`, non-enumerably and present on every passing answer, and a `rollback` that passes carries its judgement's own list** — the entries in the order the commit appended them, and, on the first two verbs, **the same array a refusal about that commit crosses with**, so a pass and a later refusal cannot disagree. **THE `[]` ARMS ARE FOUR AND EACH MEANS *this act appended nothing it can report***: a nested call inside a constraint or a repair body (the commit it joined has not crossed, and the act that owns it reports the entries), a `D-3` delete, a reversal's non-judging arms, and a judgement that ran and appended nothing — **and a passing write over a store carrying NO pair answers ONE entry, `kind === 'commit'`, because that entry is appended unconditionally.** **NOTHING THE STORE RETAINS MOVES**: `dropHandoff` still leaves `{attempt, ops, outcome, rollback}` and no list, so the answer's list is still the ONLY copy. (`D-119`; `D-58`; `D-53`; `index.d.ts`'s `WriteRecord`, `DeleteRecord` and `RollbackRecord` clauses of the same date; `tests/e2e/resolution-log.test.mjs`'s `RSL-1`–`RSL-9` print the readings.)
|
|
1539
|
+
|
|
1511
1540
|
**AND THE RECORD THAT SURVIVES THE HANDOFF HAS FOUR MEMBERS, NAMED HERE BECAUSE THE CLAUSE ABOVE SAYS WHAT IT HOLDS WITHOUT SPELLING ITS SHAPE: `{attempt, ops, outcome, rollback}`** — the attempt's identity, the ops the commit appended, the outcome it reached, and the reversal's record where one ran — **and NO message list.** **A log entry's position is its ARRAY INDEX (`D-65`), so *"an in-flight `seq` list"* above is read as an in-flight ENTRY list**: there is no `seq` member in it and no list to read while the attempt runs. (`D-58`; `D-65`; `bindings/js/src/entry/kernel-terminal.mjs`'s `dropHandoff`, which is where the closed record's four members are written; `D-55` item `6` is the seal they are frozen under.)
|
|
1512
1541
|
|
|
1513
1542
|
|
|
@@ -1689,73 +1718,44 @@ one** (`archive/pre-strata-docs-2026-10-24/docs/defects.md`, `DEF-2026-10-13-D`;
|
|
|
1689
1718
|
point `filePath` at a symlink deliberately, know that the store will end up holding a regular file at that name
|
|
1690
1719
|
and the link will be gone.**
|
|
1691
1720
|
|
|
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
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
`
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
**⟶ AND
|
|
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.**
|
|
1721
|
+
### §9.2 The file saves after ANY act that changes the `file`-tier data
|
|
1722
|
+
|
|
1723
|
+
**`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.**
|
|
1724
|
+
|
|
1725
|
+
**WHERE THE SAVE HAPPENS — FOUR INSTANTS, AND EACH ONE IS NAMED, BECAUSE A SAVE NAMED WITHOUT ITS INSTANT IS THE SENTENCE THAT HID THIS:**
|
|
1726
|
+
|
|
1727
|
+
- **(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).
|
|
1728
|
+
- **(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`).
|
|
1729
|
+
- **(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)).
|
|
1730
|
+
- **(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.
|
|
1731
|
+
|
|
1732
|
+
**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.**
|
|
1733
|
+
|
|
1734
|
+
**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.**
|
|
1735
|
+
|
|
1736
|
+
**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.
|
|
1737
|
+
|
|
1738
|
+
**⟶ AND YOUR PASSING ANSWER NAMES WHAT YOUR ACT MOVED DOWNSTREAM, 2026-11-02 — `D-119`.** **THE RULING, THE ARCHITECT, VERBATIM: *"Cache the log and pass to the surface on resolution, same as on failure. This is needed so that manual data changes can check what additional data changed downstream of their request."*** **SO A `write` AND A `delete` THAT PASS ANSWER WITH THE COMMIT'S OWN LIST AT `record.log`** — **the `constraint-check` entry for each pair the pass asked, the `repair-run` entry for every repair that landed an edit, and the `commit` entry that closes the arm, in the order the commit appended them, and the same list a refusal about that commit carries** — **so what your act moved beyond what you asked for is readable off the answer you already hold, WITHOUT a second call, a `read` sweep or a diff**; **a `rollback` that passes carries its judgement's own list the same way**, which is where a repair the judgement ran leaves its entry (`D-113` item 3; `D-117` item 1). **The member is non-enumerable and present on every passing answer, and `[]` means *this act appended nothing it can report*** — never *"nothing happened"*: a nested call inside a constraint or a repair body answers `[]` because the commit it joined has not crossed, and the act that owns that commit reports the entries. **AND NOT ONE BYTE OF THE SAVE RULE ABOVE MOVES: this paragraph is what you can AUDIT, and (I)–(IV) is what is SAVED.** (`D-119`; `D-53`; `D-58`; `index.d.ts`'s three record clauses of the same date.)
|
|
1739
|
+
|
|
1740
|
+
**⟶ 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.**
|
|
1741
|
+
|
|
1742
|
+
### §9.3 A `delete` and a `rollback` save the `file`-tier data they move
|
|
1743
|
+
|
|
1744
|
+
**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.**
|
|
1745
|
+
|
|
1746
|
+
**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.
|
|
1747
|
+
|
|
1748
|
+
**★ 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.**
|
|
1749
|
+
|
|
1750
|
+
**★ 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.**
|
|
1751
|
+
|
|
1752
|
+
**★ 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.
|
|
1753
|
+
|
|
1754
|
+
**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.**
|
|
1755
|
+
|
|
1756
|
+
**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).
|
|
1757
|
+
|
|
1758
|
+
**⟶ 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
1759
|
|
|
1760
1760
|
### §9.4 When the save itself fails
|
|
1761
1761
|
|
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.2`.
|
|
35
35
|
|
|
36
36
|
## The one entry
|
|
37
37
|
|
|
@@ -96,6 +96,21 @@ off the record itself. **Measured on this checkout through the published entry:
|
|
|
96
96
|
answer `1` entry where a raise was discarded and `[]` where none was, and `read`'s answer carries the member
|
|
97
97
|
nowhere.** (`D-78`; `D-75`; `D-49`; the long-form section is the shipped guide's `§12.6b`.)
|
|
98
98
|
|
|
99
|
+
**★ AND `log` IS CARRIED BY THE THREE RECORDS A PASSING CALL ANSWERS — `D-119`, 2026-11-02, AND IT IS THE RULE
|
|
100
|
+
ABOVE READ FOR A THIRD MEMBER.** **`log` is carried by `write`'s record, by `delete`'s receipt and by `rollback`'s
|
|
101
|
+
record, NON-ENUMERABLY and PRESENT ON EVERY PASSING ANSWER** — the commit's own entries, in the order the commit
|
|
102
|
+
appended them: the `constraint-check` entry for each pair the pass asked, the `repair-run` entry for every repair
|
|
103
|
+
that landed an edit, and the `commit` entry that closes the arm. **`[]` means this act appended nothing it can
|
|
104
|
+
report and never "nothing happened"**: a nested call inside a constraint or repair body answers `[]` because the
|
|
105
|
+
commit it joined has not crossed**, and the act that owns that commit reports the entries. **A passing write over
|
|
106
|
+
a store carrying no pair answers ONE entry, `kind === 'commit'`.** **A spread or `Object.assign` copy loses `log`
|
|
107
|
+
exactly as it loses `discarded`** — read it off the record itself. **The FOURTEEN and the enumerable shapes are
|
|
108
|
+
unmoved**, and what you gain is the audit `D-119` exists for: on a `write` or a `delete` it is **the same list, the
|
|
109
|
+
same entries and the same positions a refusal about that commit carries**, so a pass and a later refusal on one
|
|
110
|
+
commit cannot disagree — while a `rollback`'s list is its JUDGEMENT's, where a repair it ran leaves its entry.
|
|
111
|
+
(`D-119`; `D-53`; `D-58`; the long-form section is the shipped guide's `§9.2`, and the `[]` arms are `§8.0a`'s
|
|
112
|
+
clause of this date.)
|
|
113
|
+
|
|
99
114
|
**THE RECEIVER IS THE STORE, SO NO CALL CARRIES AN `instance` POSITION** (`surface.md §2.1` (e) item 3):
|
|
100
115
|
`store.write(address, tier, value)` is the shape every method takes, and a leading `instance` is a SUPERSEDED
|
|
101
116
|
SPELLING — wrong, not redundant. **AND NO OWN MEMBER IS A DATA MEMBER:** there is no `store.data`, no `state`
|
|
@@ -261,23 +276,9 @@ RANK MOVES FOR THIS: the distinction is a closed set's business (`D-38`) and the
|
|
|
261
276
|
|
|
262
277
|
## The `file` tier, and what actually persists
|
|
263
278
|
|
|
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.
|
|
279
|
+
**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.**
|
|
280
|
+
|
|
281
|
+
**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
282
|
|
|
282
283
|
## The value domain
|
|
283
284
|
|
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.2`.
|
|
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,26 @@ the value to assert against, not the crate's own `Cargo.toml` version.
|
|
|
55
55
|
|
|
56
56
|
---
|
|
57
57
|
|
|
58
|
+
## §1.9.2 · a PATCH — the log a passing call answers with: one behaviour a consumer can observe
|
|
59
|
+
|
|
60
|
+
**THE VERSION IS `1.9.2` AND ITS CLASS IS A PATCH, AND WHAT IT CARRIES IS ONE BEHAVIOUR, ONE LINE, A THING A CONSUMER CAN DRIVE RATHER THAN A SENTENCE TO TRUST** (`docs/specs/storeroom-file-save-coverage/resolution-log.md`; `D-119`). **`§1.9.1` BELOW STANDS AT THE BYTES IT WAS CUT WITH — FIVE BEHAVIOURS, ITS SIXTH CLAUSE ABSENT FROM IT — AND THIS SECTION CARRIES THE BEHAVIOUR WHICH THAT SECTION MUST NOT CLAIM** (`D-119` item 5).
|
|
61
|
+
|
|
62
|
+
1. **A passing call answers with the commit's log** — the entries the act appended, on a resolution and not only on a refusal — at `record.log` on a `write`'s record and a `delete`'s receipt, and the judgement's list on a passing `rollback`; non-enumerable, so no declared shape and no `Object.keys` census moves; cached at the crossing and released with the answer, the store retaining nothing (`D-119`).
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## §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
|
|
67
|
+
|
|
68
|
+
**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`).
|
|
69
|
+
|
|
70
|
+
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.
|
|
71
|
+
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).
|
|
72
|
+
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`).
|
|
73
|
+
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).
|
|
74
|
+
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).
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
58
78
|
## §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
79
|
|
|
60
80
|
**⟶ 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
|
@@ -570,6 +570,42 @@ export interface WriteRecord {
|
|
|
570
570
|
* reads it through `Object.getOwnPropertyDescriptor(record, 'discarded')`. **A future pass that owns the census
|
|
571
571
|
* owes it the typed line.**
|
|
572
572
|
*/
|
|
573
|
+
/**
|
|
574
|
+
* **⟶ ADDED 2026-11-02 — THE RESOLUTION LOG: A PASSING WRITE ANSWERS WITH THE COMMIT'S OWN LIST**
|
|
575
|
+
* (`strata/decisions.md` · `D-119`, the architect, verbatim: *"Cache the log and pass to the surface on
|
|
576
|
+
* resolution, same as on failure. This is needed so that manual data changes can check what additional data
|
|
577
|
+
* changed downstream of their request"*).
|
|
578
|
+
*
|
|
579
|
+
* **`record.log` IS A `readonly LogEntry[]` AT RUNTIME — THE ENTRIES THIS COMMIT APPENDED, IN APPEND ORDER**:
|
|
580
|
+
* the `constraint-check` entry for each pair the pass asked, the `repair-run` entry for every repair that
|
|
581
|
+
* landed an edit (each naming the op it landed at `opId`, so the address a repair moved to is readable rather
|
|
582
|
+
* than inferable), and the `commit` entry that closes the arm — **the same list, the same objects and the same
|
|
583
|
+
* positions a refusal about this commit carries**, because it IS that array and not a copy of it (`D-53`; `D-119`
|
|
584
|
+
* item 4). **A passing write over a store carrying NO pair answers ONE entry, `kind === 'commit'`** — that entry
|
|
585
|
+
* is appended unconditionally — so `[]` is never that arm's answer.
|
|
586
|
+
*
|
|
587
|
+
* **IT IS A NON-ENUMERABLE OWN ACCESSOR AT THE NAME THE FAILURE FORM USES** (`StoreRefusal.log`),
|
|
588
|
+
* `enumerable: false`, `configurable: true`, exactly as `discarded` above is carried — so `Object.keys(record)`
|
|
589
|
+
* is still the THREE declared members and every deep-equality over a write's answer reads exactly what it read
|
|
590
|
+
* before. **A spread or `Object.assign` copy loses it, as it loses `discarded`.** `Object.getOwnPropertyNames`
|
|
591
|
+
* is the one census that gains the name, which is declared rather than discovered.
|
|
592
|
+
*
|
|
593
|
+
* **THE READ ANSWERS ONE CACHED REFERENCE**: the array the commit's handoff froze, stable after it (`D-119`
|
|
594
|
+
* item 4: *"the list is cached at the crossing and stable after it"*) — a write to it throws under strict mode.
|
|
595
|
+
* **It is NOT a live view, and that is where it differs from `discarded` above**, whose accessor must read at
|
|
596
|
+
* the read: a log is complete only once every act that can append to it has finished, which the crossing is.
|
|
597
|
+
*
|
|
598
|
+
* **`[]` ARISES IN ONE SHAPE HERE AND IT IS HONEST**: a call that JOINED an enclosing commit — a constraint
|
|
599
|
+
* body's or a repair body's nested `write` — answers `[]`, because that commit's list has not crossed and this
|
|
600
|
+
* call owns none of it; **the act that owns that commit reports the entries, the nested call's own included.**
|
|
601
|
+
* A frozen prefix copy is refused: it would hold fewer entries than the enclosing answer and the two would
|
|
602
|
+
* disagree, which is the one thing `D-119` item 4 forbids.
|
|
603
|
+
*
|
|
604
|
+
* **AND WHY IT IS A DOCBLOCK AND NOT A TYPED LINE — the same sentence `discarded` above carries, for the same
|
|
605
|
+
* reason:** the census that fixes this record at three is outside this pass's write scope, so a typed member
|
|
606
|
+
* would redden a green leg without moving the runtime at all. **A future pass that owns the census owes it the
|
|
607
|
+
* typed line.**
|
|
608
|
+
*/
|
|
573
609
|
}
|
|
574
610
|
|
|
575
611
|
/**
|
|
@@ -625,11 +661,15 @@ export interface DeleteRecord {
|
|
|
625
661
|
* * **`pending` IS THE DELETE'S RESIDUE** — the store's returned set, WHOLE at the landing, minus the
|
|
626
662
|
* handles this delete's own pass checked off as it passed. **IT IS THE SET THE DELIVERY FIRES**: this
|
|
627
663
|
* 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
|
-
*
|
|
664
|
+
* * **A `file`-TIER DELETE SAVES ITS OWN OP — AND A WHOLE-TARGET DELETE SAVES ITS OWN OP TOO, FROM 2026-11-02** —
|
|
665
|
+
* the terminal arm names `op.opId` to the store's `commit_file` on the act's PASSING arm, so the bytes
|
|
666
|
+
* describe the state the delete left (`§2.11` clause 2, the same act a `file`-tier write gets). **THE SAVE
|
|
667
|
+
* IS KEYED TO WHAT THE ACT MOVED AND NOT TO THE OP'S OWN TIER WORD**: a whole-target delete's `op.tier`
|
|
668
|
+
* is `null`, and the store still saves it where the act removed at least one version standing at the `file`
|
|
669
|
+
* tier — **and a `mem`- or `temp`-tier WRITE that PURGED such a version is saved the same way, while a
|
|
670
|
+
* scalar at the same address SHADOWS it and serializes nothing** — and it serializes nothing where the
|
|
671
|
+
* act moved none (`strata/decisions.md` · `D-106`). **THE STORE'S `delete` VERB STILL COMMITS NOTHING**
|
|
672
|
+
* (`DD-28`; `native contract.md §7.2` item 5): the save is the ARM's, at the record's own op;
|
|
633
673
|
* * **THE LOG AND THE REPORT ARE ANSWERABLE BY REF** — `K.log(store, record.attempt)` and
|
|
634
674
|
* `K.report(store, record.attempt)` answer the delete's own attempt after it passed, not only from a
|
|
635
675
|
* refusal's `log` (`attempt-lifecycle.md §2.4` item 1: those items take an `AttemptRef` or its `id`);
|
|
@@ -692,6 +732,32 @@ export interface DeleteRecord {
|
|
|
692
732
|
readonly opId: string | null;
|
|
693
733
|
readonly addresses: readonly Address[];
|
|
694
734
|
}[];
|
|
735
|
+
/**
|
|
736
|
+
* **⟶ ADDED 2026-11-02 — THE RESOLUTION LOG ON A DELETE'S RECEIPT: THE COMMIT'S OWN LIST, AT THE NAME THE
|
|
737
|
+
* FAILURE FORM USES** (`strata/decisions.md` · `D-119`).
|
|
738
|
+
*
|
|
739
|
+
* **`receipt.log` IS A `readonly LogEntry[]` AT RUNTIME** — the entries this delete's commit appended, in
|
|
740
|
+
* append order: the `constraint-check` entry for each pair the delete's own pass asked, the `repair-run` entry
|
|
741
|
+
* for every repair that landed an edit, and the `commit` entry that closes the arm. **IT IS THE SAME ARRAY AS
|
|
742
|
+
* THE RECORD THIS RECEIPT'S `commit` MEMBER NAMES** — one list, two names on it, and `log` is the one the
|
|
743
|
+
* refusal uses and the one to read — **so a pass and a later refusal about that commit can never disagree**
|
|
744
|
+
* (`D-53`; `D-119` item 4).
|
|
745
|
+
*
|
|
746
|
+
* **`[]` IS THE `D-3` ARM'S ANSWER AND IT MEANS WHAT IT SAYS**: a delete that removed nothing opened no
|
|
747
|
+
* attempt, no pass ran and no entry was appended. **THE MEMBER IS PRESENT ON EVERY PASSING RECEIPT, `[]`
|
|
748
|
+
* included** — it is never absent and never `undefined` (`D-78`'s rule, read for a third member beside
|
|
749
|
+
* `discarded` above and `commit`).
|
|
750
|
+
*
|
|
751
|
+
* **IT IS A NON-ENUMERABLE OWN ACCESSOR** (`enumerable: false`, `configurable: true`), the device `discarded`
|
|
752
|
+
* above declares: `Object.keys(receipt)` is still the four enumerable members, every deep-equality over a
|
|
753
|
+
* receipt is unmoved, and a spread or `Object.assign` copy loses it. `Object.getOwnPropertyNames(receipt)` is
|
|
754
|
+
* the one census that gains the name, declared rather than discovered. **THE READ ANSWERS ONE CACHED
|
|
755
|
+
* REFERENCE** — the array the commit's handoff froze — and derives nothing.
|
|
756
|
+
*
|
|
757
|
+
* **A DOCBLOCK AND NOT A TYPED LINE, for the reason `discarded` above states**: the census that fixes this
|
|
758
|
+
* record's member set is outside this pass's write scope. **A future pass that owns the census owes it the
|
|
759
|
+
* typed line.**
|
|
760
|
+
*/
|
|
695
761
|
}
|
|
696
762
|
|
|
697
763
|
/**
|
|
@@ -735,6 +801,34 @@ export interface RollbackRecord {
|
|
|
735
801
|
* at three, and it is outside this pass's write scope** — the member is declared by name, shape and semantics,
|
|
736
802
|
* and a future pass that owns the census owes it the typed line.
|
|
737
803
|
*/
|
|
804
|
+
/**
|
|
805
|
+
* **⟶ ADDED 2026-11-02 — THE RESOLUTION LOG ON A REVERSAL'S RECORD: THE JUDGEMENT'S OWN LIST**
|
|
806
|
+
* (`strata/decisions.md` · `D-119`, with `D-113` item 3 and `D-117` item 1).
|
|
807
|
+
*
|
|
808
|
+
* **`record.log` IS A `readonly LogEntry[]` AT RUNTIME — the list the reversal's JUDGEMENT appended to.** **THIS
|
|
809
|
+
* IS THE ARM THE RULING'S GROUND APPLIES TO MOST SHARPLY**: a judgement runs your pairs' repairs and delivers
|
|
810
|
+
* the listeners those repairs' writes fire, so **a `rollback` can land an edit you did not ask for, and that
|
|
811
|
+
* edit's `repair-run` entry is what this member carries** — the downstream change, readable rather than
|
|
812
|
+
* inferred. **The list is the judgement's own array, frozen in place at that frame's end** and not a copy:
|
|
813
|
+
* the `repair-run` entries and the entries the repairs' own writes minted, in append order. **A reversal mints
|
|
814
|
+
* no attempt, so no `commit` entry exists here and none is invented.**
|
|
815
|
+
*
|
|
816
|
+
* **`[]` MEANS *THIS ACT APPENDED NOTHING IT CAN REPORT*, NEVER *"nothing happened"*, and its shapes are
|
|
817
|
+
* four**: a `rollback` raised inside an open window (the judgement is that window's own drain), an at-rest
|
|
818
|
+
* judgement over an empty watch, a judgement that ran and appended nothing, and the kernel's own compensating
|
|
819
|
+
* reversal of a failing attempt. **THE MEMBER IS PRESENT ON EVERY PASSING RECORD, `[]` included.**
|
|
820
|
+
*
|
|
821
|
+
* **AND ITS REFUSAL DOES NOT AGREE WITH IT BY CONTENT**: a refusing reversal crosses its OWN one-entry
|
|
822
|
+
* `constraint-check` list (`D-41`), so a pass and a refusal on this verb are different lists — that is
|
|
823
|
+
* `D-41`'s form, unmoved by `D-119`, and it is why the identity rule (*"a pass and a later refusal on one
|
|
824
|
+
* commit can never disagree"*) is stated for `write` and `delete` alone.
|
|
825
|
+
*
|
|
826
|
+
* **IT IS A NON-ENUMERABLE OWN ACCESSOR** (`enumerable: false`, `configurable: true`), the device `discarded`
|
|
827
|
+
* above declares: `Object.keys(record)` is still the three declared members. **The read answers one cached
|
|
828
|
+
* reference** where `discarded` above must read live — the same shape, a different reason. **A DOCBLOCK AND
|
|
829
|
+
* NOT A TYPED LINE** for the reason `discarded` states; a future pass that owns the census owes it the typed
|
|
830
|
+
* line.
|
|
831
|
+
*/
|
|
738
832
|
}
|
|
739
833
|
|
|
740
834
|
/**
|
|
@@ -951,6 +1045,16 @@ export interface StoreInstance {
|
|
|
951
1045
|
* (`D-38`, `D-40`, `D-41`). **A TypeScript signature has no `throws` clause, so this is the honest place to say
|
|
952
1046
|
* it**: *the return type describes what a call returns when it returns, and the throw is part of the contract.*
|
|
953
1047
|
* **A lawful reversal is unchanged** — same record, same members, no `log`. **Callers on `1.0.1` must handle it.**
|
|
1048
|
+
*
|
|
1049
|
+
* **⟶ AND A LAWFUL REVERSAL'S INVOCATION OF YOUR REGISTERED LISTENERS IS NOT A MEMBER AND NOT A THROW — THE
|
|
1050
|
+
* BODIES RUN BEFORE THE RECORD IS RETURNED** (`strata/decisions.md` · `D-117` item 1, which rules a repair's
|
|
1051
|
+
* write's `triggered` listeners delivered at this instant exactly as at a write's commit). **A pair that
|
|
1052
|
+
* refuses the state the reversal leaves may carry a REPAIR, that repair lands in the judgement's own commit,
|
|
1053
|
+
* and the listeners the repair's write fires are invoked ONCE PER DISTINCT HANDLE with the TRIGGERING ADDRESS
|
|
1054
|
+
* as their single argument, AFTER the reversal's save and BEFORE this member returns** (`surface.md §2.4`
|
|
1055
|
+
* rule 3; `PAR-JS-12`). **THE RECORD IS UNMOVED** — `{opId, undoneOps, restoredTo}`, no member added and no
|
|
1056
|
+
* status minted — **and a judgement that refuses, a pair body that throws, and a reversal that fired nothing
|
|
1057
|
+
* all invoke NOTHING.**
|
|
954
1058
|
*/
|
|
955
1059
|
/**
|
|
956
1060
|
* Begin watching the addresses the caller names under the caller's own handle.
|