provident-storeroom 1.9.1 → 1.9.3
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 +20 -2
- package/README.md +16 -1
- package/RELEASE-NOTES.md +23 -1
- package/index.d.ts +99 -0
- package/index.mjs +20 -3
- package/package.json +6 -6
- package/src/entry/constraints.mjs +125 -2
- package/src/entry/kernel-foundations.mjs +34 -0
- package/src/entry/kernel-registration.mjs +6 -6
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.3`.
|
|
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.
|
|
@@ -738,6 +738,18 @@ whose body writes `['b'] = 'bad'`, and a constraint at `['b']` that refuses `'ba
|
|
|
738
738
|
DIRECTLY is REFUSED, same `ConstraintPassRefused`, same message.** **So the constraint was armed throughout,
|
|
739
739
|
and what differs is only WHAT CROSSES — a caller's own refusal crosses, and a listener's does not.**
|
|
740
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
|
+
|
|
741
753
|
**WHAT THAT MEANS FOR YOU, SAID PLAINLY: YOU CANNOT READ A LISTENER'S SUCCESS FROM ANY RETURN VALUE.** **No
|
|
742
754
|
member, no log entry and no status on your record says a listener's own write landed; the only way your code
|
|
743
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
|
|
@@ -1079,7 +1091,7 @@ its address.** **The read is the whole difference.**
|
|
|
1079
1091
|
|
|
1080
1092
|
**★ YOUR CONSTRAINT'S ANSWER IS A CLOSED THREE-ARM SET, READ IN THIS ORDER, AND THERE IS NO FOURTH ARM.** **`true` is the ONLY pass value; `{ message, repair }` is a REPAIRABLE violation; `{ message }` is an UNREPAIRABLE violation, whose `message` is the refusal's own sentence.** **A value outside those three is read as the `{ message }` arm and never as an arm of its own**, so a shape you invent beyond them is not distinguished from a bare refusal — the kernel does not ask it a second question.
|
|
1081
1093
|
|
|
1082
|
-
**AND `message` IS REQUIRED ON THE REPAIR ARM, BECAUSE THE KERNEL READS IT FIRST.** The arm's gate is the `message` member, read before any `repair` is looked for, and a `repair` is looked for only inside that branch: **a return carrying only `repair` is the arm outside the three, and its repair is NEVER SEEN**; **and AT THE WRITE'S OWN EVALUATION a `message` present but not a non-empty string keeps the repair readable while the refusal answers the kernel's own unrecognized sentence** — so write both members, and write `message` as the sentence you want your caller to read. **AT THE WRITE'S OWN EVALUATION — AT THAT INSTANT AND NO OTHER — THE KERNEL READS `message` AND `repair` AS OWN MEMBERS OF THE OBJECT YOUR FUNCTION RETURNED: a pair carried on a prototype is NOT SEEN there, and such a return answers the unrecognized sentence instead** (`bindings/js/src/entry/kernel-attempt.mjs:686-699`, `:690-696`). **THIS IS THE ONLY SENTENCE IN THIS GUIDE THAT STATES THAT RULE, AND IT IS THE LANDING INSTANT'S: the registration act reads the same closed outcome at `bindings/js/src/entry/kernel-registration.mjs:330-332`, where an inherited `repair` IS seen and invoked, so ONE RETURNED SHAPE ANSWERS TWO DIFFERENT THINGS AT THE TWO INSTANTS — a repair at registration and no repair at a write — and that divergence is OWED to a code-bearing unit and is contradicted by no sentence here** (`strata/decisions.md` · `D-35`). **THE EXAMPLE BELOW ESCAPES THE QUESTION BY CONSTRUCTION: it returns ONE OBJECT LITERAL whose two members are own members, so both instants read it alike.**
|
|
1094
|
+
**AND `message` IS REQUIRED ON THE REPAIR ARM, BECAUSE THE KERNEL READS IT FIRST.** The arm's gate is the `message` member, read before any `repair` is looked for, and a `repair` is looked for only inside that branch: **a return carrying only `repair` is the arm outside the three, and its repair is NEVER SEEN**; **and AT THE WRITE'S OWN EVALUATION a `message` present but not a non-empty string keeps the repair readable while the refusal answers the kernel's own unrecognized sentence** — so write both members, and write `message` as the sentence you want your caller to read. **AT THE WRITE'S OWN EVALUATION — AT THAT INSTANT AND NO OTHER — THE KERNEL READS `message` AND `repair` AS OWN MEMBERS OF THE OBJECT YOUR FUNCTION RETURNED: a pair carried on a prototype is NOT SEEN there, and such a return answers the unrecognized sentence instead** (`bindings/js/src/entry/kernel-attempt.mjs:686-699`, `:690-696`). **THIS IS THE ONLY SENTENCE IN THIS GUIDE THAT STATES THAT RULE, AND IT IS THE LANDING INSTANT'S: the registration act reads the same closed outcome at `bindings/js/src/entry/kernel-registration.mjs:330-332`, where an inherited `repair` IS seen and invoked, so ONE RETURNED SHAPE ANSWERS TWO DIFFERENT THINGS AT THE TWO INSTANTS — a repair at registration and no repair at a write — and that divergence is OWED to a code-bearing unit and is contradicted by no sentence here** (`strata/decisions.md` · `D-35`). **THE EXAMPLE BELOW ESCAPES THE QUESTION BY CONSTRUCTION: it returns ONE OBJECT LITERAL whose two members are own members, so both instants read it alike.** **⟶ AND THE DIVERGENCE THAT SENTENCE RECORDS IS CURED, 2026-11-04 — `U-STOREROOM-REGISTRATION-OWN-MEMBERS`, ON `D-120`.** `RCA-8(g)` ANNOTATE-BESIDE: **every sentence above stands BYTE-FOR-BYTE and is read THROUGH this mark; no sentence of it is deleted, none is re-spelled, and no citation of that sentence is corrected or re-pointed.** **THE REGISTRATION INSTANT'S READ OF THE CLOSED OUTCOME'S `message` AND `repair` WAS CONVERTED TO THE OWN-MEMBER RULE AT THIS UNIT'S LANDING**, so the divergence that sentence records is **CURED rather than OWED**, the state its own words left to a code-bearing unit. **THE RULE THAT SENTENCE STATES THEREFORE HOLDS AT BOTH INSTANTS** — said of the own-member rule and of nothing else: `message` and `repair` read as OWN members of the object your function returned, so **a pair carried on a prototype is NOT SEEN at EITHER instant**; **AND EACH INSTANT KEEPS ITS OWN REFUSAL — the registration answers its own rank-19 sentence, and the write answers its own `unrecognized` and `{ message }` arms — so what the two instants now answer alike is the MEMBERSHIP question and never a sentence.** **AND THE WRITE'S SIDE IS UNCHANGED, THE SUBSTITUTION CLAUSE INCLUDED: a `message` present and not a non-empty string still keeps the repair readable at the write and still answers the kernel's own unrecognized sentence there.**
|
|
1083
1095
|
|
|
1084
1096
|
**THE REPAIR'S OWN RETURN IS A CLOSED TWO-ARM SET.** **`{ ok: true, op }` is the repairable arm: `op` is REQUIRED and is THE STORE'S OWN OPERATION RECORD — `WriteRecord.op`, or `DeleteRecord.op` where that member is non-`null`, a `delete` that removed nothing answering `null` and crediting nothing — the one the verb your repair called returned.** **`{ ok: false, message }` is the failed arm: `ok` and `message`, and `op` ABSENT and never `null`, because an `op` there is read by nothing.** **At the write's own evaluation a return carrying any other identity fails `KC-4`** (`docs/specs/storeroom-constraints/contract.md:552`; the two arms print at `:558`) — **that one sentence covers every outside form of that return and this guide enumerates none of them.** **AND THE OP MUST BE ONE THE ATTEMPT CAN BE SHOWN TO HAVE LANDED: that ground is the kernel's own credit check, declared at `bindings/js/src/entry/kernel-foundations.mjs:1105-1131`, and it is POINTED AT here rather than re-spelled.** **No ordinal ground is claimed at the registration instant, whose credit check runs with no invoked-for op** (`bindings/js/src/entry/kernel-registration.mjs:510-517`).
|
|
1085
1097
|
|
|
@@ -1103,6 +1115,8 @@ its address.** **The read is the whole difference.**
|
|
|
1103
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`).
|
|
1104
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.
|
|
1105
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
|
+
|
|
1106
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).
|
|
1107
1121
|
|
|
1108
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:
|
|
@@ -1521,6 +1535,8 @@ refusal (`js/contract.md §2.6`'s `D-53` clause, item `6`).
|
|
|
1521
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.)
|
|
1522
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.)
|
|
1523
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
|
+
|
|
1524
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.)
|
|
1525
1541
|
|
|
1526
1542
|
|
|
@@ -1719,6 +1735,8 @@ and the link will be gone.**
|
|
|
1719
1735
|
|
|
1720
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.
|
|
1721
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
|
+
|
|
1722
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.**
|
|
1723
1741
|
|
|
1724
1742
|
### §9.3 A `delete` and a `rollback` save the `file`-tier data they move
|
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.3`.
|
|
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`
|
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.3`.
|
|
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,28 @@ the value to assert against, not the crate's own `Cargo.toml` version.
|
|
|
55
55
|
|
|
56
56
|
---
|
|
57
57
|
|
|
58
|
+
## §1.9.3 · a PATCH — the registration instant reads a returned outcome and a repair's return as own members: one membership question, answered alike at the two instants
|
|
59
|
+
|
|
60
|
+
**THE VERSION IS `1.9.3` AND ITS CLASS IS A PATCH, AND WHAT IT CARRIES IS ONE BEHAVIOUR A CONSUMER MEETS AT THE REGISTRATION INSTANT, DRIVEN RATHER THAN TRUSTED** (`D-120`; `docs/specs/storeroom-registration-own-members/contract.md`).
|
|
61
|
+
|
|
62
|
+
1. **THE TWO INSTANTS NOW ANSWER THE SAME MEMBERSHIP QUESTION** — the registration instant reads a returned outcome's `message` and `repair`, and a repair's return's `ok`, as OWN members of the value your function returned, exactly as the write's own evaluation reads the same members; a member carried on a prototype is a member neither instant reads.
|
|
63
|
+
2. **AN INHERITED MEMBER IS REFUSED AT THE REGISTRATION** — a constraint whose `message` or `repair` the returned shape carries on a prototype no longer registers a repair the write then refuses to read, so the failure surfaces where the constraint is authored rather than at the first write.
|
|
64
|
+
3. **THE WRITE'S SENTENCE IS UNCHANGED** — an inherited or outside-arm return still answers the kernel's `unrecognized` sentence at a write, and no refusal's text moves at either instant.
|
|
65
|
+
|
|
66
|
+
**WHAT DOES NOT MOVE, NAMED ONE BY ONE: the twenty-status set** — no rank and no member of it moves · **the fourteen instance members** · **the declared type set** — `ConstraintOutcome`, `RepairOutcome`, `RepairContext` and the registration instant's `RegistrationRepairContext` all stand as they stand · **every refusal message** · **and the credit rules: the registration instant's op-based credit and the write's op-free credit are TWO rules and this release does not unify them** (`D-120`; `D-105`).
|
|
67
|
+
|
|
68
|
+
**AND THIS RELEASE DESCRIBES `1.9.3` AND CLAIMS NO TAG**: the cut-state is not a document's to state (`D-57`).
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## §1.9.2 · a PATCH — the log a passing call answers with: one behaviour a consumer can observe
|
|
73
|
+
|
|
74
|
+
**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).
|
|
75
|
+
|
|
76
|
+
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`).
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
58
80
|
## §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
81
|
|
|
60
82
|
**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`).
|
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
|
/**
|
|
@@ -696,6 +732,32 @@ export interface DeleteRecord {
|
|
|
696
732
|
readonly opId: string | null;
|
|
697
733
|
readonly addresses: readonly Address[];
|
|
698
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
|
+
*/
|
|
699
761
|
}
|
|
700
762
|
|
|
701
763
|
/**
|
|
@@ -739,6 +801,34 @@ export interface RollbackRecord {
|
|
|
739
801
|
* at three, and it is outside this pass's write scope** — the member is declared by name, shape and semantics,
|
|
740
802
|
* and a future pass that owns the census owes it the typed line.
|
|
741
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
|
+
*/
|
|
742
832
|
}
|
|
743
833
|
|
|
744
834
|
/**
|
|
@@ -1499,6 +1589,15 @@ export interface RegistrationRepairContext extends RepairContext {
|
|
|
1499
1589
|
* prototype chain (`kernel-registration.mjs:377`-`:380`) — **ONE RETURNED SHAPE ANSWERING TWO DIFFERENT THINGS AT THE
|
|
1500
1590
|
* TWO INSTANTS, which is `D-35`'s recorded defect and is OWED to a code-bearing unit**, and nothing here is read as
|
|
1501
1591
|
* symmetric. **Nor does the type carry `message`'s NON-EMPTINESS or the repair's invocability beyond `function`.**
|
|
1592
|
+
*
|
|
1593
|
+
* **⟶ AND THE CLAUSE ABOVE IS CURED, 2026-11-04 — `U-STOREROOM-REGISTRATION-OWN-MEMBERS`, ON `D-120`.** `RCA-8(g)`
|
|
1594
|
+
* ANNOTATE-BESIDE: **the clause above stands BYTE-FOR-BYTE and is read THROUGH this mark, and neither of its own
|
|
1595
|
+
* citations is corrected or re-pointed.** **The registration instant's read of the same closed outcome was converted
|
|
1596
|
+
* to the own-member rule at this unit's landing**, so its *"ONE RETURNED SHAPE ANSWERING TWO DIFFERENT THINGS"*
|
|
1597
|
+
* reading is **CURED rather than owed**. **THE TYPE STILL DECLARES THE SHAPE AND NEVER THE READ** — the conversion
|
|
1598
|
+
* confirms that thesis rather than amending it. **THE MEMBERS' CLASSES ARE UNMOVED**: `message` is still not
|
|
1599
|
+
* declared non-empty, and `repair` is still declared no further than `function`, so this mark is neither a
|
|
1600
|
+
* narrowing nor a widening of what is declared here.
|
|
1502
1601
|
*/
|
|
1503
1602
|
export type ConstraintOutcome =
|
|
1504
1603
|
| true
|
package/index.mjs
CHANGED
|
@@ -92,7 +92,7 @@ import { admittedConstraintBatch, constraintAddress, decodeBaseState, decodeJour
|
|
|
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
94
|
import { commitPositionRefusal, constraintOverwrittenByListen, deliver, installListenRoute, installRegistrationSave, installRegistrationSeam, listenerStandingAt, listenOn, registerOn, terminalArm } from './src/entry/delivery.mjs';
|
|
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';
|
|
95
|
+
import { ARGUMENT_POSITION_FIRST, addressSetKey, carryConstraint, constraintDetached, constraintPairKey, constraintRefuse, constraintSite, constraintUncarried, constraintDelete, constraintWrite, constraintsKernel, currentRaise, defineDiscardWitness, defineResolutionLog, 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');
|
|
98
98
|
|
|
@@ -703,7 +703,17 @@ export function storeCreate(cfg) {
|
|
|
703
703
|
// `surface.md §2.4` loop, so it takes the state that holds both (`§2.7` (iii) (a)). **NOTHING ELSE IN THIS
|
|
704
704
|
// MEMBER MOVES** — not its record (`:702`–`:706`), not `carryRefusal`, not the witness — **and the
|
|
705
705
|
// position is a private frame's fourth, not a member, an arity or a declared surface.**
|
|
706
|
-
|
|
706
|
+
//
|
|
707
|
+
// **⟶ AND FROM 2026-11-02 IT ANSWERS THE JUDGEMENT'S OWN LIST — `D-119`.** `judgeReversal` answers the
|
|
708
|
+
// array its judgement appended to, frozen in place at that frame's end (`constraints.mjs`'s
|
|
709
|
+
// `defineResolutionLog` clause), **and that list is what this record carries at `record.log`, installed at
|
|
710
|
+
// the record's return below**: a reversal's judgement runs your pairs' repairs (`D-113` item 3) and
|
|
711
|
+
// delivers the listeners those repairs fire (`D-117` item 1), so the `repair-run` entry a repair left is
|
|
712
|
+
// the downstream edit this ruling exists to make readable. **EVERY ARM THAT ANSWERS `undefined` EARNS THE
|
|
713
|
+
// FROZEN EMPTY LIST** — the compensating composition, the deferred arm and the at-rest judgement over an
|
|
714
|
+
// empty watch own no list of their own — and `[]` means *this act appended nothing it can report*
|
|
715
|
+
// (`resolution-log.md` §3.3, §4.3).
|
|
716
|
+
const judgedLog = judgeReversal(instance, watched, answer.opId, state);
|
|
707
717
|
const record = {
|
|
708
718
|
opId: answer.opId,
|
|
709
719
|
undoneOps: answer.undoneOps,
|
|
@@ -724,7 +734,14 @@ export function storeCreate(cfg) {
|
|
|
724
734
|
// **AND THE RECORD'S THREE DECLARED MEMBERS ARE UNMOVED**: `discarded` is a NON-ENUMERABLE own accessor
|
|
725
735
|
// (`index.d.ts`'s `RollbackRecord` clause; `defineDiscardWitness`), so `Object.keys`, every deep-equality
|
|
726
736
|
// over the record and every census of its members read the three they read before.
|
|
727
|
-
|
|
737
|
+
//
|
|
738
|
+
// **⟶ AND `record.log` IS THE JUDGEMENT'S LIST, INSTALLED THE SAME WAY AND BESIDE IT — `D-119`.** The same
|
|
739
|
+
// device, the same name the failure form uses, `enumerable: false`, `configurable: true`, and **the read
|
|
740
|
+
// answers one captured reference** — the array the judgement's frame froze — where `discarded` beside it
|
|
741
|
+
// is a live read by necessity (§5.4's own note: the two members share a SHAPE and not a REASON). **THE
|
|
742
|
+
// FROZEN EMPTY LIST IS THE ANSWER ON EVERY ARM THE JUDGEMENT DID NOT JUDGE**, and the member is present on
|
|
743
|
+
// every passing answer, `[]` included.
|
|
744
|
+
return defineResolutionLog(defineDiscardWitness(record, () => witnessRaise(raise)), judgedLog);
|
|
728
745
|
},
|
|
729
746
|
/// **⟶ `listen(handle, addresses) -> undefined` — arity `2`, position `1` a caller-spelled string and
|
|
730
747
|
/// position `2` a SET of addresses** (`contract.md §2.2`; `listen-verb.md §1` item 1; `PAR-HL-1`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "provident-storeroom",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
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.3",
|
|
45
|
+
"@auspicion/provident-storeroom-js-linux-arm64-gnu": "1.9.3",
|
|
46
|
+
"@auspicion/provident-storeroom-js-darwin-x64": "1.9.3",
|
|
47
|
+
"@auspicion/provident-storeroom-js-darwin-arm64": "1.9.3",
|
|
48
|
+
"@auspicion/provident-storeroom-js-win32-x64-msvc": "1.9.3"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
@@ -19,7 +19,7 @@ import { INSTANCES, carryRefusal, commitFile, currentWindow, homeAddressKey, ins
|
|
|
19
19
|
// function the pass appends with — rather than pushed here with a member set of its own; the REFUSAL's own
|
|
20
20
|
// list keeps its five members and no `seq`, because no attempt stands at the judgement that built it
|
|
21
21
|
// (`D-41` item 4). Two records, two honest forms, one append.
|
|
22
|
-
import { append, boundedEntryMessage, boundedQuotation, enterCommitFrame, externalCall, kernelFor, leaveCommitFrame, pairAppliesAt, pairsTriggered, throwableForm } from './kernel-foundations.mjs';
|
|
22
|
+
import { append, boundedEntryMessage, boundedQuotation, COMMIT_LOG_SHARED, enterCommitFrame, externalCall, kernelFor, leaveCommitFrame, pairAppliesAt, pairsTriggered, throwableForm } from './kernel-foundations.mjs';
|
|
23
23
|
// **⟶ AND THE TWO KERNEL ACTS THE DELETE'S PATH OWES — `D-55` ITEM 3, 2026-10-29.** The kernel's public
|
|
24
24
|
// barrel (`src/constraint-kernel.mjs`) is untouched and keeps its five names; **these are two PART modules' own
|
|
25
25
|
// acts, reached here the way `append` and `kernelFor` above are** (`kernel-surface.md §1` item 1's empty import
|
|
@@ -883,6 +883,16 @@ export function constraintWrite(state, instance, address, tier, value) {
|
|
|
883
883
|
// inside): a read taken later would name whatever window happened to be open then.
|
|
884
884
|
const witnessed = currentWindow(instance);
|
|
885
885
|
defineDiscardWitness(recordOut, () => witnessWindow(instance, witnessed));
|
|
886
|
+
// **⟶ AND THE PASSING ANSWER CARRIES THE COMMIT'S OWN LIST FROM 2026-11-02 — `D-119`.** **THE CACHE IS THE
|
|
887
|
+
// SEALED REPORT THIS FRAME ALREADY HOLDS**: `sealHandoff` froze the commit's list and the ownership fact
|
|
888
|
+
// together before `dropHandoff` stripped the closed map's copy, so the entries a passing call appended —
|
|
889
|
+
// its `constraint-check` entries, every `repair-run` a repair landed, and the `commit` entry that closes the
|
|
890
|
+
// arm — answer at `record.log`, in append order, as the SAME objects and the SAME array a refusal about this
|
|
891
|
+
// commit crosses with (`D-53`; `D-119` item 4). **WHERE THIS CALL JOINED AN ENCLOSING COMMIT THE MEMBER IS
|
|
892
|
+
// `[]` AND MEANS IT** — the list it joined has not crossed, and the act that owns that window reports the
|
|
893
|
+
// entries (`resolution-log.md` §4.2). **NO DECLARED MEMBER MOVES**: the record keeps the three `index.d.ts`
|
|
894
|
+
// declares, and `Object.keys` reads them and nothing else (`A117` (D6)).
|
|
895
|
+
defineResolutionLog(recordOut, resolutionLogOf(report));
|
|
886
896
|
return recordOut;
|
|
887
897
|
}
|
|
888
898
|
|
|
@@ -980,6 +990,11 @@ export function constraintDelete(instance, address, tier, remove) {
|
|
|
980
990
|
// absent (`D-21`: a member whose act did not run says so).
|
|
981
991
|
if (attempt === null) {
|
|
982
992
|
exposeCommit(receipt, null);
|
|
993
|
+
// **AND THE `D-3` ARM'S `log` IS `[]` AND IS PRESENT — `D-119`, `resolution-log.md` §4.3's second shape.**
|
|
994
|
+
// Nothing was removed, no attempt was opened and no pass ran, so no entry was appended: the frozen empty
|
|
995
|
+
// list is this arm's honest answer, and the member is defined HERE rather than left absent, because
|
|
996
|
+
// `D-77`/`D-78`'s rule is presence on every arm.
|
|
997
|
+
defineResolutionLog(receipt, null);
|
|
983
998
|
return receipt;
|
|
984
999
|
}
|
|
985
1000
|
// THE PASS, INSIDE THE COMMIT THE MEMBER OPENED (`D-44`): `runAttempt` names THE RECORD `commitRemoval`
|
|
@@ -1004,6 +1019,14 @@ export function constraintDelete(instance, address, tier, remove) {
|
|
|
1004
1019
|
constraintCrossing(restarted, address);
|
|
1005
1020
|
}
|
|
1006
1021
|
exposeCommit(receipt, attempt.record);
|
|
1022
|
+
// **⟶ AND THE PASSING RECEIPT CARRIES THE COMMIT'S OWN LIST FROM 2026-11-02 — `D-119`**, installed beside the
|
|
1023
|
+
// two non-enumerable members that were already here (`exposeCommit`'s `commit` above, `index.mjs`'s
|
|
1024
|
+
// `discarded`). **`receipt.log` AND `receipt.commit[COMMIT_LOG]` ARE THE SAME ARRAY BY IDENTITY** on this arm —
|
|
1025
|
+
// one list, two names on it, and the `log` name is the one the refusal uses and the one a consumer should
|
|
1026
|
+
// read — **and the member is present on the `D-3` arm below, `[]` included** (`D-77`/`D-78`'s rule read for a
|
|
1027
|
+
// third member: `[]` is never absent and never `undefined`). Nothing in `index.mjs`'s `delete` member moves:
|
|
1028
|
+
// the sealed report and the ownership fact are both this frame's.
|
|
1029
|
+
defineResolutionLog(receipt, resolutionLogOf(report));
|
|
1007
1030
|
return receipt;
|
|
1008
1031
|
}
|
|
1009
1032
|
|
|
@@ -1907,6 +1930,69 @@ export function defineDiscardWitness(record, read) {
|
|
|
1907
1930
|
return record;
|
|
1908
1931
|
}
|
|
1909
1932
|
|
|
1933
|
+
/// **⟶ AND THE PASSING RESOLUTION'S OWN LIST, 2026-11-02 — `D-119`: THE LOG CROSSES ON RESOLUTION TOO.**
|
|
1934
|
+
///
|
|
1935
|
+
/// **THE RULING, THE ARCHITECT, VERBATIM: *"Cache the log and pass to the surface on resolution, same as on
|
|
1936
|
+
/// failure. This is needed so that manual data changes can check what additional data changed downstream of
|
|
1937
|
+
/// their request."*** **`defineDiscardWitness` above is the DEVICE and this is its SECOND USE, not a new kind of
|
|
1938
|
+
/// member**: a **NON-ENUMERABLE, `configurable` own ACCESSOR at the name `log`** — **the very name the failure
|
|
1939
|
+
/// form uses** (`StoreRefusal.log`, its third declared member) — so a consumer that catches a refusal and a
|
|
1940
|
+
/// consumer that holds a passing answer read ONE name. **`Object.keys`, every deep-equality a consumer writes,
|
|
1941
|
+
/// the instance's FOURTEEN and the kernel's barrel move by nothing**; **`Object.getOwnPropertyNames` gains the
|
|
1942
|
+
/// name, which is the one census a STRING-keyed member cannot hide from, and it is declared rather than
|
|
1943
|
+
/// discovered** (`docs/specs/storeroom-file-save-coverage/resolution-log.md` §1.1, the two cells).
|
|
1944
|
+
///
|
|
1945
|
+
/// **IT ANSWERS ONE CACHED REFERENCE AND DERIVES NOTHING AT THE READ — AND THAT IS THE ONE PLACE THIS MEMBER
|
|
1946
|
+
/// DIFFERS FROM `discarded`, WHOSE ACCESSOR IS A LIVE READ BY NECESSITY.** `discarded` is built BEFORE the pass
|
|
1947
|
+
/// that judges its raise (`D-42`); **a log is built AFTER every act that can append to it** (`D-119` item 4: *"the
|
|
1948
|
+
/// list is cached at the crossing and stable after it"*), so the list is frozen where it crosses and the getter
|
|
1949
|
+
/// hands back the same array at every read. **THE SHAPE IS THE SAME AND THE REASON IS NOT: a later pass must not
|
|
1950
|
+
/// carry `discarded`'s justification across.** **THE GETTER IS STILL AN ACCESSOR** because the record's declared
|
|
1951
|
+
/// census counts MEMBERS and not accessors, and because `D-77`/`D-78`'s rule — the member is PRESENT on every
|
|
1952
|
+
/// passing answer, `[]` included, never absent and never `undefined` — is the rule this serves.
|
|
1953
|
+
///
|
|
1954
|
+
/// **THE EMPTY LIST IS ONE MODULE-LEVEL FROZEN CONSTANT AND NOT A FRESH `[]` PER CALL.** `[]` here means *"this
|
|
1955
|
+
/// act appended nothing it can report"*: the JOINED arm (a body's nested call inside a commit whose list has not
|
|
1956
|
+
/// crossed), a `D-3` delete, a reversal's non-judging arms, and a judgement that ran and appended nothing
|
|
1957
|
+
/// (§4.3). **It carries no client data at all, so a shared constant is a VALUE and not a cache** — the bound
|
|
1958
|
+
/// `D-58` sets is a retained LIST, and there is none here.
|
|
1959
|
+
const RESOLUTION_LOG_EMPTY = Object.freeze([]);
|
|
1960
|
+
|
|
1961
|
+
export function defineResolutionLog(record, list) {
|
|
1962
|
+
// **A RECEIPT THAT IS NOT AN OBJECT CANNOT CARRY A MEMBER** — `exposeCommit`'s own guard, read for this
|
|
1963
|
+
// member: the member never depends on the arm for its PRESENCE (`D-78`), and a non-object answer has no
|
|
1964
|
+
// census to move.
|
|
1965
|
+
if (record === null || typeof record !== 'object') return record;
|
|
1966
|
+
// **ONE CAPTURED REFERENCE** — the array this read answers is the array the crossing froze (`sealHandoff`'s
|
|
1967
|
+
// freeze for a `write` or a `delete`, the judgement frame's own end for a `rollback`), or the frozen constant
|
|
1968
|
+
// where the act owns no list of its own. **No derivation, no copy-out, no second list.**
|
|
1969
|
+
const held = Array.isArray(list) === true ? list : RESOLUTION_LOG_EMPTY;
|
|
1970
|
+
Object.defineProperty(record, 'log', {
|
|
1971
|
+
get: () => held,
|
|
1972
|
+
enumerable: false,
|
|
1973
|
+
configurable: true,
|
|
1974
|
+
});
|
|
1975
|
+
return record;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
/// **THE ONE READ OF THE SEALED REPORT'S CACHE — `D-119`.** The sealed report is the cache: `sealHandoff` froze
|
|
1979
|
+
/// the commit's list and the ownership fact together BEFORE `dropHandoff` stripped the closed map's copy, and
|
|
1980
|
+
/// the entry's frame holds that report from the attempt's return until it builds the answer. **So the list is
|
|
1981
|
+
/// read off the report and from nowhere else** — no `WeakMap`, no instance slot and no module map is minted, and
|
|
1982
|
+
/// the list outlives the drop by the order the seal already runs in.
|
|
1983
|
+
///
|
|
1984
|
+
/// **THE JOINED ARM ANSWERS `undefined` AND THAT IS ITS HONEST `[]`.** `COMMIT_LOG_SHARED` is the seal's own
|
|
1985
|
+
/// fact: where it reads `true`, this call joined an enclosing commit (`D-53`) whose list has not crossed, so
|
|
1986
|
+
/// this answer owns no list to hand over — and a frozen PREFIX COPY is refused, because a copy taken at the
|
|
1987
|
+
/// nested crossing necessarily holds fewer entries than the enclosing commit's later answer and the two would
|
|
1988
|
+
/// disagree, which is the one thing `D-119` item 4 forbids. **One list, one crossing, one answer: the act that
|
|
1989
|
+
/// owns that commit reports the entries, the nested call's own included** (`DW-09.2`'s sentence, read for the
|
|
1990
|
+
/// log; `resolution-log.md` §4.2).
|
|
1991
|
+
function resolutionLogOf(report) {
|
|
1992
|
+
if (report === null || typeof report !== 'object') return undefined;
|
|
1993
|
+
return report[COMMIT_LOG_SHARED] === true ? undefined : report.log;
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1910
1996
|
/// **⟶ THE RESTART ITSELF, MOVED 2026-10-27 TO WHERE THE COMMIT SCOPE IS OWNED — `runAttempt`'s drain.**
|
|
1911
1997
|
///
|
|
1912
1998
|
/// **WHAT IT WAS, AND THE FINDING THAT MOVED IT.** It was `restartInvalidatedCheck(instance)`, called by
|
|
@@ -2521,6 +2607,14 @@ function movedStanding(instance, watched) {
|
|
|
2521
2607
|
/// never returns to the delivery, and **a compensation returns at the first byte of this function and reaches
|
|
2522
2608
|
/// neither the judgement nor the save** (`D-112` item 3). **NOTHING DECLARED MOVES**: no member, no status, no
|
|
2523
2609
|
/// rank, no entry, no arity and no barrel name (`§1` (iii)).
|
|
2610
|
+
///
|
|
2611
|
+
/// **⟶ AND FROM 2026-11-02 THIS FRAME ANSWERS THE LIST IT APPENDED TO — `D-119`.** **A JUDGING ARM ANSWERS THE
|
|
2612
|
+
/// JUDGEMENT'S OWN `judgementLog`, FROZEN IN PLACE AT THIS FRAME'S `finally`** — the very array the frame
|
|
2613
|
+
/// appended to, the `repair-run` entries included, and not a copy of it — so a PASSING `rollback` can hand a
|
|
2614
|
+
/// caller what its judgement moved downstream (`resolution-log.md` §3.3; `index.mjs`'s `rollback` installs it).
|
|
2615
|
+
/// **EVERY ARM THAT RETURNS ABOVE THE WALK STILL ANSWERS `undefined`** — the compensating arm, the deferred arm
|
|
2616
|
+
/// and the at-rest judgement over an empty watch own no list of their own — **and the ANSWER IS NOT A REFUSAL'S
|
|
2617
|
+
/// SUBJECT**: a refusing judgement crosses `reversalRefusal`'s own one-entry list (`D-41`), unmoved by this row.
|
|
2524
2618
|
export function judgeReversal(instance, watched, reversalId, state) {
|
|
2525
2619
|
// **A COMPENSATING ROLLBACK IS NOT JUDGED AS A STEP EITHER — `D-54` (b)**: the member is reached by the
|
|
2526
2620
|
// kernel's own terminal act with the flag standing, and this act must not touch a pending request or ask a
|
|
@@ -2635,6 +2729,10 @@ export function judgeReversal(instance, watched, reversalId, state) {
|
|
|
2635
2729
|
// second list.** **THE ID IT CARRIES IS NEVER READ** (nothing closes a judgement by name) **and no attempt,
|
|
2636
2730
|
// record, count or `kernel.live` entry is minted with it**: this object is a NAME and not a record.
|
|
2637
2731
|
const judgementName = { attempt: { id: 'reversal-judgement' } };
|
|
2732
|
+
// **⟶ WHETHER THIS FRAME ANSWERS ITS OWN LIST — ONE FRAME LOCAL, AND NO MEMBER MINTED** (`D-119`; `PIN-3`
|
|
2733
|
+
// (ii)(a)). It is `false` on every arm that returns above this point and on every throwing arm, so the freeze
|
|
2734
|
+
// the `finally` takes applies to the array this frame HANDS OVER and to no refusal's list.
|
|
2735
|
+
let judgedList = false;
|
|
2638
2736
|
enterCommitFrame(kernel, judgementLog);
|
|
2639
2737
|
try {
|
|
2640
2738
|
// THE MOVED SET IS TAKEN FIRST, ONCE: the judgement's subject is the CHANGE the reversal made and nothing
|
|
@@ -2938,8 +3036,33 @@ export function judgeReversal(instance, watched, reversalId, state) {
|
|
|
2938
3036
|
: ownDataMember(legOp, 'address');
|
|
2939
3037
|
deliver(state, owed, triggeringAddress);
|
|
2940
3038
|
}
|
|
2941
|
-
|
|
3039
|
+
// ═══════════════════════════════════════════════════════════════════════════════════════════════════════
|
|
3040
|
+
// **⟶ AND THE JUDGEMENT'S OWN LIST CROSSES FROM 2026-11-02 — `D-119`, `resolution-log.md` §3.3.** **THE
|
|
3041
|
+
// REVERSAL IS THE ARM `D-119`'s GROUND APPLIES TO MOST SHARPLY: `D-113` item 3 makes a judgement run your
|
|
3042
|
+
// pairs' repairs and `D-117` item 1 delivers the listeners those repairs' writes fire — so a `rollback` can
|
|
3043
|
+
// land an edit you did not ask for, which is exactly the downstream change the ruling exists to make
|
|
3044
|
+
// readable.** **THE LIST ANSWERED IS THIS FRAME'S OWN `judgementLog`, IN PLACE AND NOT COPIED**, so the answer
|
|
3045
|
+
// holds the very array this frame appended to — the `repair-run` entries and the entries the repairs' own
|
|
3046
|
+
// writes minted in this window, in append order (`D-65`'s ordinal, the array index).
|
|
3047
|
+
//
|
|
3048
|
+
// **IT IS FROZEN AT THIS FRAME'S END, BESIDE THE TWO CALLS THE `finally` OWES** — a freeze IN PLACE, on the
|
|
3049
|
+
// same array and not on a copy of it, exactly as `sealHandoff`'s freeze gives a `write` or a `delete` its
|
|
3050
|
+
// stable list. **AND THE FREEZE IS THE ANSWERING ARM'S ALONE** (`judgedList` below): a REFUSING judgement
|
|
3051
|
+
// crosses its OWN one-entry list (`reversalRefusal`), and no refusal byte is this row's to move (`D-41`).
|
|
3052
|
+
//
|
|
3053
|
+
// **A PASSING REVERSAL APPENDS NO `commit` ENTRY AND NONE IS INVENTED** (§4.1): a judgement mints no attempt,
|
|
3054
|
+
// so no passing arm of an attempt runs for it. **ITS `[]` ARMS ARE FOUR AND EACH IS TRUE** — the deferred
|
|
3055
|
+
// arm, the at-rest judgement over an empty watch, a compensating composition, and a judgement that ran and
|
|
3056
|
+
// appended nothing: the first three return above this frame's list and the last answers an empty list, which
|
|
3057
|
+
// the member's own helper hands on as the frozen constant.
|
|
3058
|
+
// ═══════════════════════════════════════════════════════════════════════════════════════════════════════
|
|
3059
|
+
judgedList = true;
|
|
3060
|
+
return judgementLog;
|
|
2942
3061
|
} finally {
|
|
3062
|
+
// **THE FREEZE IS IN PLACE AND AT THE FRAME'S END — `D-119`.** It runs before the frame's two releasing
|
|
3063
|
+
// calls and applies to the array the `return` above already named, so the answer is stable from the instant
|
|
3064
|
+
// it exists: no act of this package can append to it afterwards (`resolution-log.md` §5.1).
|
|
3065
|
+
if (judgedList === true) Object.freeze(judgementLog);
|
|
2943
3066
|
leaveCommitFrame(kernel);
|
|
2944
3067
|
closeCommit(instance, opened);
|
|
2945
3068
|
}
|
|
@@ -913,6 +913,27 @@ export function ownMember(value, name) {
|
|
|
913
913
|
// `Object.getOwnPropertyNames` read past, and the record keeps its FOUR declared members.
|
|
914
914
|
export const COMMIT_LOG = Symbol.for('provident-storeroom.commit-log');
|
|
915
915
|
|
|
916
|
+
/** **⟶ ADDED 2026-11-02 — `D-119`: THE ONE FACT THE SEAL ALREADY COMPUTES, KEPT WHERE IT COMPUTES IT.**
|
|
917
|
+
* `sealHandoff`'s second position already answers *"does this call OWN the commit's list"* (`shared`, read off
|
|
918
|
+
* `commitLogInFlight`), and until this date that answer was used and discarded. **IT IS KEPT**: one
|
|
919
|
+
* `Object.defineProperty(report, COMMIT_LOG_SHARED, …)` placed BEFORE the freeze, carrying `shared === true` —
|
|
920
|
+
* **a NON-ENUMERABLE, NON-WRITABLE, `configurable` own `data` property, invisible to `Object.keys` AND to
|
|
921
|
+
* `Object.getOwnPropertyNames`, so it moves no census anywhere** (`A117` (D6)), **under the tree's own
|
|
922
|
+
* cross-side `Symbol.for` spelling, the device `COMMIT_LOG` above already uses.**
|
|
923
|
+
*
|
|
924
|
+
* **WHY IT IS A FACT AND NOT AN INFERENCE.** `Object.isFrozen(report.log)` would answer the same question
|
|
925
|
+
* today (the seal freezes the list only where the attempt owns it), **and it is REFUSED as a discriminator**:
|
|
926
|
+
* it reads a property's CONSEQUENCE rather than the fact, so a later pass that froze a shared list would
|
|
927
|
+
* invert every answer silently. **The fact is computed at the crossing, so it is placed at the crossing.**
|
|
928
|
+
*
|
|
929
|
+
* **WHAT IT IS FOR, AND WHAT IT IS NOT.** The entry reads it to decide what a PASSING answer's `log` carries
|
|
930
|
+
* (`D-119`; `constraints.mjs`'s `defineResolutionLog`): the commit's own sealed list where this call owns its
|
|
931
|
+
* commit, and the frozen empty list where it joined an enclosing one whose list has not crossed (`D-53`).
|
|
932
|
+
* **IT IS A BOOLEAN AND NOT A LIST, AND IT RETAINS NOTHING** (`D-58`): one bit on a report the answer already
|
|
933
|
+
* holds, released with the answer and by nothing else.
|
|
934
|
+
*/
|
|
935
|
+
export const COMMIT_LOG_SHARED = Symbol.for('provident-storeroom.commit-log-shared');
|
|
936
|
+
|
|
916
937
|
// ---------------------------------------------------------------------------------------------
|
|
917
938
|
// **⟶ THE HANDOFF'S OWN SEAL — `D-55` ITEM 6, `DEF-AO`, ADDED 2026-10-28.** The architect, verbatim:
|
|
918
939
|
// *"Attempts don't log. This is what the commits are for. The commits have their log handed off to the client
|
|
@@ -948,6 +969,19 @@ export function sealHandoff(report, shared) {
|
|
|
948
969
|
// `refusalLog`'s own rule (`surface.md §2.5` item 4) is that a `log` is a list on every arm.
|
|
949
970
|
const log = report.log;
|
|
950
971
|
if (shared !== true && Array.isArray(log) === true) Object.freeze(log);
|
|
972
|
+
// **⟶ AND THE OWNERSHIP FACT IS PLACED BEFORE THE FREEZE — `D-119`** (`COMMIT_LOG_SHARED` above): one
|
|
973
|
+
// non-enumerable own `data` property carrying `shared === true`, read by the entry when it decides what a
|
|
974
|
+
// PASSING answer's `log` carries. **IT MOVES NO CENSUS OF THE REPORT** (`Object.keys` reads five members
|
|
975
|
+
// before and after; so does `Object.getOwnPropertyNames`, which no symbol ever enters), and it is defined
|
|
976
|
+
// only where the report can still take it — a report this frame has already sealed is already sealed.
|
|
977
|
+
if (Object.isExtensible(report) === true) {
|
|
978
|
+
Object.defineProperty(report, COMMIT_LOG_SHARED, {
|
|
979
|
+
value: shared === true,
|
|
980
|
+
writable: false,
|
|
981
|
+
enumerable: false,
|
|
982
|
+
configurable: true,
|
|
983
|
+
});
|
|
984
|
+
}
|
|
951
985
|
Object.freeze(report);
|
|
952
986
|
return report;
|
|
953
987
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// `D-13` (`docs/L1/kernel-subdivision.md` §1 part `9b`) — the registration act, its evaluation, and the registry's removal: bytes moved from `bindings/js/src/constraint-kernel.mjs`; no logic changed.
|
|
2
|
-
import { KC, KERNEL_REFUSAL, markBodyThrow, refuse, inDomainAddress, inDomainId, pairRowAt, sameAddress, kernelFor, append, appendOwn, landedOp, pairsTriggered, enterCommitFrame, leaveCommitFrame, pairApplication, PAIR_APPLICABLE } from './kernel-foundations.mjs';
|
|
2
|
+
import { KC, KERNEL_REFUSAL, markBodyThrow, refuse, inDomainAddress, inDomainId, pairRowAt, sameAddress, kernelFor, append, appendOwn, ownMember, landedOp, pairsTriggered, enterCommitFrame, leaveCommitFrame, pairApplication, PAIR_APPLICABLE } from './kernel-foundations.mjs';
|
|
3
3
|
import { composeRollback, dropHandoff } from './kernel-terminal.mjs';
|
|
4
4
|
|
|
5
5
|
/// **⟶ ADDED 2026-10-27 — `D-46`'s NAME ON A REPAIR INVOCATION'S OWN ENTRY, SPELLED HERE AS
|
|
@@ -396,10 +396,10 @@ function registrationEvaluation(kernel, store, address, id, constraint) {
|
|
|
396
396
|
// caller registered); a value outside the three arms is READ AS the `{message}` arm (`VA-11`) and never as
|
|
397
397
|
// an arm of its own. **A REPAIR THE OUTCOME DOES NOT CARRY IS NO REPAIR REGISTERED FOR THE PAIR.**
|
|
398
398
|
if (outcome === true) return null;
|
|
399
|
-
const
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
399
|
+
const outcomeRepair = outcome !== null && typeof outcome === 'object' && Object.hasOwn(outcome, 'message')
|
|
400
|
+
? ownMember(outcome, 'repair')
|
|
401
|
+
: undefined;
|
|
402
|
+
const repair = typeof outcomeRepair === 'function' ? outcomeRepair : null;
|
|
403
403
|
// STATE 2 — THE STATE VIOLATES IT AND NO REPAIR IS REGISTERED. Nothing is attempted and no attempt is
|
|
404
404
|
// opened; the refusal carries the store's code and the row's own slots.
|
|
405
405
|
if (repair === null) return registrationRefusal(address, id, commitLog);
|
|
@@ -673,7 +673,7 @@ function registrationAttempt(kernel, store, pair) {
|
|
|
673
673
|
leaveCommitFrame(kernel);
|
|
674
674
|
}
|
|
675
675
|
|
|
676
|
-
const ok = result !== null && typeof result === 'object' && result
|
|
676
|
+
const ok = result !== null && typeof result === 'object' && ownMember(result, 'ok') === true;
|
|
677
677
|
const produced = ok ? landedOp(attempt, result, null) : null;
|
|
678
678
|
if (produced === null) {
|
|
679
679
|
// ARM (d) — THE REPAIR PRODUCED NO OP: `{ok: false, message}`, an outside-form return, or an
|