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/src/entry/delivery.mjs
CHANGED
|
@@ -306,6 +306,16 @@ export function installRegistrationSeam(instance, state) {
|
|
|
306
306
|
|
|
307
307
|
const LISTEN_ROUTE = Symbol.for('provident-storeroom.listen-route');
|
|
308
308
|
|
|
309
|
+
/// **⟶ AND THE REGISTRATION'S OWN SAVE CHANNEL, 2026-11-02 — `D-106` ITEM 3'S FIRST ARM.**
|
|
310
|
+
/// **THE REGISTRATION'S CLOSE OWES A SAVE THAT THE TERMINAL ARM'S GATE NEVER REACHES** (`kernel-registration.mjs`
|
|
311
|
+
/// passes neither the terminal arm nor `deliver`), so the close names the last `file`-tier op its route landed to
|
|
312
|
+
/// this channel **and the channel performs THE SAME `commitFile` FRAME THE TERMINAL ARM PERFORMS** — one save
|
|
313
|
+
/// path in the tree, two callers of it. **A `Symbol.for`-keyed own property, `enumerable: false`, invisible to
|
|
314
|
+
/// `Object.keys` and to `Object.getOwnPropertyNames`**, so the product's declared FOURTEEN own members are
|
|
315
|
+
/// unmoved (`A117` (D6)) — the device `REGISTER_BODY` and `LISTEN_ROUTE` above already use, and neither the
|
|
316
|
+
/// kernel nor this file imports the other.
|
|
317
|
+
const REGISTRATION_SAVE = Symbol.for('provident-storeroom.registration-save');
|
|
318
|
+
|
|
309
319
|
/// **THE ONE COPY OF A CALLER-SUPPLIED ADDRESS'S SEGMENTS — `D-35`'s READ HALF, MOVED HERE 2026-11-01 WITH THE
|
|
310
320
|
/// BODY THAT IS ITS ONLY READER.** `listen(handle, addresses)` hands the SET, and each member of it is THE
|
|
311
321
|
/// CALLER'S OWN ARRAY, so the two `addresses[i].slice()` sites the extracted body carries took
|
|
@@ -438,6 +448,35 @@ export function installListenRoute(instance, state) {
|
|
|
438
448
|
});
|
|
439
449
|
}
|
|
440
450
|
|
|
451
|
+
/// **THE REGISTRATION'S SAVE, INSTALLED ONCE BY `storeCreate` — `D-106` ARM 1, 2026-11-02.** **IT TAKES ONE
|
|
452
|
+
/// POSITION, THE OP ID THE CLOSE NAMES, AND IT MINTS NOTHING**: no member of the product, no kernel item, no
|
|
453
|
+
/// record member, no op, no verb — `Object.defineProperty` at `enumerable: false` is invisible to `Object.keys`
|
|
454
|
+
/// and to `Object.getOwnPropertyNames` (`A117` (D6)), exactly as the channels beside it.
|
|
455
|
+
///
|
|
456
|
+
/// **ITS BODY IS THE STORE'S ONE SAVE FRAME AND NOTHING ELSE** — `commitFile(state.receiver, opId)`, the frame
|
|
457
|
+
/// `delivery.mjs:826` already calls for a write's save (`state.mjs`'s `commitFile`, which the tree's own reason
|
|
458
|
+
/// for existing is that there is ONE save path and not two). **IT ANSWERS `undefined` ON EVERY ARM**: a call
|
|
459
|
+
/// with no position, or with a position that is not a non-empty string, does nothing and throws nothing, and a
|
|
460
|
+
/// store's own refusal crosses from `commitFile` unconverted.
|
|
461
|
+
///
|
|
462
|
+
/// **WHERE IT IS INSTALLED IS `index.mjs`'s `installListenRoute` NEIGHBOURHOOD AND NOT THE TWO LATER SEAMS**
|
|
463
|
+
/// (`PIN-3` (ii)(d)): the construction's batch arming walk runs BEFORE both of them, so a channel installed
|
|
464
|
+
/// there would leave a `storeCreate` carrying `cfg.constraints` — and a boot carrying them — with no route to
|
|
465
|
+
/// the save.
|
|
466
|
+
export function installRegistrationSave(instance, state) {
|
|
467
|
+
if (typeof instance[REGISTRATION_SAVE] === 'function') return;
|
|
468
|
+
Object.defineProperty(instance, REGISTRATION_SAVE, {
|
|
469
|
+
value: (opId) => {
|
|
470
|
+
if (typeof opId !== 'string' || opId.length === 0) return undefined;
|
|
471
|
+
commitFile(state.receiver, opId);
|
|
472
|
+
return undefined;
|
|
473
|
+
},
|
|
474
|
+
writable: false,
|
|
475
|
+
enumerable: false,
|
|
476
|
+
configurable: false,
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
|
|
441
480
|
/// **THE REGISTRY'S OWN SITE AT THE PACKAGE'S BOUNDARY** (`surface.md §2.4` item 5): the caller's FUNCTION
|
|
442
481
|
/// for a handle, held by the package (`DD-15`) and invoked after the verb has returned (`docs/specs/storeroom-js/surface.md §2.7` item 2).
|
|
443
482
|
/// **`register` REPLACES, never fans out** (rule 2); a non-function `listener`, a `handle` THIS INSTANCE
|
|
@@ -733,9 +772,11 @@ export function terminalArm(state, record) {
|
|
|
733
772
|
if (record === null || typeof record !== 'object' || types.isProxy(record) || record.pending === undefined) {
|
|
734
773
|
return undefined;
|
|
735
774
|
}
|
|
736
|
-
// ── `docs/specs/storeroom-js/surface.md §2.11` CLAUSE 2: THE TERMINAL ARM'S FIRST ACT, ON THE PASSING ARM
|
|
737
|
-
// **THE ARM IS READ OFF THE KERNEL'S MARK AND OFF NOTHING ELSE**: a
|
|
775
|
+
// ── `docs/specs/storeroom-js/surface.md §2.11` CLAUSE 2: THE TERMINAL ARM'S FIRST ACT, ON THE PASSING ARM ────
|
|
776
|
+
// **THE ARM IS READ OFF THE KERNEL'S MARK AND OFF NOTHING ELSE**: a write's or a delete's pass that FAILED
|
|
738
777
|
// arrives here with its record in hand and drives NO save and NO store call of its own (`docs/specs/storeroom-js/surface.md §2.11` clause 1).
|
|
778
|
+
// **AND THE OP'S OWN TIER WORD IS NOT READ AT THIS GATE FROM 2026-11-02**: the eligibility question is the
|
|
779
|
+
// store's (`PIN-4` (i)), and the conjunct that pre-answered it here is below, withdrawn with its reason.
|
|
739
780
|
const answer = state.leg;
|
|
740
781
|
if (
|
|
741
782
|
record[SETTLED_ON_THE_PASSING_ARM] === true
|
|
@@ -743,7 +784,18 @@ export function terminalArm(state, record) {
|
|
|
743
784
|
&& answer !== undefined
|
|
744
785
|
&& answer.op !== null
|
|
745
786
|
&& answer.op !== undefined
|
|
746
|
-
|
|
787
|
+
// **⟶ AND THE TIER CONJUNCT LEAVES THE GATE WHOLE, 2026-11-02 — `D-106` item 2, `arms.md §C.3`, `PIN-17`.**
|
|
788
|
+
// **THE PRE-FILTER'S LAST CLASS IS GONE AND WHAT REMAINS IS NOT A PREDICATE BUT THE GROUND ITSELF, ASKED
|
|
789
|
+
// DIRECTLY.** The conjunct that stood here read *"the op's tier is `'file'`, or the op names no tier"* and
|
|
790
|
+
// its own clause justified the exclusion with *"a `mem`- or `temp`-tier op cannot have moved a `file`-tier
|
|
791
|
+
// version"* — **WHICH IS FALSE: a lower-persistence write of a CONTAINER value PURGES the `file`-tier
|
|
792
|
+
// version standing above it as a leaf (`src/store.rs`'s re-mint arm), and that purge owes a save.** So the
|
|
793
|
+
// gate asks the store, whose `commit_file` answers with its one eligibility ground — what the act moved —
|
|
794
|
+
// and returns `Ok(())` before `write_file` where the act moved nothing at `Tier::File`. **THE COST IS ONE
|
|
795
|
+
// ADDON CALL PER PASSING WRITE'S AND DELETE'S OP THE OLD GATE WOULD HAVE SKIPPED, AND IT IS A CALL AND NOT A
|
|
796
|
+
// BYTE**: `save_owed` is a predicate over the entry's own two records and the store performs no I/O until
|
|
797
|
+
// it answers `true`. **NOTHING ELSE ON THIS GATE MOVES** — the arm test above it, the two presence tests,
|
|
798
|
+
// and the carry and the catch below.
|
|
747
799
|
) {
|
|
748
800
|
try {
|
|
749
801
|
// **THE FILE-TIER SAVE'S OWN ENTRY, REACHED BY ITS OWN NAME** (`js-unwrap.md §5`: *"EACH MEMBER CALLS
|
|
@@ -114,7 +114,17 @@ const EXTERNAL_CALL = Symbol.for('provident-storeroom.external-call');
|
|
|
114
114
|
/// fallback with NO bracket, nothing is appended to any leg list — **and a bare read of the leg channel would
|
|
115
115
|
/// answer a PREVIOUS invocation's legs.** **SO THE FACT IS CARRIED OUT OF THIS FRAME ON THE CALLER'S OWN
|
|
116
116
|
/// `invocation` OBJECT (`bracketed`), and the arm reads the channel only where it is `true`.**
|
|
117
|
-
|
|
117
|
+
///
|
|
118
|
+
/// **⟶ AND IT IS EXPORTED FROM 2026-11-02, FOR ITS SECOND CALLER — `D-113` ITEM 3's REPAIR ARM AT THE REVERSAL'S
|
|
119
|
+
/// JUDGEMENT** (`bindings/js/src/entry/constraints.mjs`'s `judgeReversal`). **ONE KEYWORD, ON THE PRECEDENT
|
|
120
|
+
/// `sites.md §1.5` set for `composeRollback`** (*"it is EXPORTED for its second caller — the part's export list
|
|
121
|
+
/// gains one name and the barrel that publishes the kernel's six does not re-export it"*): `bindings/js/src/
|
|
122
|
+
/// constraint-kernel.mjs` keeps its four lines and its six names, no kernel item is minted (`kernel-surface.md
|
|
123
|
+
/// §1` item 2's `K-1`–`K-6` stand), and no member, arity or entry moves. **THE BODY MOVES NO BYTE**, and the
|
|
124
|
+
/// commit it names at that second caller is the judgement's own (`state.mjs`'s `openCommit` joins where the count
|
|
125
|
+
/// already stands, so a repair's write joins the judgement's commit instead of opening a second one — `D-46`,
|
|
126
|
+
/// `D-53`).
|
|
127
|
+
export function repairInCommit(store, commit, run, invocation) {
|
|
118
128
|
const channel = store !== null && typeof store === 'object' ? store[EXTERNAL_CALL] : undefined;
|
|
119
129
|
if (typeof channel === 'function') {
|
|
120
130
|
invocation.bracketed = true;
|
|
@@ -186,7 +196,15 @@ const REPAIR_LEG = Symbol.for('provident-storeroom.repair-leg');
|
|
|
186
196
|
/// **A CHANNEL THAT THROWS ANSWERS NOTHING** — `D-35`'s read half read for a hand-over, and the same conservative
|
|
187
197
|
/// side `bumpMark` answers on its own throwing arm: the commit then merges no repair element and delivers exactly
|
|
188
198
|
/// what it delivered before the fix.
|
|
189
|
-
|
|
199
|
+
///
|
|
200
|
+
/// **⟶ AND IT IS EXPORTED FROM 2026-11-02, FOR THE SAME SECOND CALLER — `D-113` ITEM 3, `D-104`'s TWO GUARDS READ
|
|
201
|
+
/// AT THE JUDGEMENT'S REPAIR ARM** (the carrier's `§3` (iii) 3 and `§3` (iv): *"the legs are read through `D-104`'s
|
|
202
|
+
/// two guards, which are the pass's, and are carried unchanged"*). **THE ALTERNATIVE IS REFUSED AND PRICED**:
|
|
203
|
+
/// reading the `REPAIR_LEG` channel from `constraints.mjs` would re-implement `invocation.bracketed` and
|
|
204
|
+
/// `kernel.attempts` there — **two guards, a second copy, and the drifting-mechanism hazard `D-110` item 2
|
|
205
|
+
/// forbids**. **ONE KEYWORD AND NO OTHER BYTE**: the barrel keeps its four lines and six names, and the element
|
|
206
|
+
/// shape, the guards, the read and the clear are exactly what they were.
|
|
207
|
+
export function repairLegs(store, kernel, invocation, attemptsBefore) {
|
|
190
208
|
if (invocation.bracketed !== true) return [];
|
|
191
209
|
if (kernel.attempts !== attemptsBefore) return [];
|
|
192
210
|
const channel = store !== null && typeof store === 'object' ? store[REPAIR_LEG] : undefined;
|
|
@@ -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,6 +1,6 @@
|
|
|
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
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';
|
|
3
|
-
import { dropHandoff } from './kernel-terminal.mjs';
|
|
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
|
|
6
6
|
/// `kernel-attempt.mjs` SPELLS IT.** **THE RULING, THE ARCHITECT, VERBATIM: *"A constraint's repair needs to stay
|
|
@@ -40,6 +40,16 @@ const REGISTER_BODY = Symbol.for('provident-storeroom.register-body');
|
|
|
40
40
|
/// `§1` item 2), no member on any record, no store verb, no store act of its own.
|
|
41
41
|
const LISTEN_ROUTE = Symbol.for('provident-storeroom.listen-route');
|
|
42
42
|
|
|
43
|
+
/// **⟶ AND THE REGISTRATION'S OWN SAVE CHANNEL, SPELLED ON THIS SIDE TOO — `D-106` ARM 1, 2026-11-02.**
|
|
44
|
+
/// `delivery.mjs`'s `installRegistrationSave` installs it and this module reaches it, **and neither side imports
|
|
45
|
+
/// the other**: the same `Symbol.for` device `EXTERNAL_CALL`, `REGISTER_BODY`, `LISTEN_ROUTE`, `TERMINAL_ARM`,
|
|
46
|
+
/// `COMMIT_SCOPE` and `FORGET_PAIR` already cross by (`kernel-surface.md §1` item 1's empty import footprint;
|
|
47
|
+
/// `A110`). **IT TAKES ONE POSITION — THE OP ID THE CLOSE NAMES — AND MINTS NOTHING**: no kernel item (`K-1`…`K-6`
|
|
48
|
+
/// and no seventh name), no member on any record, no record, no op and no store verb. **The act it performs is the
|
|
49
|
+
/// entry's own `commitFile`, the ONE save frame the terminal arm already calls** — so the tree still has one save
|
|
50
|
+
/// path and two callers of it, which is the fact `D-106`'s root cause turns on.
|
|
51
|
+
const REGISTRATION_SAVE = Symbol.for('provident-storeroom.registration-save');
|
|
52
|
+
|
|
43
53
|
/// **THE INVOCATION OF A REPAIR BODY, WITH THE SYNTHETIC ATTEMPT'S COMMIT NAMED ON ITS ENTRY** — one call, its
|
|
44
54
|
/// answer the body's own, and a throwable crosses unchanged. **THE SECOND COPY OF THE FIVE-LINE FORM
|
|
45
55
|
/// `kernel-attempt.mjs` DECLARES**, because the two part files share no import and neither may reach the entry
|
|
@@ -233,7 +243,19 @@ export function register(store, address, id, constraint) {
|
|
|
233
243
|
// refusal it throws carries `status` (the STORE's member, `A120` (2)) and the `§8.2` row's own slot
|
|
234
244
|
// VALUES, and the surface renders the text through the generator it already holds. **NO `KC` TOKEN IS
|
|
235
245
|
// MINTED:** the synthetic attempt's own terminal token stays inside this module (`registrationRefusal`).
|
|
236
|
-
|
|
246
|
+
// **⟶ AND THE THROWABLE THE EVALUATION MAY CARRY IS CAUGHT HERE FROM 2026-11-02 — `PIN-15` (ii), `PIN-15`
|
|
247
|
+
// (iv).** **THIS FRAME ALREADY STATES THE RULE FOR A REFUSAL THAT COMES BACK** (*"a refused registration leaves
|
|
248
|
+
// the registry exactly as it stood"*, below); **the throwing arm reaches the same conclusion by the same act
|
|
249
|
+
// and had never come back through it**, so it is taken here: the pair row this call wrote is withdrawn with
|
|
250
|
+
// its handle and its place in the address's order list, **and the caught value is re-thrown UNCONVERTED and by
|
|
251
|
+
// identity** (`caught === thrown`), which is `D-35`'s read half and `fail-surface.md §1.1` item 5's rule.
|
|
252
|
+
let refused;
|
|
253
|
+
try {
|
|
254
|
+
refused = registrationEvaluation(kernel, store, address, id, constraint);
|
|
255
|
+
} catch (thrown) {
|
|
256
|
+
withdrawRegistration(kernel, address, id, standing === undefined, adopted);
|
|
257
|
+
throw thrown;
|
|
258
|
+
}
|
|
237
259
|
if (refused !== null) {
|
|
238
260
|
// **A REFUSED REGISTRATION LEAVES THE REGISTRY EXACTLY AS IT STOOD** (`§2.1` item 1's sentence, whose
|
|
239
261
|
// regulatory force reaches this third refusing act — `§7.3` (b) state 2's own reading of it): the pair
|
|
@@ -444,7 +466,7 @@ function readCurrent(store, address) {
|
|
|
444
466
|
* FOURTH.** It is built by `registrationRoute` below, which names THE REGISTRATION'S OWN `CommitRecord` and
|
|
445
467
|
* refuses a supplied fourth position BEFORE any store act.
|
|
446
468
|
*/
|
|
447
|
-
function registrationRepairContext(store, address, id, commitRecord) {
|
|
469
|
+
function registrationRepairContext(store, address, id, commitRecord, landed, purged) {
|
|
448
470
|
return {
|
|
449
471
|
address: address.slice(),
|
|
450
472
|
id,
|
|
@@ -454,8 +476,10 @@ function registrationRepairContext(store, address, id, commitRecord) {
|
|
|
454
476
|
op: null,
|
|
455
477
|
// THE COMMIT THE REPAIR IS PART OF — a FRESH LIST, never the record's own member (`§2.3` item 2).
|
|
456
478
|
pending: Array.isArray(commitRecord.pending) ? commitRecord.pending.slice() : [],
|
|
457
|
-
// THE SEVENTH MEMBER, AT THIS INSTANT ALONE (`PIN-6` (ii)): the route the repair may take
|
|
458
|
-
|
|
479
|
+
// THE SEVENTH MEMBER, AT THIS INSTANT ALONE (`PIN-6` (ii)): the route the repair may take — and it is
|
|
480
|
+
// handed THE FRAME'S OWN LIST of the ops it lands (`D-106` arm 1), which no record carries — **and the
|
|
481
|
+
// SECOND frame local beside it, the one `PIN-17` (iv) declares** (`purged`, below).
|
|
482
|
+
write: registrationRoute(store, commitRecord, landed, purged),
|
|
459
483
|
};
|
|
460
484
|
}
|
|
461
485
|
|
|
@@ -489,7 +513,7 @@ function registrationRepairContext(store, address, id, commitRecord) {
|
|
|
489
513
|
* **AND IT IS NOT A COPY OF THE STORE**: it is the route the kernel binds to the instance the registration is
|
|
490
514
|
* constructing, so it answers this store and no other.
|
|
491
515
|
*/
|
|
492
|
-
function registrationRoute(store, commitRecord) {
|
|
516
|
+
function registrationRoute(store, commitRecord, landed, purged) {
|
|
493
517
|
return function write(address, tier, value) {
|
|
494
518
|
// THE ARITY TEST IS THIS UNIT'S OWN AND IT STANDS BEFORE ANY STORE ACT (`PIN-6` (iii)).
|
|
495
519
|
if (arguments.length > 3) {
|
|
@@ -498,7 +522,33 @@ function registrationRoute(store, commitRecord) {
|
|
|
498
522
|
+ 'commit is the registration\'s own and cannot be named',
|
|
499
523
|
);
|
|
500
524
|
}
|
|
501
|
-
|
|
525
|
+
const answered = store.write(address, tier, value, commitRecord);
|
|
526
|
+
// **THE ROUTE RECORDS WHAT IT LANDS — `D-106` ARM 1, 2026-11-02.** The store answers a FRESH op per call, so
|
|
527
|
+
// the op is appended BY IDENTITY, with no copy and no dedup, **to the list the FRAME owns** — not to
|
|
528
|
+
// `attempt.ops`, which holds only a repair's CREDITED op and which `landedOp` REFUSES to grow
|
|
529
|
+
// (`kernel-foundations.mjs`), so the ordinary refusing case would leave `attempt.ops` empty.
|
|
530
|
+
// **THE ROUTE STILL CONVERTS NOTHING, CATCHES NOTHING AND MINTS NO CODE**: this is one append of the value the
|
|
531
|
+
// store already answered, and the answer itself crosses unchanged.
|
|
532
|
+
if (answered !== null && typeof answered === 'object' && answered.op !== null && answered.op !== undefined) {
|
|
533
|
+
appendOwn(landed, answered.op);
|
|
534
|
+
// **⟶ AND THE ONE KIND THE CLOSE CANNOT SEE FOR ITSELF IS RECORDED HERE, BESIDE THE LANDED OP — `PIN-17`
|
|
535
|
+
// (iv), `strata/decisions.md` · `D-106` item 2, 2026-11-02.** **A WRITE AT A TIER BELOW `file` WHOSE
|
|
536
|
+
// CARRIED VALUE WAS A CONTAINER IS THE ONE CLASS THAT CAN PURGE A `file`-TIER VERSION** — the store's
|
|
537
|
+
// re-mint arm pushes a LEAF standing above the write's tier into `doomed`, so the durable version leaves
|
|
538
|
+
// the register and the bytes must follow it — **and a SCALAR at the same address SHADOWS that version
|
|
539
|
+
// instead and purges nothing.** The route has the value in hand and the op in hand, so the fact is taken
|
|
540
|
+
// here, at the act, and `lastFileLanding` reads it below. **IT IS A SECOND FRAME LOCAL AND NOT A MEMBER**:
|
|
541
|
+
// `PIN-3` (ii)(a)'s device — no member is minted on the attempt, on the op, on any record or on the
|
|
542
|
+
// instance — **and it is a CANDIDATE SELECTION and not an eligibility decision**: the store's own
|
|
543
|
+
// `save_owed` still decides whether a byte moves, and a container write over a CONTAINER target purges
|
|
544
|
+
// nothing and is answered `Ok(())` with no byte written.
|
|
545
|
+
const carried = value !== null && typeof value === 'object';
|
|
546
|
+
const below = answered.op.tier !== 'file';
|
|
547
|
+
if (carried === true && below === true && Array.isArray(purged)) {
|
|
548
|
+
appendOwn(purged, answered.op.opId);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
return answered;
|
|
502
552
|
};
|
|
503
553
|
}
|
|
504
554
|
|
|
@@ -584,8 +634,19 @@ function registrationAttempt(kernel, store, pair) {
|
|
|
584
634
|
appendOwn(attempt.ran, key);
|
|
585
635
|
append(attempt, 'repair-run', { pair, op: null }, 'the pair\'s repair was attempted at registration');
|
|
586
636
|
|
|
637
|
+
// **⟶ AND THE FRAME KEEPS ITS OWN LIST OF EVERY OP ITS ROUTE LANDED, IN CREATION ORDER — `D-106` ARM 1,
|
|
638
|
+
// 2026-11-02.** **NO MEMBER IS MINTED ON THE ATTEMPT, ON ANY RECORD OR ON THE INSTANCE**: the attempt's
|
|
639
|
+
// nine-member record stands byte for byte, and this list is a LOCAL handed to `registrationRoute` and to the
|
|
640
|
+
// close. **IT IS THE SAVE'S KEY AND THE REFUSING ARM'S SCOPE, AND IT IS NOT `attempt.ops`** — see the route's
|
|
641
|
+
// own clause above and `landedOp`'s refusal to grow that member.
|
|
642
|
+
const landed = [];
|
|
643
|
+
// **AND THE SECOND FRAME LOCAL, BESIDE IT — `PIN-17` (iv).** The op ids of the route's landings whose carried
|
|
644
|
+
// value was a CONTAINER at a tier below `file`: the only class that can PURGE a `file`-tier version, and
|
|
645
|
+
// therefore the one disjunct `lastFileLanding` cannot read off the op itself. **No member carries it** — not on
|
|
646
|
+
// the attempt, not on the op, not on any record and not on the instance (`PIN-3` (ii)(a)).
|
|
647
|
+
const purged = [];
|
|
587
648
|
let result;
|
|
588
|
-
const repairContext = registrationRepairContext(store, address, pair.id, attempt.commit);
|
|
649
|
+
const repairContext = registrationRepairContext(store, address, pair.id, attempt.commit, landed, purged);
|
|
589
650
|
try {
|
|
590
651
|
// **⟶ RE-DERIVED 2026-10-27 — STATE `3`'S REPAIR NAMES THE SYNTHETIC ATTEMPT'S COMMIT AND IS NO LONGER
|
|
591
652
|
// MARKED AS AN OWNER OF ITS OWN (`D-46` item `2`).** `D-45` invoked it through the entry's `externalCall`,
|
|
@@ -606,7 +667,7 @@ function registrationAttempt(kernel, store, pair) {
|
|
|
606
667
|
// **THE BODY'S THROWABLE IS NOT CONVERTED INTO A STORE FORM AND IS NOT REACHED BY THE CALLER HERE**: it
|
|
607
668
|
// is caught so the attempt can close and the registration can be refused in the declared form; a drive
|
|
608
669
|
// that expected the body's own value out of `addConstraint` has read a route no clause declares.
|
|
609
|
-
closeRegistrationAttempt(kernel, attempt);
|
|
670
|
+
closeRegistrationAttempt(kernel, attempt, landed);
|
|
610
671
|
return registrationRefusal(address, pair.id, attempt.log);
|
|
611
672
|
} finally {
|
|
612
673
|
leaveCommitFrame(kernel);
|
|
@@ -617,7 +678,7 @@ function registrationAttempt(kernel, store, pair) {
|
|
|
617
678
|
if (produced === null) {
|
|
618
679
|
// ARM (d) — THE REPAIR PRODUCED NO OP: `{ok: false, message}`, an outside-form return, or an
|
|
619
680
|
// `ok === true` return whose `op` is absent, `undefined` or not the one it landed.
|
|
620
|
-
closeRegistrationAttempt(kernel, attempt);
|
|
681
|
+
closeRegistrationAttempt(kernel, attempt, landed);
|
|
621
682
|
return registrationRefusal(address, pair.id, attempt.log);
|
|
622
683
|
}
|
|
623
684
|
|
|
@@ -630,14 +691,29 @@ function registrationAttempt(kernel, store, pair) {
|
|
|
630
691
|
// THE RE-RUN — `3-bis` (d)'s arms (e)/(f) and `3-bis` (e)'s ordinary landing rules: the repair's op
|
|
631
692
|
// LANDED, so the pairs registered at ITS OWN landing's address are evaluated by the ordinary pass
|
|
632
693
|
// (`kernel-surface.md §2.3` item 1), in first-registration order, against THAT op.
|
|
633
|
-
|
|
694
|
+
// **⟶ AND THE CALL IS INSIDE A `catch` FROM 2026-11-02 — `PIN-15` (ii), `strata/decisions.md` · `D-107`
|
|
695
|
+
// item 1.** **A CONSTRAINT BODY THAT THROWS AT ITS OWN RE-RUN COMPOSES THE REGISTRATION'S ROLLBACK AND CLOSES
|
|
696
|
+
// ITS ATTEMPT HERE, BEFORE THE THROWABLE CROSSES.** The re-run marks and re-throws (`registrationRerun`'s own
|
|
697
|
+
// arm, byte-unmoved), so without this frame the throwable left `registrationAttempt` at the line below, the
|
|
698
|
+
// route's landed edit stood in memory and unsaved, and the attempt was left `'open'` in `kernel.live` with no
|
|
699
|
+
// report. **THE FRAME COMPOSES AND CLOSES AND THEN RE-THROWS THE VERY VALUE IT RECEIVED** — `caught ===
|
|
700
|
+
// thrown`, never re-marked, never wrapped and never re-classed (`PIN-15` (iv)): the crossing at the entry is
|
|
701
|
+
// still the only converter, and the arm's `'failed'` report in `kernel.closed` is a record of an ATTEMPT and
|
|
702
|
+
// not of the refusal the caller receives (`arms.md §A.5`).
|
|
703
|
+
let failed;
|
|
704
|
+
try {
|
|
705
|
+
failed = registrationRerun(kernel, attempt, produced, key);
|
|
706
|
+
} catch (body) {
|
|
707
|
+
closeRegistrationAttempt(kernel, attempt, landed);
|
|
708
|
+
throw body;
|
|
709
|
+
}
|
|
634
710
|
if (failed !== null) {
|
|
635
|
-
closeRegistrationAttempt(kernel, attempt);
|
|
711
|
+
closeRegistrationAttempt(kernel, attempt, landed);
|
|
636
712
|
return registrationRefusal(address, pair.id, attempt.log);
|
|
637
713
|
}
|
|
638
714
|
// THE PASSING ARM: `PASSED` → `CLOSED` and the registration STANDS. **NO LOG CROSSES**, and the repair's
|
|
639
715
|
// edit STANDS in the store — the side effect the architect's trust clause licenses (`3-bis` (f)).
|
|
640
|
-
closeRegistrationAttempt(kernel, attempt, 'passed');
|
|
716
|
+
closeRegistrationAttempt(kernel, attempt, landed, 'passed', purged);
|
|
641
717
|
return null;
|
|
642
718
|
}
|
|
643
719
|
|
|
@@ -810,19 +886,92 @@ function registrationRefusal(address, id, log) {
|
|
|
810
886
|
}
|
|
811
887
|
|
|
812
888
|
/// **THE SYNTHETIC ATTEMPT'S TERMINAL ACT — `PASSED` OR `FAILING`, AND `CLOSED` FROM THOSE TWO AND FROM
|
|
813
|
-
/// NOWHERE ELSE** (`attempt-lifecycle.md §2.4` item 3).
|
|
814
|
-
///
|
|
815
|
-
///
|
|
816
|
-
///
|
|
817
|
-
///
|
|
818
|
-
|
|
889
|
+
/// NOWHERE ELSE** (`attempt-lifecycle.md §2.4` item 3). **IT STILL OPENS NO `K-2` AND STILL DELIVERS NO
|
|
890
|
+
/// LISTENER — and it REACHES the per-op rollback composition on its FOUR REFUSING arms and the SAVE on its
|
|
891
|
+
/// passing one, both from 2026-11-02** (`strata/decisions.md` · `D-106` item 3's first arm and `D-107` item 1)
|
|
892
|
+
/// **— the fourth being the re-run's own body-throw arm, which reaches this close through `registrationAttempt`'s
|
|
893
|
+
/// `catch` (`PIN-15` (ii)) and not through a returning refusal.**
|
|
894
|
+
///
|
|
895
|
+
/// **A REFUSAL ROLLS BACK, WITHOUT EXCEPTION.** **When a registration refuses — because the repair's body threw,
|
|
896
|
+
/// because the repair credited no op, because the re-run refused the repair's own landing, or because a
|
|
897
|
+
/// CONSTRAINT BODY THREW AT THE RE-RUN — this close composes a rollback over EVERY OP ITS ROUTE LANDED and the
|
|
898
|
+
/// store is left where the registration found it.**
|
|
899
|
+
/// **THE COMPOSITION IS THE SAME INSTRUMENT A FAILING WRITE'S PASS COMPOSES WITH** (`kernel-terminal.mjs`'s
|
|
900
|
+
/// `composeRollback`, handed the frame's own list, `D-40`'s floor plan): one store `rollback` call per distinct
|
|
901
|
+
/// address the landings touched, at that address's earliest such op, shallowest address first. **AND THE ARM
|
|
902
|
+
/// OWES NO SAVE OF ITS OWN** (`D-107` item 2): the reversal's own state-keyed save is what makes the bytes right,
|
|
903
|
+
/// and a second save here would write one image twice.
|
|
904
|
+
///
|
|
905
|
+
/// **AND THE PASSING ARM'S SAVE IS THIS CLOSE'S — `D-106` item 3.** A `file`-tier write the route lands is saved
|
|
906
|
+
/// WHEN THIS ATTEMPT CLOSES ON ITS PASSING ARM, by naming the LAST `file`-tier op the route landed to the
|
|
907
|
+
/// instance's own save channel (the entry's one `commitFile` frame, the same one the terminal arm calls). **ONE
|
|
908
|
+
/// SAVE PER REGISTRATION, WHATEVER ITS REPAIRS**: the image a save writes is the whole register's, so several
|
|
909
|
+
/// `file`-tier repairs ride in one serialization and every earlier entry's `saved: false` is INERT — nothing in
|
|
910
|
+
/// the tree names an op to `commit_file` except the terminal arm, this close and the re-drive the store's own
|
|
911
|
+
/// marker refuses. **AND A REGISTRATION THAT MOVED NO `file`-TIER DATA SAVES NOTHING AND IS ATTEMPTED ONCE FOR
|
|
912
|
+
/// NOTHING.**
|
|
913
|
+
///
|
|
914
|
+
/// **⟶ AND THE CANDIDATE FILTER WIDENS BY ONE DISJUNCT, 2026-11-02 — `PIN-17` (iv), `arms.md §C.4`.** The close
|
|
915
|
+
/// cannot take the terminal arm's cure verbatim: it must name ONE op — `commitFile`'s one position — and the
|
|
916
|
+
/// store's answer does not say whether it wrote. **SO IT KEEPS A CANDIDATE FILTER AND WIDENS IT BY THE ONE CLASS
|
|
917
|
+
/// THE PACKAGE CAN SEE: the last landing whose op is `file`-tier, OR tier-less, OR A WRITE AT A TIER BELOW `file`
|
|
918
|
+
/// WHOSE CARRIED VALUE WAS A CONTAINER** — the only class that can PURGE a `file`-tier version, because the purge
|
|
919
|
+
/// is the container's own re-minting and a scalar only shadows. **IT IS A CANDIDATE SELECTION AND NOT AN
|
|
920
|
+
/// ELIGIBILITY DECISION**: the store's `save_owed` is still the only ground, and a container write over a
|
|
921
|
+
/// CONTAINER target purges nothing and is answered `Ok(())` with no byte written (`lastFileLanding`, below).
|
|
922
|
+
///
|
|
923
|
+
/// **A SAVE THAT CANNOT LAND TURNS THE PASSING ARM INTO A REFUSING ONE**: the store answers its own
|
|
924
|
+
/// `FileCommitFailed` after its journal rollback, **the record that failed is already out of the journal so the
|
|
925
|
+
/// composition names the route's REMAINING ops and not that one**, the report is published and the attempt closed
|
|
926
|
+
/// — **and only then does the store's own two-member form cross**, so no registration ever leaves an open attempt
|
|
927
|
+
/// in the registry (`kernel.closed.set`/`kernel.live.delete` below).
|
|
928
|
+
function closeRegistrationAttempt(kernel, attempt, landed, outcome = 'failed', purged = null) {
|
|
929
|
+
// ── THE PASSING ARM'S SAVE, FIRST, BEFORE THE REPORT IS PUBLISHED AND BEFORE THE ATTEMPT IS MARKED CLOSED ──
|
|
930
|
+
let saveFailure = null;
|
|
931
|
+
let composedOver = landed;
|
|
932
|
+
if (outcome === 'passed') {
|
|
933
|
+
const opId = lastFileLanding(landed, purged);
|
|
934
|
+
if (opId !== null) {
|
|
935
|
+
const seam = attempt.store !== null && typeof attempt.store === 'object'
|
|
936
|
+
? attempt.store[REGISTRATION_SAVE]
|
|
937
|
+
: undefined;
|
|
938
|
+
if (typeof seam === 'function') {
|
|
939
|
+
try {
|
|
940
|
+
seam(opId);
|
|
941
|
+
} catch (thrown) {
|
|
942
|
+
// `PIN-10` (vi)'s sequel, in its declared order: the save fails → the store rolls that op back → the
|
|
943
|
+
// arm becomes a refusing arm → the composition runs over the rest → `FileCommitFailed` crosses.
|
|
944
|
+
saveFailure = thrown;
|
|
945
|
+
outcome = 'failed';
|
|
946
|
+
composedOver = landingsOtherThan(landed, opId);
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
// ── THE REFUSING ARMS COMPOSE OVER WHAT THE ROUTE LANDED (AND THE PASSING ARM SAVES, NEVER COMPOSES) ─────
|
|
952
|
+
if (outcome !== 'passed') {
|
|
953
|
+
const floor = composeRollback(kernel, attempt, composedOver);
|
|
954
|
+
// **WHERE A CALL IS ANSWERED BY A CODE, ONE `outcome` ENTRY IS APPENDED AND NOWHERE ELSE** (`PIN-10` (iv)):
|
|
955
|
+
// an ordinary refusing arm — every issued call returned a `RollbackResult` — appends NOTHING, and the steps
|
|
956
|
+
// live in the closed report's `rollback`. **`state` IS `null` AND NOT `KC-8` BECAUSE THE THROWN FORM'S
|
|
957
|
+
// `status` AND THE ENTRY'S `state` ARE ONE TOKEN AND THIS REFUSAL'S STATUS IS RANK `19` ON EVERY ARM**
|
|
958
|
+
// (`D-107` item 5). **AND FROM THIS PASS THE ONE CODE THAT CAN REACH HERE IS `JournalOpUnknown`**: the
|
|
959
|
+
// compaction arm regenerates instead of answering a code (`D-108`), **and `D-118` reads an image the store's
|
|
960
|
+
// own loader cannot read as NO image at all, so the narrowed `RollbackCompacted` has no producer left.**
|
|
961
|
+
if (floor !== null) {
|
|
962
|
+
append(attempt, 'outcome', { pair: null, op: null },
|
|
963
|
+
`the registration's rollback met the store's own ${floor.code} at ${floor.opId}`, null);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
819
966
|
attempt.status = 'closed';
|
|
820
967
|
const report = {
|
|
821
968
|
attempt: attempt.ref,
|
|
822
969
|
outcome,
|
|
823
970
|
ops: attempt.ops.slice(),
|
|
824
971
|
log: attempt.log,
|
|
825
|
-
rollback
|
|
972
|
+
// **THE COMPOSITION'S STEPS, IN THE REPORT'S EXISTING `rollback` MEMBER** — `[]` on the passing arm, because
|
|
973
|
+
// nothing is composed there and no member is minted on the report (`PIN-10` (iii)).
|
|
974
|
+
rollback: attempt.rollback.slice(),
|
|
826
975
|
};
|
|
827
976
|
attempt.report = report;
|
|
828
977
|
// **THE TWO RECORDS ARE THE ATTEMPT'S OWN INSTANCE'S** (`D-30`): the caller's `store` is the one this
|
|
@@ -836,9 +985,61 @@ function closeRegistrationAttempt(kernel, attempt, outcome = 'failed') {
|
|
|
836
985
|
// does (`kernel-attempt.mjs`'s handoff).
|
|
837
986
|
dropHandoff(kernel, report);
|
|
838
987
|
kernel.live.delete(attempt.ref.id);
|
|
988
|
+
// **THE STORE'S OWN FORM CROSSES LAST, AFTER THE ATTEMPT IS CLOSED AND THE REPORT PUBLISHED** (`PIN-3` (v)):
|
|
989
|
+
// a caller of `addConstraint` or the re-arm receives the store's two-member form, and a caller of `storeCreate`
|
|
990
|
+
// receives it INSTEAD OF an instance.
|
|
991
|
+
if (saveFailure !== null) throw saveFailure;
|
|
839
992
|
return report;
|
|
840
993
|
}
|
|
841
994
|
|
|
995
|
+
/// **THE LAST LANDING THE CLOSE MAY NAME, OR `null` WHERE THE ROUTE LANDED NONE — `D-106` ARM 1'S KEY, WIDENED BY
|
|
996
|
+
/// ONE DISJUNCT 2026-11-02 (`PIN-17` (iv)).**
|
|
997
|
+
/// **THE LIST IS THE ROUTE'S WHOLE LIST AND NOT THE CREDITED OP**: a repair that writes a `file`-tier record and
|
|
998
|
+
/// then credits a `mem`-tier one it also wrote leaves a `file`-tier landing that `attempt.ops` alone would miss.
|
|
999
|
+
/// **AND THE THREE DISJUNCTS THIS FILTER ADMITS ARE THE ONLY CLASSES THAT CAN HAVE MOVED A `file`-TIER VERSION:**
|
|
1000
|
+
/// an op at the `file` tier (a `file`-tier write); an op that names NO tier (the whole-target `delete`'s own
|
|
1001
|
+
/// spelling, which the route cannot mint today and which the store adjudicates where it stands); **and a WRITE AT
|
|
1002
|
+
/// A TIER BELOW `file` WHOSE CARRIED VALUE WAS A CONTAINER** — the purge, recorded beside the landed op by
|
|
1003
|
+
/// `registrationRoute` because the op alone cannot say what value its act carried.
|
|
1004
|
+
/// **AND WHERE THE ROUTE LANDED NONE OF THE THREE — a repair that wrote a SCALAR at `mem` or `temp`, which shadows
|
|
1005
|
+
/// the durable version and moves no byte of the file, or a registration whose repair landed nothing — NO SAVE IS
|
|
1006
|
+
/// OWED AND NONE IS ATTEMPTED**: the store's own `save_owed` would answer `false` for it, and the close does not
|
|
1007
|
+
/// name it.
|
|
1008
|
+
function lastFileLanding(landed, purged) {
|
|
1009
|
+
const purging = Array.isArray(purged) ? purged : [];
|
|
1010
|
+
for (let index = landed.length - 1; index >= 0; index -= 1) {
|
|
1011
|
+
const op = landed[index];
|
|
1012
|
+
if (op === null || typeof op !== 'object') continue;
|
|
1013
|
+
if (typeof op.opId !== 'string' || op.opId.length === 0) continue;
|
|
1014
|
+
const tierless = op.tier === null || op.tier === undefined;
|
|
1015
|
+
// THE PURGE IS A MEMBERSHIP TEST ON THE FRAME'S SECOND LIST AND NOT A SECOND PREDICATE (`PIN-17` (iv)).
|
|
1016
|
+
let purges = false;
|
|
1017
|
+
for (let at = 0; at < purging.length; at += 1) {
|
|
1018
|
+
if (purging[at] === op.opId) {
|
|
1019
|
+
purges = true;
|
|
1020
|
+
break;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
if (op.tier !== 'file' && tierless === false && purges === false) continue;
|
|
1024
|
+
return op.opId;
|
|
1025
|
+
}
|
|
1026
|
+
return null;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/// **THE ROUTE'S LIST MINUS ONE OP ID** — the list the composition is handed after a save failed and the store
|
|
1030
|
+
/// removed that record from its journal. **A local index loop, and the list is a FRESH array**: naming an entry
|
|
1031
|
+
/// the store has removed would meet `JournalOpUnknown` and floor the composition for a reason that is not a
|
|
1032
|
+
/// floor.
|
|
1033
|
+
function landingsOtherThan(landed, opId) {
|
|
1034
|
+
const rest = [];
|
|
1035
|
+
for (let index = 0; index < landed.length; index += 1) {
|
|
1036
|
+
const op = landed[index];
|
|
1037
|
+
if (op !== null && typeof op === 'object' && op.opId === opId) continue;
|
|
1038
|
+
appendOwn(rest, op);
|
|
1039
|
+
}
|
|
1040
|
+
return rest;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
842
1043
|
|
|
843
1044
|
/// **⟶ DELETED 2026-10-24 (`D-22`, verbatim: *"Discard the noop prefix"*) — THREE MODULE-PRIVATE SYMBOLS, AND
|
|
844
1045
|
/// THE KERNEL'S SIX-EXPORT CENSUS IS UNCHANGED BECAUSE NONE OF THEM WAS EVER AN EXPORT.**
|