|
|
|
@@ -5,6 +5,7 @@ design: 47
|
|
|
|
|
milestone: H2c
|
|
|
|
|
updated: 2026-11-27
|
|
|
|
|
decisions:
|
|
|
|
|
- "ADR 0695"
|
|
|
|
|
- "ADR 0694"
|
|
|
|
|
- "ADR 0693"
|
|
|
|
|
- "ADR 0686"
|
|
|
|
@@ -18,6 +19,7 @@ decisions:
|
|
|
|
|
- "ADR 0595"
|
|
|
|
|
- "ADR 0593"
|
|
|
|
|
- "ADR 0573"
|
|
|
|
|
- "ADR 0565"
|
|
|
|
|
- "ADR 0548"
|
|
|
|
|
- "ADR 0445"
|
|
|
|
|
- "ADR 0391"
|
|
|
|
@@ -62,7 +64,9 @@ The queue it carries:
|
|
|
|
|
§860 in H2d, and H §746, §748).
|
|
|
|
|
- **A record accepted on 2026-11-27:** ADR 0694 (a state writer deletes the object its own write left no value naming;
|
|
|
|
|
an object left by a deleted key still waits for a person's drop), proposed on the operator's answer of 00:08 CET
|
|
|
|
|
(H-A-806): §850 1. here, and G §57, §60, §62, G's table of kept data and acceptance test 90.
|
|
|
|
|
(H-A-806): §850 1. here, and G §57, §60, §62, G's table of kept data and acceptance test 90; its lines' review
|
|
|
|
|
answered by H-A-814 to H-A-821 ([H2-lead-answers-7](H2-lead-answers-7.md)), H-A-821 the operator's, written down as
|
|
|
|
|
ADR 0695 (proposed).
|
|
|
|
|
|
|
|
|
|
A queued item that needs no line is named in *What needs no line*, with the record or line that settles it, and an item
|
|
|
|
|
whose shape no record settles is in *Questions this file leaves open*.
|
|
|
|
@@ -265,59 +269,94 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
|
|
|
|
|
The validator is `mesh-judge`, in the indexer's module (H-A-411 (4)). Built in H2c (the manifest validator). How it
|
|
|
|
|
is checked: unit (the validator): each problem is refused, naming the path or the two series.
|
|
|
|
|
- §850 **A value or an answer over the bus's limit is an object, never refused, as G §57 to §59 have it.** (row 65 ("A
|
|
|
|
|
pipeline record of 112 or 129 movers"); H-A-797; ADR 0666 §16; ADR 0694 §1 to §4; G §57, §58, §59; H §761;
|
|
|
|
|
principles 3 and 7) ADR 0666 §16, ADR 0694 and G §57 to §59 decide it; H2c builds them where its prepare finds them
|
|
|
|
|
not built, in mesh-sdk's state writer, tool harness and seat pass:
|
|
|
|
|
pipeline record of 112 or 129 movers"); H-A-797; H-A-814 to H-A-821; ADR 0666 §16; ADR 0694 §1 to §4; ADR 0695 §1
|
|
|
|
|
to §3; G §57, §58, §59; H §761; principles 3 and 7) ADR 0666 §16, ADR 0694, ADR 0695 and G §57 to §59 decide it;
|
|
|
|
|
H2c builds them where its prepare finds them not built, in mesh-sdk's state writer, tool harness and seat pass:
|
|
|
|
|
1. **A kept value over the bus's per-value limit** is put in the object store beside its state, `<state>-objects`
|
|
|
|
|
(G §58), with the object's name kept in the key (G §57). The object is named `<key>.<sha256 of the value>`, as
|
|
|
|
|
today, so the same value is the same object. A replace writes the new object and sets the key by
|
|
|
|
|
compare-and-set. What becomes of each object is ADR 0694's (accepted 2026-11-27), built in mesh-sdk's state
|
|
|
|
|
writer (`go/stateobjects`, ADR 0595 §9) for a template's `<state>-objects` and for a foundation part's old
|
|
|
|
|
`objects` section that holds a state's large values (G §407) alike: the design's choice, since it is one writer
|
|
|
|
|
and either store fills the same way.
|
|
|
|
|
- (a) **The values a key keeps.** A key keeps as many values as its state's past values (ADR 0595 §3; 1 by
|
|
|
|
|
default, the current value alone), counted since its last delete. A value written before the key's last delete
|
|
|
|
|
names nothing any more, as clause 3 of ADR 0694 has the objects of a deleted key wait for a person. "Kept" and
|
|
|
|
|
"names" below mean so.
|
|
|
|
|
- (b) **A successful compare-and-set deletes what no kept value names** (ADR 0694 §1). Before its compare-and-set
|
|
|
|
|
the writer reads the key's kept values; once it succeeds it reads them again, and deletes each object that a
|
|
|
|
|
value of its first read named and no value of its second read names: with one past value, the object its own
|
|
|
|
|
write replaced; with more, the object of the value its write pushed out. An object a kept value still names,
|
|
|
|
|
the new value's when the same value is written again, is never deleted. The second read is the design's
|
|
|
|
|
choice: a writer that wrote an older value of the key again meanwhile names that object again. One that writes
|
|
|
|
|
it in the moment between that read and the delete leaves its key naming a gone object, which (e) refuses
|
|
|
|
|
loudly.
|
|
|
|
|
- (c) **A delete that fails is said, and the write stands** (ADR 0694 §1). The writer writes one journal line,
|
|
|
|
|
"object <object> of <state> not deleted after the replace of <key>: <the bus's error>; listed key gone for the
|
|
|
|
|
drop tool", and answers the put as written: the value is kept, and a caller that asked again would write it
|
|
|
|
|
twice (the design's choice). A process stopped between its compare-and-set and the delete says nothing; its
|
|
|
|
|
object is listed as a failed delete's is (g), since the listing judges by the values, never by the journal.
|
|
|
|
|
- (d) **A compare-and-set that fails** reads the key again and deletes the new object it wrote unless a kept value
|
|
|
|
|
names it, so of two writers of one value the winner's object stands (ADR 0694 §1).
|
|
|
|
|
- (e) **A read follows the key** (ADR 0694 §2). The package's get reads the key, then its object. Finding the
|
|
|
|
|
object gone, it reads the key again: a newer value (a higher revision) is read the same way, a value held in
|
|
|
|
|
the key is answered, and a key with no value is answered as none. It follows the key so until one of these,
|
|
|
|
|
bounded by its caller's deadline alone (the design's choice: each round needs a newer write, and a count would
|
|
|
|
|
fail a read the record says never fails). A key that names, at the same revision, the object found gone fails
|
|
|
|
|
the read, naming the state, the key and the object.
|
|
|
|
|
- (f) **A deleted key's objects wait for a person** (ADR 0694 §3). A key deleted by its owner, by its lifetime or
|
|
|
|
|
by a person through a hand tool leaves its objects; the writer deletes none of them.
|
|
|
|
|
- (g) **The tools read and steer it** (G §60; ADR 0666 §25; ADR 0694 §4). `<module>_state_objects` judges "names"
|
|
|
|
|
against every kept value of every key, past values included, and lists each object with its `key`, and `past`
|
|
|
|
|
true when only a past value names it; or with `key-gone` true, `key` the key it was written for, and
|
|
|
|
|
`key-deleted`: true when that key has no value now (deleted, or its lifetime ended), false when it has one
|
|
|
|
|
naming another object (a delete that failed or never ran). `key-deleted` is the design's choice: the person
|
|
|
|
|
whose word a drop asks sees which objects may be a deletion's mistake, and ADR 0694's live check reads it.
|
|
|
|
|
`<module>_state_objects_drop` drops exactly the objects listed `key-gone`, of both kinds, on a person's word,
|
|
|
|
|
naming who asked, in the hand-act log (G §60); an object a past value names is never listed so, and never
|
|
|
|
|
dropped. The writer's own delete is no hand act: it asks no person's word, takes no stream snapshot and
|
|
|
|
|
writes nothing in the hand-act log (ADR 0694 §4).
|
|
|
|
|
(G §58), with the object's name kept in the key (G §57). What becomes of each object is ADR 0694's (accepted
|
|
|
|
|
2026-11-27) and ADR 0695's (proposed), built in mesh-sdk's state writer (`go/stateobjects`, ADR 0595 §9). The
|
|
|
|
|
writer and the drop tool treat a foundation part's old `objects` section (G §407) as `<state>-objects` only where
|
|
|
|
|
that section holds the large values of one state and nothing else; the prepare reads which parts share such a
|
|
|
|
|
section, and one that holds anything else is a design question of that prepare (H-A-820).
|
|
|
|
|
- (a) **An object is named by its write, and a key's kept values are read through `History`** (H-A-814, H-A-818).
|
|
|
|
|
The writer names each object it makes `<key>.<sha256 of the value>.<write id>`, the write id 16 hex digits from
|
|
|
|
|
a random source, unique to that write. It makes none, reusing the object, only when the key's current value as
|
|
|
|
|
its first read found it names an object of the same digest, so writing the same value again keeps that object.
|
|
|
|
|
`keyOf` reads both forms, today's `<key>.<sha256>` and the new, so no delete or drop meets an object a later
|
|
|
|
|
write made. A key keeps as many values as its state's past values (ADR 0595 §3; 1 by default, the current value
|
|
|
|
|
alone), delete markers aside. `stateobjects.KV` gains no method: a KV that keeps past values answers the
|
|
|
|
|
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, and its fake state keeps past values and delete markers. A KV
|
|
|
|
|
without it (the indexer's `storeKV`, the assigner's test `kvMem`) builds as today.
|
|
|
|
|
- (b) **A successful compare-and-set deletes what no kept value names** (ADR 0694 §1). Where its KV answers
|
|
|
|
|
`History`, the writer's first read is the key's kept values, the newest the current value whose revision its
|
|
|
|
|
compare-and-set names; once that compare-and-set succeeds it asks `History` again (H-A-818) and deletes each
|
|
|
|
|
object a value of its first read named and no value of the second names: with one past value, the object its
|
|
|
|
|
own write replaced; with more, the object of the value its write pushed out. That the first read is `History`
|
|
|
|
|
too is the design's choice: the read after the write cannot show the value the write pushed out. No other read
|
|
|
|
|
comes before the delete (H-A-814). Where its KV answers no `History` the writer deletes nothing, and the
|
|
|
|
|
replaced object stays listed for the drop tool, as today, since it cannot know which objects the kept values
|
|
|
|
|
name (H-A-818).
|
|
|
|
|
- (c) **A delete that fails is said, and the write stands** (ADR 0694 §1). `Values` gains `Log`, its caller's log
|
|
|
|
|
function; unset, the line goes to standard error, which a process's unit journals and the tool runner journals
|
|
|
|
|
for a tools bundle as `[<module>] <line>` (read on mesh-tools main 19f2fea). The line reads "object <object> of
|
|
|
|
|
<state> not deleted after the replace of <key>: <the bus's error>; listed for the drop tool", and the put answers
|
|
|
|
|
written: the value is kept, and a caller that asked again would write it twice (the design's choice). A delete
|
|
|
|
|
that finds its object already gone counts as done, with no line (H-A-814). A process stopped between its
|
|
|
|
|
compare-and-set and the delete says nothing; its object is listed as (g) says.
|
|
|
|
|
- (d) **A compare-and-set that fails** deletes the object its write made, always; a write that reused one made none
|
|
|
|
|
(H-A-814; ADR 0694 §1).
|
|
|
|
|
- (e) **A read follows the key** (ADR 0694 §2; H-A-817). `Values` gains `GetContext(ctx, key, into)`; `Get` keeps
|
|
|
|
|
its signature and calls it with the bound each bus call has today, 30 seconds. Only the object's "not found"
|
|
|
|
|
starts the follow, an object gone in the middle of a chunked read (G §518) included: the read takes the key again,
|
|
|
|
|
reads a newer value (a higher revision) the same way, answers a value held in the key, and answers a key with no
|
|
|
|
|
value as none, while its context lasts. Any other error, a size or a digest that differs from the reference
|
|
|
|
|
among them, fails at once with its cause. A key that names, at the same revision, the object found gone fails the
|
|
|
|
|
read, naming the state, the key and the object; at its bound the read fails naming the state, the key, the last
|
|
|
|
|
revision and the last object it read. A reader of a build before H2c has no follow: during a module's delivery it
|
|
|
|
|
fails loudly on an object a new build's replace deleted, a known limit of that delivery (H-A-820).
|
|
|
|
|
- (f) **An owner's own delete removes its object; a lifetime's or a person's leaves it** (ADR 0695,
|
|
|
|
|
clauses 1 to 3, which changes ADR 0694 §3; the operator, 2026-11-27 01:59:58 CET on Telegram, "Owner's delete
|
|
|
|
|
removes"; H-A-821).
|
|
|
|
|
- **The owner's delete** (clause 1). `Values.Delete`, the owner's own delete of a key, reads the key's kept values
|
|
|
|
|
as a write does (b), deletes the key, asks `History` again and deletes each object a value of its first read
|
|
|
|
|
named and no value the key still keeps names: with one value per key, the deleted value's object; with more,
|
|
|
|
|
none of the values the bus still keeps, the deleted one among them, until a later write pushes it out (b). A
|
|
|
|
|
failed object delete is said and listed as (c) has it; a KV without `History` deletes the key alone, as today.
|
|
|
|
|
- **The owner's completion** (clause 2). A module whose state's keys only it deletes (no lifetime on its keys and
|
|
|
|
|
no tool that deletes one of them) may remove, at its start or at a write, every object of that state no kept
|
|
|
|
|
value names, through `Values.DropKeyGone`, saying their count and bytes in its log. The three removals of A-465
|
|
|
|
|
and A-465a (the assigner's object delete with each `inputs` key it ends and its drop at its start, the
|
|
|
|
|
indexer's drop at each input write) are such removals and stand; H2c changes neither module.
|
|
|
|
|
- **A lifetime's or a person's delete** (clause 3; ADR 0694 §3). A key whose lifetime ended, or one a person
|
|
|
|
|
deleted, leaves its objects, listed for the drop tool and removed only by it on a person's word, since that
|
|
|
|
|
deletion may be a mistake and the object is then the value's only copy. A hand tool that deletes a key on a
|
|
|
|
|
person's word calls `Values.DeleteKey`, which deletes the key alone (the design's choice: otherwise the
|
|
|
|
|
writer cannot tell who asked). In a state keeping more past values, the deleted value stays a kept past
|
|
|
|
|
value whose object a later write that pushes it out would delete by (b): this file's question 1.
|
|
|
|
|
- (g) **The tools read and steer it** (G §60; ADR 0666 §25; ADR 0694 §4; H-A-815, H-A-820).
|
|
|
|
|
`<module>_state_objects` judges "names" against every kept value of every key, past values included (through
|
|
|
|
|
`History`; against each key's current value where the KV answers none), and lists each object with its `key`,
|
|
|
|
|
and `past` true when only a past value names it; or, when no kept value names it, with `key-gone` true, `key`
|
|
|
|
|
the key it was written for, and `key-holds-value`, true when that key has a value now. An object whose key holds
|
|
|
|
|
no value is a deleted key's (its lifetime included). One whose key holds a value is listed for one of these, and
|
|
|
|
|
the field says no cause it did not read: a delete that failed (said by (c)'s line), a process stopped between its
|
|
|
|
|
compare-and-set and its delete, a value of a key a person or its lifetime deleted and written again since (with
|
|
|
|
|
one past value the bus keeps no delete marker), a past value aged out by the state's or the key's lifetime, or a
|
|
|
|
|
replace by a build before H2c's. `<module>_state_objects_drop` takes `objects`, the names to drop, each listed
|
|
|
|
|
`key-gone` (another name is refused, naming it); with none named it drops every object listed whose key holds no
|
|
|
|
|
value. It spares an object modified within the last 30 seconds, a bus call's bound, which a write whose
|
|
|
|
|
compare-and-set has not answered may still name, and answers each spared. Each drop is on a person's word, names
|
|
|
|
|
who asked and is in the hand-act log (G §60). The writer's own deletes are no hand act: they ask no person's
|
|
|
|
|
word, take no stream snapshot and write nothing in the hand-act log (ADR 0694 §4).
|
|
|
|
|
|
|
|
|
|
What exists today, and its fate (read on mesh-sdk main c42ada4): `Values.Put` keeps the object it replaced, "as
|
|
|
|
|
a past value may still name it", and after a failed compare-and-set deletes its new object unless the value it
|
|
|
|
|
first read named it, which removes the winner's object when both wrote the same value; `Values.Get` fails on a
|
|
|
|
|
gone object; `Values.Kept` judges against each key's current value alone, so in a state keeping more past values
|
|
|
|
|
it lists a past value's object `key-gone` and the drop tool would remove it. Each goes as (a) to (g) say.
|
|
|
|
|
What exists today, and its fate (read on mesh-sdk main c42ada4): `Values.Put` names an object `<key>.<sha256>`,
|
|
|
|
|
keeps the object it replaced, and after a failed compare-and-set deletes its new object unless the value it first
|
|
|
|
|
read named it; `Values.Get` fails on a gone object and takes no deadline; `Values.Delete` deletes the key alone;
|
|
|
|
|
`Values.Kept` judges against each key's current value alone, so in a state keeping more past values it lists a
|
|
|
|
|
past value's object `key-gone` and the drop tool would remove it. Each goes as (a) to (g) say. The objects
|
|
|
|
|
builds before H2c's replaced stay listed: H2c's prepare counts them, and a person drops them at H2c's delivery
|
|
|
|
|
through the drop tool (H-A-816).
|
|
|
|
|
2. **A tool's or a seat verb's answer, or an event, over the per-message limit** carries the name of an object in
|
|
|
|
|
the sender's sent store, `<module>_sent-objects`, which the bus module plans for every module that serves a verb
|
|
|
|
|
or says an event, kept 7 days and then expired by the bus (G §59), read by the callers and consumers the grants
|
|
|
|
@@ -334,22 +373,36 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
|
|
|
|
|
runner). How it is checked:
|
|
|
|
|
- unit (mesh-sdk): a value over the limit is kept as an object and read back whole through its key; an answer over
|
|
|
|
|
the limit arrives as an object's name and is read whole; a full sent store refuses, naming it;
|
|
|
|
|
- unit rows (mesh-sdk's `stateobjects` values tests, over its fake state, which keeps a key's past values as the bus
|
|
|
|
|
does; ADR 0694's checks of clauses 1 to 3): a replace of a value held as an object leaves one object for its key;
|
|
|
|
|
writing the same value again keeps that object; in a state keeping three past values the objects they name stay
|
|
|
|
|
and the object of the value pushed out is deleted, unless a kept value names it; a compare-and-set that fails
|
|
|
|
|
leaves no object of its own, and the winning write's object stands; a delete that fails is said in the journal,
|
|
|
|
|
the put answers written, and the object is listed `key-gone` with `key-deleted` false; a read whose object is
|
|
|
|
|
deleted between its read of the key and of the object answers the new value; a read raced by two replaces in a
|
|
|
|
|
row answers the newest; a read whose key still names the same gone object fails, naming both; a key deleted by
|
|
|
|
|
its owner, one deleted by a person through a hand tool and one whose lifetime ended each leave their object listed
|
|
|
|
|
`key-gone` with `key-deleted` true, and only the drop tool removes it;
|
|
|
|
|
- a row of the package's whole test against the real bus (G §62): a state keeping three past values, its key
|
|
|
|
|
replaced five times by values over the limit, holds three objects, each listed with its key;
|
|
|
|
|
- unit rows (mesh-sdk's `stateobjects` values tests, over its fake state; the checks of ADR 0694 and ADR 0695;
|
|
|
|
|
H-A-819): a replace with one past value leaves one object for its key, named with a write id, and `keyOf` reads
|
|
|
|
|
both forms; writing the same value again keeps that object; in a state keeping three values per key the read tool
|
|
|
|
|
lists both past values' objects as named (`past` true), the drop leaves them, and the object of the value pushed
|
|
|
|
|
out is deleted; a compare-and-set that fails deletes the object its write made, and the winner's stands; a delete
|
|
|
|
|
that fails is said by `Log`, the put answers written, and the object is listed `key-gone`; one that finds its
|
|
|
|
|
object gone says nothing; a KV without `History` deletes nothing; a read whose object is deleted between its read
|
|
|
|
|
of the key and of the object answers the new value, one raced by two replaces the newest, one whose key still names
|
|
|
|
|
the same gone object fails naming both, one at its bound fails naming the last revision and object, and a differing
|
|
|
|
|
digest fails at once; an owner's delete leaves no object with one value per key and leaves the past values' with
|
|
|
|
|
three; a key a person deleted through `DeleteKey` and one whose lifetime ended each leave their object listed with
|
|
|
|
|
`key-holds-value` false, which only the drop tool removes, and the first, written again with one value per key,
|
|
|
|
|
leaves its earlier object listed with `key-holds-value` true, deleted by no later write; the drop with no names
|
|
|
|
|
drops only objects whose key holds no value, refuses a name not listed `key-gone`, and spares an object modified
|
|
|
|
|
within 30 seconds;
|
|
|
|
|
- rows of the package's whole test against the real bus (G §62): a state keeping three past values, its key replaced
|
|
|
|
|
five times by values over the limit, holds three objects, each named, which the drop tool leaves; a foundation
|
|
|
|
|
part's old `objects` section holding one state's large values (G §619's path), replaced five times, holds one;
|
|
|
|
|
- unit (runner): a mover key left behind is named and written again;
|
|
|
|
|
- live (ADR 0694's): a day of deliveries after H2c's delivery, `<module>_state_objects` of each module that imports
|
|
|
|
|
the package lists `key-gone` only objects with `key-deleted` true and objects whose failed delete its journal
|
|
|
|
|
said.
|
|
|
|
|
- live (H-A-816; ADR 0694's live check, which a progressive insight corrects in these words): a day of deliveries
|
|
|
|
|
after H2c's delivery, `<module>_state_objects` of each module that imports the package, counting only objects
|
|
|
|
|
written after its H2c build started, lists `key-gone` with `key-holds-value` true only an object whose failed
|
|
|
|
|
delete its journal said; one the module's start lines show stopped between its write and its key's next write; in
|
|
|
|
|
a state keeping more values per key, one whose key's history shows a delete since its value; and one written
|
|
|
|
|
before its key's current value where the hand-act log (ADR 0565 §10) holds a person's delete of that key since the
|
|
|
|
|
object's write, or where the key's lifetime (the state's or its own) is shorter than the time from the object's
|
|
|
|
|
write to that value, a past value aged out among them. An owner's own delete leaves none (ADR 0695 clause 1).
|
|
|
|
|
Anything else fails the row. ADR 0695's: the state `inputs` of the assigner and of the indexer holds about one
|
|
|
|
|
object per live input key, and an object of a key a person's hand tool deleted stays listed until the drop tool
|
|
|
|
|
removes it.
|
|
|
|
|
- §851 **Two durable pull loops go through mesh-sdk's consume.** (row 75 ("With H-A-196 and H-A-197 built");
|
|
|
|
|
H-A-196, H-A-197) The watchman's dead-letter loop and the grants part's main loop bind their durables through
|
|
|
|
|
mesh-sdk's consume function, which guards one pull loop per durable. Neither calls the bus client directly. Built in
|
|
|
|
@@ -553,6 +606,11 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
|
|
|
|
|
|
|
|
|
|
## Questions this file leaves open
|
|
|
|
|
|
|
|
|
|
None. The question of a reader on a machine that is away is closed: the operator answered it on 2026-11-27 at 00:39
|
|
|
|
|
CET (H-A-811), written as §858 5. The question of the object a replace leaves is closed: ADR 0694 was accepted on
|
|
|
|
|
2026-11-27, written as §850 1.
|
|
|
|
|
1. **A person's delete in a state keeping more past values (§850 1.(f)).** ADR 0695 clause 3 has the object of a key
|
|
|
|
|
a person or its lifetime deleted removed only by the drop tool, while the bus keeps the deleted value as a past
|
|
|
|
|
value and a later write that pushes it out deletes its object by (b); the writer cannot tell a person's delete
|
|
|
|
|
marker from its owner's. The writer's recommendation: clause 3 holds once no kept value names the object, as for
|
|
|
|
|
any past value the state chose to keep, said in ADR 0695 before it is accepted.
|
|
|
|
|
|
|
|
|
|
The questions of a reader on a machine that is away (H-A-811, §858 5.) and of the object a replace leaves (ADR 0694,
|
|
|
|
|
§850 1.) are closed.
|
|
|
|
|