Design 47 H2: H-A-719 to H-A-724, a lifetime for the kept data no design line ended
The prepare's item 8 reading found publishes durables, the builder's acted marks, the gate's month list, three assigner findings and the builder's waits with no end, and a leftover tools twin; each is answered against the principles before develop.
This commit is contained in:
@@ -442,3 +442,82 @@ with them.
|
||||
(H-A-710 (3); its cancel is built, H-A-717 (DMC-18)). So H-A-710 (3) stands as written, and no ordering edge is sought
|
||||
(ADR 0682 §9). How it is checked: live, during H2's delivery, every such ask in `operator-channel.asks` ends
|
||||
cancelled, none answered by the delivery's end.
|
||||
|
||||
## Lead answers, continued (2026-11-25 from 16:56 CET): the lifetimes no design line gives
|
||||
|
||||
The item 8 reading of the prepare (playbook 07 step 0 item 8 (a)) found five kinds of kept data that H2's rows make or
|
||||
keep with no design line giving their end, and a leftover consumer; the facts were read on `origin/main` of
|
||||
mesh-delivery 3b1f03ce, mesh-tools 393449e, mesh-catalog 17e1bfb6 and mesh-sdk bb11615, with live reads from 16:40 CET.
|
||||
|
||||
- **H-A-719 (the publishes' durables end by the bus once nothing pulls them, 16:56)** 25 Nov; amends H-A-700 (1). Where
|
||||
met: the builder deletes a holder's durables only at that holder's next pull (H-A-700 (2), H-A-483's second addendum),
|
||||
sets no inactive threshold, and nothing deletes a durable when its holder leaves the registry seat; a holder's
|
||||
durable is made again at each start while its items stand on the queue (`learnAll`). Each of the two durables of
|
||||
H-A-700 (1) is made with the bus's inactive threshold equal to the work queue `publishes`' own `max-age-days` (its
|
||||
manifest entry, 7 days today): the bus removes the durable of a holder nothing pulled for that long, by which time
|
||||
the queue holds none of its items, and a holder whose items still stand is learned and pulled again at the
|
||||
builder's start as today. No deleter is built in the builder. Principles 1, 7 and 11. How it is checked: a row of the
|
||||
builder's publishes integration test: both durables carry an inactive threshold equal to the stream's maximum age.
|
||||
- **H-A-720 (the builder's state `acted`: every mark of an event acted on takes a lifetime; the release record stays,
|
||||
16:56)** 25 Nov; amends H-A-606 and row B7. Where met: the state `acted` (history 1, `max-mib` 1, discard new, no
|
||||
`key-ttl`) holds four forms and deletes none: `retake:<subject>` (one per node and module that ever ran, and per
|
||||
node), `retake-asked:<build key>`, `retake-ask:<ask id>` and `released.<module>` (a module's last releases,
|
||||
`released-kept`, 16 unless set); live 437 keys, 705,300 of 1,048,576 bytes (67 %), among them 15 keys of no form the
|
||||
builder writes and the `retake:` keys of modules that left; B7 adds a mark per publish-path event. A full `acted`
|
||||
refuses the write, and the event is given back to the bus again and again, so retakes and publishes stop.
|
||||
(1) **A mark takes a lifetime.** `acted` is declared `key-ttl`, and every write of a `retake:`, `retake-asked:`,
|
||||
`retake-ask:` or B7's publish-path key carries the bus's per-message lifetime of the setting `acted-days` (whole days,
|
||||
1 to 365, 30 unless set), each write giving it again: a mark outlives every redelivery of its event by far (an event
|
||||
is delivered again within minutes), and goes once its subject or its ask has been silent that long. Principles 7 and
|
||||
11.
|
||||
(2) **The release record stays.** `released.<module>` is a record the reserver reads, not a mark, one per module and
|
||||
bounded by `released-kept`: it is written with no lifetime. Principle 7.
|
||||
(3) **What no form names goes.** At its start the builder deletes each key of `acted` of a form it does not write (the
|
||||
15 today), said once in its journal with the count. Principle 7.
|
||||
(4) **The cap.** `acted`'s `max-mib` goes from 1 to 4, since B7's marks come on top of 67 %. Principle 3.
|
||||
How it is checked: rows of the builder's retake and reserve tests: a mark is written with the lifetime of
|
||||
`acted-days`, a release record with none; a start with a key of no form deletes it and says so; live, after H2's
|
||||
delivery, `acted` holds no key of no form and the `retake:` keys of modules that left are gone within `acted-days`.
|
||||
- **H-A-721 (a month list ends whole by the ledger's removal, not by `forget`, 16:56)** 25 Nov; amends H-A-634 (5) and
|
||||
H-A-691. Where met: `forget` (the effect `remove` naming no map) writes the instance's state null and a snapshot
|
||||
holding null; type `held` names no `ends-with`, so by H-A-634 (1) the key and its snapshot never end. The removal that
|
||||
exists ends it whole: `Ledger.Remove` purges an instance's operations from the history, deletes its snapshot, its state
|
||||
key and its index entries, and `mesh/ledger.remove` stays with a caller (H-A-712 (1)). So the gate, at its start,
|
||||
removes each month list a watch of `held/>` hands with `mesh/ledger.remove`, and `held` gains no `forget`; `hold` and
|
||||
`drop` stay declared as H-A-691 says, so a replay of the history before that removal still reads them. Principle 7.
|
||||
How it is checked: a row of the gate's start tests: a month list standing at the start is removed through
|
||||
`mesh/ledger.remove`, and no `forget` is applied; live, after H2's delivery, the gate's ledger holds no `held/` key or
|
||||
snapshot.
|
||||
- **H-A-722 (a finding of the assigner is cleared from what its bucket holds, never from what a process remembers,
|
||||
16:56)** 25 Nov; amends H-A-706 (DQ-40) and row A2. Where met: row A2 takes `unplacedFindings` as its pattern, which
|
||||
clears only findings of nodes held in a set in memory, never read again at a start, so a finding written before a
|
||||
restart is never cleared; `tier-late` clears the same way (six live, of pipelines long ended), and no line clears
|
||||
`want-unversioned` when its module leaves the catalog or its node leaves the mesh. The one path that survives a
|
||||
restart is `assignment-unlisted`'s (`clearUnlisted`): each pass reads every key of its kind from the bucket and clears
|
||||
those whose cause is gone. So `want-unversioned` (id `<module>.<node>`) is cleared at a pass that finds the want names
|
||||
a version, or the module no longer assigned to the node, or the node no longer in the mesh; and by the same kind,
|
||||
`unplaced` is cleared at a pass that finds the node placed or gone, and `tier-late` at a pass that finds its pipeline no
|
||||
longer followed, both read from the bucket. Principles 3 and 7 (fix the kind at its second instance). How it is
|
||||
checked: rows of the assigner's pass tests: a finding of each of the three kinds, written before a restart, is
|
||||
cleared at the first pass after it once its cause is gone; live, after H2's delivery, `assigner_read_findings` holds
|
||||
no `tier-late` of an ended pipeline.
|
||||
- **H-A-723 (a build key holds one wait, the build's current one, 16:56)** 25 Nov; amends H-A-707 (5) and row B19.
|
||||
Where met: three waits are held under the one key `<module>.<fingerprint>` (the toolchain wait, the key queued behind
|
||||
a package of ADR 0603 §8, and H-A-707's pin wait); `Hold` drops a second wait under a held key and says nothing, and
|
||||
`End` refuses an end whose `how` is not `published` for a wait naming a package, so H-A-707 (5)'s `failed` would be
|
||||
refused and the key would stay. A build waits for one thing at a time, so one key holds the build's current wait:
|
||||
(1) a `Hold` over a standing wait of another kind or other fields ends that wait (said `wait-ended`, `how`
|
||||
`replaced`) and holds the new one; a `Hold` equal to the standing wait changes nothing; (2) `End` with `how` `failed`
|
||||
ends a wait of any kind, and `published` still only one naming a package. Nothing is dropped unsaid. Principles 3
|
||||
and 7. How it is checked: rows of the builder's waits tests: a pin wait held over a toolchain wait ends it as
|
||||
`replaced` and stands; a pin wait ended `failed` is deleted; a second equal `Hold` writes nothing.
|
||||
- **H-A-724 (the forge bridge's leftover tools twin is removed once by the bus module's tool, 16:56)** 25 Nov. Where
|
||||
met: the consumer `<node>_mesh-delivery-forge-bridge_tools` on `SEAT_mesh-delivery_owed` was made 2026-11-14 by the
|
||||
grants part, which composed a `_tools` twin beside each durable before mesh-delivery 4ca6e478 (2026-11-22); the tool
|
||||
runner never made it (its twins came in mesh-tools ba82044, at a bundle's first subscribe, and the bridge's tools
|
||||
bundle subscribes nothing). It never delivered and counts the whole stream as pending; the stream is limits-only, so
|
||||
it holds no data back. H-A-472's ninth addendum (a twin withdrawn when its membership goes) is built on main in both
|
||||
halves, so no row of H2 builds it; this twin's membership never goes while the bridge is assigned. The lead removes it
|
||||
once with the bus module's `nats_consumer_remove` (with `why`), after H2's delivery shows the tool runner makes no
|
||||
twin for the bridge. Principle 4. How it is checked: live, after the removal, `nats_consumer` of that name answers
|
||||
not found and the bridge's durable delivers as before.
|
||||
|
||||
Reference in New Issue
Block a user