From eff0ca17d5f720f22475a72df216e9e3fe8dd15f Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 27 Nov 2026 02:08:40 +0100 Subject: [PATCH] Design 47 H2: H-A-821 to H-A-824 and H-A-816 amended, the operator's answer and the writer's round-2 questions An owner's own delete removes its object (ADR 0695, the operator's answer); a deleted key's value keeps its object when pushed out, since the writer cannot tell whose delete it was; the owner's completion spares an object in flight; the live check reads a one-value state through the hand-act log and the key's lifetime. --- .../47-milestones/H2-lead-answers-7.md | 43 +++++++++++++++---- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-7.md b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-7.md index 69031d57..3a441f03 100644 --- a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-7.md +++ b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-7.md @@ -16,7 +16,7 @@ This file continues [H2-lead-answers-6.md](H2-lead-answers-6.md) from H-A-814 on bound: every later answer of H2b, H2c and H2d is written here. Each line names the record, the operator's answer or the principle that settles it. -## The review of ADR 0694's lines: H-A-814 to H-A-821 +## The review of ADR 0694's lines: H-A-814 to H-A-824 The four reviewers by architectural domain read hq 6efff968..79f700ac (ADR 0694's lines in G §57, §60, §62, G's table of kept data, §138, G-7 §330, acceptance test 90 and H2c §850 1.; one round, 2026-11-27 about 01:47 to 01:54 @@ -46,7 +46,11 @@ c42ada4 (`go/stateobjects/values.go`). The one must no principle settles (securi and testing 2, security 3 and 5, health 4: H2c's live row counts only objects written after the module's H2c build started, and accepts each listed with `key-holds-value` true only where the journal said its failed delete, or the module's start lines show a stop between that object's write and its key's next write, or its key's history shows a - delete since its value; anything else fails the row. The objects of a build before H2c are counted by H2c's prepare + delete since its value (a state keeping more values per key), or, in a state keeping one value per key, whose history + holds only the current value, the hand-act log (ADR 0565 §10) holds a person's delete of that key since the object's + write, or the key's lifetime (the state's or the key's own) is shorter than the time from the object's write to the + key's current value, which also covers a past value aged out (amended 02:08, from the insight's record writer's + reading); an owner's own delete leaves no object (ADR 0695 §1); anything else fails the row. The objects of a build before H2c are counted by H2c's prepare and dropped by a person at H2c's delivery, through the drop tool. No journal line at each start is added (principle 7: the live row reads what exists). ADR 0694's How it is checked, live bullet, is corrected by a progressive insight in these words, with the writer's first design question (a stopped process counts as a failed delete). Principle 3. @@ -60,8 +64,10 @@ c42ada4 (`go/stateobjects/values.go`). The one must no principle settles (securi - **H-A-818 (a key's kept values are read through an optional interface, so no build of today breaks, 01:55)** 27 Nov, security and upgrade 4, seams and tools note (b), running and testing note: `stateobjects.KV` gains no method; a KV that keeps past values answers an optional `History(key) ([]Entry, error)` (mesh-sdk's bundle KV through the - runtime's `mesh/state.history`, its process KV through the bucket's own history), which the writer asks only after a - successful compare-and-set, to find the object no kept value names any more. A KV without it, the indexer's `storeKV` + runtime's `mesh/state.history`, its process KV through the bucket's own history), which the writer asks as its first + read and again after a successful compare-and-set: the objects the first read's kept values name that the second's + no longer name are the ones its write pushed out (the writer's own choice of round 2, confirmed 02:08: from the read + after the act alone the pushed-out value cannot be seen). A KV without it, the indexer's `storeKV` (mesh-delivery `modules/mesh-delivery-indexer/internal/index/run_inputs.go`) and the assigner's test `kvMem` among them, builds as today, and its writer deletes nothing: the replaced object stays listed for the drop tool, as today, since without the read the writer cannot know which objects its state's kept values name. mesh-sdk's fake state keeps past @@ -84,9 +90,28 @@ c42ada4 (`go/stateobjects/values.go`). The one must no principle settles (securi §725's `test-runs-objects`, which a field of its value names and the runner removes with its key, unless H-A-821 says otherwise. An old build's reader, during a module's delivery, has no follow and fails loudly on a replace a new build made; the design says so as a known limit of that delivery. Principles 12, 4 and 3. -- **H-A-821 (who removes the object of a key its owner deletes)** The operator's, asked on Telegram at 01:54 CET (ask - q-feb3f7ec94abe8d2): A-465 and A-465a (the indexer and the assigner remove the object of an input key they end, and - every object whose key is gone, at each keep and at start) contradict ADR 0694 §3 (a key deleted by its owner leaves - its object for a person's drop). Lead's recommendation: a new record, an owner's own delete removes its object at - once, and a delete by a person or by a key's lifetime still waits for a person's drop. Unanswered as this is written. +- **H-A-821 (an owner's own delete removes its object; a lifetime's or a person's delete still waits, 02:00)** The + operator, 2026-11-27 01:59:58 CET on Telegram (ask q-feb3f7ec94abe8d2, user id verified), chose "Owner's delete + removes" (recommended): "A new record: an owner's own delete removes its object at once; a delete by a person or by a + key's lifetime still waits for your drop. The indexer and assigner keep working as today." Written as ADR 0695 + (reserved and being proposed as this is written): A-465's and A-465a's three removals stand, H2c changes neither module, and §850 + 1.(f) names their fate. The operator's answer. +- **H-A-822 (the writer's other choices of round 2 hold, 02:08)** 27 Nov: `Values.Log`, the caller's log function, unset + writing to standard error, which the tool runner journals as `[] ` for a tools bundle (answers health + and events 5, read by the writer at mesh-tools 19f2fea); `Values.DeleteKey`, a person's delete through a hand tool, + since the writer has no other way to tell it from its owner's `Values.Delete`; the drop tool refuses a name not listed + key-gone. Principles 3 and 4. +- **H-A-823 (a deleted key's value, in a state keeping more values per key, keeps its object when pushed out, 02:08)** + 27 Nov, the writer's question 1 of round 2: in a state keeping more values per key the bus keeps a deleted key's + value as a past value, and a later write would push it out and delete its object by §850 1.(b), against ADR 0695 §3 + for a person's delete. The writer cannot tell a person's delete marker from its owner's, so at a push-out it deletes + no object whose value its first read shows followed by a delete in the key's history; that object stays listed for + the owner's completion (ADR 0695 §2) where the state's keys only its owner deletes, and otherwise for a person's drop. + So an owner's delete removes its object at once in a state keeping one value per key, and in one keeping more it is + left to the owner's completion; ADR 0695 §1 says so before it is accepted. Principle 3 (a person's deletion may be a + mistake: its object is never removed without a person's word) and the operator's answer. +- **H-A-824 (the owner's completion spares an object in flight too, 02:08)** 27 Nov, the writer's question 2 of round + 2: `DropKeyGone` spares an object modified within the call's bound, as the drop tool does (H-A-820), since the + indexer calls it at every input write and would otherwise drop a concurrent write's new object before its + compare-and-set answers. The indexer's and the assigner's removals keep working as today otherwise. Principle 3. - **Not answered here:** the main file's size (270 KB against 80 KB) is H-A-807's: reshaped after H2b's delivery.