diff --git a/03-DESIGN/01-to-be/47-delivery-from-commit-to-delivered.md b/03-DESIGN/01-to-be/47-delivery-from-commit-to-delivered.md index 583ec4ba..5a308caa 100644 --- a/03-DESIGN/01-to-be/47-delivery-from-commit-to-delivered.md +++ b/03-DESIGN/01-to-be/47-delivery-from-commit-to-delivered.md @@ -4,6 +4,7 @@ status: in-progress code: [mesh-controller, mesh-catalog modules/mesh-delivery-gate, mesh-catalog modules/gitea, mesh-delivery, mesh-host, mesh-sdk, mesh-vault, mesh-contracts, mesh-tools, mesh-networking, hq 00-META/checks] updated: 2026-11-27 decisions: + - "ADR 0695" - "ADR 0694" - "ADR 0693" - "ADR 0692" @@ -1931,11 +1932,12 @@ The failure paths: 89. **An older revision ending after a newer one** writes no want, and a revision of one watched branch ending after a newer one of another writes its own want and refuses neither; a newer commit supersedes a module's pipeline only when it changed that module's build-input fingerprint (whole, assigner and runner). -90. **A replaced oversized value** leaves one object for its key, the write deleting the one no value its state keeps - names any more, and in a state keeping three past values the objects they name stay; a read raced by a replace - answers the newer value; a deleted key leaves its object listed `key gone` until `_state_objects_drop` - removes it on a person's word; a sent object expires after its 7 days (whole, mesh-sdk; ADR 0694 §1 to §3; design - 47 H §850 1.). +90. **A replaced oversized value**: in a state keeping three past values, a key replaced five times holds three + objects, each named, which the drop tool leaves; a key deleted by a person or by its lifetime leaves its object + listed `key gone` until `_state_objects_drop` removes it on a person's word, and its owner's delete leaves + none with one value per key; a sent object expires after its 7 days (whole, mesh-sdk). A replace with one past + value leaves one object for its key, and a read raced by a replace answers the newer value (unit, over mesh-sdk's + fake state; H-A-819). ADR 0694 §1 to §3, ADR 0695 §1, §3; design 47 H §850 1. 91. **A session's merge** through `merge-pull` at its head merges with no run yet and with a passed run, and asks no Approve; with the runner stopped it still merges, judged on the `step-ended` it kept; a head at whose fingerprint any run failed a `required` step, a head that moved, and a branch whose protection was removed since its last diff --git a/03-DESIGN/01-to-be/47-milestones/G-2-pipelines-sizes-checks-and-tools.md b/03-DESIGN/01-to-be/47-milestones/G-2-pipelines-sizes-checks-and-tools.md index a910de38..935017c6 100644 --- a/03-DESIGN/01-to-be/47-milestones/G-2-pipelines-sizes-checks-and-tools.md +++ b/03-DESIGN/01-to-be/47-milestones/G-2-pipelines-sizes-checks-and-tools.md @@ -5,6 +5,7 @@ design: 47 milestone: G updated: 2026-11-27 decisions: + - "ADR 0695" - "ADR 0694" - "ADR 0692" - "ADR 0667" @@ -42,14 +43,19 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli per-message limit carries the object's name (ADR 0666 §16). A replace writes the new object and sets the key by compare-and-set; once it succeeds, the write deletes the object that no value its state keeps names any more: with the state's one past value (the default), the object it replaced; with more past values (ADR 0595 §3), the object - of the value it pushed out. An object a kept value still names is never deleted, and a delete that fails is said in - the module's journal and leaves the object listed `key gone` (ADR 0694 §1). A read that finds gone the object of a - value it read follows the key to a newer value, so a replace never fails a read (ADR 0694 §2). A key deleted, by its - owner, by its lifetime or by a person, leaves its object listed `key gone`, removed only by the drop tool on a - person's word, since a deletion may be a mistake and the object is then the value's only copy (ADR 0694 §3). So the - mesh removes kept data only through `drop` and `recreate`, `drop` and a `recreate` that would empty something on a - person's word (ADR 0595 §4 as ADR 0692 §4 reads it), and through this delete of the owner's own write, which asks no - person's word and takes no stream snapshot (ADR 0694 §4). Built in H2c (design 47 H §850 1.). + of the value it pushed out. Each object is named for the write that made it, and reused only while the key's + current value names one of the same digest, so no delete meets an object a later write made (H-A-814). An object a + kept value still names is never deleted, and a delete that fails is said in the module's journal and leaves the + object listed `key gone` (ADR 0694 §1). A read that finds gone the object of a value it read follows the key to a + newer value within its caller's bound, so a replace never fails a read (ADR 0694 §2; H-A-817). An owner's own delete + of a key removes, as its write does, the object no kept value names any more, and an owner whose keys only it + deletes may complete its own removals (ADR 0695 §1, §2; the operator, 2026-11-27 01:59:58 CET, H-A-821). A key + deleted by its lifetime or by a person leaves its object listed `key gone`, removed only by the drop tool on a + person's word, since a deletion may be a mistake and the object is then the value's only copy (ADR 0694 §3 as ADR + 0695 §3 reads it). So the mesh removes kept data only through `drop` and `recreate`, `drop` and a `recreate` that + would empty something on a person's word (ADR 0595 §4 as ADR 0692 §4 reads it), and through the owner's own writes + and deletes and their completion, which ask no person's word and take no stream snapshot (ADR 0694 §4, ADR 0695 + §4). Built in H2c (design 47 H §850 1.). - §58 **One object store per state, granted to its owner.** (§513, §549) Each state asked by the template `state` gets its object store beside it, `-objects`, a template form of ADR 0595 that the bus module provides and the grants part grants to the state's owner alone (ADR 0666 §16); a foundation part's large values go in an old `objects` section of its own. @@ -70,9 +76,11 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli never per object. A consumer's reader of the form is delivered before its producer writes it, an edge of kind 4. - §60 **Its tools come with the package.** The package serves each module that imports it `_state_objects` (the - objects of each state, with their size, the key whose kept value names each or `key gone`, and the fill against its - cap), `_state_objects_drop` (drop the objects listed `key gone`, those of deleted keys and those whose delete - by the writer failed, on a person's word as ADR 0595 §4 removes kept data; ADR 0694 §4), `_sent_objects` + objects of each state, with their size, the key whose kept value names each, past values included, or `key gone` + with whether that key holds a value now, and the fill against its cap), `_state_objects_drop` (drop the + objects listed `key gone` it is given by name, or with none named every one whose key holds no value, sparing one + modified within a bus call's bound, on a person's word as ADR 0595 §4 removes kept data; ADR 0694 §4; H-A-815, + H-A-820; design 47 H §850 1.(g)), `_sent_objects` (each sent object, its size, when it was sent and to which verb or event, its age against the store's and the fill against its cap) and `_sent_objects_drop` (drop sent objects older than an age a person names); each drop names who asked and is recorded in the hand-act log. @@ -80,12 +88,14 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli package published before its users build (ADR 0573 §2, ADR 0667 §3). - §62 **How it is checked.** Whole (mesh-sdk, against the real bus): values of one, ten and a hundred times the per-value limit stored, sent as a reply and as an event, and read back whole by a caller and a consumer the manifests declare, - and refused to a module that declares neither; a replaced large value leaves one object for its key, the write - deleting the one no value its state keeps names any more, and in a state keeping three past values the objects they - name stay (ADR 0694 §1); a read raced by a replace answers the newer value (ADR 0694 §2); a key deleted leaves its - object listed `key gone`, removed by the drop tool and by nothing else (ADR 0694 §3); a sent object is readable - within its 7 - days and expired after; each drop without who asked is refused. Tests 69 and 90. + and refused to a module that declares neither; in a state keeping three past values, a key replaced five times by + large values holds three objects, each named, which the drop tool leaves, and a foundation part's old `objects` + section holding one state's large values (§619's path) holds one object after five replaces (ADR 0694 §1; H-A-819); + a key deleted by a person or by its lifetime leaves its object listed `key gone`, removed by the drop tool and by + nothing else, and its owner's delete leaves none with one value per key (ADR 0694 §3; ADR 0695 §1, §3); a sent + object is readable within its 7 days and expired after; each drop without who asked is refused. At the unit level, + over mesh-sdk's fake state: a replace with one past value leaves one object for its key, and a read raced by a + replace answers the newer value (ADR 0694 §1, §2; H-A-819). Tests 69 and 90. ### The pipeline makes the check, and the checker goes @@ -255,7 +265,7 @@ and an estimated 2 mesh-sdk publishes a day, each rebuilding about 120 artifacts | the indexer | catalog graph revisions, per watched branch | objects in the old form (ADR 0619 §2) | while a record pins it or it is its branch's current | 512 MiB, as *Two graphs, one source of truth*; a second watched branch on a few modules adds a few MiB | | the gate | `source`: one key per watched branch | its old `state` section, as today | 64 revisions of each key; a branch's key deleted when `registration-changed` says the last registration watching it unwatched it (`unwatch`) | a few KiB | | the forge module | `failed-steps`: failed `required` steps by module and fingerprint, with the commits each was seen at, and the `seen` keys of §487 | state | an entry deleted once none of its commits is a watched branch's head or the head an open pull request names, judged on each `branch-moved` and each pull request's close | the template's 64 MiB; an estimated 50 failed steps a day of about 0.5 KiB, most gone within days, is under 1 MiB; the `seen` keys under 3 MiB (§487) | -| every module that imports the object store package | `-objects` beside each state | objects | an object while a value its state keeps names it; one a replace leaves no kept value naming, deleted by that write (ADR 0694 §1); one of a deleted key, and one whose delete failed, listed `key gone` until `_state_objects_drop` on a person's word (ADR 0694 §3, §4; ADR 0666 §16) | the template's; nothing reserved until written; about one object per key over the limit, one per kept value in a state keeping more past values | +| every module that imports the object store package | `-objects` beside each state | objects | an object while a value its state keeps names it; one a replace leaves no kept value naming, deleted by that write (ADR 0694 §1); one its owner's delete leaves no kept value naming, deleted by that delete (ADR 0695 §1); any other no kept value names, the object of a key a person or its lifetime deleted among them, listed `key gone` with whether its key holds a value, until `_state_objects_drop` on a person's word (ADR 0694 §3, §4; ADR 0695 §3; ADR 0666 §16; H-A-815; design 47 H §850 1.(g)) | the template's; nothing reserved until written; about one object per key over the limit, one per kept value in a state keeping more past values | | every sender of the new form, and a foundation part by its old `objects` section | `_sent-objects` (`sent-objects`) | objects, planned by the bus module with no manifest field | 7 days, transport (*Any size*) | the objects template's cap; full is the bus module's `full` | | the grants part, for each seat event a definition keeps | `SEAT__`, among them `SEAT_mesh-pipeline-runner_*`, `SEAT__step-ended`, `SEAT_git_branch-moved`, `SEAT_mesh-builds_package-published` and `SEAT_mesh-catalog_registration-changed` | a stream the grants part makes with its durable consumers | the seat definition's age (`keep`), 90 days unless the definition names less | the seat definition's cap (`keep`) | @@ -370,6 +380,6 @@ step keys and the builder's build log, against the checker's last week (test 99) | §135 The forge module's `failed-steps` kept until no head it was seen at is a watched branch's head or an open pull request's | an entry judges only a head that can still be merged; once neither names it, nothing can be refused by it | | §136 The gate's `source.` deleted when the branch's last watch goes | a branch no registration watches makes no revision, so its key would name nothing | | §137 The sent store kept 7 days by age, with no person's word | an object sent carries one reply or event and is transport, not kept data (ADR 0595 §4); its readers fetch it within a call's bound or a consumer's lag | -| §138 A replaced object deleted by the write that left no kept value naming it; a deleted key's object listed `key gone` for the drop tool | decided since by ADR 0694 §1 and §3, which ends this choice's first form (a replaced object kept for a person's word): at a successful compare-and-set the writer alone knows its value replaced the one that named the object, and a value rewritten often would fill its store within hours; a deletion may be a mistake, and its object is then the value's only copy | +| §138 A replaced object deleted by the write that left no kept value naming it; the object of a key a person or its lifetime deleted listed `key gone` for the drop tool | decided since by ADR 0694 §1 and §3 and ADR 0695 §3, which ends this choice's first form (a replaced object kept for a person's word): at a successful compare-and-set the writer alone knows its value replaced the one that named the object, and a value rewritten often would fill its store within hours; a deletion may be a mistake, and its object is then the value's only copy | | §139 The checker's removal after the first end-to-end pipeline, on one word, its buckets through `drop`, the snapshot kept 90 days | ADR 0667 §12 asks one word for all three; 90 days is the delivery records' retention, the longest a trace reads back | | §140 The pipeline steps on the `check` stream after `delivery` | a delivery's build is never held by a pipeline, as a check never held one (ADR 0525 §4) | diff --git a/03-DESIGN/01-to-be/47-milestones/G-7-answers.md b/03-DESIGN/01-to-be/47-milestones/G-7-answers.md index d8d73b70..94615966 100644 --- a/03-DESIGN/01-to-be/47-milestones/G-7-answers.md +++ b/03-DESIGN/01-to-be/47-milestones/G-7-answers.md @@ -5,6 +5,8 @@ design: 47 milestone: G updated: 2026-11-27 decisions: + - "ADR 0695" + - "ADR 0694" - "ADR 0668" - "ADR 0667" - "ADR 0666" @@ -95,8 +97,10 @@ record it follows from, and replaces the builder's own choice where one was made a timer, and nothing but the owner deletes. Why: an old section cannot declare an age, and deleting one's own entries is the owner's act, not the removal of a store ADR 0595 §4 holds to a person's word; §57's rule of what removes an object holds for the objects of a state's values, while the runner's `step-outputs` are its own old section's - objects. How it is checked: whole (runner), an output 7 days old is gone after the next step's end, a - passed pipeline stays to 90 days, and one step's end deletes at most 20 per sequence. + objects. Nor does ADR 0694 reach G-24 §725's `test-runs-objects`: a field of a `test-runs` value names its object, + which is never the value itself, and the runner removes it with its key, as ADR 0695 §1 has an owner's own delete + remove its object (H-A-820, H-A-821). How it is checked: whole (runner), an output 7 days old is gone after the + next step's end, a passed pipeline stays to 90 days, and one step's end deletes at most 20 per sequence. - §331 **The kept event streams' caps, and when one is full.** On the seat `mesh-pipeline-runner`, each kept 90 days: `pipeline-started` 32 MiB, `pipeline-ended` 192 MiB, `group-ended` 64 MiB, `run-started` 16 MiB, `step-started` and `step-ended` 128 MiB each, `wait-held` and `wait-ended` 32 MiB each; the seat `git`'s `branch-moved` 64 MiB; each diff --git a/03-DESIGN/01-to-be/47-milestones/H2c-the-lines-h2-left.md b/03-DESIGN/01-to-be/47-milestones/H2c-the-lines-h2-left.md index 2443091d..cacd168d 100644 --- a/03-DESIGN/01-to-be/47-milestones/H2c-the-lines-h2-left.md +++ b/03-DESIGN/01-to-be/47-milestones/H2c-the-lines-h2-left.md @@ -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, `-objects` - (G §58), with the object's name kept in the key (G §57). The object is named `.`, 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 `-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 of not deleted after the replace of : ; 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). `_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. - `_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 `-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 `..`, 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 `.` 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 `[] ` (read on mesh-tools main 19f2fea). The line reads "object of + not deleted after the replace of : ; 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). + `_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. `_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 `.`, + 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, `_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, `_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, `_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.