Compare commits
404
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
540d5e8fd4 | ||
|
|
507ea61f7b | ||
|
|
0e274eab09 | ||
|
|
a05cf4b6ff | ||
|
|
66e950eb05 | ||
|
|
1b6ddf941d | ||
|
|
76de518388 | ||
|
|
4a0d7c61c8 | ||
|
|
4b605da358 | ||
|
|
602d12f647 | ||
|
|
aed3eba69c | ||
|
|
07f86d523f | ||
|
|
8c92c1df5c | ||
|
|
9a2cd8d3c1 | ||
|
|
555aa7dbcb | ||
|
|
d5d84c3da8 | ||
|
|
d20d0ec7d4 | ||
|
|
b45f9fe8d9 | ||
|
|
31113619b3 | ||
|
|
ba5cc680d4 | ||
|
|
26c1f570b9 | ||
|
|
11de92d8eb | ||
|
|
30da437126 | ||
|
|
330b9e69ed | ||
|
|
b5c93cca1a | ||
|
|
4e8922f50c | ||
|
|
485fa7b77f | ||
|
|
93775b7a38 | ||
|
|
35750a597f | ||
|
|
83f374df51 | ||
|
|
0396b3da3c | ||
|
|
d6915ee66d | ||
|
|
5d46473dc7 | ||
|
|
7ba9146f51 | ||
|
|
47e1ccc07c | ||
|
|
4bd0f0d5c4 | ||
|
|
5314a41f6e | ||
|
|
f1aaafda22 | ||
|
|
115409f8b3 | ||
|
|
e3bc8f695b | ||
|
|
50b8b67c08 | ||
|
|
f8c997fd7c | ||
|
|
e1d3cbe630 | ||
|
|
78e9bcb312 | ||
|
|
b812598e7c | ||
|
|
cde65e5290 | ||
|
|
2ee23aedf7 | ||
|
|
37edcf5899 | ||
|
|
ee4c82b96b | ||
|
|
eed55e62fd | ||
|
|
862eab3c6f | ||
|
|
adef48c101 | ||
|
|
3d013bdb12 | ||
|
|
76646878c9 | ||
|
|
27369077ef | ||
|
|
9f44caa1f0 | ||
|
|
7c5c3860b7 | ||
|
|
a935ab9939 | ||
|
|
c5e9d2b2d9 | ||
|
|
66542f2125 | ||
|
|
ca2984b35f | ||
|
|
543e6963f9 | ||
|
|
c25504778f | ||
|
|
21d73c8e02 | ||
|
|
95cf2052d2 | ||
|
|
27e5c0d9cd | ||
|
|
6b8373ce51 | ||
|
|
999e6525ee | ||
|
|
cf1eb715d1 | ||
|
|
501a6b3c7f | ||
|
|
0cae753296 | ||
|
|
b4b1fb2f9f | ||
|
|
ea0540feb7 | ||
|
|
9246148808 | ||
|
|
d4eb197b49 | ||
|
|
f9be4ef0be | ||
|
|
c7f317263d | ||
|
|
ee89b8575d | ||
|
|
1cdfa6ff70 | ||
|
|
8aa702714e | ||
|
|
cea6404ccd | ||
|
|
9ea26f24bf | ||
|
|
224d2c0fd0 | ||
|
|
aa768f550a | ||
|
|
fcfc101da4 | ||
|
|
11dbae7c2b | ||
|
|
a6f6396aeb | ||
|
|
4189746951 | ||
|
|
0f45c563bf | ||
|
|
9c4ad57c4c | ||
|
|
d407e39684 | ||
|
|
77b21315c8 | ||
|
|
597160fc45 | ||
|
|
1b28636621 | ||
|
|
d3a1ca8a03 | ||
|
|
03d87ae524 | ||
|
|
7c10032c2e | ||
|
|
a1e3e9c882 | ||
|
|
18164c2125 | ||
|
|
809933bd88 | ||
|
|
3d2a65417c | ||
|
|
fbcb1549e3 | ||
|
|
81d531362c | ||
|
|
f333f7b0bc | ||
|
|
b19934ac5c | ||
|
|
0e59eab9d7 | ||
|
|
9554b86ee4 | ||
|
|
68faa7e545 | ||
|
|
33ddf3e1ed | ||
|
|
fb5764f3c9 | ||
|
|
46d31fea38 | ||
|
|
e997ffe773 | ||
|
|
b67f22332f | ||
|
|
2f10b917df | ||
|
|
0cf5265410 | ||
|
|
cc0446993a | ||
|
|
db2c647637 | ||
|
|
5b3cfaea4f | ||
|
|
ca522af699 | ||
|
|
d72433c167 | ||
|
|
3aa3aaaa6c | ||
|
|
a5d37df7fa | ||
|
|
82b3a56b38 | ||
|
|
1b022cff64 | ||
|
|
40a0f0eba3 | ||
|
|
b1d0628b33 | ||
|
|
d7e7d20468 | ||
|
|
948086f153 | ||
|
|
1b1e1984a5 | ||
|
|
bcbd43f85e | ||
|
|
f870d24bda | ||
|
|
7dc6592b4b | ||
|
|
91e7532ec8 | ||
|
|
e682e8dcf3 | ||
|
|
0065f24871 | ||
|
|
1d82e80d52 | ||
|
|
5406f70efa | ||
|
|
59613061b7 | ||
|
|
c379e42e09 | ||
|
|
45c02022c1 | ||
|
|
997bb748ed | ||
|
|
6b10cec681 | ||
|
|
6434b6eeba | ||
|
|
6227576d57 | ||
|
|
e09bac8ccc | ||
|
|
0307bd4398 | ||
|
|
e430897c59 | ||
|
|
c39a020c84 | ||
|
|
0aa3e2dcdc | ||
|
|
44e10ff089 | ||
|
|
99f05f97f3 | ||
|
|
692b125fb5 | ||
|
|
9b3d574d1a | ||
|
|
a9456ad5fe | ||
|
|
3780a1b795 | ||
|
|
debf26ab57 | ||
|
|
1c74e0655c | ||
|
|
4db76ecb1e | ||
|
|
9b0a236cc6 | ||
|
|
2d31e82e6c | ||
|
|
608eec9ed1 | ||
|
|
87f81bbb79 | ||
|
|
750123b6a3 | ||
|
|
166a4b0975 | ||
|
|
2fba6b41f2 | ||
|
|
5b8eed10e3 | ||
|
|
c5ae8c32dd | ||
|
|
7fd1ed62c0 | ||
|
|
16db30b1e3 | ||
|
|
5699982915 | ||
|
|
bb1e99d845 | ||
|
|
a47904606c | ||
|
|
cb50af4b59 | ||
|
|
e6ec6722de | ||
|
|
32a8ce3c52 | ||
|
|
0a6e952701 | ||
|
|
600fa29566 | ||
|
|
b65eb9033f | ||
|
|
dd0e58af5c | ||
|
|
8e2035d3bc | ||
|
|
e4924a477d | ||
|
|
48cff5171a | ||
|
|
4954d68add | ||
|
|
7e2e95066d | ||
|
|
ac30f659e7 | ||
|
|
effaf81609 | ||
|
|
2b473d16e3 | ||
|
|
c8140b9fb8 | ||
|
|
3d8e033930 | ||
|
|
2a470989a9 | ||
|
|
18269c9858 | ||
|
|
094593255c | ||
|
|
cad0fd6681 | ||
|
|
b3c2f00707 | ||
|
|
9e0923ce63 | ||
|
|
7d80c7e691 | ||
|
|
402d05e668 | ||
|
|
dd3c0eed2f | ||
|
|
684de504e7 | ||
|
|
f466ec71ef | ||
|
|
ecc9934f02 | ||
|
|
2dd5d7ff58 | ||
|
|
30c6d51e70 | ||
|
|
fc6555113c | ||
|
|
40ff0ff2ae | ||
|
|
983e696765 | ||
|
|
ecddaf357a | ||
|
|
9c377cd2b5 | ||
|
|
c16a5376eb | ||
|
|
cde266bbed | ||
|
|
62ca6a2da4 | ||
|
|
27565af14d | ||
|
|
c1a72294ff | ||
|
|
5863f396a0 | ||
|
|
b7d01fce07 | ||
|
|
3105d8fa73 | ||
|
|
6b3356ba28 | ||
|
|
9b60f5d1e3 | ||
|
|
075a537b58 | ||
|
|
49217475e9 | ||
|
|
4ffe1fd8b1 | ||
|
|
9feaea711f | ||
|
|
1b336cf08b | ||
|
|
571bb261d0 | ||
|
|
cc125479a3 | ||
|
|
4333c3d8c2 | ||
|
|
c2712b5cd1 | ||
|
|
364552d2b2 | ||
|
|
5bbe18d56b | ||
|
|
abd562e40a | ||
|
|
10627efcbd | ||
|
|
17346cccf3 | ||
|
|
218c40206e | ||
|
|
ac7654bc72 | ||
|
|
0f71246646 | ||
|
|
60f426471f | ||
|
|
f2d0ecd11b | ||
|
|
59bc826d6f | ||
|
|
646c2c3cd8 | ||
|
|
33ba181557 | ||
|
|
f6b0a843b2 | ||
|
|
9c0e90231c | ||
|
|
bf02dc3a44 | ||
|
|
947dbb590e | ||
|
|
2e1a6688ec | ||
|
|
cb1b717638 | ||
|
|
e520f4a5a1 | ||
|
|
8ae2aab29f | ||
|
|
4f9c6410e9 | ||
|
|
8fd62a2495 | ||
|
|
3eb01ece44 | ||
|
|
d42904e533 | ||
|
|
38070a4f75 | ||
|
|
1e985bac5c | ||
|
|
0abe9589d2 | ||
|
|
743b2c53c1 | ||
|
|
c975e5b39a | ||
|
|
e9192d7c7e | ||
|
|
dd758d6e5f | ||
|
|
0db5b941de | ||
|
|
0dbcb115f9 | ||
|
|
1ea623bf1e | ||
|
|
0058f2671c | ||
|
|
e104dae99c | ||
|
|
aa4bd831b7 | ||
|
|
5fd71bf9a2 | ||
|
|
b2d54d567f | ||
|
|
cbf3d8acb3 | ||
|
|
60b653cbcc | ||
|
|
32d1aef305 | ||
|
|
fb09134ba4 | ||
|
|
dc8796cdb0 | ||
|
|
0b0760adab | ||
|
|
7f0b70df75 | ||
|
|
c5e4c2e1da | ||
|
|
5b45d8f92b | ||
|
|
c18e113c7e | ||
|
|
4e534ae0cd | ||
|
|
0477e04643 | ||
|
|
3679bec24a | ||
|
|
5aa3b4b8c4 | ||
|
|
93039639e5 | ||
|
|
9553ce0e83 | ||
|
|
c4cfceefa9 | ||
|
|
e098ffdef5 | ||
|
|
ee2e2bc438 | ||
|
|
50a890676c | ||
|
|
96b8f0c293 | ||
|
|
86b9b25c39 | ||
|
|
ea6d9aa8fe | ||
|
|
1324d2183d | ||
|
|
e67a8f1bae | ||
|
|
2e2f1072ee | ||
|
|
7485c2cb29 | ||
|
|
24c678418f | ||
|
|
fb218be9c7 | ||
|
|
ecc590da57 | ||
|
|
7df293752f | ||
|
|
ad98ab82f7 | ||
|
|
3f62a62d09 | ||
|
|
e1af8b445c | ||
|
|
608b72247e | ||
|
|
04fb9e7499 | ||
|
|
66f96ba36b | ||
|
|
1b1f7b6925 | ||
|
|
720e7e7870 | ||
|
|
f2f7330c75 | ||
|
|
c951849dfc | ||
|
|
c1a5b310fe | ||
|
|
3b29f26c77 | ||
|
|
13e53e498c | ||
|
|
bc56c7db9c | ||
|
|
65d7ee37d9 | ||
|
|
5d9b701de7 | ||
|
|
a5fa22a4b8 | ||
|
|
6de57ebb11 | ||
|
|
e853f9a4e7 | ||
|
|
4ecf9e2206 | ||
|
|
702f226920 | ||
|
|
d78897ee1d | ||
|
|
1db1271e27 | ||
|
|
ea92464a46 | ||
|
|
bf39c5ae3f | ||
|
|
6daefe666f | ||
|
|
4d8c853f46 | ||
|
|
9ca54b463e | ||
|
|
199b8e9631 | ||
|
|
66c70e6627 | ||
|
|
2ba6b946f0 | ||
|
|
f987fbe3f2 | ||
|
|
7dca93c025 | ||
|
|
7a7a1ffea5 | ||
|
|
15ef740ef5 | ||
|
|
3900d17bb1 | ||
|
|
531df30528 | ||
|
|
e9bb740c7e | ||
|
|
56deca5f34 | ||
|
|
d5fbf23107 | ||
|
|
9b981693df | ||
|
|
c3246cfeb4 | ||
|
|
decac6fc68 | ||
|
|
9981bcbfc3 | ||
|
|
270f469fa1 | ||
|
|
94f77b2dde | ||
|
|
1dbc2844dc | ||
|
|
51c636b91f | ||
|
|
8d1f4ee027 | ||
|
|
19e8535719 | ||
|
|
28def7eae5 | ||
|
|
cc7408eaa3 | ||
|
|
dfbca1458d | ||
|
|
6d90185f49 | ||
|
|
149955dbd2 | ||
|
|
40ad6a10bf | ||
|
|
ad5284889b | ||
|
|
cc556c857a | ||
|
|
48cff82289 | ||
|
|
b6d44d1bd6 | ||
|
|
e6c7bc1d06 | ||
|
|
d98e61a6e2 | ||
|
|
bc1c1561f3 | ||
|
|
032c4319f8 | ||
|
|
80745b3e02 | ||
|
|
88ea67c7b4 | ||
|
|
781b614100 | ||
|
|
4238e98f0d | ||
|
|
268b65e6db | ||
|
|
230d48c3f4 | ||
|
|
9f7619d3c4 | ||
|
|
f59b63e3e2 | ||
|
|
b0f8d434e6 | ||
|
|
9dea4eefed | ||
|
|
9c9342d8bf | ||
|
|
b2f2ac7580 | ||
|
|
64a927c144 | ||
|
|
415f28d73c | ||
|
|
ee8a7e706a | ||
|
|
ad7f141623 | ||
|
|
befabda4d1 | ||
|
|
00059d7325 | ||
|
|
6177ae66ac | ||
|
|
59864fc478 | ||
|
|
b1cef2c617 | ||
|
|
9e6ca94df0 | ||
|
|
bea4380a8b | ||
|
|
b37cb3985d | ||
|
|
ad94daa421 | ||
|
|
87ded62dd1 | ||
|
|
fbd39168f4 | ||
|
|
47515b8730 | ||
|
|
f2dfc50f8d | ||
|
|
05fac9854c | ||
|
|
3f9240f731 | ||
|
|
70e333055c | ||
|
|
acf3431207 | ||
|
|
eb5476d319 | ||
|
|
fea6f12ebb | ||
|
|
e320b964a9 | ||
|
|
d444ac1cde | ||
|
|
de9f20c0e1 | ||
|
|
04fb76dd53 | ||
|
|
a293e235eb | ||
|
|
8e37cfbb21 | ||
|
|
94e8564cc2 |
+13
-2
@@ -318,6 +318,11 @@ controller and the store; for module assignment, by the seat `mesh-module-assign
|
||||
again on the callee's event saying its answer changed (§4). mesh-sdk carries its form (§7). A call not marked is
|
||||
made once and its fault said.
|
||||
*Not:* ~~retried call~~ (hq)
|
||||
- **event hub** — the runtime's one pull of a module's durables, on the shared events stream and on each kept seat
|
||||
event's stream it handles, which hands each message to the handler whose subject pattern takes it, under the key the
|
||||
module gives that pattern: one key's events one at a time in the order heard, different keys' side by side; every
|
||||
message it holds is said in progress to the bus until its handler ends (mesh-sdk; design 47 H2, H-A-281, H-A-683,
|
||||
H-A-695). Never bare **hub**, which is a node's role for the private network (see [Homonyms](#homonyms)).
|
||||
- **waiting call** — a module's call of a marked verb that the verb's holder keeps whole, with the caller the bus
|
||||
proved and its ask, until the operator's answer: on the Approve the holder runs it once, and it says the call's end
|
||||
(ran, declined, expired or refused) on its seat's event `gated-ended` to that caller alone (ADR 0676 §2, §3). The
|
||||
@@ -1130,8 +1135,12 @@ becomes a message). **Decided by** ADR 0227, 0231, 0240, 0252, 0283, 0564, 0668.
|
||||
- **ledger** — a storage type keeping, per instance of a type, a history of every **operation** (one change, kept
|
||||
in order) and a state derived from that history by each operation's **ledger effect** (one of a fixed set: set
|
||||
fields, set an entry of a map, append to a list, remove), through the tool runner's `apply` (ADR 0597).
|
||||
- **snapshot** of a ledger's state — the latest state of one instance, on a subject of its own, never expiring,
|
||||
from which a rebuild starts; distinct from the stream snapshot.
|
||||
- **snapshot** of a ledger's state — the latest state of one instance, on a subject of its own in the ledger's
|
||||
**snapshot store** (a stream of the ledger beside its history, one message per instance, refusing when full as the
|
||||
history does; design 47 H2, H-A-687), from which a rebuild starts. It never expires, save in a ledger whose own
|
||||
configuration gives its instances an end: an ended instance's snapshot carries the lifetime of its state key and goes
|
||||
with it, and a rebuild leaves none of an instance past that lifetime (ADR 0597 §8, ADR 0690 §2). Distinct from the stream snapshot; a ledger's snapshot store is never bare where
|
||||
it could be read as where the bus keeps its stream snapshots.
|
||||
|
||||
## Connectivity — how nodes and modules reach one another
|
||||
|
||||
@@ -1516,6 +1525,8 @@ renaming one sense, the old sense moves to a *Not:* line and becomes mechanical.
|
||||
| snapshot | the latest state of one ledger instance, from which a rebuild starts | **snapshot** of a ledger's state | Data |
|
||||
| | the bus's own backup of each stream | **stream snapshot** | Data |
|
||||
| | a read-only point in time of one ZFS dataset, inside its pool | **ZFS snapshot** | Data |
|
||||
| hub | a node that relays for nodes that cannot reach each other directly; the one sense "hub" keeps bare | **hub** | Connectivity |
|
||||
| | the runtime's one pull of a module's durables, handing each event to its handler by key | **event hub** | Core |
|
||||
| template | a storage type with a configuration, asked for in `requires` | **template** of bus state | Data |
|
||||
| | a file with placeholders a provisioner fills | **template file** | Config |
|
||||
| option | a setting of a template a module may change | **option** of a template | Data |
|
||||
|
||||
@@ -11,8 +11,9 @@ code:
|
||||
- mesh-sdk (the typed bus-state entry, its binding and the new calls' package, ADR 0595)
|
||||
- mesh-delivery (the manifest validator's rules and the grants part's binding, ADR 0595)
|
||||
- mesh-contracts seats/mesh-broker (the seat's definition: `list` answers each entry's binding)
|
||||
updated: 2026-11-11
|
||||
updated: 2026-11-25
|
||||
decisions:
|
||||
- "ADR 0690"
|
||||
- "ADR 0595"
|
||||
- "ADR 0626"
|
||||
- "ADR 0631"
|
||||
@@ -68,6 +69,19 @@ when asked again by hand it takes a first view of every binding from the seat `m
|
||||
`created` loses no binding for good (milestone bindings-first-view). The same change puts this design in the shape
|
||||
of playbook 02: § 12.2 to § 12.6 moved, unchanged and numbered, into the part of milestone bus-state.
|
||||
|
||||
**Amended, 2026-11-25** (ADR 0690 §1, §2, accepted that day on the operator's Approve): a ledger's state and index
|
||||
buckets take the ledger's own cap, its option `max-mib`, as its history and snapshot store do, in place of a state's
|
||||
64 MiB; and where a ledger's own configuration gives its instances an end, an ended instance's snapshot carries the
|
||||
lifetime of its state key and goes with it. § 12.1's ledger row and § 12.7 say so. The part of milestone bus-state,
|
||||
whose lines are built, keeps its §19 as written ("never expiring"), which now holds for a ledger whose instances never
|
||||
end and for an instance that has not ended. Both are built in design 47's milestone H, by its H2 lead answers H-A-636
|
||||
(the cap) and H-A-634 (the end of an instance and its snapshot's lifetime). The review by architectural domain of
|
||||
those answers adds, the same day (H-A-685 to H-A-690): a ledger's snapshot store refuses when full, as the template's
|
||||
"as log" fixes, and the fill condition judges it as the part `snapshot`; a ledger's binding names `ended-days` only
|
||||
once the bus holds its objects with lifetimes, and the bus module says a changed binding again with `created`; and
|
||||
the watcher of the bus-state part's §21 keeps an index through the call `reindex` named for one instance, so the tool
|
||||
runner alone writes index keys, each with its instance's lifetime.
|
||||
|
||||
## 1. What the bus is for
|
||||
|
||||
**The bus is where the mesh happens.** Not a transport the mesh sends things over — the place a
|
||||
@@ -684,8 +698,9 @@ named: six exist, from the uses counted on main (158 state entries, 6 event stre
|
||||
**option** is one setting of a template a module may change, within its bound. A module gives a configuration of
|
||||
its own only where no template fits: the bare stream, or a ledger whose history expires.
|
||||
|
||||
**What keeps the data safe is fixed, never an option** (ADR 0595 §3). Each template fixes what happens when it is
|
||||
full, and the manifest validator refuses a manifest that gives it:
|
||||
**What keeps the data safe is fixed, never an option** (ADR 0595 §3; for a ledger's state, index buckets and snapshot,
|
||||
as ADR 0690 changes it). Each template fixes what happens when it is full, and the manifest validator refuses a
|
||||
manifest that gives it:
|
||||
|
||||
| Template | On | Fixed | Options, their bounds (default) |
|
||||
|---|---|---|---|
|
||||
@@ -694,7 +709,7 @@ full, and the manifest validator refuses a manifest that gives it:
|
||||
| work queue | stream | removed once taken; refuses when full; one taker; no grant | deliveries 1 to 10; duplicate detection up to its age; cap; age |
|
||||
| log | stream | refuses when full; never rewritten; an entry at most 256 KiB; one subject per key | cap 1 to 8192 MiB (1024); age 1 to 3650 days (none) |
|
||||
| objects | object store | refuses when full; kept for good | cap 1 to 8192 MiB, required; a grant |
|
||||
| ledger | ledger | as log, plus its type and a snapshot per instance; its state and index buckets as state | cap; keeping days only in a ledger's own configuration |
|
||||
| ledger | ledger | as log, plus its type and a snapshot per instance; its state and index buckets as state, but at the ledger's cap (`max-mib`), as its history and snapshot store are, with no other option setting their cap, and the fill condition judging them against it (ADR 0690 §1); its snapshot store as log, refusing when full and judged by the fill condition as the part `snapshot` (design 47 H2, H-A-687); a snapshot never expires, save where the ledger's own configuration gives its instances an end (design 47 H2, H-A-634): an ended instance's snapshot then carries the lifetime of its state key and goes with it (ADR 0690 §2) | cap; keeping days only in a ledger's own configuration |
|
||||
| (none: a bare stream) | stream | the module's own subjects; within the mesh's bounds | its own configuration, which must give "when full" (refuse or drop the oldest), a cap of 1 to 8192 MiB and an age of 1 to 3650 days or none, and may give a grant; the manifest validator refuses one missing any of the three |
|
||||
|
||||
The template log is the **module log** of ADR 0297. The mesh, never the module, names the bus objects and their
|
||||
@@ -752,6 +767,7 @@ tools, then follow its events.
|
||||
| Only the owner reaches its data | live: another module's account reading an entry in the new form, a ledger's history, snapshot or state among them, is refused; a raw publish on a ledger's history is refused |
|
||||
| The ledger keeps its promises | one integration test against the real bus (ADR 0597's How it is checked): two writers race and one is refused; two interleaved applies leave the state at the higher sequence; a write cut between history and state is repaired; a full state bucket answers taken with its sequence and catches up; an idle instance whose operations expired rebuilds from its snapshot; `rebuild`, `reindex` and `lag` repair by hand; a forged author is refused; every `apply` leaves the snapshot equal to the state; an index behind raises its condition and `reindex` clears it |
|
||||
| Only the owner applies | the ledger's integration test: another module's ledger `apply` on the knowledge base's ledger is refused |
|
||||
| A ledger's state and index buckets take its cap, and its snapshot goes with its key (ADR 0690) | the rows design 47 H2 names where it builds them (H-A-636, H-A-634): the bus module's plan tests (a ledger with `max-mib` 1024 plans its state and both index buckets at 1 GiB, with its history's keeping days of 90 too, and one with none at 64 MiB) and its fill pass (a ledger's state at 100 MiB of 1 GiB says no `full`, at 75% of it `full` naming its state); the tool runner's ledger unit tests, by write path (`apply`, `rebuild`, the repair `snapshot`): an ended instance's snapshot is written with its state's lifetime, an open one's and every one of a ledger whose instances never end with none, and none for an instance past its lifetime, whose held snapshot a rebuild leaves gone; a case of the ledger's integration test: after an ended instance's lifetime its state key and its snapshot are gone while its operations stay in the history, and an open instance's snapshot stays |
|
||||
| A bare stream is complete | the manifest validator's unit test: a bare stream missing "when full", a cap or an age is refused, naming the field |
|
||||
| The calls rebuild only their users | a read of the delivery plan: only the importers of the calls package rebuild when it changes |
|
||||
| The move keeps data | live: a module moved from `state` keeps its bucket and data and raises no drift; a new entry in an old section is still created by the grants part; the count falls by one; at 0 a manifest using the section is refused and the foundation's are still accepted; a moved module is held off a machine whose tool runner does not read the typed binding |
|
||||
|
||||
@@ -2,8 +2,19 @@
|
||||
layer: to-be
|
||||
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-20
|
||||
updated: 2026-11-25
|
||||
decisions:
|
||||
- "ADR 0690"
|
||||
- "ADR 0686"
|
||||
- "ADR 0674"
|
||||
- "ADR 0436"
|
||||
- "ADR 0259"
|
||||
- "ADR 0685"
|
||||
- "ADR 0684"
|
||||
- "ADR 0640"
|
||||
- "ADR 0370"
|
||||
- "ADR 0349"
|
||||
- "ADR 0266"
|
||||
- "ADR 0682"
|
||||
- "ADR 0681"
|
||||
- "ADR 0673"
|
||||
|
||||
@@ -3,8 +3,22 @@ layer: to-be
|
||||
status: in-progress
|
||||
design: 47
|
||||
milestone: H
|
||||
updated: 2026-11-20
|
||||
updated: 2026-11-23
|
||||
decisions:
|
||||
- "ADR 0685"
|
||||
- "ADR 0684"
|
||||
- "ADR 0668"
|
||||
- "ADR 0664"
|
||||
- "ADR 0640"
|
||||
- "ADR 0632"
|
||||
- "ADR 0618"
|
||||
- "ADR 0614"
|
||||
- "ADR 0593"
|
||||
- "ADR 0563"
|
||||
- "ADR 0550"
|
||||
- "ADR 0370"
|
||||
- "ADR 0349"
|
||||
- "ADR 0266"
|
||||
- "ADR 0682"
|
||||
- "ADR 0681"
|
||||
- "ADR 0667"
|
||||
@@ -716,3 +730,9 @@ Added by the lead at 21:30 CET, from the run of 19:50 to 21:30; a row met again
|
||||
| The pipeline runner's open branch (rows 190, 193 and 195) gained H-A-326 and H-A-328 at 21:25 in three commits: a step held waiting on a package's publish counts as nothing open for the stalled rule; the seat mesh-builds gains the read verb `published` (module, artifact and fingerprint; answering published, version and digest), served by the builder from a reservation of that fingerprint whose artifact is marked published, or from a kept release of it; and the runner, when it writes a mover's wait on a package, asks it once per package and fingerprint and places the mover at once when the answer is published, the journal saying "placed from the published record" apart from an event; a package published before the pipeline existed thus no longer holds a pipeline until a restart. Two manifests and the seat's definition changed, so the manifest validator runs before the branch's third review; the approved head of row 190 is superseded by this one (rows 190, 193 and 195); the pipeline runner (`mesh-delivery-pipeline`) and the builder. Owed: the answer's time, never filled because the builder keeps no publish time, with that record. | H1's tail (the runner and the builder) |
|
||||
| The manifest validator's run on the pipeline runner's branch (row 197) at 21:28 found the change adding no problem: with the branch's seat definition, the change case's verdicts equal the trunk case's for every one of 157 manifests. But the builder's and the runner's manifests are refused in both cases, on fifteen and three lines naming verbs of the registry and build seats that the validator program does not see in the repositories' trunk seat files (they declare acts and accepts), lines the live validate of the same modules passed today; every developer and reviewer runs the validator this way, because the live answer of the seat list is too large to read into a session. The branch's third and last review began at 21:30 (rows 190, 196 and 197); the pipeline runner (`mesh-delivery-pipeline`), the builder and the indexer's manifest validator. Owed, by H-A-329: the seat mesh-catalog answers the seat list as one object a validator run takes; and the validate step counts only the problems new against its before case for a touched module (the reader found it counts every problem). | H1's tail (the runner); H2 (the validator's reads) |
|
||||
| The two reviews came back at 21:34 and 21:35, neither approving. The packet filter's group (row 196): five findings, one a real fault (the holder accepted an expiry without seconds that the node-engine's time reader refuses, so every later compose would have withheld the filter), the others form (the verbs served before the holder's start had said started; the holder copying the seat's names instead of importing the generated package, the copies already drifted; the seat definition's description of the default set stale; the stored copy of the node's grant lacking the event's subscription), all in one developer's hands; the holder's ten-second bound on its converged ask stays a value (H-A-330). The pipeline runner's branch (row 197), third round: one finding, the published answer never carrying its time, and never the digest for a release, which the builder did not keep; H-A-331 settles it (the publish time kept on the mark from now on, a release keeping its digest, both absent for older records and said so; a withdrawn number never answered published). The lead takes a fourth look at that one commit rather than a fourth round: the rule of three rounds bent for a detail of form, and said here (rows 196, 197 and 198); the packet filter module, the node-engine, the pipeline runner (`mesh-delivery-pipeline`) and the builder. | other (the packet filter); H1's tail (the runner) |
|
||||
| At 21:40 the operator said not to wait for them, and at 21:41 approved ADR 0683, so the lead stopped holding on the merges and prepared them instead: the four reviewed code branches were pushed and their pull requests opened for the operator's merge (the delivery repository's #317, the change of the assigner and the runner; #318, the teller's test; #319, the pipeline runner's placing fix, approved at its fourth look; and the node-engine's #244, the fix of the restart loop), beside hq's #797 (this record) and #798 (the packet filter's design amendments, now resting on an accepted decision); the runner's branch had its manifest validator run (row 198), and the base of #317 sits seventeen commits behind main but merges clean. The packet filter's group had its five findings fixed in one commit per repository and entered its second review round at 21:44. And the next milestone's design began: a writer turns every item the H1 record names as owed into H2's design lines, with the two proofs that show a change delivered in under ten minutes with no hand act and no restart (ADR 0282), for the reviews by architectural domain and the prepare that follow (rows 173, 187 and 199); the runbook. | H1 (closed); other (the packet filter); H2 (begun) |
|
||||
| At 21:47 the operator said the lead can and should merge the pull requests, and at 21:48 that they cannot be bothered with them, so merges are the lead's from here, as the mesh's rule on merges says, and the lead will not put a merge to the operator again. By the lead's reading, the earlier refusals were the lead session's own permission check reading the handovers' words ("the operator decides", "a check refused the earlier dispatch") as routing around a review, not a rule of the mesh; a plain handover quoting the operator passed. An agent merges the six at 21:48, in this order: the node-engine's #244 first (it ends the restart loop; its pipeline delivers the node-engines, and then the held puts are released); the delivery repository's #317, #318 and #319 as one call; then hq's #797 and #798, through the forge's interface (rows 174, 187 and 200); the runbook. | H1 (closed); other |
|
||||
| The merges landed: the node-engine's fix (#244) merged at 21:48:30, and its pipeline passed at 21:50:53, two and a half minutes from merge to pass, the node-engine's want moving on the home server and the control-node at 21:51 (the other two and the node-engines' restarts are being read; the held puts of row 183 are released once the restart loop has stopped); the three delivery fixes (#317, #318 and #319) merged as one call at 21:49, and their pipeline of 23 movers runs. hq's two pull requests (#797, this record, and #798, the packet filter's designs) have no merge path in the mesh: the forge tool never merges (ADR 0266), and the merge verb takes only a watched branch, which hq, registering no module, is not; the lead session's permission check refused dispatching hq's registration as a source, so the operator merges them at the forge for now. The fix of the journal lines (H-A-320 (1)) is built and in review (rows 176, 200 and 201); the node-engine, the pipeline runner (`mesh-delivery-pipeline`), the indexer (`mesh-delivery-indexer`), the gate and the checker. Owed, by H-A-332: a repository with no module registers as a source only; its own check runs as the mesh's; its pull requests merge like any other. | H1 (closed); H2 (hq as a source, the journal lines) |
|
||||
| The node-engine's fix is delivered: the new node-engine ran on the home server and the operator's desktop from 21:52, each restarting the tool runner once more for a real change (a secret filled) and then no more; the held puts of row 183 were released at 21:54 (the home server) and 21:58 (the operator's desktop and the control-node), and the loop of rows 179 to 181 is over. One smaller flap of the same kind remains: the reads runtime restarts for the node-files holder's words derived from held modules' stubs, and H-A-335 extends the held-module rule to every runtime process the node-engine composes (in build). The fix of the journal lines (H-A-320 (1)) went to a second round under H-A-333 (every said end writes its line in the one place the event is said; the builder's answered line at its one finish; the asked line kept). The next milestone's design part, H2 "the delivery system's owed work", was written (forty-three lines, §775 to §817, with the two proofs: a change delivered in under ten minutes, read from the gate's new delivery time, with no hand act and no restart by hand) and pushed, with hq as a watched source as a line (H-A-334) and the bend of the destroy channel kept; its four reviews by architectural domain run, and a progressive insight on ADR 0668 adds the fault class "away" (rows 181, 200 and 202); the node-engine, the pipeline runner (`mesh-delivery-pipeline`) and the builder. | H1 (closed); H2 (begun) |
|
||||
| The pipeline of the three merged delivery fixes (rows 146, 170, 184, 187 and 190: the cut placing, the stranded want of room, the versioned end) ended failed at 22:00: the control-node's node-engine restarted its tool runner for a changed fingerprint in one module's words at 21:59, while the forge's bundle took a package's first chunk, so the publish died and the contracts module's build failed, and every mover downstream was not asked; the change itself was sound (every test run passed, and the same build passed on its next try at 22:05). The next merge's pipeline (the journal-lines fix, row 202, merged at 22:01) carried the same movers and re-pinned them to the published packages at 22:06, so nothing was run again by hand. A design's part is reviewed before its prepare: the four reviews by architectural domain of H2's part reported thirty-seven musts and notes in twelve minutes, answered in one batch (H-A-338 to H-A-341) and applied by the writer; and a TypeScript bundle's mesh packages get no catalog edge before its first build (H-A-336, owed in H2b) (rows 146, 170, 179, 184, 187, 190, 202 and 203); the node-engine, the tool runner (`node-tools`) and the Node build module. Owed, by H-A-342: a publish refused by a holder that is away ends the run again like a fetch; and the tool runner drains its calls in flight at a stop, within a bound, before the node-engine starts the new one. | H1 (closed); H2 (begun) |
|
||||
| The reads runtime's restarts (row 203) are over: the node-engine's fix (a held module's share of the holders' merged words comes from what runs; H-A-335 and H-A-337) was reviewed in two rounds, merged at 22:20 and delivered by its pipeline in three minutes (passed at 22:24), and the new node-engine ran on all four nodes by 22:26; no restart of the reads runtime since 21:57 on any node. Each new node-engine's first pass restarted the tool runner once with a false why (a secret said changed that did not change), as main.151's node-engine had at 21:52, and the mesh MCP server dropped for a minute each time; H-A-348 owes the fix to H2b (the judgement reads what the running unit holds, never only the node-engine's memory). The pipeline of the journal-lines fix (row 202) failed twice on the Node build module's integration tests, three tests, on two build nodes; their kind (H-A-347): since the toolchain lock pins no SDK (G §571), they had read the SDK from a stale toolchain through the "installed last" fallback for ten days, until the desktop installed the current lock at 19:26; the fix (the shared setup supplies the SDK the skipped fetch would place) is in review, and the fallback gains a journal line. The two insights are accepted: ADR 0668 at version 17 (the fault class "away") and ADR 0664 at version 16 (a holder that is away, and the forge's 401 or 5xx on a source fetch, end a run again). H2's part passed the second look of the four reviews (every must answered but six, which are answered as H-A-344 and applied), and is hq's pull request #799, for the operator (rows 202, 203 and 204); the node-engine, the Node build module and the knowledge base. | H1 (closed); H2 (begun) |
|
||||
|
||||
@@ -1999,3 +1999,320 @@ Where two preparers disagreed, the chosen one is named.
|
||||
publish) and a kept release keeps the published digest with its version; the verb published answers at and digest
|
||||
where kept and leaves them absent for marks and releases written before this change, the form's descriptions saying
|
||||
so; a withdrawn number is never answered published. P-failure-loud (an absent field, never an invented time).
|
||||
- **H-A-332 (hq merges like every other repository, 21:53)** Met tonight: no mesh tool merges an hq pull request (the
|
||||
forge tool never merges by ADR 0266; the seat git's merge-pull takes only a watched branch, and hq, registering no
|
||||
module, is not one), while hq's checks were meant to run as the mesh's (ADR 0527) and the operator wants no merge
|
||||
put to them (2026-11-21 21:48). So hq's main becomes a watched source: a repository with no module registers as a
|
||||
source only (branch, its own check command as its one check), the gate watches it, the checker runs its check as
|
||||
mesh/check, and merge-pull merges its pull requests like any other; until built, hq's pull requests are merged by
|
||||
the operator at the forge. Owed, the next milestone, in the indexer (the registration's source-only form), the gate
|
||||
and the checker. merges-need-no-approval, P7.
|
||||
- **H-A-333 (an ask placed is a journal line too; every said end writes its line, 21:55)** Amends H-A-320 (1): the
|
||||
runner writes a line when it places an ask ("<pipeline> <mover> <step> asked on <seat>") as well as when a step
|
||||
ends, and the ended line is written wherever a step-ended event is said (the unanswered-bound end, the end at
|
||||
placing, a supersede, a re-pin, the approval's end, the start pass, the verbs that end a step), in the one place
|
||||
that says the event; the builder writes its answered line in the one place an ask is answered (BuildStep's finish),
|
||||
naming the pipeline, the movers, the step and the outcome, the per-entry "existing build / built now" line beside
|
||||
it. P-failure-loud.
|
||||
- **H-A-334 (H2's part: two answers, 21:55)** For design 47 H2's part: (1) hq as a watched source is a design line, not an
|
||||
operator question: the operator wants no merge put to them (21:48) and hq's checks were meant to be the mesh's (ADR
|
||||
0527), as H-A-332 says; (2) the destroy-level answers' channel stays the approve-level bend of H-A-237 until a
|
||||
research effort designs the destroy proof's channel (an operator question only when that research is proposed);
|
||||
(3) the error kind "away" widening ADR 0664 §1 and ADR 0668 §1 is a progressive insight on ADR 0668 proposed by the
|
||||
record writer; (4) the items of section 10 rows 41 to 102 marked H2 go into a second part, H2b, written next; design
|
||||
47's main file's size is a separate reshaping run. act-on-the-intent, P7.
|
||||
- **H-A-335 (the held-module rule covers every runtime's slice, 21:58)** With the fixed node-engine on the home server the
|
||||
tool runner stopped restarting (none in five minutes after the hold's release), but the reads runtime restarted
|
||||
twice in two minutes "because MESH_TOOL_ENV (mesh-reads (MESH_SECRET_PLACES)) changed": the node-files holder's
|
||||
words are still derived from held modules' stub manifests pass by pass. H-A-306 (2) holds for every runtime process
|
||||
the engine composes from module slices (the reads runtime's secret places included): a held module's slice is copied
|
||||
from what runs. Fixed in the node-engine next, the same kind (fix-a-bug-met-twice). P3.
|
||||
- **H-A-336 (a TypeScript bundle's mesh packages are edges before its first build, 22:02)** Met in the packet filter
|
||||
group's review: the catalog graph gets a TypeScript bundle's package edges only after its first build (the Go side
|
||||
reads imports with go list; the TypeScript side reads nothing at take-in), so a bundle newly importing a mesh
|
||||
package (the holder importing the node-engine's and the packet filter's generated packages) is built before those
|
||||
packages publish and refuses every verb. Owed, H2b, in the indexer and the Node build module: at take-in the
|
||||
indexer reads a TypeScript module's package.json dependencies on @novox packages as edges of the catalog graph, as
|
||||
it reads Go imports; until then the recovery of the moment is a rerun of the bundle's build step after the packages
|
||||
publish. P-NATS-native, design-it-as-it-should-be (a gap built in the delivery system, not worked around).
|
||||
- **H-A-337 (a held module's share of merged words, 22:03)** Amends H-A-335 for words that merge every module's
|
||||
contribution into one list and lose the giver (the secret places): while any module is held, the places are those
|
||||
the modules not held compose, merged with every place in what runs, then reduced as today, so a pass with the same
|
||||
held set gives the same value, a module that answered still adds its new places, and a place a module dropped stays
|
||||
refused until no module is held (refusing more, never less); words that name their owner per entry (the owned
|
||||
paths) take the composed entries of modules not held plus the running entries whose owner names a held module.
|
||||
Both in the resolution, given the held set and each runtime process's running words. P3, ADR 0310 §5.
|
||||
- **H-A-338 (H2's part after the security and upgrade review, 22:05)** (1) The forge token is a secret: kept where the
|
||||
module keeps secrets (the vault's own, never plain in a state), the read tool masks it, each new mint deletes the
|
||||
old token at the forge. (2) A source-only registration's check names a build seat and a step kind (for hq
|
||||
node-build-go, unit at the repository root), run in that seat's sandbox, never a free command; merge-pull judges it
|
||||
by the registration's policy, the same as a module's (ADR 0527 §1). (3) The install kind names its source (the npm
|
||||
registry seat), an integrity-checked install (npm ci), no install scripts, the archive kept under the lock's digest.
|
||||
(4) ask-taken and version-reserved are declared in their seats' definitions, so only the holder publishes them.
|
||||
(5) builder_publish_drop, builder_publish_first (with a why) and bridge_owed_again are written in the hand-act log;
|
||||
an act performed again checks its preconditions again. (6) The ids a holder took live in its own state taken, key
|
||||
<seat>.<ask>, with the ask's bound as TTL. (7) A rebuilt asks stream carries no messages and is rebuilt before the
|
||||
new builder and assigner start. (8) form is left out while it is 1 and an absent form reads as 1; the edge "the
|
||||
tolerant node-engine before the assigner writes run" is named. (9) Every fingerprint changes once at H2's
|
||||
delivery; every module becomes a mover of that one pipeline (a build with the same content is reused, the engines
|
||||
restart nothing whose composition is unchanged); the indexer and the builder take the new fingerprint function in
|
||||
one release. (10) Ledgers and the hand-act log are never pruned; the foundation's old sections are exempt from the
|
||||
cap refusal; a delivery module is one whose manifest claims a delivery seat (the validator reads that). The main
|
||||
file's size and the H file's size are their own reshaping run (H-A-334 (4)). P-security, P3.
|
||||
- **H-A-339 (H2's part after the seams and tools review, 22:05)** (1) A foundation part declares each entry in its old
|
||||
section with its cap there (H-A-229, ADR 0619, ADR 0666 §4); so for the validator's rule. (2) An owner prunes when
|
||||
it hears the bus module's full condition for its own entry, down to prune-target; no periodic read. (3) hq's merge
|
||||
check is a pipeline step on the seat node-build-go run by the runner, judged by merge-pull from the runner's step
|
||||
events as for any module (ADR 0666 §11; the checker is gone). (4) Every holder of a kept call (the node-engine's
|
||||
compose-candidate, the forge module's git verbs, the registry) keeps the ids it took as H-A-338 (6) says, each named
|
||||
in its part. (5) §776 rests on the insights on ADR 0668 §1 and ADR 0664 §1 (proposed), accepted before the prepare.
|
||||
(6) The install kind is a step the runner asks of the Node build seat; the step's end carries the archive object's
|
||||
name (ADR 0666 §16). (7) Every new store names its form, cap, per-key TTL where it has one, and deleter (unfinished,
|
||||
outputs, publishes, token, dry-runs); a put refused by a full queue is said and asked again with the kept-call
|
||||
pacing. (8) The table of tools gains: what waits on the mesh-wants and mesh-builds queues and a drop of one ask;
|
||||
place-now for an unfinished mover; prune-now and keep-now; a read of the token lease and of dry-runs; whether the
|
||||
registrations view has been read; the before case's problems validate does not count. Notes taken: a changed shared
|
||||
form rebuilds every module (said once per such line); the output verb's node from the step key; the unbuildable
|
||||
list worked out again at every start. P7, P-NATS-native, tools-are-how-a-module-is-spoken-to.
|
||||
- **H-A-340 (H2's part after the running and testing review, 22:05)** (1) The work queue names its consumer settings
|
||||
(ack wait, in-progress interval, max ack pending, max deliveries, duplicates window, ADR 0436 §6); a holder pulls
|
||||
every ask at once and says ask-taken at the pull, so the bound counts from the pull, never from queue length
|
||||
(H-A-241). (2) The holder's compose bound is the setting compose-ask-bound (10 s). (3) Every store names its cap,
|
||||
the gate's ledger included; the prune trigger is the full condition (H-A-339 (2)). (4) Past mint-lease the waiter
|
||||
creates the lease itself; the token and the lease have per-key TTLs. (5) H2's own delivery is one pipeline of every
|
||||
module, builds with the same content reused and unchanged compositions not restarted, before the proofs run; its
|
||||
size and time are named. (6) A setup-starved NOT RUN ends the run again by §799's delays; a third ends the step
|
||||
could-not-run. (7) §794's cost is a unit test counting one read and one write per event, not a wall clock. (8) Each
|
||||
module ends H2 with fewer tests than it starts with, counts named per module. (9) Every line names its case,
|
||||
including take-in-waiting, record-too-large and the third run's failure. (10) The proofs are read from the gate's
|
||||
record (class core, delivery-time under ten minutes, no over-budget) and an empty hand-act log for every delivery
|
||||
part from merge-called to the last running, with no other pipeline holding the slot. Notes taken: jitter in the
|
||||
pacing; one journal line per seat; a key read twice between pages said; the head entry's count; the publish items'
|
||||
move with a message id; tags read once per take-in; the verb a build module calls to learn away. P3,
|
||||
P-failure-loud, test-budget.
|
||||
- **H-A-341 (H2's part after the health and events review, 22:06)** (1) ADR 0282 §7 stands: the self-check's probe
|
||||
reads the gate's times and raises over-budget with the class as its id, naming the revision and its longest phase;
|
||||
the next delivery of the class clears it; the gate raises nothing. (2) prune-mark 70 % and prune-target 50 %, below
|
||||
the bus module's raise mark; the owner judges its fill from the store's own figures at each write it makes (no poll,
|
||||
no timer; amends H-A-339 (2) and H-A-340 (3)). (3) version-tagged-elsewhere clears at the module's next
|
||||
version-released; record-too-large clears when the entry is next written within 64 KiB or at the record's end.
|
||||
(4) A work-queue ask is re-put only on a transport fault of its put; its bound counts from the pull (H-A-340 (1));
|
||||
a step ended by its bound drops its ask (ADR 0664 §4). (5) Beside the two lines per step, the per-mover wait
|
||||
lines (H-A-326 (3), §787) and §775's fault lines stay. (6) Every seat event body and verb answer carries form and is
|
||||
decoded tolerantly (H-A-338 (8) on an absent form). (7) outputs and the install archives: max-age 7 days and a cap;
|
||||
the builder deletes; output answers "no longer kept" past it. (8) A fetch's 401, 5xx or connection fault ends the
|
||||
run again (§799), no seat call needed. (9) The H file joins the main file's reshaping run (H-A-334 (4)). Notes
|
||||
taken: the consumes lists (runner: the two ask-taken; indexer: version-reserved); pipeline-ended carries unfinished
|
||||
and a mover kept or added again is a journal line; the builder's health names an event backlog older than five
|
||||
minutes; §790's and §803's tests show the clear; dry-run keys deleted at the indexer's start. P-NATS-native,
|
||||
P-failure-loud, map-onto-how-the-mesh-is-built.
|
||||
- **H-A-342 (a tool runner's restart kills calls in flight, 22:08)** The delivery fixes' pipeline failed at 21:59: the
|
||||
control-node's node-engine restarted its tool runner for a changed fingerprint in one module's words while the
|
||||
forge's bundle was taking a package's first chunk, so the publish died (SIGTERM) and the contracts module's build
|
||||
failed; every mover downstream was not asked. The next merge's pipeline carried the same movers and the build
|
||||
passed on its second try. Two lines for H2: (1) a publish or fetch refused by a holder away (no responders, a
|
||||
bundle exited) is a transport fault: the build module ends the run again (§799 covers publish as fetch), the
|
||||
runner's delays carry the retry; (2) the tool runner drains at a stop: it takes no new call once stopped, finishes
|
||||
the calls in flight within a bound (setting drain-bound, 30 s), then exits, and the node-engine waits that bound
|
||||
before it starts the new one; a bundle's call that outlives the bound is cut and said. No repository fix for this
|
||||
instance; nothing to rerun (main.155 carries it). P-NATS-native, P-failure-loud, fix-a-bug-met-twice (the restart
|
||||
loop of row 179 killed calls the same way).
|
||||
- **H-A-343 (the runner's events are waited on by name, 22:11)** A session waiting on a pipeline's end could not: the
|
||||
mesh MCP server's wait refuses "mesh-pipeline-runner.pipeline-ended" because the catalog's half names neither a
|
||||
seat nor a module of that name for the event, so the watcher read the journal on a timer. H2 line: every event the
|
||||
runner says (pipeline-started, step-ended, pipeline-ended, the re-pin) is declared in its seat's definition under
|
||||
the seat's events family, so a wait by seat and event name is answered and nobody polls; the same for the builder's
|
||||
and the indexer's events (ask-taken, version-reserved, H-A-338 (4)). Its check: the seat list carries the family;
|
||||
mesh_wait on each name is answered in the whole-module test. P-NATS-native, map-onto-how-the-mesh-is-built.
|
||||
- **H-A-344 (H2's part after the second look, 22:16)** (1) taken, unfinished, token-lease and every state whose
|
||||
deleter the stores table names other than the prune are never pruned; such a store refuses when full, said in the
|
||||
owner's journal. (2) A process refused at the forge first reads the vault's token; it takes the lease and mints only
|
||||
when the refused token is the vault's current one (unit test: two processes, one holding the old token, mint one
|
||||
token in all). (3) A foundation part (ADR 0619 §1, ADR 0666 §4) declares each of its stores (unfinished, publishes,
|
||||
taken, dry-runs, the findings stream) in its old section with the same cap and life (H-A-229); every other owner
|
||||
asks for it in requires by its template; so in the stores table and in §783. (4) assigner_keep_now (why) runs the
|
||||
keeping of the assignment graph's revisions at once, written in the hand-act log; its row in the tools table.
|
||||
(5) The findings stream: events template, max-bytes 8 MiB, max-age 7 days, in the stores table. (6) An ask untaken
|
||||
past ask-unanswered-bound from asked-at ends could-not-run, naming the seat's holder as not taking (unit, runner),
|
||||
never a slot held without end. (7) The fill is judged from the figures the write's own answer gives, no extra read.
|
||||
(8) outputs and the install archives are deleted by the objects store's own max-age of 7 days (the bus deletes),
|
||||
no sweep; the build module that keeps them is their owner (the line holds over H-A-341 (7)). (9) §799's third-run
|
||||
why is fetch: <words> or publish: <words>, whichever met the fault; the kit's test expects publish: for the publish
|
||||
case. (10) The forge module writes its token through the vault seat's own verb (named in §808), never into another
|
||||
module's store (ADR 0596). The main file's and the H file's sizes stay with the reshaping run. P3, P12,
|
||||
P-NATS-native, tools-are-how-a-module-is-spoken-to.
|
||||
- **H-A-345 (the forge token's write verb, 22:18)** §808 names the vault seat's own verb for both the read and the write
|
||||
of the forge module's token. The verb own reads a module's own secrets; if the seat serves no write of a module's
|
||||
own secret, that write verb is a gap of this milestone, built on the vault's seat beside own (a module writes only
|
||||
its own secrets through it, named by the caller's account), and the prepare's build map says which. P12, ADR 0596.
|
||||
- **H-A-346 (the packet filter group ships before trunk's test races are fixed, 22:23)** The group's last finding, a
|
||||
racy node-engine test, widened into trunk's own races in the same test function (measured on main before the
|
||||
change). The group carries only the fix of the race the review named (the ghost held until read, the data race on
|
||||
the shadow's field), and the rest of that test's kind is a small fix of its own on a branch from main, reviewed and
|
||||
merged apart, so the operator's allowance is not held by trunk's flakiness. rules-are-weighed (a cheap split; the
|
||||
thorough fix starts in the same turn), fix-a-bug-met-twice.
|
||||
- **H-A-347 (the Node build module's tests and the toolchain fallback, 22:26)** The three tests failed since the
|
||||
desktop installed the current toolchain lock at 19:26: the lock pins no SDK since G §571 (the fetch step places
|
||||
it), the tests skip the fetch and had read the SDK from a stale toolchain through the "installed last" fallback for
|
||||
ten days. (1) A whole-module test supplies every input the step it skips would place (here a small SDK with the
|
||||
stdio export in the workspace's node_modules), never read from what a machine happens to keep; fixed so. (2) The
|
||||
"installed last" fallback of ADR 0533 §3 stands for a build, and writes one journal line naming the toolchain it
|
||||
took and the lock it stood in for, so the next such stand-in is readable (H2, the Node build module). P3,
|
||||
P-failure-loud, nothing-moved-in-five-minutes (make it visible).
|
||||
- **H-A-348 (a new node-engine's first pass restarts the tool runner for a secret that did not change, 22:27)** The
|
||||
engine of main.157 started on all four nodes at 22:24-22:26 and each first pass restarted the tool runner "because
|
||||
claude-code.secret-gitea-read changed", the same words as the first pass of main.151's engine at 21:52; the mesh
|
||||
MCP server dropped for a minute each time. The secret did not change: the new engine judges "changed" against what
|
||||
it remembers of the secret's value, and a fresh engine remembers nothing. Owed, H2b, the node-engine: the judgement
|
||||
of a secret's change reads what the running unit holds (its rendered environment or a digest kept beside the unit),
|
||||
never only the engine's memory, so an engine's own delivery restarts nothing whose inputs are the same. Its test:
|
||||
two engines in a row over one bus, the second's first pass restarts no runtime. P3, P-failure-loud (a restart with
|
||||
a false why is a lie of its own), fix-a-bug-met-twice (second engine delivery, same line).
|
||||
- **H-A-349 (H2 prepare, the design questions, 22:38)** DQ-1 the seats take one kind, step; keep step (P7). DQ-2 the
|
||||
mesh-wants stream is rebuilt empty with mesh-builds, before the new holders start (H-A-338 (7)). DQ-3 the wrappers are
|
||||
named by package and type in §782. DQ-4 AgainID and the ask2. keys go (one way per thing, P3). DQ-5 the foundation
|
||||
parts among the delivery modules are listed in §814 (the indexer, the builder, the runner, the assigner, the gate,
|
||||
the teller and the contracts module; ADR 0619 §1). DQ-6 the publish queue's consumers are declared in requires and
|
||||
the message id carries the class. DQ-7 the vault's seat gains a two-step sealed write of a module's own secret
|
||||
modelled on licence-put, and the forge module reads its token through get; H2 builds it (H-A-345, P12). DQ-8 an
|
||||
unpublished package of the same repository enters the fingerprint by its directory's tree, never by the head
|
||||
commit (P3: the same source, the same fingerprint). DQ-9 the source-only registration's key is source.<owner>.<name>
|
||||
with origin, branches, policy and check. DQ-10 the seat list is an objects store seat-lists, 64 MiB, the newest two
|
||||
kept, in §820. DQ-11 the node-engine's rule mark stays and the scope words follow it. DQ-12 the composition key is
|
||||
named in §813 (1) and run stays a string. DQ-12b the node-engine's composition-diff is a seat verb. DQ-13 the
|
||||
event is re-pinned. DQ-14 each pull request's check reports the module's starting and ending counts; the budget is
|
||||
held to the check's way of counting (test-budget). DQ-15 mesh-sdk's TypeScript helpers carry away as the Go ones
|
||||
do (P9: one shape on every side). DQ-16 the gate reads a module's class from the manifest's class field the
|
||||
indexer carries in the catalog entry, never from a list of its own (P-the-mesh-owns-the-truth); a module with no
|
||||
class is a leaf. Principles named inline.
|
||||
- **H-A-350 (H2 prepare, design meets code, 22:38)** DMC-1 the queue settings live in the seat definition and are derived
|
||||
once, in mesh-sdk (P9). DMC-2 away is an error kind of each seat, git first; the kit tests each. DMC-3 tags answers
|
||||
{tag, commit} items and raises its form. DMC-4 the seat generator stays in mesh-delivery's seatgen package; §780 builds
|
||||
it there. DMC-5 §802 is built in the indexer, the one fingerprint function. DMC-6 the check-needs marker file goes;
|
||||
the manifest field replaces it in the same release (one way per thing). DMC-7 the build module passes its
|
||||
again-delays with its again; the runner applies them. DMC-8 runner_show and runner_movers are built; §816's cancel
|
||||
is the verb cancel. DMC-9 validate's before case and its count are the assigner's; the tool is
|
||||
assigner_validate_before. DMC-10 the seat is mesh-artifact-sweep and list gains module. DMC-11 nats_consumers is a
|
||||
new tool of the bus module. DMC-12 converged, the verbs' timeout and the packet filter's allow are the packet filter
|
||||
group's (ADR 0683), merged this evening; H2 builds none of them and reads them from main. DMC-13 mesh-sdk gains one
|
||||
settings reader for a process and a bundle. DMC-14 the runtime's write answer carries Fill (H-A-344 (7)). DMC-15
|
||||
drop is added to mesh-builds and mesh-wants. DMC-16 the build-step part's output and current replace the old forms
|
||||
and the part's form rises. The stale copies contracts/ and sdk/ at mesh-delivery's root are removed in H2 (one copy
|
||||
per thing, P3), a subtask of its own. Principles named inline.
|
||||
- **H-A-351 (how the ask id travels, 22:47)** (a): the kept call sets a request header the tool runner copies into the
|
||||
call's _meta as mesh/ask beside mesh/call; holders read it with one mesh-sdk helper on both sides (Go stdio and
|
||||
TypeScript); no verb's input gains a field. One shape for every seat and both languages (P9); the one change in
|
||||
mesh-tools (the tool runner copies the header) is that developer's subtask, relayed. P9, P7.
|
||||
- **H-A-352 (the form of a seat definition, 22:47)** (1) mesh-sdk's seat definition reader gains form on the definition
|
||||
and on a part (absent reads 1, below 1 refused; tolerant of unknown fields, H-A-309); the mesh-sdk developer builds
|
||||
it, the generator reads it. (2) The generator's check compares the new definition against the generated contract
|
||||
in the tree: each generated contract carries const Form and a digest of the definition's fields (names and types of
|
||||
every value, event, accept and answer); the compare fails when the digest differs while Form is equal. (3) One form
|
||||
per seat definition, a part's own form for what it adds; every message type gains the wire field form (left out
|
||||
while 1); generated tolerant decoders Decode<Type>(raw) answer the value and the form read. P3, P9, H-A-338 (8).
|
||||
- **H-A-353 (who keeps the bundles alive during the drain, 22:48)** The service manager's stop signals the tool runner's
|
||||
whole group, so the bundles die with their calls. The node-engine composes the tool runner's unit with KillMode=mixed
|
||||
(the stop signal to the runner alone) and a stop timeout above drain-bound; the runner, after its drain, stops its
|
||||
bundles itself as its launcher's stop already does. A node-engine line beside §813 (12); the runner's part stays as
|
||||
written. P3, P-failure-loud (a drain that cannot finish is no drain).
|
||||
- **H-A-354 (where away lands among the seats' error kinds, 23:01)** §776 lands where a seat already declares its own
|
||||
error kinds (the seat git first, in the delivery repository's contracts module); a seat without error kinds gains
|
||||
away when it first declares kinds, and no error form is invented per seat for one kind. In mesh-contracts nothing
|
||||
now. P3 (one way per thing), P9.
|
||||
- **H-A-355 (where run sits and who defines composition-diff, 23:04)** (1) §813 (1): run (the pipeline's sequence, a
|
||||
decimal string) sits on the want value the node-engine applies, in the seat mesh-wants' definition, written by
|
||||
compare-and-set per want key; the node-engine keeps the applied run per module and journals it; the compositions
|
||||
state carries no run. (2) §813 (3): composition-diff is defined on the seat node-engine in mesh-contracts, a K4 row
|
||||
built before the node-engine's E5: input module and against (a revision or a digest); answer per resource: the
|
||||
resource, its entries with name, running and other; a secret's value masked. P3, P7.
|
||||
- **H-A-356 (a connection's busiest subscriptions, 23:04)** §813 (5): each connection carries its five busiest
|
||||
subscriptions (subject, queue group, messages), read with subscription detail, always; the bound keeps the answer
|
||||
small, as the subscriptions tool's limit does. The trunk's race in the bus tools' test of a person's request handed
|
||||
to the keeper is fixed in the same subtask (fix-a-bug-met-twice: a goroutine outliving what it reads, the kind of
|
||||
tonight). P3, test-budget.
|
||||
- **H-A-357 (the derived accept rules' comment, 23:04)** §813 (4): the mark on the older firewall's rules stays as it is
|
||||
(the reconciling reads it); each derived accept rule of the packet filter's table carries the one comment
|
||||
"derived <modules joined by ,> <protocol>/<port> scope <any|private-network|local-network>" (everywhere is any,
|
||||
the mesh is private-network, the local network is local-network; a machine-only rule renders nothing) and no mark,
|
||||
since the table is loaded whole and never reconciled rule by rule; the packet filter holder's rules listing reads
|
||||
that form (the mesh-catalog developer's P1). P3, tools-are-how-a-module-is-spoken-to.
|
||||
- **H-A-358 (how drain-bound reaches the unit, 23:05)** The declaration's process gains drain-bound (seconds, for a
|
||||
process that stays up; a mesh-sdk subtask); the composer sets it on the tool runner's process from the module's
|
||||
setting drain-bound (default 30); the applier writes KillMode=mixed and a stop timeout of drain-bound plus 15 s
|
||||
for a process that carries it (the 15 s for the runner to stop its bundles after its drain); no process is
|
||||
special-cased by its id. P3, P9 (the declaration carries what the unit needs; the applier reads no settings).
|
||||
- **H-A-359 (a bundle takes an ask once too, 23:09)** A bundle's kept state has no create-if-absent, so a bundle holder
|
||||
(the forge module, in TypeScript) cannot take an ask once by its id. The tool runner gains the state act create
|
||||
(with a TTL), the SDK's bundle state gains TakeOnce with its TypeScript twin, the same shape as the process side
|
||||
(P9: one shape on every side); built in mesh-tools beside the ask-id copy, and in mesh-sdk. P9, ADR 0668 §2.
|
||||
- **H-A-360 (the name and the caller of a module-wide own secret, 23:09)** (1) Stored as module/<module>/<name>;
|
||||
own-put's second step answers that full name; get takes the full name. (2) It is answered to a process of the module
|
||||
(the caller's account <node>.<module>) and to a call the tool runner makes on that module's bundle's behalf, judged
|
||||
the way the vault already judges a bundle's own-secret read today (the module named in the call, not the runner's
|
||||
account); the developer reads that path and reuses it, never a second judgement. P12, P3.
|
||||
- **H-A-359a (correction, 23:11)** The runtime's state act create already exists for bundles (create with a TTL,
|
||||
refused when the key exists); nothing is built in mesh-tools for H-A-359. mesh-sdk's bundle state gains TakeOnce
|
||||
over it and its TypeScript twin; the taken state's name and key have one definition both sides refer to. P9.
|
||||
- **H-A-361 (a pipeline ends failed after a hand-off, 23:12)** Met twice tonight (the group's pipeline at 22:51, the
|
||||
catalog fix's at 23:00): seconds after newer pipelines took movers away (H-A-223), the older pipeline ended failed
|
||||
with every kept mover's steps counted as not passed, though none had been asked. The kind: the end judgement
|
||||
counts a step never placed as a failure. Fix in the runner: a step not asked is open, never failed; after a
|
||||
hand-off the pipeline places or keeps its remaining steps and ends only when every kept step has ended, and the
|
||||
journal says the hand-off and what stays. Checked first against the undelivered fixes riding main.165 (the end
|
||||
with nothing open, the versioned end): if they already cover it, nothing more; else a small fix from main.
|
||||
Recovery of the moment: the group's build asked again by hand (22:12 UTC). fix-a-bug-met-twice, P-failure-loud.
|
||||
- **H-A-362 (the work queue's settings in the seat definition, 23:12)** seatdef's message gains max-age,
|
||||
duplicates-window, ack-wait and in-progress as duration strings and max-msgs, max-ack-pending and max-deliveries
|
||||
as integers; mesh-sdk's bus composition derives the work-queue stream and its one shared worker from them; the
|
||||
grants part moves onto that derivation and its own copy goes (a mesh-sdk subtask, then the delivery developer's
|
||||
D1b). P9 (derived once), P3.
|
||||
- **H-A-363 (the tool runner's bus tests flake on a build node, 23:15)** The tool runner's integration level failed main.165
|
||||
on one bus test and main.115 on another of the same package, each once in 336: the second of the kind. Recovery:
|
||||
the step asked again; the kind (a timing or ordering assumption on an embedded bus, or a goroutine outliving its
|
||||
settings) is fixed for the whole package on a branch from main. fix-a-bug-met-twice, H-A-327.
|
||||
- **H-A-364 (the node-engine takes an ask once, 23:15)** (a) mesh-sdk gains an exported state constructor over a
|
||||
key-value bucket (process.StateOver); the node-engine declares the state taken (key-ttl, 8 MiB) in its manifest,
|
||||
reads the ask id from the request header, and takes it once within compose-ask-bound. (b) compose-candidate is a
|
||||
read: a repeat within the bound joins the run the first started and gets the same answer composed once; a repeat
|
||||
after that run ended is composed again; no answer is kept in taken. P9, P3, ADR 0668 §2.
|
||||
- **H-A-365 (the definition reader stays strict, 23:15)** H-A-352 (1)'s tolerance is the generated message decoders'
|
||||
(H-A-309: a reader tolerant, a writer validating its own value strictly); the seat definition reader keeps refusing
|
||||
unknown fields and reads form absent as 1. P3.
|
||||
- **H-A-366 (a bundle purges an object's leftovers, 23:15)** The registry's purge of a deleted object's chunks is an
|
||||
objects act of the runtime: mesh-sdk's bundle objects gain Purge, served by the tool runner, the same shape as the
|
||||
process side's; the registry's program does not open its own connection for it. P9, P12.
|
||||
- **H-A-367 (the build-step part's forms, 23:19)** Yes to the four, part form 2: (1) output takes the ask and answers
|
||||
the ask, the output's last 64 KB, its size, the failing tests with their words, and whether it is no longer kept;
|
||||
call and chunks go. (2) current answers the node, whether it takes asks, why not (paused, capacity 0, unhealthy),
|
||||
since when, its capacity and the asks it runs (id, kind, module, started), whoever asked them. (3) the step's end
|
||||
gains not-run as a list of test and reason. (4) the Node build seat accepts the kind install (id, asker, pipeline,
|
||||
module, commit, the lock's text at the commit); the step's end gains the archive object's name; a step ask names
|
||||
the archive the Go build module unpacks. P3, P7, tools-are-how-a-module-is-spoken-to.
|
||||
- **H-A-368 (a starved setup says so in one line, 23:22)** §800: a whole-module test whose setup wait on the bus passes
|
||||
the setup bound fails with the one exported line "mesh: setup starved:" and its words; every build module reads
|
||||
that line in the test output (never an assertion's words) and ends the run again; the bound is half of the level's
|
||||
bound and 30 s when the level's bound is unset (a developer's own run). P-failure-loud, P9.
|
||||
- **H-A-369 (a call after the tool runner's stop, and drain-bound's reader, 23:22)** §813 (12) amended: a call that
|
||||
arrives after the stop began gets no answer (the caller's kept call paces and meets the new runner), never a
|
||||
refusal, which would end the kept call; a call cut at the bound is said in the journal and unanswered. drain-bound
|
||||
is read through the one settings reader (H-A-370), 30 s until that reader lands. P-NATS-native, ADR 0664 §1.
|
||||
- **H-A-370 (the one settings reader's word, 23:22)** §781: the node-engine composes every setting the module declares
|
||||
as the word MESH_CONFIG_<KEY> (the key upper-cased, '-' and '.' as '_'), the value as text (a duration as "10m"),
|
||||
into the process's environment and the module's slice of the tool runner's words alike; mesh-sdk's reader takes a
|
||||
setting by its key from that word, in a process and a bundle alike, with typed readers (a duration with a default);
|
||||
the per-module file words (the runner's *_FILE words) go. The node-engine's developer builds the word (E3's
|
||||
counterpart), the SDK's the reader. P9, P3.
|
||||
- **H-A-371 (an archive-only lane of a module without Go code, 23:23)** Since A-447a the Go build seat refuses a fetch
|
||||
whose module directory chooses no Go module; the builder sends that directory with every lane, and an archive is
|
||||
packed by the Go build seat, so every module with an archive artifact and no Go code (the packet filter holder and
|
||||
36 others) cannot build: five failures of one fingerprint on three build nodes tonight, sixteen modules at 23:17.
|
||||
Fix in the Go build module: a directory that chooses no Go module is an empty scope (the empty scope file written),
|
||||
never a refusal; a Go bundle or package whose directory holds no go.mod still fails at its build step, naming it.
|
||||
A-447a's "none chosen fails naming it" ends for the fetch. Test: an archive-only lane of a module with no Go code
|
||||
fetches and packs. Recovery: rerun the build step of each failed pipeline's movers once the Go build module is
|
||||
delivered. fix-a-bug-met-twice (the kind, 37 modules), P-failure-loud.
|
||||
- **H-A-372 (a bundle published by digest marks no reservation, 23:23)** The Node build module publishes every bundle
|
||||
with an empty version, so the builder says "package-published not said … a by-digest publish" and the bundle is
|
||||
not marked against its reservation. Fix in the Node build module: the publish carries the version the ask
|
||||
reserved. Test: a bundle's publish names the ask's version. P3, P-failure-loud.
|
||||
- **H-A-373 and later** are in H2-lead-answers.md (this file was split at 00:13 CET on 22 Nov; it ends at H-A-372).
|
||||
|
||||
@@ -0,0 +1,495 @@
|
||||
---
|
||||
layer: to-be
|
||||
status: in-progress
|
||||
design: 47
|
||||
milestone: H
|
||||
updated: 2026-11-23
|
||||
decisions:
|
||||
- "ADR 0685"
|
||||
- "ADR 0684"
|
||||
- "ADR 0682"
|
||||
- "ADR 0680"
|
||||
- "ADR 0668"
|
||||
- "ADR 0656"
|
||||
- "ADR 0640"
|
||||
- "ADR 0632"
|
||||
- "ADR 0614"
|
||||
- "ADR 0593"
|
||||
- "ADR 0563"
|
||||
- "ADR 0550"
|
||||
- "ADR 0370"
|
||||
- "ADR 0349"
|
||||
- "ADR 0266"
|
||||
- "ADR 0674"
|
||||
- "ADR 0267"
|
||||
- "ADR 0605"
|
||||
- "ADR 0606"
|
||||
- "ADR 0611"
|
||||
- "ADR 0666"
|
||||
- "ADR 0664"
|
||||
- "ADR 0498"
|
||||
- "ADR 0487"
|
||||
- "ADR 0595"
|
||||
- "ADR 0596"
|
||||
---
|
||||
# Design 47, milestone H2: lead answers, continued
|
||||
|
||||
This file continues [H2-lead-answers.md](H2-lead-answers.md) from H-A-568 on, since that file passed its 60 KB bound:
|
||||
H-A-568 to H-A-587 moved here from it, and H-A-588 to H-A-593 were written here; H-A-594 on, round 2 of the review of
|
||||
H-A-568 to H-A-587 among them, are in [H2-lead-answers-3.md](H2-lead-answers-3.md). Each line names the record or the
|
||||
principle that settles it.
|
||||
|
||||
## From the review by architectural domain of H-A-534 to H-A-567 (2026-11-23 from 15:30 CET)
|
||||
|
||||
The four reviewers by architectural domain read H-A-534 to H-A-567 against the knowledge base and the principles; each
|
||||
line below writes one correction and names the answer it withdraws or amends. The H2 lines cited here as §775 to §820
|
||||
(§786, §799 and §813 among them) are in H2's milestone part, `H2-the-delivery-systems-owed-work.md` and
|
||||
`H2-stores-and-tools.md`, on hq's branch `design/47-H2-part`, not yet merged.
|
||||
|
||||
- **H-A-568 (the runs-as need is a rule of the manifest validator, never mesh-sdk's, 15:30)** 23 Nov, amends H-A-556:
|
||||
H-A-556 put "a manifest that declares `runs-as` needs `directory-contents-owner`" into mesh-sdk's
|
||||
`catalogue.ManifestNeeds` (mesh-sdk #213, merged), while the manifest validator, the indexer's, names what a manifest
|
||||
needs (ADR 0614 §4), code that judges and only some modules need is its owner module's (ADR 0593 §1), and only the
|
||||
indexer reads a manifest (the operator, 2026-11-23 about 13:40 CET, relayed by the lead). So: the rule moves into the
|
||||
manifest validator (mesh-delivery, module mesh-delivery-indexer, package `judge`), applied where the take-in writes an
|
||||
entry's `needs`, beside the words, forms and seats `catalogue.ModuleNeeds` names; `ManifestNeeds` loses its `runs-as`
|
||||
line and its test row, so mesh-sdk names only what the contract's words, forms and seats need, as before #213. The
|
||||
capability's name stays mesh-sdk's constant `ReadDirectoryContentsOwner`: more than one part reads it (the node-engine
|
||||
states it in `readsNow`, the indexer names it, the assigner compares the two), and ADR 0593 §1 keeps such names in
|
||||
mesh-sdk. mesh-sdk and mesh-delivery change in one merge call; the need is named before and after the move, so no
|
||||
order between them is needed. How it is checked: unit (manifest validator): a manifest with `runs-as` needs
|
||||
`directory-contents-owner` and one without does not; unit (mesh-sdk): `ManifestNeeds` of a manifest with `runs-as`
|
||||
names no `directory-contents-owner`. ADR 0614 §4, ADR 0593 §1; principle 9.
|
||||
- **H-A-569 (H-A-560 withdrawn: one pipeline orders the move to runs-as, and every take-in derives the manifest
|
||||
validator's own needs for every entry, 15:30)** 23 Nov: H-A-560 queued a gap of the build and delivery system to a
|
||||
later milestone and ordered this delivery's merges by hand, against design-it-as-it-should-be (a gap is built in the
|
||||
milestone that meets it, and the order between modules is the module graph's) and H-A-554 (1); with H-A-568 its
|
||||
mesh-sdk order goes too. So, withdrawing H-A-560: (1) The order of this delivery: the pull requests of the node-engine
|
||||
(`mesh-host`), the indexer (mesh-delivery), gitea's manifest (mesh-catalog) and mesh-sdk are merged in one call of the
|
||||
seat `git`'s `merge-pull`, so they are one source revision, one take-in and one pipeline (ADR 0682 §1, §2, §6;
|
||||
H §746). The seat `node-engine`'s acting rule (step `compose`, on `every`) gives every other mover an edge "B has
|
||||
acted for A's new version" from the node-engine (ADR 0666 §14; G §711), so gitea is in a later tier than the
|
||||
node-engine and the assigner writes gitea's want only once the new node-engine runs on every present placing machine
|
||||
(ADR 0682 §8; H §751). This order rests on no need: the running indexer makes the take-in with its own build (ADR 0682
|
||||
§4), whose manifest validator may not hold H-A-568's rule yet. (2) The gap is built in H2: at every take-in the
|
||||
manifest validator derives the needs of its own rules (H-A-568's runs-as rule and any later one) for every entry of
|
||||
the revision it writes, not only for the movers', from the manifest each entry names: it removes from an entry's
|
||||
`needs` every capability one of its rules names and adds those its rules derive. The needs of words, forms and seats
|
||||
stay as the module's own move computed them, since they read the templates' text, which the take-in reads only in the
|
||||
repositories a source revision moves (ADR 0632 §2). A need is no input of a fingerprint, so a changed need moves no
|
||||
module (ADR 0593 §4, read for needs). So the first take-in after a new manifest validator runs carries its rule to
|
||||
every entry. How it is checked: whole (indexer): at the take-in after a rule is added, an entry of a module that does
|
||||
not move gains the rule's need and keeps its fingerprint; H2's milestone plan names this pipeline's tiers (the
|
||||
node-engine before gitea). Design-it-as-it-should-be; ADR 0614 §4, ADR 0666 §14, ADR 0682 §4, §8; principle 7.
|
||||
- **H-A-570 (`stopping` withdrawn: a stopping tool runner takes its subscriptions down, so a call meets no responders,
|
||||
15:25)** 23 Nov, withdraws H-A-542's answer, H-A-544 and H-A-549 (1), and amends §813 (12) as H-A-369 has it:
|
||||
`stopping` was a class of transport fault only lead answers decided. ADR 0664 §1 and ADR 0668 §1 name the transport
|
||||
faults and hold no such class, the build seats' conformance kit carries none (ADR 0664 §6), mesh-sdk's `stdio` asked
|
||||
every call again, those not marked safe to repeat among them (against ADR 0668 §2), and no edge delivered the tool
|
||||
runner's new answer after the callers that read it, so a caller of the earlier mesh-sdk read `stopping` as a refusal
|
||||
and ended its kept call, the harm H-A-369 avoided. No class of its own is needed: no responders is one already
|
||||
(ADR 0664 §1, ADR 0668 §1), read so by every caller of every mesh-sdk. So: (1) Once told to stop, the tool runner
|
||||
unsubscribes from every subject it answers calls on (the bus's own drain of those subscriptions) before it finishes
|
||||
the calls in flight within `drain-bound`; a call made after the stop began meets no responders at once wherever no
|
||||
other tool runner serves it, until the new runner subscribes. A call cut at the bound stays as §813 (12) has it. (2)
|
||||
mesh-sdk's `stdio` `Ask` (Go `go/stdio.go`, TypeScript `src/stdio/index.ts`) makes its call once and asks nothing
|
||||
again itself: a call its caller marks safe to repeat is called again by the tool runner's kept call (§775) or a
|
||||
process's (`process/call.go` `CallKept`) through no responders as through every transport fault, and a call not marked
|
||||
is made once and its fault said (ADR 0668 §1, §2). (3) `stopping` goes whole: the tool runner's typed answer
|
||||
(mesh-tools), `ErrorKindStopping`, `ErrStopping` and their readers in mesh-sdk's Go and TypeScript `stdio`, in
|
||||
`busretry` and in `process/call.go`, and its reading in mesh-delivery-sdk's `PublishFault` and `sdkstep.Passing`,
|
||||
whose reading of no responders (§799, H-A-390) stays the one shared place. No insight of ADR 0664 or ADR 0668 is
|
||||
needed. (4) `ask-bound` (H-A-549 (2)) stays a setting, default 60 s: the tool runner declares it in its manifest
|
||||
beside `drain-bound`, so the node-engine composes it (H-A-370), and hands it to each bundle it starts as it hands a
|
||||
bundle its other values, where mesh-sdk's `stdio` reads it in both languages; no other module declares it. At the
|
||||
bound's end the caller's result is the fault "no answer within <bound>", a call's own deadline, which a kept call
|
||||
reads as a transport fault (ADR 0668 §1) and a build step as its run's failure (ADR 0664 §1 names no deadline for a
|
||||
step). (5) A publish made while the tool runner that serves the registry seats restarts meets no responders, so its
|
||||
build step ends its run `again` (§799; ADR 0664 §1), given again after 15 s and then 60 s (`again-delays`): their sum,
|
||||
75 s, is the bound the runner's absence at a restart must stay under (its `drain-bound` of 30 s, the 15 s it is given
|
||||
to stop its bundles, H-A-358, and its start), measured by H-A-583's live test. (6) The order: mesh-sdk, mesh-tools and
|
||||
mesh-delivery merge in one call, so one pipeline. Every module that builds against mesh-sdk's package artifacts, whose
|
||||
`calls` the tool runner's artifact `states`, has an edge from the tool runner (G §545, §605), so the tool runner is in
|
||||
an earlier tier and stops answering `stopping` before any caller loses its reading of it. How it is checked: whole
|
||||
(tool runner): a call made one second after the stop began meets no responders within a second, and a call in flight
|
||||
finishes; unit (mesh-sdk, both languages): `Ask` met by no responders asks nothing again and returns that fault; unit
|
||||
(mesh-delivery-sdk): `PublishFault` reads no responders as a transport fault; the code review finds no `stopping` left
|
||||
in mesh-sdk, mesh-tools or mesh-delivery. ADR 0664 §1, §6; ADR 0668 §1, §2; principles 3 and 7.
|
||||
- **H-A-571 (a module the head's pipeline does not carry joins that pipeline, 15:30)** 23 Nov, amends H-A-565 (2), which
|
||||
started a second delivering pipeline at the head: a delivering pipeline's key is the module graph revision it runs
|
||||
(ADR 0684 §3), and the head's pipeline holds that key. So: the runner's `start` for a module the head's pipeline does
|
||||
not carry adds the module to that pipeline as a mover while the pipeline waits or runs: its steps are asked in the
|
||||
pipeline's build order, its tier is computed with the other movers', and the pipeline's `pipeline-ended` names it
|
||||
(H §746); the step log says it was added by `start`, with the caller. Where the head's revision has no pipeline,
|
||||
`start` starts one for that module alone, keyed by that revision, as §786 does for movers when a revision moves
|
||||
nothing. Once the head's pipeline has ended, `start` refuses, naming the module's failed pipeline and `rerun`, whose
|
||||
revision the module's failed record keeps (H-A-566, H-A-572), so a failed mover is never stranded. Each call is
|
||||
written in the hand-act log, as every hand act of the runner is. How it is checked: whole (runner): `start` of a
|
||||
module the running head pipeline does not carry adds it and that pipeline's `pipeline-ended` names it; `start` after
|
||||
the head's pipeline ended refuses, naming `rerun`. ADR 0684 §3; principle 4.
|
||||
- **H-A-572 (the failed record's bound, its end and its tools, 15:30)** 23 Nov, amends H-A-566: (1) Its bound: one
|
||||
record `failed.<branch>.<module>` per module and branch (`failed.<module>` once ADR 0684 is built), held on at most
|
||||
the pins its pipeline's own record held (that pipeline's revision and its `base`, H §743, H-A-151), so at most two
|
||||
revisions per failed mover. The indexer's state `pins` keeps the records under its cap (4 MiB), and a write the full
|
||||
state refuses is said in the indexer's journal and asked again at the kept-call pace (§820). A failed record has no
|
||||
age bound; a failed mover is loud while it waits, since its `pipeline-failed` (H §770) stands until a later pipeline
|
||||
passes it. (2) Its end, beside H-A-566's: the indexer frees the record from every pin when its module leaves the
|
||||
registrations and, until ADR 0684 is built, when its branch leaves the module's registration, both heard on
|
||||
`registration-changed` (ADR 0666 §2). Once ADR 0684 is built, a change of a module's branch is a take-in of that
|
||||
branch's head for that module alone (ADR 0684 §2), whose `pipeline-started` frees the record as H-A-566 says. (3) Its
|
||||
tools: `indexer_pins` reads every pin with its records, the failed ones among them; `indexer_pin_drop` gains the
|
||||
argument `record`, which drops that one record from every pin that holds it and leaves the pins' other records, a hand
|
||||
act with its `why`, recorded through mesh-hand-acts as every call of that tool is. How it is checked: whole (indexer):
|
||||
a failed record is freed when its module leaves the registrations; `indexer_pin_drop` with `record` drops it alone and
|
||||
another record of the same pin stays. ADR 0656 §2; principles 4 and 7.
|
||||
- **H-A-573 (the files an npm package's digest leaves out are a value of the Node build module, 15:30)** 23 Nov, amends
|
||||
H-A-547 (1), which wrote `node --test`'s default test-file patterns into the indexer: a second list of what only the
|
||||
Node build module knows (principles 11 and 12; H-A-546 (1): one rule, read from that module). So: the Node build
|
||||
module (seat `node-build-node`) declares in its manifest's `config` the value `test-files`, the patterns of the files
|
||||
it takes as an npm package's tests, default the five of H-A-547 (1) (`**/*.test.*`, `**/*-test.*`, `**/*_test.*`,
|
||||
`**/test.*` and everything under a `test` directory). The indexer reads that value from the manifest of the entry that
|
||||
claims `node-build-node` in the revision it computes, and leaves out of an npm package's digest `node_modules` and the
|
||||
files the patterns match; it holds no pattern of its own. How it is checked: unit (indexer): a change to a file the
|
||||
patterns match leaves the package's digest as it was and a change to any other file changes it; the code review finds
|
||||
no test-file pattern in the indexer. Principles 11 and 12.
|
||||
- **H-A-574 (the superseded end's revision is a field of the step end's new form, 15:30)** 23 Nov, amends H-A-561, whose
|
||||
"an end that names no revision (a builder without this change) is taken as before (H-A-508)" keeps the earlier form
|
||||
for the delivery's sake (design-it-as-it-should-be; ADR 0666 §14). So: the seat `mesh-builds`' step end (`step-ended`,
|
||||
the contract's `StepEnded`) gains the field `revision`, a whole number, the module graph revision of the entry that
|
||||
supersedes, present exactly when `outcome` is `superseded` and absent otherwise; the seat's definition is regenerated
|
||||
and its form raised by one (3 on main today), with the generated contracts. The runner refuses a `superseded` end
|
||||
without `revision`, loudly, naming the step and the builder, as an end its contract does not allow, and never reads it
|
||||
as H-A-508's. The order is the module graph's: the runner's `invokes` of `seat:mesh-builds.step` is an edge "B runs a
|
||||
version that serves A" from the builder (ADR 0666 §14), so in their one pipeline the builder is in an earlier tier and
|
||||
every end the new runner hears is the new builder's. Between the two tiers the runner of the earlier form reads an end
|
||||
of the new form as it read the earlier one, since its contract reader refuses no field it does not know (as on main),
|
||||
and moves the mover out as H-A-508 has it. How it is checked: unit (runner): a superseded end without `revision` is
|
||||
refused, naming the step; unit (contracts): `revision` is read on a superseded end; H2's milestone plan names the two
|
||||
tiers. Design-it-as-it-should-be; ADR 0666 §14; principle 3.
|
||||
- **H-A-575 (who ends the token-file stand-in and the token files, and when, 15:30)** 23 Nov, amends H-A-564: its
|
||||
stand-in reads secrets from files outside the vault, against ADR 0550 §1 (every secret the mesh keeps lives in the
|
||||
vault, with three named exceptions, this not among them), and named no one who ends it. So: it ends in H-A-543's own
|
||||
change of gitea. That change removes the Go bundles' stand-in (package-registry, forge) and their line at start naming
|
||||
the source; gitea's TypeScript bundle writes no token file again and, at its first start under its own account and
|
||||
only once its vault get of `module/gitea/*` has answered, deletes every token file it kept under its state directory,
|
||||
saying once in its journal which it deleted (principle 12: gitea removes its own files). If the vault refuses
|
||||
`<machine>.gitea`, the files stay, and the recovery is a return to the earlier build, one value in the placement
|
||||
(ADR 0682 §8), whose stand-in reads them. How it is checked: whole (gitea): after a start under its own account with
|
||||
the vault answering, no token file is left under its state directory and a Go bundle reads its token from the vault
|
||||
alone; the code review finds no read of a token file left in the Go bundles. ADR 0550 §1; principles 3 and 12.
|
||||
- **H-A-576 (the catalog's checks are the manifest validator; a get without runs-as, 15:30)** 23 Nov, amends H-A-543 and
|
||||
H-A-545 (3): H-A-543's "the catalog's checks" are the manifest validator, the indexer's rules the step `validate` runs
|
||||
(ADR 0682 §5; H-A-568), and it refuses a manifest whose `invokes` names `seat:mesh-vault.own-put` and that declares no
|
||||
`runs-as`, naming the module and the verb (H-A-545 (3)). A get is not refused there: a manifest's `invokes` does not
|
||||
say which part makes a call (tools run by the tool runner, or a process under an account of its own, ADR 0680 §1), and
|
||||
claude-code names `seat:mesh-vault.get` with no `runs-as` today. Until the operator's answer to whether the manifest
|
||||
validator refuses that too, the vault's own refusal at the call is the one check of a get: it hands a value only to an
|
||||
account of its own (ADR 0349 §11, ADR 0550 §3), and the tool runner's account names every call it carries (ADR 0370
|
||||
§1), so such a get fails loudly at its first call. ADR 0550 §3, ADR 0682 §5; principle 3.
|
||||
- **H-A-577 (the revision waits are said, bounded and told apart; a passed-over end is said, 15:30)** 23 Nov, amends
|
||||
H-A-557 (3), H-A-562 and H-A-563 (2), and H-A-555 and H-A-561 for the passed-over end: (1) The builder's revision wait
|
||||
(H-A-155, H-A-156; it holds H-A-557 (3)'s new ask) is a step's wait as G-4 §234 has every one: for each entry of the
|
||||
ask it says `wait-held` and, at its end, `wait-ended` on its stream `waits` (G-17 D-10), on
|
||||
`mesh.stream.mesh-delivery-builder.event.wait-held.<module>.<fingerprint>.revision` and
|
||||
`.wait-ended.<module>.<fingerprint>.revision` (the last token keeps it apart from that key's toolchain wait, kept last
|
||||
per subject), with the wait's fields (§498, §629): `step` `build`, `on` `revision:<R>` (R the module graph revision
|
||||
the ask names), `bound` its `revision-wait-minutes` (default 2) and `clock-from` the ask's arrival. It is kept in the
|
||||
state `waits` under `<module>.<fingerprint>.revision`, deleted at its end; `wait-ended`'s `how` is `ran` when the
|
||||
picture holds R, `failed` at the bound (the ask then fails as H-A-155 has it) and `released` by `builder_release`,
|
||||
which ends it as the bound does, since a build with no version is never made (H-A-155). `builder_waits` reads it, and
|
||||
at its start the builder says `wait-held` again for every such key, as for the toolchain wait. (2) The runner's step
|
||||
held for its view (H-A-562, H-A-563 (2)) says `wait-held` and `wait-ended` on its seat (G §73) with `step` the held
|
||||
step's kind (`build` for H-A-557's re-ask), `on` `revision view` and `words` naming the revision it waits for. Its
|
||||
`bound` is five minutes, the watchman's owed progress (ADR 0666 §24; G §75), no setting of its own: past it the
|
||||
watchman raises `pipeline-stands` naming the step, cleared at the wait's end; the wait itself ends only when the view
|
||||
holds the revision (`how` `ran`, the step judged again as H-A-562 (2) says), by `runner_rerun` (`released`), or at its
|
||||
pipeline's end or cancel (`superseded`). A waiter tells it from an approval step's wait by `step` (an approval's is
|
||||
`approval`, §534) and by `on`, and the watchman times it as a wait that owes progress, never as a wait on a person.
|
||||
(3) A superseded end the runner passes over is said as an event, not only in its journal (ADR 0666 §24): the step
|
||||
asked again says `step-started` with `rerun` and the runner as the caller (G §73), and the step log names the revision
|
||||
the passed-over end named and the pipeline's own. How it is checked: whole (builder): an ask whose revision the
|
||||
picture does not hold says `wait-held` with `on` `revision:<R>` and `wait-ended` `ran` once it does; whole (runner): a
|
||||
step held for the view says both events with `on` `revision view`, and a passed-over end is followed by a
|
||||
`step-started` with `rerun`. ADR 0666 §24; principles 3 and 4.
|
||||
- **H-A-578 (what goes with `outdated` and the version floor, and what stays on the bus, 15:30)** 23 Nov, amends
|
||||
H-A-552, H-A-553 (2), H-A-558 (1) and H-A-559: (1) `floor-silent` joins the retired list of the writer that raised it,
|
||||
the builder, so one raised before is cleared at the builder's start (H-A-247 (3)), as H-A-558 (3) does for the
|
||||
indexer's `indexer-call-unanswered`. (2) A `consumes` entry that goes (H-A-558 (1), H-A-559) leaves its filter on the
|
||||
indexer's durable consumer, since the grants part never narrows a filter for a dropped entry (ADR 0640 §3). So the
|
||||
indexer acknowledges at once, with no work, each event of a subject its manifest no longer consumes, and says one
|
||||
journal line per such subject at the first one after its start, so `event-unhandled` (H-A-169) stays clear, as the
|
||||
runner's main hub acknowledges `take-in.taken` (H-A-500); the subjects it so acknowledges are those this change
|
||||
removes, listed once beside the hub's handlers. (3) A state that goes (`build-edges`) is kept data no accepted
|
||||
manifest asks for once the change is taken in, dropped by the keeper's `nats_drop` by warrant after its snapshot, and
|
||||
the heard keys that go (`branch-build.<module>.<branch>` and the others) by `nats_bucket_remove` with their prefix
|
||||
(H-A-126); each is named among the hand acts that follow H2's delivery in its milestone plan. (4) H-A-559's "the
|
||||
developer removes any further one it finds without asking" is withdrawn: it leaves the builder a choice. A further
|
||||
state, key, hearing, consume or prune that only `outdated` reads is a design question to the lead (playbook 07, step
|
||||
0b), answered in this file before it goes. (5) H-A-552 needs no order between the builder and the indexer: the
|
||||
`versions-filled` the indexer said once stays kept on its seat's stream with no age limit (G-7 §372) and the grants
|
||||
part removes no subject a manifest drops (ADR 0640 §3), so a builder of the earlier form that starts after the new
|
||||
indexer still reads it and reserves, and the new builder waits on nothing. That stream is dropped by hand only once
|
||||
the new builder runs, as kept data no accepted manifest asks for (H-A-126). How it is checked: whole (indexer): an
|
||||
event of a subject no longer consumed is acknowledged and raises no `event-unhandled`; unit (builder): a held
|
||||
`floor-silent` is cleared at start. ADR 0640 §3; principles 3 and 7.
|
||||
- **H-A-579 (the owner pass runs with the module stopped and leaves hard links; the group `docker` and `root-free`,
|
||||
15:44)** 23 Nov, amends H-A-545 (1) and (2) and H-A-550: (1) When a module's account changes (`runs-as` added,
|
||||
H-A-543), the node-engine stops the module's units, gives what lies below its directories the new owner (H-A-550,
|
||||
H-A-554 (2)), then the directories themselves, and then starts the units under the new account, so no process of the
|
||||
earlier account writes beneath a directory while it is given (principle 2). (2) An entry with more than one hard link
|
||||
is left with its owner, with one journal line naming its path and its link count: its other names may lie outside the
|
||||
directory, which the pass never crosses (H-A-550; principle 3). (3) gitea's account in the group `docker` is a way to
|
||||
root (ADR 0266 §14), but the node-engine judges ways to root only for a `user` declared `root: never` (ADR 0266 §12),
|
||||
the agent account, and `root-free` answers from that verdict (ADR 0563 §6). gitea's user declares no `root: never`, so
|
||||
no `root-free` answer changes; inside the mesh every module is trusted (principle 6). How it is checked: H-A-583's
|
||||
unit test of the pass; unit (node-engine): the module's units are stopped before the pass and started after it.
|
||||
ADR 0266 §12, §14, ADR 0563 §6; principles 2, 3 and 6.
|
||||
- **H-A-580 (an imported package's digest is read from its publisher's entry, 15:30)** 23 Nov, amends H-A-540 and
|
||||
H-A-541, which had the indexer digest a kept package by its own files when it computes an importer: ADR 0685 §6
|
||||
decides that a package's digest is read from the publishing module's entry, never from the forge's listing or a
|
||||
mapping of a name to a forge path. So: when the indexer computes a module's entry, it digests each package of that
|
||||
module's package artifacts by its files (a Go package by H-A-524's rule, an npm package by H-A-546 (1) as H-A-573
|
||||
amends it) and keeps them on that artifact of the entry as `digests`, one item `{package, digest}` per package
|
||||
(`package` its Go import path or npm name), the seat `mesh-catalog`'s definition regenerated and its form raised. An
|
||||
importer's fingerprint reads each imported package's digest from the entry that publishes it in the revision being
|
||||
computed (H-A-540's filter), so a publisher that moves in the same take-in is read at its new digests; an import no
|
||||
entry publishes is outside the mesh. The forge mapping of the `packages` state and Resolve goes in milestone H with
|
||||
ADR 0684's work, as ADR 0685 §9 builds it. How it is checked: unit (indexer): an importer's fingerprint changes when a
|
||||
file of the package it imports changes in its publisher's entry, and not when a file of another package of that
|
||||
publisher changes. ADR 0685 §6, §9; principle 7.
|
||||
- **H-A-581 (the movers beside a failed one are carried, never delivered from the failed pipeline, 15:30)** 23 Nov,
|
||||
issue 1984 note 2, amends §786: main.457 kept 91 movers at a revision of the same source (H-A-283) and failed for one
|
||||
of them, the builder's publish, and none of the 91 was delivered, the indexer's build among them, all of whose steps
|
||||
passed. A pipeline passes only when every mover's required steps passed (H §746), and a want names only a version
|
||||
whose pipeline passed (ADR 0682 §8), so no mover is delivered from a failed pipeline on its own outcome; a mover a
|
||||
re-pin kept (H-A-283, H-A-284) is a mover of that pipeline like any other. So: at a pipeline's end `failed`,
|
||||
`cancelled` or `could-not-run`, each mover whose own required steps all passed or never ran, kept movers included, is
|
||||
kept in `unfinished` (§786), and the runner adds it at once to the pipeline of the head's revision while that pipeline
|
||||
waits or runs (as H-A-571's `start` adds a module), starts one for those movers alone keyed by the head's revision
|
||||
when that revision has none (ADR 0684 §3), and otherwise adds it to the next take-in's pipeline (§786). Its steps
|
||||
whose build-input fingerprint and policy did not change are carried there, not run again (ADR 0666 §8), so that
|
||||
pipeline's pass delivers it. `runner_unfinished_place` follows the same rule at once for one key; once the head's
|
||||
pipeline has ended it refuses, naming the next take-in as what carries the mover. A mover whose own required step
|
||||
failed stays as H-A-414 and H-A-567 have it. That a module's delivery waits for the other movers of its pipeline is
|
||||
ADR 0682 §8's; the carry keeps the module the unit (principle 10) without a want from a failed pipeline. How it is
|
||||
checked: whole (runner): of a pipeline of three movers, one kept by a re-pin, one fails its unit step;
|
||||
`pipeline-ended` names the other two in `unfinished`, the head's running pipeline carries them with their passed steps
|
||||
carried, and its pass delivers them. ADR 0682 §6, §8; ADR 0666 §8; ADR 0684 §3; principles 3 and 10.
|
||||
- **H-A-582 (a pipeline's `widens` is computed against its own base revision, 15:30)** 23 Nov, issue 1984 note 2, amends
|
||||
G §71, which has the running runner compute `widens` "from the sources of the change against those of the watched
|
||||
branch": an older revision's pipeline compared with the branch's newest says "was" for a newer fingerprint that is no
|
||||
part of its change. A widening is said for what the change alters (ADR 0666 §23), and no comparison of the module
|
||||
graph names a branch (ADR 0684 §1). So: the runner computes `widens` from the sources of each mover at the pipeline's
|
||||
revision against those at the `base` that revision names (H §743, H-A-151), never against a branch's newest; a mover
|
||||
carried into another pipeline (H-A-571, H-A-581) is compared against the `base` of the revision whose take-in moved
|
||||
it. How it is checked: unit (runner): with a newer revision taken in, an older pipeline's `widens` names only what its
|
||||
own movers change against its `base`. ADR 0666 §23, ADR 0684 §1; principle 3.
|
||||
- **H-A-583 (the acceptance tests of H-A-568 to H-A-582, by level, 15:30)** 23 Nov: each a step of its module's existing
|
||||
whole test or of a live proof, never a new top-level test function (the test budget), beside each line's own check:
|
||||
(1) Live: a pipeline's package publish made while the tool runner that serves the registry seats restarts passes, its
|
||||
build step ending a run `again` on no responders and passing at its second or third run; the runner's absence, from
|
||||
its stop to its first answer, is measured and stays under the 75 s of `again-delays`, and nothing says `stopping`
|
||||
(H-A-570). (2) Integration (the runner whole, against the real bus): a superseded end naming a revision older than the
|
||||
pipeline's, heard after an end naming a newer one, is passed over, its step asked again with `step-started` and
|
||||
`rerun`, and the mover stays; a superseded end without `revision` is refused (H-A-555, H-A-557, H-A-561, H-A-563,
|
||||
H-A-574, H-A-577 (3)). (3) Live: a mover that failed for a cause outside itself is run again with `rerun` after a
|
||||
newer take-in that did not move it, passes and is wanted, and `indexer_pins` then shows its failed record freed; the
|
||||
movers of that failed pipeline whose own steps passed are carried by the head's pipeline and wanted (H-A-565 (1),
|
||||
H-A-566, H-A-571, H-A-572, H-A-581). (4) Unit (the node-engine's `applyDirectory`): a directory whose declared owner
|
||||
changes, holding a nested resource with an owner of its own, an entry of a user other than the previous owner and a
|
||||
file with two hard links, keeps those three and what lies below the first two as they were, and gives every other
|
||||
entry the new owner, the contents before the directory (H-A-550, H-A-554 (2), H-A-579). Principle 3.
|
||||
- **H-A-584 (a get without runs-as is not refused by the manifest validator, 15:33)** 23 Nov, the lead's answer of
|
||||
15:31 CET to H-A-576's open question, amends H-A-576: the manifest validator does not refuse a manifest whose
|
||||
`invokes` names `seat:mesh-vault.get` and that declares no `runs-as`; the vault's refusal at the call, which hands a
|
||||
value only to an account of its own (ADR 0349 §11, ADR 0550 §3), is the one check of such a get, and it is loud at the
|
||||
first call (principle 3). Holding claude-code's deliveries for it would block work no principle asks to block
|
||||
(principle 7); claude-code's move to an account of its own stays issue 569's. The refusal of own-put without
|
||||
`runs-as` (H-A-545 (3), H-A-576) stands. How it is checked: unit (manifest validator): a manifest naming
|
||||
`seat:mesh-vault.get` without `runs-as` is accepted, one naming `seat:mesh-vault.own-put` without it is refused.
|
||||
Principles 3 and 7.
|
||||
- **H-A-585 (the gate applies a `running` heard after its record ended to that record, 15:33)** 23 Nov, the lead's
|
||||
answer of 15:31 CET: mesh-sdk's `stdio` hands each event to the module on its own goroutine, and the gate hears the
|
||||
assigner's `wanted` and the node-engine seat's `running` on two consumers that no ordering joins, so a record can end
|
||||
on `wanted` before the last `running` of its movers is applied, and that delivery's time is lost (issue 721, note 11).
|
||||
So: the gate (the holder of `mesh-delivery`) applies a `running` that names a mover of a record already ended to that
|
||||
ended record: it marks the mover running on that machine (G §144), and when that `running` is later than the
|
||||
record's `ended` it writes `ended` and `delivery-time` again from it (H2 §810, H-A-394 (3)), keeping the record's
|
||||
`class` as it was read when the record opened; it says `record-ended` no second time, and writes one journal line
|
||||
naming the record, the module, the machine and both times (principle 3: nothing fails silently). `gate_times` and the
|
||||
self-check's probe read the written time at their next read. Events of one consumer are not put in order by the
|
||||
runtime for this: it would not join the two consumers (principle 7). How it is checked: whole (gate): a record whose
|
||||
`wanted` is applied before its last mover's `running` ends, then takes that `running` with its later `ended` and
|
||||
`delivery-time` and a journal line. Principles 3 and 7.
|
||||
- **H-A-586 (the window before a new rule's needs reach every entry is accepted, 15:33)** 23 Nov, the lead's answer of
|
||||
15:31 CET, amends H-A-569 (2): an entry the take-in wrote with an older manifest validator lacks a newer rule's need
|
||||
until the next take-in, which derives it (H-A-569 (2)); a machine away that returns in that window applies its own
|
||||
node-engine want last (H §771), so the earlier node-engine may apply such a module's want there first. The window is
|
||||
accepted, not closed: the machines present are ordered by the pipeline's tiers (H-A-569 (1)), and a rule change
|
||||
meeting a machine away within it is rare and loud at that module's health (the instruction rules-are-weighed).
|
||||
Nothing is built for it. Principle 7.
|
||||
- **H-A-587 (a live consumer's filter is narrowed by a tool of the bus module, queued, 15:33)** 23 Nov, the lead's
|
||||
answer of 15:31 CET, amends H-A-578 (2): narrowing a filter for a dropped `consumes` entry is a hand act (ADR 0640
|
||||
§3), and every recovery has a tool (principle 4), while `nats_consumer_remove` refuses a durable of a module of an
|
||||
accepted manifest (H-A-127, H-A-128). So the bus module (the holder of `mesh-broker`) gets a tool that narrows one
|
||||
live consumer's filter to what its module's manifest consumes, a hand act with its `why`; it is queued on issue 329 and
|
||||
not built in this milestone. Until it exists, the indexer's handlers that acknowledge with no work the subjects it no
|
||||
longer consumes (H-A-578 (2)) stay. Principle 4; ADR 0640 §3.
|
||||
|
||||
## Partly published versions (issue 1984 note 3, 2026-11-23 from 15:50 CET)
|
||||
|
||||
Issue 1984 note 3: a build that publishes some of its artifacts under its reserved version and then fails keeps that
|
||||
version when it is built again (H-A-225; H §755), packs new digests and has them refused by the registries as held at
|
||||
another digest: 214 refused publishes over 17 versions of 10 modules on 23 Nov, and main.457's 91 movers stranded by
|
||||
one of them, mesh-delivery-builder's 0.1.216. The lines below say how such a version is completed, when a build again
|
||||
takes a new number, how every build module is held to one digest per source, the tool that recovers today's versions
|
||||
and how each is checked.
|
||||
|
||||
- **H-A-588 (a partly published version is completed from what a store keeps, else built again under its own number,
|
||||
15:52)** 23 Nov, issue 1984 note 3; amends G §588 and H §755. (1) A reserved version V of a fingerprint F is partly
|
||||
published when a registry seat holds at least one artifact of the module at V and not all of them, as each seat's
|
||||
`versions` answers it (ADR 0605 §2). `version-unreleased` (G §369) names it, with the artifacts held and those
|
||||
missing, whether the build that reserved V ended done or failed. (2) When every missing artifact's digest is on the
|
||||
reservation and a store keeps its bytes (the holder's own, or the artifact store by digest, A-417), V is completed
|
||||
by the builder's publish again: the stored artifacts are sent by their digests under V and nothing is built
|
||||
(ADR 0674 §1; G §588, A-457). This path is unchanged. (3) When a missing artifact's bytes are kept by no store, V is
|
||||
completed by building F again under V, never by publishing from a copy. That is the case of a build that ended
|
||||
failed, whose packed files leave its node with the failed key (ADR 0498 §2); of a package, whose bytes no store but
|
||||
its registry keeps (A-490); and of a publish again refused `not stored` (A-417). The build again takes F's standing
|
||||
reservation (ADR 0606 §1: a fingerprint keeps its number; H-A-225) unless H-A-590 withdraws it. The build module
|
||||
builds the module whole, as every build ask has it. Each artifact a registry already holds at V for F is answered
|
||||
with the held version and digest (H-A-589), and a reproducible build gives it that digest anyway (H-A-591); the
|
||||
missing ones are stored, and the catalog then says `version-released` (G §349). G §588's "its build key is built
|
||||
again by `builder_build_again`, which reserves anew" reads "under its standing reservation, or at the next free
|
||||
number by H-A-590". (4) Before a build module is asked for F again (by the runner's build step, `runner_rerun`,
|
||||
`builder_build_again` or the builder's start pass), the builder reads the registries' record of the module's
|
||||
artifacts at V, the read H-A-275 makes. It writes on the reservation the held digest of each artifact a registry
|
||||
holds at V for F and marks it published, as H-A-274 marks one held at the built digest; the marking says
|
||||
`package-published` of it once, as every marking does (ADR 0666 §15). So the artifacts a failed build published are
|
||||
on its reservation, though a build records its digests only at its end (A-415, A-490j). In the builder
|
||||
(mesh-delivery). How it is checked: H-A-593 (1) and (5). ADR 0674 §1, ADR 0606 §1, ADR 0498 §2; principles 3 and 7.
|
||||
- **H-A-589 (a rebuild of a fingerprint a registry holds is answered with the held version; each holder keeps the
|
||||
fingerprint of what it holds, 15:55)** 23 Nov, issue 1984 note 3; amends H-A-393, H-A-474 and A-490j for the rebuild
|
||||
of a held fingerprint, which ADR 0605 §4 answers and they refused: "a rebuild of a fingerprint the seat already
|
||||
holds answers the held version and stores nothing". (1) The rule holds for every holder of the four registry seats:
|
||||
the distribution module for `container-image-registry` and `oci-artifact-registry`, and the gitea module's Go bundle
|
||||
for `go-package-registry` and `npm-package-registry` (ADR 0605 §1). A holder may hold an artifact's name at V at
|
||||
digest D and be given a `publish` that names V with another digest and the fingerprint the holder keeps for that
|
||||
name and V. It then asks `reserved` as it does for every publish (G §381), naming D. When the answer holds V
|
||||
reserved or released for the module, the holder says `published` with D and the publish's name, version, kind, tag,
|
||||
fingerprint and commit. It stores nothing, drops the transfer and its parts (ADR 0611 §1), and writes one journal
|
||||
line naming the name, V, both digests and the fingerprint. When it keeps another fingerprint for V, or none, it
|
||||
refuses and names both digests and both fingerprints (H-A-393; ADR 0605 §4: "a held version offered with other
|
||||
bytes"). The same digest is answered as held (H-A-474). (2) The fingerprint it keeps: each holder keeps a state of
|
||||
its own, `fingerprints` (the template `state`, ADR 0595, reached by the holder alone, ADR 0596 §2). It holds one key
|
||||
per name and version, `<name>.<version>`, each token escaped as a key's name is (G §73), with the digest and the
|
||||
fingerprint the publish named. The holder writes the key when it stores the version and deletes it when it says
|
||||
`removed`. A key is about 0.3 KiB, and the state is capped at 16 MiB, about 50,000 versions held. Past 80 % the
|
||||
holder writes a finding, cleared below; at the cap it refuses a new publish with `refused` naming the cap, as its
|
||||
incoming store does (design 51). A version stored before this change has no key. (3) The seats' verb `versions`
|
||||
answers each version's `fingerprint` beside its digest, absent where none is kept, and is the read of that state.
|
||||
The four seats' definitions in mesh-delivery-contracts gain the field; they are regenerated and each form is raised
|
||||
by one. (4) A build module whose publish is answered `published` with another digest than it built names, in its
|
||||
step result, the digest the seat answered for that artifact (ADR 0605 §9: a done key names the reference its seat
|
||||
answered), and writes both digests in its step log. mesh-delivery-sdk's shared publish does it for every build
|
||||
module. So the builder records the held digest, and A-490j's "version taken" is not met by such a rebuild. (5) The
|
||||
cases every registry seat holder runs, mesh-delivery-sdk's `publishconformance` (A-490a), gain the three cases of
|
||||
(1), and each holder's tests run them for every seat it fills. (6) The order is the module graph's: the builder's
|
||||
`invokes` of the seats' `versions` gives an edge "B runs a version that serves A" from each holder (ADR 0666 §14).
|
||||
So the holders are in an earlier tier than the builder of H-A-590, and no such builder reads a holder that keeps no
|
||||
fingerprint yet. How it is checked: H-A-593 (2) and (4). ADR 0605 §2, §4, §9; ADR 0611 §1; principles 2 and 3.
|
||||
- **H-A-590 (a build again keeps its number unless a registry holds that number for another build; then it takes the
|
||||
next free number, 15:58)** 23 Nov, issue 1984 note 3; amends H-A-225 and H §755, and widens H-A-275 and H-A-279 from
|
||||
a done build to every build again. (1) A build again of F takes F's standing reservation V (H-A-225; ADR 0606 §1),
|
||||
except when a registry holds an artifact of the module at V for another fingerprint or with none kept (H-A-589 (3)).
|
||||
V is then held elsewhere. The builder withdraws V, a gap kept in the key's withdrawn numbers (H-A-226). It raises
|
||||
`version-held-elsewhere` (scope module), naming the artifact, the seat, both digests and the fingerprint V is held
|
||||
for when one is kept (H-A-279). Then it reserves the next number no registry holds (H-A-275), for a build that ended
|
||||
failed as for a done one. The reserver (`versions.Reserver.Reserve`) makes this check before it answers a standing
|
||||
reservation, from the read of the registries it already makes for the held numbers. `reservations.movedElsewhere`
|
||||
stays the done build's path from its publish item and makes the same withdrawal. A read that does not answer keeps
|
||||
the standing reservation and is said in the builder's journal, as the reserve's read is said today; the next ask
|
||||
reads again. (2) A refusal for other bytes is never asked again as it stands (ADR 0605 §4: "a version refused for
|
||||
other bytes is not published again"). The builder's publish item ends at once at such a refusal and spends none of
|
||||
its `publish-tries` (A-457a); (1) follows at the next build of F. A build step whose run met it ends failed at its
|
||||
first run and names it (ADR 0664 §2: it is no transport fault). (3) Bound: one withdrawal per number held elsewhere.
|
||||
The next number is one no registry held when it was reserved, so a fingerprint meets such a refusal at most once per
|
||||
held number. (4) So a build again of the same fingerprint takes a new number only for a number another build holds,
|
||||
never for its own published artifacts (H-A-589). In the builder (mesh-delivery). How it is checked: H-A-593 (1) and
|
||||
(5). ADR 0605 §4, ADR 0606 §1; principles 2 and 3.
|
||||
- **H-A-591 (every build module builds one source at one version to one digest, in any folder and at any time; the kit
|
||||
holds it, 16:01)** 23 Nov, issue 1984 note 3: each build again of mesh-delivery-builder's fingerprint at 0.1.216
|
||||
packed its program at a new digest. ADR 0267 §6 decides it: an unchanged build source gives an identical artifact,
|
||||
for every kind, and nothing in it varies with the commit, the clock or the path it was built at. Issue 721's report
|
||||
asks the same of the build ("build reproducibly (-trimpath, -buildvcs=false, no commit or time stamped into the
|
||||
binary)"), and its triage named reproducible builds as needing a design; these lines are that design. The version is
|
||||
an input of the build (G §370), so one source at one version gives one digest. (1) Go (mesh-build-go) builds with
|
||||
`-trimpath` and `-buildvcs=false`, and no `.git` is in what the build sees (ADR 0267 §6); no commit and no time is
|
||||
stamped into the program, its version alone (G §370). No path of the build's own workspace is in any file it writes
|
||||
into the tree it compiles: a `go.mod` or `go.work` line the build writes, a `replace` into the workspace among them,
|
||||
names its directory relative to the file that holds it. Nothing in the program's build settings varies per ask.
|
||||
mesh-build-go keeps a workspace per ask. (2) A bundle or an archive the build module packs itself has its entries in
|
||||
byte order of their paths, each entry's time the Unix epoch, its owner and group 0 and its mode as in the tree. A Go
|
||||
module zip and an npm package are packed in their toolchain's own form, which the case of (4) holds as it holds the
|
||||
rest. (3) An image (mesh-build-image) has its creation time and the time of every file in its layers set to the Unix
|
||||
epoch (buildah's `--timestamp`), and no label or annotation the module adds names a commit, a folder, a time or a
|
||||
node; the version's tag and label (G §370) stay. Issue 721's "a commit belongs in an image label" does not hold
|
||||
against ADR 0267 §6 (nothing varies with the commit): a build's commit is read from its build record, never from the
|
||||
image. A Dockerfile's own step that fetches over the network may still give other bytes (ADR 0487 §6, §8), and
|
||||
H-A-589 answers that rebuild with the held version. (4) The build modules' conformance kit
|
||||
(`sdk/steprun/conformance` in mesh-delivery-sdk, G §680) gains the case `reproducible`. It builds the kit's fixture
|
||||
of each kind the module builds twice, in two workspace folders of different paths and lengths and at least a second
|
||||
apart, and requires each artifact's digest to be equal; when they differ it names the artifact and both digests. The
|
||||
image fixture has no step that fetches. Every build module's tests run it, and mesh-catalog's failure-kit check
|
||||
(`checks/failurekit`, A-489b; ADR 0664 §6) refuses a build module whose tests do not. (5) Today's cause in
|
||||
mesh-build-go is a guess (issue 1984 note 3: the workspace per ask and the `replace` lines written into it); its
|
||||
developer runs the case first and fixes what it names. In mesh-delivery-sdk (the case) and mesh-catalog (the build
|
||||
modules and the check). How it is checked: H-A-593 (3) and (6). ADR 0267 §6, ADR 0664 §6; issue 721; principle 3.
|
||||
- **H-A-592 (the drop of a reservation names its version and says what it forgets; today's versions, 16:04)** 23 Nov,
|
||||
issue 1984 note 3; amends G §369's `builder_reserved_drop` (ADR 0666 §25: a tool for every act). (1)
|
||||
`builder_reserved_drop` (class `act`, written in the hand-act log) takes `module`, `series`, `version` and `why`.
|
||||
`version` is new and required: the tool refuses when the key holds another version and names the one that stands, so
|
||||
a reservation a newer build took after it was read is never dropped. It also refuses while the reservation's
|
||||
fingerprint is building (its build key, which `builder_stuck` reads), until that build ends or its ask is dropped
|
||||
(ADR 0664 §4), so no late publish lands on a number given again. (2) It forgets the key whole: the version, its
|
||||
fingerprint, the artifacts' recorded digests and its withdrawn numbers (H-A-226). It also forgets the version's
|
||||
publish item (A-456b) and its `version-unreleased`, which it clears. `reserved` then refuses V ("no reservation of
|
||||
version V", H-A-387), so a late publish at V is refused. It keeps what the registries hold at V, a gap never
|
||||
released (H-A-226) that the series' next reserve skips (H-A-275) and only a registry's own removal deletes. It keeps
|
||||
the builder's record of releases (A-456b) too. Its answer and its hand-act record name what it forgot: the version,
|
||||
the fingerprint, the artifacts the registries hold at V and the withdrawn numbers. (3) No narrower tool is added:
|
||||
the drop that names its version is the narrow form, and a withdrawal is H-A-590's by itself. (4) Today's 17 versions
|
||||
of 10 modules (issue 1984 note 3, mesh-delivery-builder's 0.1.216 among them): before H-A-588 to H-A-591 are
|
||||
delivered, each is recovered by `builder_reserved_drop` of its key as the tool stands (module and series), with this
|
||||
answer as its `why`, then by `runner_rerun` of its failed build step. The reserve then takes the next number no
|
||||
registry holds and builds the fingerprint afresh. Once those lines are delivered, no hand act is needed: what the
|
||||
registries hold of those versions keeps no fingerprint (H-A-589 (2)), so the next build of each withdraws its
|
||||
version by H-A-590 and takes the next free number. In the builder (mesh-delivery). How it is checked: H-A-593 (5)
|
||||
and (6). ADR 0666 §25; principle 4.
|
||||
- **H-A-593 (the acceptance tests of H-A-588 to H-A-592, by level, 16:06)** 23 Nov: each is a step of its module's
|
||||
existing whole test, a row of an existing table or a case of a kit, never a new top-level test function (the test
|
||||
budget), as H-A-583 has it. (1) Unit (the builder's reserver, a table): a standing V of F with an artifact held at V
|
||||
for F is kept, and the held digest is written on it; with an artifact held at V for another fingerprint, or held
|
||||
with none kept, V is withdrawn, the next number no registry holds is reserved and `version-held-elsewhere` names
|
||||
both digests; a registry read that does not answer keeps V and is said (H-A-588 (4), H-A-590 (1)). (2) Unit
|
||||
(`publishconformance`, run by distribution's and gitea's tests for each seat they fill): a publish at a held V with
|
||||
another digest and the kept fingerprint is answered `published` with the held digest, and nothing is stored; with
|
||||
another fingerprint, or none kept, it is refused naming both digests and both fingerprints; the same digest is
|
||||
answered as held; `versions` answers the kept fingerprint (H-A-589 (1) to (3)). (3) Unit, or integration where the
|
||||
kind's tool must run (mesh-build-image's buildah): the kit's `reproducible` case in each build module's tests gives
|
||||
one digest per artifact from two folders; the failure-kit check refuses a build module fixture whose tests do not
|
||||
run it (H-A-591). (4) Unit (mesh-delivery-sdk's shared publish): a publish answered with another digest names the
|
||||
answered digest in the step result and both digests in the step log (H-A-589 (4)). (5) Whole (the builder, against
|
||||
the real bus and a fake registry holder): a build of F publishes two of three artifacts at V and fails on the third.
|
||||
Built again, the two are answered with their held digests, the third is stored and V is released, with no refusal
|
||||
and no new number. The same with the two held and no fingerprint kept withdraws V, builds and releases the next
|
||||
number, and clears `version-held-elsewhere` at that release. A refusal for other bytes ends the publish item at once
|
||||
with its tries unspent (H-A-588, H-A-590). Unit (the builder's tools): `builder_reserved_drop` naming another
|
||||
version refuses and names the standing one, and it refuses while the fingerprint builds; naming its version, it
|
||||
removes the key, the publish item and the finding, and the next reserve takes the next free number (H-A-592). (6)
|
||||
Live, after delivery: the next build of each fingerprint of today's 17 versions ends released at the next free
|
||||
number, after at most one withdrawal and no refusal. Over the next day no holder refuses a publish for other bytes
|
||||
twice at one version, and no H-A-589 journal line names a Go program, a bundle, an archive or a package (H-A-591),
|
||||
read from the holders' `refused` events and journals. Principle 3.
|
||||
|
||||
H-A-594 and every later answer are in [H2-lead-answers-3.md](H2-lead-answers-3.md).
|
||||
@@ -0,0 +1,564 @@
|
||||
---
|
||||
layer: to-be
|
||||
status: in-progress
|
||||
design: 47
|
||||
milestone: H
|
||||
updated: 2026-11-24
|
||||
decisions:
|
||||
- "ADR 0593"
|
||||
- "ADR 0686"
|
||||
- "ADR 0618"
|
||||
- "ADR 0668"
|
||||
- "ADR 0656"
|
||||
- "ADR 0606"
|
||||
- "ADR 0605"
|
||||
- "ADR 0578"
|
||||
- "ADR 0283"
|
||||
- "ADR 0684"
|
||||
- "ADR 0682"
|
||||
- "ADR 0674"
|
||||
- "ADR 0666"
|
||||
- "ADR 0664"
|
||||
- "ADR 0640"
|
||||
- "ADR 0603"
|
||||
- "ADR 0550"
|
||||
- "ADR 0596"
|
||||
---
|
||||
# Design 47, milestone H2: lead answers, continued again
|
||||
|
||||
This file continues [H2-lead-answers-2.md](H2-lead-answers-2.md) from H-A-594 on, since that file passed its 60 KB
|
||||
bound: it opens with round 2 of the review by architectural domain of H-A-568 to H-A-587, and every later answer to
|
||||
H-A-633 is written here; H-A-634 and every later answer are in [H2-lead-answers-4.md](H2-lead-answers-4.md). Each line
|
||||
names the record or the principle that settles it.
|
||||
|
||||
## Round 2 of the review by architectural domain of H-A-568 to H-A-587 (2026-11-23 from 15:56 CET)
|
||||
|
||||
All four reviewers by architectural domain did not approve H-A-568 to H-A-587 in their second round; the lines below
|
||||
write each of their findings as an amendment of the answer it corrects, citing the record or the principle that settles
|
||||
it.
|
||||
|
||||
- **H-A-594 (the movers a failed pipeline leaves are carried in closed groups, reopening it when the head's pipeline has
|
||||
ended, 15:56)** 23 Nov, round 2 of the review by architectural domain of H-A-568 to H-A-587 (all four reviewers),
|
||||
amends H-A-571, H-A-581 and §786: (1) **The head's revision** is the newest module graph revision whose
|
||||
`take-in.taken` the runner has handled. A take-in whose pipeline key the runner finds held already (by a pipeline it
|
||||
keyed by that revision for carried movers) adds its entries to that pipeline as movers (H §743, §746; ADR 0684 §3).
|
||||
(2) **What is carried together.** At a pipeline's end `failed`, `cancelled` or `could-not-run`, its unfinished movers
|
||||
(§786: own required steps all passed or never ran) are carried only in groups closed under the pipeline's delivery
|
||||
edges: a mover goes only together with every mover it has an edge from in that pipeline (H §746), since the order
|
||||
between movers exists only inside one pipeline (ADR 0682 §8, §9; ADR 0666 §14). A mover with an edge, directly or
|
||||
through others, from a mover that failed or could not run (each counted as failed, H-A-566), or that waits on such a
|
||||
mover's publish, is not carried: it stays in `unfinished`, tied to that mover, and goes on with it when it passes (by
|
||||
`rerun`, in its reopened pipeline) or in the pipeline of the newer fingerprint that moves it. A predecessor a newer
|
||||
revision moved counts as carried by that revision's pipeline. (3) **Where a group goes.** It is added to the head's
|
||||
pipeline while that pipeline waits or runs; when the head's revision has no pipeline, the runner starts one keyed by
|
||||
it; when the head's pipeline has ended, the runner reopens the failed pipeline for the group under that pipeline's own
|
||||
key and revision (ADR 0684 §3: an unfinished pipeline keeps its pipeline's revision; G-24 §727: a step asked again
|
||||
reopens its pipeline). Its passed steps are carried, not run again (ADR 0666 §8), and the reopened pipeline says
|
||||
`pipeline-ended` again with a higher end count, the end from which alone the assigner writes wants (G-24 §727). No
|
||||
mover waits for an unrelated take-in. `start` (H-A-571), `runner_unfinished_place` (one key, with `why`) and the carry
|
||||
at a pipeline's end follow this one rule: once the head's pipeline has ended they reopen, never refuse; `start` of a
|
||||
module whose own step failed reopens its pipeline as `rerun` does. (4) **What is said.** Each mover added to a
|
||||
pipeline is said by the runner's new event `mover-added`, on that pipeline's subject as `pipeline-started` is
|
||||
(H §746), carrying `pipeline`, `revision`, `module`, `fingerprint` and either `from` (the pipeline it came from) or
|
||||
`caller` (`start`'s caller, as the runtime proved it), declared in the seat `mesh-pipeline-runner`'s definition under
|
||||
its events family (§821), the definition regenerated and its form raised. The failed pipeline's `unfinished` value of
|
||||
a mover carried elsewhere gains `carried-by`, the pipeline that carries it, and the mover leaves that failed
|
||||
pipeline's movers, so none of its later ends names it. The carrying pipeline writes the mover's want at its passed
|
||||
`pipeline-ended` (H §750, §751) and the runner deletes its `unfinished` key then; when the carrying pipeline ends
|
||||
otherwise, the key stays, `pipeline` naming that pipeline and `carried-by` cleared. The carry skips a key whose
|
||||
`carried-by` pipeline waits or runs. (5) **The keys left today.** The runner of this change carries, at its start,
|
||||
every key of `unfinished` whose `carried-by` pipeline neither waits nor runs, by (2) and (3), as at a pipeline's end,
|
||||
among them the keys, about 110, that pipelines main.454 to main.493 left. H2's milestone plan names that start as the
|
||||
step after the runner's delivery, read with `runner_unfinished` before and after. How it is checked: whole (runner,
|
||||
with a stub build seat): of a pipeline whose node-engine fails and whose gitea passes, gitea stays in `unfinished`
|
||||
until the node-engine passes, and then both are wanted; a group joins a running head pipeline, said by `mover-added`
|
||||
with `from`; with the head's pipeline ended, the failed pipeline reopens under its key and says `pipeline-ended` with
|
||||
a higher end count; a take-in finding its key held adds its entries there; a key whose `carried-by` pipeline runs is
|
||||
skipped. ADR 0682 §8, §9; ADR 0684 §3; ADR 0666 §8, §14; principles 3, 4 and 10.
|
||||
- **H-A-595 (a failed record pins the revision its mover's entry comes from; the first `widens` is kept, 15:56)** 23
|
||||
Nov, round 2, amends H-A-566 and H-A-572 (1): the record `failed.<branch>.<module>` is written for each mover that did
|
||||
not pass at a pipeline's end `failed`, `cancelled` or `could-not-run`, not at `failed` alone, and pins the revision
|
||||
the mover's entry comes from (its kept revision, H-A-285, else the pipeline's own) and that revision's `base`
|
||||
(H-A-151), still at most two revisions per record. The `unfinished` value gains `widens`, the mover's part of `widens`
|
||||
as the first pipeline that moved it computed it (H-A-582); a carrying or reopened pipeline says it in its
|
||||
`pipeline-ended` from that value and never computes it again. How it is checked: whole (indexer): a kept mover's
|
||||
record pins its kept revision and that revision's `base`, at a `cancelled` end as at a `failed` one; whole (runner): a
|
||||
carried mover's `widens` equals its first pipeline's. ADR 0666 §23; principle 3.
|
||||
- **H-A-596 (the tool runner's build that answers `stopping` is never wanted, 15:56)** 23 Nov, round 2, amends H-A-570
|
||||
(6): done at 15:47 CET by the lead: the key `main.node-tools` of the runner's `unfinished` was dropped with
|
||||
`runner_unfinished_drop`, because its fingerprint 3b09a323 carries the tool runner's `stopping` answer, which H-A-570
|
||||
withdraws; no carry may bring it back. How it is checked: live, after H2's delivery: no want of `node-tools` on any
|
||||
machine names the fingerprint 3b09a323, read through the seat `mesh-wants`. Principle 3.
|
||||
- **H-A-597 (a late `running` moves a record's time only from a machine present at its end, 15:56)** 23 Nov, round 2,
|
||||
amends H-A-585: the gate applies only the first `running` of a mover's version from each machine the record counted
|
||||
present at its end; that `running`, when later than `ended`, writes `ended` and `delivery-time` again. A `running`
|
||||
from a machine that was away at the end (a machine back, ADR 0603 §7) or a repeated one marks the mover's entry
|
||||
(G §144) and leaves `ended` and `delivery-time` as they are. When the time moves, the gate says `record-ended` again
|
||||
with `ends`, its end count, one higher (as `pipeline-ended`'s end count, G-24 §727), so the self-check's probe and the
|
||||
status view hear the moved time as an event. This replaces the rule for a machine back in the gate's held commit
|
||||
fa345c83. How it is checked: whole (gate): a late `running` from a present machine moves the time and says
|
||||
`record-ended` with `ends` 2; one from a machine that was away, and a second one from the same machine, move nothing.
|
||||
Principle 3.
|
||||
- **H-A-598 (an npm package's test-file patterns are a setting of the indexer, 15:56)** 23 Nov, round 2, amends H-A-573:
|
||||
the patterns are used by the indexer's digest rule alone, so they are the indexer's setting `npm-test-files`, a list
|
||||
of patterns with the default of H-A-573 (`**/*.test.*`, `**/*-test.*`, `**/*_test.*`, `**/test.*` and everything under
|
||||
a `test` directory), declared in the indexer's manifest and read by its settings reader (H-A-370); the Node build
|
||||
module declares nothing for it and the indexer reads no other module's manifest for it. How it is checked: unit
|
||||
(indexer): with the setting given one pattern, a file it matches leaves the digest unchanged and another file changes
|
||||
it; the code review finds no pattern in the indexer's code. Principles 7 and 11.
|
||||
- **H-A-599 (the step held for the runner's view is bounded by `stalled-bound` and stays running, 15:56)** 23 Nov, round
|
||||
2, amends H-A-577 (2): the held step's `wait-held` carries as `bound` the runner's setting `stalled-bound` (§790,
|
||||
default 5 minutes) and as `clock-from` the time it was held. The held step keeps the outcome `running`, and the runner
|
||||
says no `step-started` when it holds it, so the watchman raises `pipeline-stands` once that bound has passed from
|
||||
`clock-from`, also after a restart of its own, since it seeds its open waits from the runner's `stands` (G §75), which
|
||||
lists the held step. The wait ends when the view holds that revision or a newer one (`how` `ran`, the step judged
|
||||
again as H-A-562 (2) says), when the catalog answers that revision gone (`how` `failed`: the pipeline ends failed
|
||||
naming "revision <R> gone", as H-A-496 has it for a kept revision), by `runner_rerun` (`released`), or at its
|
||||
pipeline's end or cancel (`superseded`). How it is checked: whole (runner and watchman): with `stalled-bound` at one
|
||||
minute, a held step raises `pipeline-stands` after one minute, again after the watchman restarts, and ends `ran` when
|
||||
the view takes the revision in. ADR 0666 §24; principles 3 and 11.
|
||||
- **H-A-600 (the bus module's tool that narrows a live consumer's filter is built in H2, 15:56)** 23 Nov, round 2,
|
||||
amends H-A-587 and replaces the lead's answer to its question: a hand act with no tool is the second of its kind after
|
||||
H-A-500 (the instruction tools-are-how-a-module-is-spoken-to). So the bus module (the holder of `mesh-broker`) gains
|
||||
in H2 the tool `nats_consumer_narrow`: given a stream, a durable consumer, `remove` (the filter subjects to remove)
|
||||
and `why`, it removes those filters by the consumer's create-or-update call (ADR 0640 §2's call), keeping its other
|
||||
settings and its delivery position; it refuses to remove every filter of a consumer and a subject the consumer does
|
||||
not filter, and is a hand act recorded through mesh-hand-acts before it is asked (ADR 0640 §3). The indexer's handlers
|
||||
that acknowledge with no work the subjects it no longer consumes (H-A-578 (2)) go in the indexer's first change after
|
||||
that tool has narrowed its consumer; the narrowing is named among the hand acts after H2's delivery in its milestone
|
||||
plan. How it is checked: whole (bus module): a narrowed consumer keeps its delivery position and is delivered no
|
||||
message of a removed subject; a call removing every filter is refused. ADR 0640 §2, §3; principle 4.
|
||||
- **H-A-601 (a superseded end without its revision ends the step could-not-run, 15:56)** 23 Nov, round 2, amends
|
||||
H-A-574: a `superseded` end without `revision` is not refused but ends the step `could-not-run`, naming the builder
|
||||
and "a superseded end without its revision", said in the runner's `step-ended` as every end is; `rerun` asks it again.
|
||||
How it is checked: unit (runner): such an end ends the step `could-not-run` with those words, and a `rerun` asks the
|
||||
step again. Principles 3 and 4.
|
||||
- **H-A-602 (a token file goes only once the vault holds its token and the forge revoked it; the pass back, 15:56)** 23
|
||||
Nov, round 2, amends H-A-575 and H-A-579 (1): gitea's TypeScript bundle deletes a token file only once this start's
|
||||
own-put of that account's token has answered and the token the file holds has been deleted at the forge; with an empty
|
||||
vault a refused own-put leaves the files and their tokens as they are. A return to the earlier build changes the
|
||||
declared owner back, and the node-engine runs the pass of H-A-579 (1) the other way by the same rules: the units
|
||||
stopped, what lies below the directories given to the earlier account (H-A-550's rules, the earlier account now the
|
||||
one given to), the directories, the units started; once the files are deleted the earlier build's stand-in has none to
|
||||
read, so that return publishes only until then. H-A-583 (4) gains the pass back. How it is checked: whole (gitea):
|
||||
with the vault refusing the own-put, both files stay; unit (node-engine): the directory of H-A-583 (4) given back to
|
||||
the earlier account keeps the same three entries as they were. ADR 0550 §1; principles 2 and 3.
|
||||
- **H-A-603 (`again-delays` span the tool runner's restart, 15:56)** 23 Nov, round 2, amends H-A-570 (5) and §799's
|
||||
default: the tool runner's absence at a restart is at most its `drain-bound` (30 s), the 15 s it is given to stop its
|
||||
bundles (H-A-358) and its start, which §775 counts at 20 to 50 s, so 95 s; the build modules' `again-delays` default
|
||||
becomes "15s,90s", whose sum, 105 s, spans it, the first run again still after 15 s. A publish still meeting no
|
||||
responders at its third run ends the step failed with `publish: no responders` (ADR 0664 §2), and `rerun` asks it
|
||||
again. How it is checked: the conformance kit's publish row with the default delays; H-A-583 (1) measures the absence.
|
||||
ADR 0664 §1, §2; principle 11.
|
||||
- **H-A-604 (the acceptance tests as round 2 has them, 15:56)** 23 Nov, round 2, amends H-A-583: (1) names its act: the
|
||||
seat `node-service-manager`'s verb `restart` of the tool runner's unit on the machine that serves the registry seats,
|
||||
called once the publishing build step has started. (3) is the runner's whole test with a stub build seat, covering
|
||||
H-A-594 (2) to (5) and H-A-595, plus a live check after H2's delivery: every mover of main.457 whose own steps passed
|
||||
is wanted on its placing machines, read through the seat `mesh-wants`. (4) gains the pass back of H-A-602. Principle
|
||||
3.
|
||||
- **H-A-605 (four notes of round 2, 15:56)** 23 Nov, round 2: (1) H-A-568: ADR 0686 §5, accepted at 16:04, moves
|
||||
mesh-sdk's manifest reads, `ManifestNeeds` included, to the indexer, and both moves land as one change of mesh-sdk, as
|
||||
H-A-622 writes it. (2) H-A-572 (2): the runner clears a module's `pipeline-failed` (H §770)
|
||||
when its registrations view no longer names the module, as the indexer frees its failed record. (3) H-A-578 (5): the
|
||||
stream that keeps `versions-filled` is dropped by the bus module's `nats_drop`, by warrant after its snapshot
|
||||
(H-A-126), once the new builder runs, named among the hand acts after H2's delivery in its milestone plan. (4) H-A-569
|
||||
(2): the manifest validator's need rules carry a version, `needs-rules`, a number in its package `judge` raised with
|
||||
every change of those rules; each module graph revision the indexer writes carries it as the field `needs-rules` (the
|
||||
seat `mesh-catalog`'s revision form, raised with H-A-580's), and a take-in derives the rule needs of unmoved entries
|
||||
again only when its own `needs-rules` is higher than its base revision's (absent read as 0), reading each unmoved
|
||||
entry's manifest from the entry itself (its field `manifest`, the manifest it carries whole). How it is checked: unit
|
||||
(indexer): a take-in with unchanged `needs-rules` derives nothing for unmoved entries; one with a higher number
|
||||
derives each from the entry's `manifest`. Principles 3 and 7.
|
||||
- **H-A-606 (a publish is asked again on ADR 0674's events, never on a timer; A-457's pause withdrawn, 15:56)** 23 Nov,
|
||||
the lead's item K of round 2: A-457 and A-457a ask a failed or unanswered publish again after a growing pause
|
||||
(`publish-pause` doubled per try up to `publish-pause-max`, `publish-tries` tries) and A-457 says the publish "is
|
||||
never waited on a `running` or `manifest-reads-changed` event any more", while ADR 0674 decides that a version left
|
||||
unpublished is published again once per event that says a registry seat's holder or its node is back (§2), one at a
|
||||
time per holder and queued at most once (§3), and that nothing waits on a timer (§4). A design follows its record, so:
|
||||
A-457's timer path, its putting of every unreleased reservation on the queue at the builder's start, and A-457a's
|
||||
settings `publish-pause`, `publish-pause-max` and `publish-tries` with their tries and next try go; A-473's ask at a
|
||||
build's end stays the first try. A publish that fails or is not answered leaves the version reserved, with
|
||||
`version-unreleased` naming the holder's words (ADR 0674 §3), and it is published again only by G §588's event path:
|
||||
the node-engine seat's `running` of a module whose entry claims the registry seat of the missing artifacts' kind, or
|
||||
its `manifest-reads-changed` with `why` `returned` of the node that holder runs on, each acted on once by its sequence
|
||||
(state `acted`), queued per holder in the state `publish-queue` and taken up again from it at the builder's start, or
|
||||
by `builder_publish_again` at any time. A-457b is withdrawn: `republish-max-versions` (G §633, 50 unless set) is read
|
||||
again as §588's bound per event. Where H-A-590 (2) says the item "spends none of its `publish-tries`", it reads: the
|
||||
queued version ends at once at such a refusal. How it is checked: whole (builder): a publish refused once stays
|
||||
reserved and is not asked again until a registry holder's `running` is heard, then is asked once; the code review
|
||||
finds no timer, pause or count of tries on the publish path. ADR 0674 §2 to §4; principles 1 and 3.
|
||||
|
||||
## Round 3 of the review by architectural domain of H-A-568 to H-A-606 (2026-11-23 from 16:08 CET)
|
||||
|
||||
The four reviewers by architectural domain did not approve round 2 at 11dbae7c; this is the last round (playbook 07).
|
||||
Each line below amends the answer it corrects and names the record clause or principle that settles it.
|
||||
|
||||
- **H-A-607 (the runner starts no pipeline by itself to carry a mover; the carry rides a pipeline that waits or runs,
|
||||
and the hand tools reopen, 16:08)** 23 Nov, the lead's answer to round 3, read against ADR 0682 whole; amends H-A-594
|
||||
(3) and (5), H-A-581 and H-A-571. ADR 0682 §6: the runner starts a delivering pipeline on its own only on
|
||||
`take-in.taken` and on `package-published` for a module with a "B published before A builds" edge, "never by a sweep,
|
||||
a comparison at its start or a timer", and its verbs stay; §7: a running pipeline runs to its end. So: (1) **What
|
||||
goes.** H-A-594 (3)'s reopen of a failed pipeline on another pipeline's `pipeline-ended`, its start of a pipeline
|
||||
keyed by the head's revision when that revision has none, and H-A-594 (5)'s carry of every key at the runner's start
|
||||
go. (2) **What the runner does by itself.** At a pipeline's end `failed`, `cancelled` or `could-not-run`, it adds each
|
||||
closed group (H-A-594 (2)) to the head's pipeline when that pipeline waits or runs, which starts nothing (§786); every
|
||||
other group waits in `unfinished` and is added to the pipeline the next `take-in.taken` starts, as §786 has it, each
|
||||
mover whose fingerprint is still its entry's at that revision. (3) **What a person does.** The runner's verbs stay
|
||||
(ADR 0682 §6): `start` (H-A-571, with its pipeline keyed by the head's revision when that revision has none), `rerun`
|
||||
(G-24 §727, which reopens the failed pipeline), and `runner_unfinished_place`, which places one key's closed group, or
|
||||
with `all` true every key whose pipeline neither waits nor runs, each group by (2) when the head's pipeline waits or
|
||||
runs and otherwise by reopening the failed pipeline for that whole group under its own key and revision (ADR 0684 §3);
|
||||
a failed step inside the group is asked again as `rerun` asks it. Each call is one hand act with its `why`, written
|
||||
through mesh-hand-acts. (4) **Today's keys.** H2's milestone plan names the hand acts after the runner's delivery:
|
||||
first `runner_unfinished_drop` of every key whose module a newer revision already delivered at another fingerprint
|
||||
(H-A-555), such as `main.adwaita`, whose key names 7f986fd6 while the wants of its machines name bddccff9, then one
|
||||
`runner_unfinished_place` with `all` true; `runner_unfinished` is read before and after. How it is checked: whole
|
||||
(runner, with a stub build seat): a failed pipeline's group joins a running head pipeline; with none running, nothing
|
||||
starts until the next `take-in.taken`, whose pipeline carries the group; `runner_unfinished_place` with `all` reopens
|
||||
the failed pipeline for a group when the head's pipeline has ended; the runner's start carries nothing. ADR 0682 §6,
|
||||
§7; ADR 0684 §3; principles 3 and 4.
|
||||
- **H-A-608 (a mover not delivered pins the revision its entry comes from, and is read there, 16:08)** 23 Nov, round 3
|
||||
(running), amends H-A-595 and H-A-594 (3): §749 frees a pipeline's pin at its `pipeline-ended`, so the keys left today
|
||||
name revisions 455, 457 and 459 that the indexer no longer keeps (it keeps 439, 458 and 460 to 493). So: the indexer's
|
||||
record `failed.<branch>.<module>` (H-A-566, H-A-595) is written for every mover a `pipeline-ended` names in
|
||||
`unfinished`, as for one whose own step failed, both being movers not delivered; it pins the revision the mover's
|
||||
entry comes from (its kept revision, H-A-285, else the pipeline's) and that revision's `base`, and is freed as H-A-566
|
||||
and H-A-572 (2) say. A pipeline that carries or reopens a mover reads its entry at that kept revision, else at the
|
||||
head's revision when the entry there has the same fingerprint (§786); a mover found at neither is dropped from
|
||||
`unfinished` with one journal line naming its fingerprint and the revisions looked at, since a newer revision moved it
|
||||
or its entry is gone. How it is checked: whole (indexer): a revision a mover named in `unfinished` comes from stays
|
||||
after its pipeline's end, with its `base`; whole (runner): a mover whose kept revision is gone is read at the head's
|
||||
revision at the same fingerprint, and one found at neither is dropped and said. ADR 0656 §2; principle 3.
|
||||
- **H-A-609 (a reopened pipeline is judged over its carried group alone; the gate hears `mover-added`, 16:08)** 23 Nov,
|
||||
round 3 (health, seams), amends H-A-594 (4) and H-A-597: (1) A pipeline reopened by `runner_unfinished_place` is
|
||||
judged over the carried group alone: the failed mover and the movers tied to it leave the movers its reopened end
|
||||
judges and stay in `unfinished` as before, so one failed mover beside one independent mover gives two ends, the second
|
||||
passed for the independent one, and no third. A reopened pipeline is never reopened from its own reopened end; only a
|
||||
person's `rerun` or `runner_unfinished_place` reopens it again. (2) The gate consumes `mover-added`, declared in its
|
||||
manifest's `consumes`, and counts the mover in the record of the pipeline that carries it (G §144); a pipeline's
|
||||
`pipeline-ended` with a higher end count reopens the gate's record of that pipeline, which ends again when the group's
|
||||
movers run and says `record-ended` with `ends` one higher (H-A-597). (3) A take-in whose pipeline key is held adds its
|
||||
entries (H-A-594 (1)) and says one `mover-added` per entry with `take-in` (the source revision) in place of `from` or
|
||||
`caller`. How it is checked: whole (runner): one failed and one independent mover give two `pipeline-ended`, the
|
||||
second passed for the independent mover, and no third; whole (gate): a `mover-added` counts the mover in the carrying
|
||||
record, and a reopened pipeline's passed end reopens and ends that record with `ends` 2. ADR 0682 §8; ADR 0666 §9;
|
||||
principle 3.
|
||||
- **H-A-610 (a tie ends when the failed mover leaves the registrations, 16:08)** 23 Nov, round 3 (seams), amends H-A-594
|
||||
(2): a mover's tie to a failed mover is read from its `unfinished` key's `pipeline` and that pipeline's edges between
|
||||
its movers at its revision; it ends when the failed mover's module leaves the registrations (its record freed, H-A-572
|
||||
(2)), and the movers tied to it are then carried as any closed group (H-A-607 (2)). How it is checked: whole (runner):
|
||||
a tied mover is carried at the next take-in after the failed mover's module leaves the registrations. ADR 0666 §2;
|
||||
principles 3 and 10.
|
||||
- **H-A-611 (the watchman times the step held for the view by the wait it hears, 16:08)** 23 Nov, round 3 (health),
|
||||
amends H-A-599: the watchman's manifest `consumes` the seat `mesh-pipeline-runner`'s `wait-held` and `wait-ended`, and
|
||||
it times only a wait whose `on` is `revision view`, by that wait's `bound` from its `clock-from`, raising
|
||||
`pipeline-stands` past it and clearing it at the wait's end; an `approval` step's wait owes no progress and is never
|
||||
timed (ADR 0666 §24; ADR 0283). At its start it seeds its open waits from the runner's `stands` (G §75). How it is
|
||||
checked: whole (watchman): a held wait with `on` `revision view` raises `pipeline-stands` after its bound, also after
|
||||
a restart of the watchman; an `approval` wait held twice as long raises nothing. ADR 0666 §24; principle 3.
|
||||
- **H-A-612 (a holder's `fingerprints` state is spoken for by the bus module's fill condition, 16:08)** 23 Nov, round 3
|
||||
(health), amends H-A-589 (2): its unnamed finding past 80 % goes. The state is kept data with a cap that refuses a
|
||||
write when full (H-A-589 (2), §812), and the bus module's fill condition speaks for a kept store as it does for the
|
||||
gate's ledger (§809), so a second condition for one cause is a part with no need (principle 7). The refusal at the cap
|
||||
stays as H-A-589 (2) says it. How it is checked: the code review finds no fill finding in the registry holders.
|
||||
Principles 3 and 7.
|
||||
- **H-A-613 (the publish again rides the work queue `publishes`, one send in flight per holder, as a kept call, 16:08)**
|
||||
23 Nov, round 3 (seams, running), amends H-A-606: (1) The queue is the builder's work queue `publishes` (§793,
|
||||
H-A-461), not the state `publish-queue`, which H-A-461 removed. An event of ADR 0674 §2 puts each version it publishes
|
||||
again once, on `publish.<holder>.again.<module>.<version>` with the message id
|
||||
`<holder>.again.<module>.<version>.<sequence>`, `<sequence>` the event's stream sequence, so the same event heard
|
||||
again puts nothing. The stream keeps at most one message per subject and refuses a new one while one is held, so a
|
||||
version queued or being sent is not queued again (ADR 0674 §3). (2) At most one send is in flight per holder over both
|
||||
classes, `live` first (ADR 0674 §3: one publish at a time to each holder); §793's four sends in flight become one. (3)
|
||||
The consumers' ack wait is G §369's publish bound, the builder's setting `publish-ack-minutes` (default 10), and the
|
||||
builder marks a message in progress while its call waits, so it is given again only when the builder itself stopped;
|
||||
the publish values of the builder's re-ask state go. (4) The publish and its publish again are §775's kept call,
|
||||
marked safe to repeat since the holder takes a version once by its name and version (ADR 0668 §2): no responders, a
|
||||
passed deadline and `away` are waited out at the kept-call pace (ADR 0668 §1), `call-unanswered` written after five
|
||||
minutes (§3). Only an answered failure or a refusal ends the send: the version stays reserved with
|
||||
`version-unreleased` naming the holder's words, and is published again only on ADR 0674 §2's next event or by
|
||||
`builder_publish_again`. How it is checked: whole (builder): two events of one return queue a version once; a second
|
||||
holder's version waits while one send to the first runs; a publish met by no responders is called again and passes
|
||||
when the holder answers; a refused one waits for the next `running`. ADR 0674 §2, §3; ADR 0668 §1 to §3; principles 1
|
||||
and 3.
|
||||
- **H-A-614 (H-A-569's and H-A-570's pull requests merge in one call, so no build of the tool runner with `stopping` is
|
||||
wanted, 16:08)** 23 Nov, round 3 (security), amends H-A-596, H-A-569 (1) and H-A-570 (6): H-A-569's call changes
|
||||
mesh-sdk's `catalogue`, which the tool runner (`node-tools`) imports, so that call moves the tool runner as a code
|
||||
dependent (ADR 0682 §4); were it merged before H-A-570's change, the tool runner would be built from mesh-tools at its
|
||||
merge of #90 (e8f58540) or later, which answers `stopping`. So the pull requests of H-A-569 and H-A-570 (mesh-sdk,
|
||||
mesh-tools, mesh-delivery, the node-engine's `mesh-host` and mesh-catalog) are merged in one call of `merge-pull`: one
|
||||
take-in, one pipeline, their orders held by its tiers (ADR 0682 §6, §8). How it is checked: live, after H2's delivery:
|
||||
no want of `node-tools` names the fingerprint of any build of mesh-tools from e8f58540 on that lacks H-A-570's change,
|
||||
3b09a323 among them, read through the seat `mesh-wants`. ADR 0682 §4, §6; principle 3.
|
||||
- **H-A-615 (`nats_consumer_narrow` refuses a subject the module still consumes, 16:08)** 23 Nov, round 3 (security),
|
||||
amends H-A-600: the tool judges a durable's module as H-A-127 and H-A-128 do (its name `<node>_<module>` or a prefix
|
||||
`<node>_<module>_`, against the keeper's accepted set), and refuses to remove a filter subject that the accepted
|
||||
manifest of that module still consumes, naming the subject; the keeper's accepted set carries each module's `consumes`
|
||||
beside the module, decoded from the same accepted manifest (ADR 0578 §3: a part decodes a manifest and takes its
|
||||
verdict, never judging it). How it is checked: one row of the bus module's whole test: a call removing a subject the
|
||||
module's accepted manifest consumes is refused and the consumer keeps it. ADR 0640 §3; principles 3 and 4.
|
||||
- **H-A-616 (an artifact held with no kept fingerprint counts as held for F when its digest is F's, 16:08)** 23 Nov,
|
||||
round 3 (security), amends H-A-589 (1) and H-A-590 (1): ADR 0606 §1 keeps a numbered fingerprint's number. So an
|
||||
artifact a registry holds at V with no fingerprint kept counts as held for F, and F keeps V, when its digest equals
|
||||
the digest F's reservation records for that artifact; it counts as held elsewhere only when the reservation records
|
||||
another digest or none. The 17 versions of issue 1984 note 3 record none, so they are still withdrawn by H-A-590. How
|
||||
it is checked: a row of H-A-593 (1)'s table: an artifact held at V with no fingerprint and the reserved digest keeps
|
||||
V; one with another digest withdraws it. ADR 0606 §1; ADR 0605 §4; principle 3.
|
||||
- **H-A-617 (who hears a second `record-ended`, and its form, 16:08)** 23 Nov, round 3 (health), amends H-A-597, whose
|
||||
"so the self-check's probe and the status view hear the moved time as an event" is wrong: `record-ended` carries no
|
||||
`delivery-time` (H-A-25) and only the watchman consumes it, and the self-check's probe reads `gate_times` (H-A-396),
|
||||
so the probe reads a moved time at its next read. The second `record-ended` is the event of the record's new end; the
|
||||
watchman takes a second end of a record it cleared already as nothing new. `ends` is a field of the seat
|
||||
`mesh-delivery`'s event `record-ended`, its definition regenerated and its form raised by one. How it is checked: unit
|
||||
(contracts): `ends` read on `record-ended`; whole (watchman): a second `record-ended` of a cleared record raises and
|
||||
clears nothing. Principles 3 and 7.
|
||||
- **H-A-618 (three notes of round 3, 16:08)** 23 Nov, round 3: (1) H-A-589 (6): the registry holders (distribution and
|
||||
gitea, mesh-catalog), the seats' contracts (mesh-delivery-contracts), the conformance cases and the builder
|
||||
(mesh-delivery) merge in one call of `merge-pull`, since the order between their modules exists only inside one
|
||||
pipeline (ADR 0682 §8, §9). (2) H-A-589 (4) and (5) and H-A-591 (4): ADR 0686, accepted at 16:04, dissolves
|
||||
mesh-delivery-sdk (its §4): the shared publish goes behind the one module that serves the step runner, and the
|
||||
conformance cases become fixtures of the registry and build seats' definitions in their contracts modules (its §2),
|
||||
run by each holder's and build module's tests, as H-A-624 writes it. (3) H-A-602: a token file holds only the token
|
||||
and its scopes, so gitea's TypeScript bundle finds the token at the forge by listing the account's tokens through the
|
||||
forge's own interface and matching the last eight characters and the scopes it holds; a token it cannot match is left
|
||||
with its file and said once in its journal. When a new gitea build is faulty after the files are gone, a return to an
|
||||
earlier build that runs as gitea's own account (H-A-543's change on) reads its tokens from the vault and recovers; a
|
||||
return to a build before it does not. With no such earlier build, the fixed build is placed by hand (the instruction
|
||||
hot-deploys-allowed), since gitea holds the registry seats its own publish would go through. Principles 3 and 4.
|
||||
- **H-A-619 (the acceptance tests of round 3, by level, 16:08)** 23 Nov, round 3, amends H-A-604 (3): the runner's whole
|
||||
test with a stub build seat covers H-A-594 (1), (2) and (4) as H-A-607 to H-A-610 amend them: a failed node-engine
|
||||
ties its gitea, and gitea is carried once the node-engine passes; a group joins a running head pipeline; with none
|
||||
running nothing starts until the next take-in; `runner_unfinished_place` with `all` reopens a failed pipeline for an
|
||||
independent mover, which gives two ends, the second passed, and no third; a tie ends when the failed module leaves the
|
||||
registrations; a mover whose kept revision is gone is read at the head's. The live check after H2's delivery stays:
|
||||
after the hand act of H-A-607 (4), every mover of main.457 whose own steps passed is wanted on its placing machines.
|
||||
Each is a step of the existing whole test, never a new top-level test function (the test budget). Principle 3.
|
||||
|
||||
## The fix pass after round 3 (2026-11-23 from 16:14 CET)
|
||||
|
||||
The lead checks these lines against round 3's remaining findings; ADR 0686 was accepted at 16:04, so its lines are the
|
||||
design now.
|
||||
|
||||
- **H-A-620 (the publish-again queue reads its own stream before a put; one `again` send in flight per holder, 16:14)**
|
||||
23 Nov, the fix pass (seams, security, running), amends H-A-613 (1), (2) and (4): (1) No form of a manifest's stream
|
||||
refuses a new message while one is held, so before it puts a version again the builder reads its own stream
|
||||
`publishes` for that subject, `publish.<holder>.again.<module>.<version>`, by a read of the subject's last message; a
|
||||
message held there means the version is queued or being sent, so it puts nothing. The message id of H-A-613 (1) stays,
|
||||
so the same event heard again puts nothing either. No manifest form is added and nothing is applied to the live
|
||||
stream. (2) ADR 0674 §3's one publish at a time is about the publish again alone: at most one `again` send is in
|
||||
flight per holder, while `live` sends keep §793's four in flight (H-A-290 (3): one at a time made a release wait forty
|
||||
minutes). (3) The kept-call pace of H-A-613 (4) is the call's own transport retry (ADR 0668 §1); a new publish again
|
||||
of a version whose send ended on an answered failure still waits for ADR 0674 §2's next event. How it is checked:
|
||||
whole (builder): two returns of one holder queue the version once; a second `again` send to a holder waits while one
|
||||
runs, and four `live` sends run at once. ADR 0674 §2, §3; ADR 0668 §1; principles 1 and 3.
|
||||
- **H-A-621 (`nats_consumer_narrow` asks the seat `mesh-catalog` what a module consumes, 16:14)** 23 Nov, the fix pass
|
||||
(seams), amends H-A-615: by ADR 0686 §3 and §5 the bus module's keeper reads no manifest. The seat `mesh-catalog`
|
||||
serves `entry`, whose catalog entry already carries what the indexer derives from a manifest (`invokes`, `serves`,
|
||||
`streams`, `requires`), and serves no event that names what a module consumes. So the entry gains the field
|
||||
`consumes`, the subjects the module's accepted manifest consumes, filled by the indexer beside `invokes`; the seat's
|
||||
definition is regenerated and its form raised with H-A-580's and H-A-605 (4)'s raise. The tool asks
|
||||
`mesh-catalog.entry` for the durable's module, judged by name as H-A-127 and H-A-128 have it, and refuses to remove a
|
||||
subject the answer's `consumes` holds; the keeper's accepted set carries no `consumes` of its own. How it is checked:
|
||||
unit (indexer): an entry's `consumes` equals its manifest's; the row of H-A-615: a subject the entry's `consumes`
|
||||
holds is refused. ADR 0686 §3, §5; principles 1 and 9.
|
||||
- **H-A-622 (the capability's name is a value of the seat `node-engine`'s contract; `ManifestNeeds` moves whole to the
|
||||
indexer, 16:14)** 23 Nov, the fix pass (seams), amends H-A-568 and rewrites H-A-605 (1) now that ADR 0686 is accepted:
|
||||
shared code is only the runtime and a seat's forms (ADR 0686 §1, §2), and mesh-sdk's manifest reads, `ManifestNeeds`
|
||||
included, move to the indexer (§5). So the capability names a node-engine states, `directory-contents-owner` among
|
||||
them, are values of the seat `node-engine`'s contract, the answer of its verb `manifest-reads` (ADR 0618 §3),
|
||||
generated in the contracts module that holds that seat's definition (ADR 0686 §2) and read there by the node-engine,
|
||||
which states them, the indexer, which names them as needs, and the assigner, which compares the two; mesh-sdk's
|
||||
constant `ReadDirectoryContentsOwner` goes. `ManifestNeeds` moves whole into the indexer with mesh-sdk's other
|
||||
manifest reads, and H-A-568's runs-as rule is one rule of its manifest validator there; H-A-568's removal of the line
|
||||
from mesh-sdk is that move, one change of mesh-sdk with no copy and no alias left (§5). How it is checked: ADR 0686
|
||||
§9's widened unit test of mesh-sdk refuses `ManifestNeeds` and the constant there; unit (indexer): H-A-568's rows.
|
||||
ADR 0686 §1, §2, §5; ADR 0618 §3; principle 9.
|
||||
- **H-A-623 (a placed group that holds the failed mover is judged with it, 16:14)** 23 Nov, the fix pass (seams), amends
|
||||
H-A-609 (1): a failed mover leaves the movers a reopened end judges only when it is outside the group placed again; a
|
||||
group `runner_unfinished_place` or `rerun` places with the failed mover in it, its failed step asked again as `rerun`
|
||||
asks it (H-A-607 (3)), is judged with that mover, so its end passes only when that mover's step passes (H-A-414). How
|
||||
it is checked: whole (runner): a group placed with its failed mover whose step fails again ends failed; one placed
|
||||
without it ends on its own movers. ADR 0682 §8; principle 3.
|
||||
- **H-A-624 (where the shared publish, the conformance cases and the reading of no responders go under ADR 0686,
|
||||
16:34)** 23 Nov, the fix pass, rewrites H-A-618 (2) and amends H-A-570 (3), H-A-589 (4) and (5), H-A-591 (4) and
|
||||
H-A-593 (2) to (4): mesh-delivery-sdk is dissolved (ADR 0686 §4). (1) The shared publish of H-A-589 (4) goes behind
|
||||
the one module that serves the step runner, called through its verbs for each step (§4); which module that is no line
|
||||
names yet. (2) The conformance cases of H-A-589 (5), H-A-591 (4) and H-A-593 (2) to (4) become fixtures of the seats'
|
||||
definitions in their contracts modules (§2): the registry seats' cases in the definitions of the four registry seats,
|
||||
the build seats' cases, `reproducible` among them, in those of `node-build-go`, `node-build-node` and
|
||||
`node-build-image`; each holder's and build module's tests run the fixtures of every seat it fills, and mesh-catalog's
|
||||
failure-kit check (H-A-591 (4)) reads that they do. (3) The one place that reads no responders, a passed deadline and
|
||||
`away` as a transport fault (H-A-570 (3)) is the runtime's calling of a verb in mesh-sdk (ADR 0686 §1: calling and
|
||||
answering a verb; ADR 0668 §7: mesh-sdk carries the kept-call form); a build step's ending of its run `again` on such
|
||||
a fault (ADR 0664 §1), today `PublishFault` and `sdkstep.Passing`, goes with the step runner to the module of (1). How
|
||||
it is checked: ADR 0686 §9's checks; the code review finds no package of mesh-delivery-sdk imported. ADR 0686 §1, §2,
|
||||
§4; principle 9.
|
||||
- **H-A-625 (four notes of the fix pass, 16:14)** 23 Nov: (1) H-A-611: while a wait on the revision view stands, the
|
||||
watchman times the step from that wait's `clock-from` in place of the step's own start. (2) H-A-607 (2): the failed
|
||||
mover's `pipeline-failed` (H §770) names the movers held behind it and `runner_unfinished_place` as the act that
|
||||
places them. (3) H-A-613 (4) is read as H-A-620 (3) says. (4) H-A-619's live check: each key of `unfinished` ends
|
||||
either deleted, its module wanted at its fingerprint or a newer one, or still tied to the failed mover it names.
|
||||
Principles 3 and 4.
|
||||
- **H-A-626 (the step runner is served by the builder, through verbs of the seat `mesh-builds`, 16:17)** 23 Nov, the
|
||||
open question of H-A-624 (1): ADR 0593 §1 reads "Code that computes or judges, and that only some modules need, is the
|
||||
owner module's: the module that holds the seat whose work it is", and "the build runner becomes the Go build module's
|
||||
package, used by the other build modules; the step runner of the delivery parts becomes the builder's package".
|
||||
ADR 0686 §3 keeps those owners ("the build runner and the step runner, which it makes the Go build module's and the
|
||||
builder's packages for other modules, are served as clause 4 has it"), and §4 has each "served by one module, the same
|
||||
or two", every part going "to the one module whose work it is", the module and whether its role is a seat being this
|
||||
design's to name. So: the step runner of the delivery parts is served by the builder (mesh-delivery-builder), its
|
||||
owner by ADR 0593 §1, through verbs of the seat the builder holds, `mesh-builds`, whose work a build step is; no new
|
||||
seat is made (principle 7), and the build modules depend on the seat `mesh-builds`, not on the builder's module
|
||||
(principle 9: `mesh-builds` is a seat, a role the mesh means one module or another to fill). The parts H-A-624 (1) and
|
||||
(3) send there are the step runner's: the shared publish of H-A-589 (4) and a build step's ending of its run `again`
|
||||
on a transport fault, today `PublishFault` and `sdkstep.Passing`. The verbs themselves, one per part a build module
|
||||
calls in a step, with their messages in the seat's contract (ADR 0686 §2), are named by the line that writes the move
|
||||
of `buildstep` (ADR 0686 §5). The build runner, the Go build module's by ADR 0593 §1, is outside this line. How it is
|
||||
checked: ADR 0686 §9's checks (no build module imports a package of mesh-delivery-sdk or of the builder); the seat
|
||||
`mesh-builds`' definition names the step runner's verbs. ADR 0593 §1, ADR 0686 §3, §4; principles 7 and 9.
|
||||
|
||||
## The operator's answers (2026-11-23 from 20:43 CET)
|
||||
|
||||
- **H-A-627 (`tier-bound` counts no time a mover waits for the operator's yes, read from the assigner's own `asks`,
|
||||
20:45)** 23 Nov, the operator's answer of 20:43 CET to the lead's design question ("Yes, pause it"), amends §751's
|
||||
`tier-bound`, H-A-56 and H-A-75. The case: pipeline main.505's tier 1 held the bus module on one machine while it
|
||||
waited for the operator's yes, asked from 18:54 to 19:28 CET; at 19:22 the assigner found the tier late, so tier 2
|
||||
(the gate, the forge module, the pipeline runner, the indexer, the status view, the builder and the tool runner) was
|
||||
never written; the second meeting of the kind, after main.502 (and a near miss at main.495). ADR 0682 §8 decides a
|
||||
bound per step of the order whose end fails the pipeline, and §9 makes the operator's yes the asker's, not the want
|
||||
rule's; how the bound counts a wait on the operator is the design's own, and the operator answered it. (1) **What
|
||||
pauses the count.** `tier-bound` counts no time during which the seat `mesh-wants`' state `asks` (G §717: the asks of
|
||||
the operator the assigner writes and deletes and the teller offers, not the step asks of the seat's work queue) holds
|
||||
a key of any kind but `assignments` that names a mover of the tier by its module, by the mover's fingerprint where the
|
||||
kind's key names one (every kind but `record`, whose key names the composition), and, where the key names a machine
|
||||
(every kind but `hold`), by one of the present placing machines on which §751 finds that mover not running. One such
|
||||
key pauses the count of the whole tier, which has one bound (H-A-56). The yes is read there because `asks` is the
|
||||
assigner's own state (ADR 0596 §4): the node-engine's phase `waiting-yes` is another module's state (ADR 0596 §2), and
|
||||
the want carries the yes only once it is given. (2) **Which part keeps what.** The assigner keeps the pause in the
|
||||
tier progress of its state `written` (H-A-56), whose value gains `clock-from`, the time `tier-bound` counts from (in
|
||||
`since`'s form; written equal to `since` when a tier's progress starts; absent read as `since`), and `paused-from`,
|
||||
the time the standing pause began (absent while the bound counts). The tiers' judgement of each pass (H-A-256) reads
|
||||
`asks` as that pass leaves it: the first pass that finds such a key writes `paused-from` with its own time, never
|
||||
earlier than `since`; the first pass that finds none moves `clock-from` later by the time since `paused-from` and
|
||||
deletes `paused-from`, both by compare-and-set as the progress is written. A tier is late only with no `paused-from`
|
||||
and its time at or past `clock-from` plus `tier-bound`; only that time is armed on the one deadline timer (H-A-56),
|
||||
and a paused tier arms none. The next tier's progress starts with `clock-from` its own `since` and no `paused-from`;
|
||||
both go with the key when the assigner deletes it (H-A-75). Both are kept on the bus, so a restart keeps a pause, and
|
||||
the first pass after it ends a pause whose key is gone. The teller and the operator channel keep nothing new, and no
|
||||
event is added: the wait is said by its ask, offered again at each lapse while its key stands. (3) **What is said and
|
||||
read.** The assigner's journal says a pause's start (the pipeline, the tier, the module, the machine and the ask's
|
||||
key) and its end (how long the count stood still and when the tier is now late); `assigner_written` answers
|
||||
`clock-from` and `paused-from` with the progress, and its description names them. A tier already said `tier-late`
|
||||
stays ended: `pipeline-wanted` is said once (H-A-75), and no later pause reopens it; the finding `tier-late` and its
|
||||
body are unchanged. How it is checked: two rows of the table of §751's tier test of the assigner
|
||||
(`TestAPipelinesWantsAreWrittenTierByTier`, in mesh-delivery), never a new top-level test function: with the
|
||||
provider's `record` ask standing in `asks` from minute 5 to minute 45 of tier 1, nothing is late at minutes 30 and 69
|
||||
and `tier-late` is raised at minute 70; with the provider running at minute 50, the consumer's want is written then.
|
||||
ADR 0682 §8, §9; ADR 0596 §2, §4; principles 1, 3 and 4.
|
||||
|
||||
## The empty pin of a run's entry (issue 1984 notes 19 to 22, 2026-11-23 from 21:40 CET)
|
||||
|
||||
Issue 1984 note 22: every composition of a take-in whose movers publish a package the node-engine imports ended
|
||||
"could not run: no pin for …", because the take-in blanked that package's pin in every import-form entry, the
|
||||
node-engine's among them though it was no mover, and the composition run gave the empty pin to the build module, which
|
||||
refuses it at once; nothing filled it after the publish. The prepare of this fix found four questions and three places
|
||||
where the design and the code disagree; the lead's answers follow, each against the principles.
|
||||
|
||||
- **H-A-628 (the take-in blanks only a mover's entry; a run's empty pin is filled from `mesh-builds.published` or
|
||||
waited for, 21:45)** 23 Nov, issue 1984; answers the questions the prepare of the fix found against H-A-532 DMC-1,
|
||||
H-A-547 (2) and (3), H-A-551, H-A-192, H-A-204, H-A-326, H-A-328, G §718, §719, §720 and H §745. (1) The take-in
|
||||
blanks a package's pin, as H-A-532 DMC-1 has it, only in the import-form entry of a mover of that take-in; a module
|
||||
that is no mover keeps its pins, since no step of that pipeline builds it and so no build waits for the publish the
|
||||
blank serves (principle 7; principle 3: a blank nobody fills fails a later ask). (2) For a run the assigner builds
|
||||
from an entry (the composer of G §718, the validator of H §745), an empty pin is filled by the assigner's ask of the
|
||||
seat `mesh-builds`' verb `published` (H-A-328) for the publisher's build in the step's revision, and the version it
|
||||
answers is the pin: the assigner computes no pin and copies no logic of the builder, and no contract changes
|
||||
(principles 1, 9 and 7). H-A-328's one caller gains the assigner. (3) While `published` answers not published, the
|
||||
run waits: it reads first, then is woken by `mesh-builds`' `package-published` of that package (H-A-326's order).
|
||||
The wait is bounded by an assigner setting `package-wait-minutes`, with the builder's range and default (1 to 120,
|
||||
10); meanwhile the step's progress says the phase `fetch` (no new phase) and the journal names the package; past
|
||||
the bound the run ends could not run, "package <path> has no published version within <bound>" (principles 1, 11,
|
||||
3 and 7). (4) The wait arms the run's own bound key of §720 (`bound.<run key>`, its time to live the bound of (3)),
|
||||
so the bound outlives an assigner restart; its expiry ends the run as (3) says, and an assigner start finds a run
|
||||
still waiting by its missing program and starts its wait again (principles 1 and 7). (5) So the assigner never puts
|
||||
a run ask with an empty pin: `pinsOfEntry`'s silent drop goes, and the words that end such a run name the package,
|
||||
the entry and why it has no version, never the builder, which never had the ask (H-A-204: "never left out";
|
||||
principle 3). (6) A blank carried into the kept packages of a watched branch other than the first at its next
|
||||
take-in (H-A-547 (2): "never in a module's kept packages") is not part of this fix: no live case shows it, and with
|
||||
(1) only a mover's entry is blanked. It is noted on the issue for the code milestone, with whether a published
|
||||
version whose reservation the builder dropped stays the series' newest (H-A-495's addendum), and the builder's
|
||||
reserve of a number for a done build whose fingerprint is already released (principle 7). In the indexer and the
|
||||
assigner (mesh-delivery). How it is checked: rows of the indexer's `TestMoversOf` (a mover's entry blanked, a
|
||||
non-mover's kept), a row each of the composition run's and the validate step's unit tests (an empty pin filled from
|
||||
`published`), the existing whole test `TestTheCompositionStepComposesEachMachineThroughTheBuildSeat` extended (a
|
||||
run that waits for a package's publish and composes after it; one past the bound ends could not run naming the
|
||||
package), never a new top-level test function; live, the first take-in after delivery whose movers publish a
|
||||
package the node-engine imports has every composition pass. Principles 1, 3, 7, 9 and 11.
|
||||
- **H-A-629 (a run that waits for a package keeps the wait in its own value; every reader says it; a start takes it up
|
||||
again, 22:02)** 23 Nov, issue 1984; answers the developer's three questions on H-A-628 (3) and (4): the expiry
|
||||
marker of `bound.<run key>` holds no value (A-470o), the run's value names no package, every reading step says the
|
||||
phase `run` at once, and the take-up starts nothing again. (1) The run's value, the seat `mesh-wants`' composition
|
||||
run (`CompositionRun`), gains one field, `waits`, absent while the run waits for nothing: the package's path and the
|
||||
time its wait began. It is written when the run's wait of H-A-628 (3) begins and deleted when the run ask is put or
|
||||
the run ends, by compare-and-set as the value is written. So the package is named from the bus after a restart,
|
||||
and an expiry heard before any take-up names it, read from the run's value (principle 1; principle 7: the run's
|
||||
existing value, no new key). (2) Every step that reads the run, the starting one included, says the phase `fetch`
|
||||
naming the package while the run's value holds `waits`, and `run` once it holds none, as it hears the run key
|
||||
today (principle 3: each step says what is true; principle 7). (3) At an assigner start, a run whose value holds
|
||||
`waits` and no program has its whole start run again (a compose-candidate ask of the node and its kept request), as
|
||||
the node's input of the first start is not kept before the wait ends; that start reads `published` first, so a
|
||||
package published while the assigner was down is taken at once (principle 7: the existing start, no new kept
|
||||
input). Its bound counts from `waits`' time: past that time plus `package-wait-minutes` the run ends could not run
|
||||
as H-A-628 (3) says, naming the package; before it, `bound.<run key>` is armed again for what is left, never in full
|
||||
again, whether it expired while the assigner was down or was never armed (principles 3 and 11). How it is checked:
|
||||
rows of the composition run's unit tests (`waits` written at the wait's start and gone at the ask; every reader
|
||||
says `fetch` naming the package, then `run`), and the extended whole test of H-A-628 (a restart during the wait
|
||||
takes the run up and composes after the publish; a restart past the bound ends it could not run naming the
|
||||
package). Principles 1, 3, 7 and 11.
|
||||
- **H-A-630 (the waiting run's wake, context and words, 22:58)** 23 Nov, issue 1984; answers round 1 of the review of
|
||||
the fix that builds H-A-628 and H-A-629. (1) A `package-published` wakes only the runs whose `waits` names the
|
||||
heard artifact's package, as H-A-628 (3) says "of that package"; a publish of another package asks no `published`
|
||||
(principle 7). (2) Each bind of the assigner's consumer of `package-published` wakes every waiting run to read
|
||||
`published` again, since an event said while the consumer was not bound is never heard (principle 3: no wait that
|
||||
only its bound ends while the package stands published). (3) The wait runs on the assigner's own context, as the
|
||||
take-up's does, never on the starting step's: a step that is superseded or dropped leaves a run other steps share
|
||||
waiting (principle 3: a run never ends with "no published version" while one stands). (4) The words that end a run
|
||||
past its bound name the package, the entry and the bound, as H-A-628 (5) asks (principle 3). (5) While a run's value
|
||||
holds `waits`, the readers' `wait-held` says the step waits for that package's publish, naming it, never for a
|
||||
build node (principle 3). How it is checked: rows of the composition run's unit tests (another package's publish
|
||||
asks no `published`; a bind wakes a waiting run that then reads it published; a superseded starting step leaves the
|
||||
shared run waiting; the bound's words name package, entry and bound; `wait-held` names the package). Principles 3
|
||||
and 7.
|
||||
- **H-A-631 (the entry is named from the run's value, 23:03)** 23 Nov, issue 1984; answers the round-2 developer's
|
||||
question on H-A-630 (4): two of the three paths that end a run past its bound (the bound's expiry and the take-up at
|
||||
a start) read only the run's value, whose `waits` holds the package and its time, and `program` is absent while the
|
||||
run waits. `waits` gains the entry's words (the import-form entry the run was built from, as the waiting start's end
|
||||
names it today), written with the package when the wait begins, so every path names the package, the entry and the
|
||||
bound as H-A-630 (4) and H-A-628 (5) say (principle 3: the same words on every path; principle 1: an expiry and a
|
||||
restart read the run's value from the bus; principle 7: a field of the `waits` this fix adds, no new key, the seat
|
||||
definition's form stays at the 3 this fix raised it to). How it is checked: the row of H-A-630's bound's words, run
|
||||
on the expiry and the take-up paths too. Principles 1, 3 and 7.
|
||||
- **H-A-632 (a wait for a package that ends says the wait for a build node again, 23:16)** 23 Nov, issue 1984;
|
||||
answers the round-2 developer's question on H-A-630 (5): the readers' `wait-held` for a build node is said once, when
|
||||
the run is made (`sayWaits` at the run's creation), and the one that names the package when its wait begins; when
|
||||
the run ask is put and `waits` is deleted, no line says the step waits for a build node again, so the view keeps the
|
||||
package's words until `ask-taken`'s `wait-ended` `ran`. At that put, a run whose wait for a package ended says its
|
||||
readers' `wait-held` for a build node again, under its held id with `.put` added, so the bus's duplicate window
|
||||
does not take it for the first one (principle 3: each step says what is true, as H-A-629 (2) does for the phase;
|
||||
principle 7: the existing event, no new one). How it is checked: a row of the composition run's unit tests (after
|
||||
the put, a reader's newest `wait-held` is for a build node). Principles 3 and 7.
|
||||
- **H-A-633 (a Go package artifact's import set is listed in the environment its build uses, 00:14)** 24 Nov, issue 1984;
|
||||
answers the fault main.510 met (mesh-delivery-contracts' build on the build node, "the imports of
|
||||
mesh-delivery-contracts: go list of go-containerimageregistryclient: ... module lookup disabled by GOPROXY=off"):
|
||||
the Go build module's import step, which lists each path of a package artifact as H-A-518, H-A-541 and H-A-532
|
||||
DQ-5 say, runs every listing with the environment of the module's directory, while the build of that path runs with
|
||||
the environment of the path's own directory: its own module file of the fetch's pins and the tree a package of the
|
||||
module's own repository is built from. So a path whose Go module requires another module of its own repository at
|
||||
the zero version, as a contracts client requires mesh-delivery-sdk, builds and is published, then fails its listing.
|
||||
Each listing runs with the environment the build gives that path's directory, never a second one (principle 3: the
|
||||
import set is read as the build resolved it, never a failure where the build passed; principle 7: the existing
|
||||
environment, no new one). The quick fix and the thorough fix are one here: the fetch already takes each directory's
|
||||
own module file. In the Go build module (mesh-catalog). How it is checked: a row of the import step's unit tests
|
||||
where a package path's Go module requires a module of its own repository at the zero version, resolved only through
|
||||
that path's module file, and its listing names that module's imports; live, the next pipeline whose movers hold
|
||||
mesh-delivery-contracts passes its build. Principles 3 and 7.
|
||||
@@ -0,0 +1,580 @@
|
||||
---
|
||||
layer: to-be
|
||||
status: in-progress
|
||||
design: 47
|
||||
milestone: H
|
||||
updated: 2026-11-25
|
||||
decisions:
|
||||
- "ADR 0690"
|
||||
- "ADR 0656"
|
||||
- "ADR 0597"
|
||||
- "ADR 0595"
|
||||
- "ADR 0682"
|
||||
- "ADR 0614"
|
||||
- "ADR 0618"
|
||||
- "ADR 0624"
|
||||
- "ADR 0603"
|
||||
- "ADR 0686"
|
||||
- "ADR 0684"
|
||||
- "ADR 0674"
|
||||
- "ADR 0673"
|
||||
- "ADR 0668"
|
||||
- "ADR 0666"
|
||||
---
|
||||
# Design 47, milestone H2: lead answers, continued a third time
|
||||
|
||||
This file continues [H2-lead-answers-3.md](H2-lead-answers-3.md) from H-A-634 to H-A-684, since that file reached its
|
||||
60 KB bound with H-A-633; [H2-lead-answers-5.md](H2-lead-answers-5.md) continues it, and its H-A-685 to H-A-703 amend
|
||||
answers here. Each line names the record, the operator's answer or the principle that settles it.
|
||||
|
||||
## The operator's answers, continued (2026-11-24 from 01:06 CET)
|
||||
|
||||
- **H-A-634 (an ended delivery record goes 30 days after its end, by the bus's lifetime per key, and its snapshot with
|
||||
it; its history is kept 90 days and none beyond; the bus module's fill names its object, 01:24, rewritten 21:55, and
|
||||
on 25 Nov to ADR 0690)** 24 Nov, the operator's answers in chat: about 01:06 CET ("sure, i guess") to the lead's
|
||||
design question "may the gate delete ended delivery records older than a set number of days (default 30)? Open records
|
||||
are never touched"; and between 21:20 and 21:30 CET, after the lead set out how mature bus setups bound kept data (a
|
||||
lifetime per stream, a current state holding only what is live with a lifetime per key, a history aged or archived),
|
||||
"I don't think so? Why would ever need the history?" to "keep the gate's delivery history beyond 90 days?": no
|
||||
archive, the history expires. The second answer replaces this answer's first form (the gate deleting each ended record
|
||||
through `mesh/ledger.remove` at each open, with `gate_records_delete` and a list of month lists `held/months`): the
|
||||
bus removes what has ended, as the ledger's own configuration asks, and the gate deletes nothing. It amends G §154 (90
|
||||
days counted from the opening, an open record removed too, `freed` at a removal), G §155 (the estimate of the ledger's
|
||||
growth, and a removal taking the operations and the snapshot), G §159 and §160 (the tools and the check of the
|
||||
retention), G §587's removal, and §820's row of `records` (its key's life "none", deleted "never"); §809's and §812's
|
||||
"never pruned" stand, since nothing prunes the ledger toward a cap. A delivery record's fields, retention and tools
|
||||
are the design's under ADR 0656 §7 and §10 (G §145); a ledger that expires gives its keeping days in its own
|
||||
configuration (ADR 0595 §2, §8; ADR 0597 §1), and a state's key may be given a lifetime of its own (design 25 § 12.1's
|
||||
option "a lifetime per key", ADR 0595 §3); so the answer is design lines (playbook 02, *Answering a design question*,
|
||||
item 1), save the cap of a ledger's state and index buckets and the lifetime of its snapshot, which were a record's:
|
||||
ADR 0690, accepted 2026-11-25 on the operator's Approve, decides both, changing ADR 0595 §3 and ADR 0597 §8, and (1),
|
||||
(3), (4) and (8) follow its clauses 1 and 2, as its Consequences ask. The case, read 2026-11-24 about 00:20 UTC: the
|
||||
bus module's condition "Kept data is filling up" for the gate's `records`, open since 2026-11-23 10:20, says "75% of
|
||||
its cap" and names no object; the bus module's `nats_streams` reads the ledger's state bucket at 67,108,471 of its
|
||||
67,108,864 bytes (16,869 keys, last written 2026-11-23 11:48:52 UTC), its history at 226,666,132 of 1,073,741,824
|
||||
bytes (82,178 operations, 21,969 instances), its snapshot at 121,436,920 bytes and both index buckets with no key; the
|
||||
seat `mesh-broker`'s `show` answers only their sum (415,211,523 of 2,348,810,240 bytes); `gate_records` counts 978
|
||||
records, 869 ended (840 of them at H1's clean state on 2026-11-20) and 109 open, the oldest opened 2026-11-14 01:05
|
||||
UTC, and answers its fill "unread": "the runtime answers no mesh/ledger.fill from a bundle".
|
||||
(1) **When an instance has ended, and when its key goes.** A ledger whose own configuration gives `ended-days` (a
|
||||
whole number of days, 1 to 3650) keeps an instance's state key only until `ended-days` after the instance's end. An
|
||||
instance has ended while its state holds a value in the field its type names in `ends-with` (absent, null, an empty
|
||||
object and an empty text are no value); its end is the time the tool runner stamped (`at`) on the operation that last
|
||||
gave that field a value. The tool runner keeps that time as `ended-at` in what it keeps under the instance's key,
|
||||
beside the sequence of its last operation (and so in its snapshot), absent while the instance has not ended. Every
|
||||
write of an instance's state by the tool runner (an `apply`, its write after a lost race of ADR 0597 §5, a `rebuild`)
|
||||
gives the key the bus's per-message lifetime of what is left of `ended-days` after `ended-at`, and none while the
|
||||
instance has not ended, so a reopened instance is kept whatever its age; when nothing is left, it writes no state and
|
||||
deletes the key it holds. **Its snapshot carries the same lifetime** (ADR 0690 §2): every write of an instance's
|
||||
snapshot, by `apply` and by the repairs `rebuild` and `snapshot` alike, gives the message the lifetime the write of
|
||||
its state carries, in the same header, and none while the instance has not ended; the ledger's snapshot store keeps
|
||||
one message per instance, so a reopened instance's snapshot, written with none, replaces the ageing one. When nothing
|
||||
is left, neither `rebuild` nor the repair `snapshot` writes a snapshot, and each purges the one still held under the
|
||||
instance's subject, through the tool runner's purge of one snapshot that the removal of G §587 uses today (mesh-tools
|
||||
`node-tools/internal/ledger`, `Snapshots.Purge`, on the module's ledger connection, which holds that purge's grant),
|
||||
so once the key has gone no snapshot of it remains. A ledger whose instances never end, as the knowledge base's,
|
||||
writes every snapshot with none, never expiring, as ADR 0597 §8 has it. The bus removes the key when its lifetime
|
||||
ends, with no loop or timer of the owner or the tool runner (ADR 0682 §11; principle 1), and a watch of the state
|
||||
hands it as a removed key (the bucket's delete marker, which the keeper gives one second). An index key (ADR 0597 §4)
|
||||
carries the lifetime of the instance it names, written so by the owner's watcher and by the repair `reindex` alike,
|
||||
and `reindex` writes none for an instance whose lifetime has ended. The client's update of a key takes no lifetime
|
||||
(nats.go v1.54), so the tool runner writes a state as one publish on the key's subject with the revision it read
|
||||
expected and the lifetime in the bus's header `Nats-TTL`: the compare-and-set ADR 0597 §5 asks, unchanged. The bus
|
||||
serves it: the bus module runs NATS server 2.11.17 (mesh-catalog `modules/nats`, its image and its go.mod),
|
||||
per-message lifetimes exist from 2.11, research 082's Findings tried them on 2.11.17, and the keeper already makes a
|
||||
bucket that allows them (`key-ttl`), and makes the ledger's snapshot store allow them by (3). Built in the tool runner
|
||||
(mesh-tools `node-tools/internal/ledger` and `internal/bus`). ADR 0690 §2; principles 1, 3 and 7.
|
||||
(2) **The gate's ledger.** The gate's `records` gains its own configuration: `max-age-days` 90, its history's keeping
|
||||
days (ADR 0597 §1; none beyond, the operator's answer), and `ended-days` 30 (the operator's answer), beside its
|
||||
option `max-mib` 1024. Its types `record`, `mover` and `act` name `ends-with: ended`; `mover` and `act` gain the
|
||||
field `ended` (an object, the head's `ended` copied) and the operation `end` (set-fields `ended`, with its sequence).
|
||||
A record's end writes the head's `end` first (G §147, §810), then `end` on each of its movers and acts with the
|
||||
head's `ended`; a reopening (H-A-609 (2)) writes `end` with `ended` empty on its movers and acts first, then the
|
||||
head's; so no open head has a mover or an act whose key is ageing (principle 3), and an end written again by a late
|
||||
`running` (H-A-597) moves every one's end alike. A write that fails is said in the journal (the record, the instance,
|
||||
the error) and finished by the pass of `gate_records_follow_ends` ((7)), which the gate makes at each start over the
|
||||
records its watch hands ((5)). The gate applies no operation to a record it no longer reads: an event for one whose
|
||||
key has gone is said in its journal and changes nothing, so no late event brings an ended record back from its
|
||||
history. Fate: the gate's config value `record-retention` (G §154: 90 days from the opening) leaves its manifest and
|
||||
its code; the 30 days are the ledger's `ended-days`, changed by a change of the gate's manifest (principle 11: a value
|
||||
in the manifest, never in the code); the words of a full ledger (`room`, G §181) name `ended-days` or a larger cap
|
||||
where they named `record-retention`. Built in the gate (mesh-catalog `modules/mesh-delivery-gate`). ADR 0656 §7.
|
||||
(3) **The bus module, the manifest validator and what is held.** The bus module plans the state bucket and each index
|
||||
bucket of every ledger at the ledger's cap, its option `max-mib` (ADR 0690 §1, built by H-A-636); for a ledger whose
|
||||
own configuration gives `ended-days`, it plans them with a lifetime per key (`key-ttl`) and the ledger's snapshot
|
||||
store with a lifetime per message (ADR 0690 §2), and writes `ended-days` into the ledger's binding beside its types,
|
||||
so the tool runner reads it from the module's membership. The snapshot store's lifetime per message is the plan's
|
||||
`key-ttl` on a stream: the keeper makes it as the bus's `AllowMsgTTL` and reads it back from a held stream as it reads
|
||||
a bucket's, so its comparison of held and asked settings sees it. Fate: today the keeper makes and reads `key-ttl` on
|
||||
a bucket alone, and the snapshot store takes no lifetime. The manifest validator takes `ended-days` in a ledger's own
|
||||
configuration from 1 to 3650 and refuses an `ends-with` naming no field of its type's schema, a ledger giving
|
||||
`ended-days` with no type naming `ends-with`, and a type naming `ends-with` in a ledger with no `ended-days`, each
|
||||
naming the field (ADR 0595 §8). mesh-sdk's catalog package gains `ends-with` on a ledger type and the configuration
|
||||
name `ended-days`, and its membership's ledger binding `ended-days`. The gate's held `records` then differs from what
|
||||
is asked: its history kept for good against 90 days, its state and index buckets with no lifetime per key, and its
|
||||
snapshot store with no lifetime per message; its state and index buckets are held at its `max-mib` of 1 GiB since
|
||||
mesh-catalog #751, as asked (read 2026-11-25 12:25 CET, ADR 0690's Context). None of the three only grows, so the bus
|
||||
module raises `drifted`, and only its `recreate`, on the operator's warrant after the stream snapshot, applies them
|
||||
(ADR 0595 §5). That `recreate` rebuilds from its data where the bus allows it, as §5 has it: after the snapshot the
|
||||
keeper changes each object of the entry in place where the bus takes the asked settings on a held object (a shorter
|
||||
age, a smaller cap, a lifetime per key or per message turned on), keeping what those settings keep (a smaller cap the
|
||||
newest that fit), and deletes and makes again empty only an object the bus refuses to change in place (a lifetime per
|
||||
key or per message turned off, another retention); the ask its tool raises names, per object, which of the two it
|
||||
does. Fate: today the keeper deletes and makes again empty every object of the entry, which for the gate's `records`
|
||||
would remove every record, open ones included. Built in the bus module (mesh-catalog `modules/nats`), the manifest
|
||||
validator (mesh-delivery `modules/mesh-delivery-indexer/judge`) and mesh-sdk. ADR 0690 §1, §2; ADR 0595 §2, §5, §8;
|
||||
principle 3.
|
||||
(4) **What the replay, the repairs and the snapshot do with an ended instance.** No read replays: `get` and `watch`
|
||||
answer the state as the bucket holds it, null for a key gone (ADR 0597 §10). `apply` replays an instance whose state
|
||||
is behind its history (ADR 0597 §5): for one whose key and snapshot have gone with their lifetime, from the operations
|
||||
its history still holds, which may lack its oldest once the history's keeping days have removed them (ADR 0690's
|
||||
Consequences). The gate applies none ((2)); an owner that does gets the instance back with its new operation, kept
|
||||
only by the lifetime that state gives ((1)), so an instance still ended past `ended-days` is not written again.
|
||||
`rebuild` derives each instance from its history or its snapshot and writes it and its snapshot with their lifetime by
|
||||
(1): it brings back none past its lifetime and leaves no snapshot of one, and gives each instance held before this
|
||||
answer, and its snapshot, its lifetime. The repair `snapshot` rewrites a snapshot behind its state with that state's
|
||||
lifetime, and writes none for an instance whose lifetime has ended ((1)). `lag`, and the index's condition of ADR 0597
|
||||
§4, count an instance whose lifetime has ended, its state and its snapshot gone, as not behind. `get` and `watch`
|
||||
answer beside an instance's state its `expires` (`ended-at` plus `ended-days`), absent while it has not ended. Fate:
|
||||
every snapshot is written today with no lifetime (ADR 0597 §8 as accepted), so an ended record's last state would stay
|
||||
after its key and its operations had gone, read by nothing but a repair that must not bring it back; the snapshots
|
||||
held before this answer take their lifetime, or go, at (10)'s `rebuild`. Built in the tool runner and mesh-sdk's
|
||||
`buscalls` (`InstanceState` and a watch's change gain `expires`). ADR 0690 §2; ADR 0597 §5, §8 as ADR 0690 §2 changes
|
||||
it, §10; principles 3 and 4.
|
||||
(5) **How the gate lists its records.** The gate keeps the key and the opening of every record its ledger holds from
|
||||
a watch of its own ledger's `record/>` (ADR 0597 §10's `watch`: the current states at its start, then each change; a
|
||||
key gone by its lifetime handed as removed and forgotten, and a listed record whose key reads null dropped as well),
|
||||
and every reader of the records lists them from it, the oldest opening first, reading each as today: the judgement,
|
||||
`gate_records`, the counts of `delivery_status`, `deliveries` and the records the gate takes up at its start
|
||||
(ADR 0682 §11: a part keeps watched copies of its own states). So no reader needs a month list `held/<yyyy-mm>`: the
|
||||
gate writes none at an open, and `held/months` is not made. The type `held` loses `hold` and `drop` and gains
|
||||
`forget` (the effect `remove` naming no map, which empties the instance's state, ADR 0597 §2), which the gate applies
|
||||
at its start to each month list a watch of `held/>` hands with a state (today `held/2026-11`, 978 entries); the type
|
||||
stays declared, so the replay of its operations, kept up to 90 days, reads them. Fate: `List` and `months`, which read
|
||||
the month lists within the retention and a month more from the opening and so missed an open record older than
|
||||
that, go. Principle 7.
|
||||
(6) **What goes.** The gate deletes nothing: its sweep at each open (`Sweep`) and that open's refusal ("the records
|
||||
past their retention cannot be removed, so no record is opened") go. G §587's `mesh/ledger.remove` loses its one
|
||||
caller and goes, with its request and answer (`LedgerRemoveRequest`, `LedgerRemoved`) in mesh-sdk's `buscalls`, the
|
||||
tool runner's removal and its place among the calls of `ledger-upkeep-calls`, and its purge of an instance's
|
||||
operations from the history (`History.Purge`), which nothing else calls; its purge of one snapshot (`Snapshots.Purge`)
|
||||
stays, called by `rebuild` and the repair `snapshot` ((1)); `mesh/ledger.fill` stays, and the tool runner answers it
|
||||
to a bundle for its own ledgers, which it does not today. The first form's `gate_records_retention`,
|
||||
`gate_records_delete`, `held/months` and the gate's deletion at each open are not built. G §154's `freed` at a removal
|
||||
ends: the revisions a record names are kept by the indexer's pins (H §749, H-A-566, H-A-572), not by the record, and
|
||||
the seat `mesh-delivery`'s definition declares neither `pinned` nor `freed`. No event is added for an expiry: no part
|
||||
acts on one. Principle 7.
|
||||
(7) **Its tools** (principle 4; G §159's four lines). `gate_records_expiring` reads what goes when, removing nothing:
|
||||
given `within` (days, 1 to 3650, default the ledger's `ended-days`), every ended record whose key expires within it,
|
||||
the soonest first (its key, opened, ended, `expires`, its movers and acts as counted and as the indexes name them),
|
||||
and how many open records are kept whatever their age, within §811's 768 KB with `capped`, `total` and the cursor.
|
||||
`gate_records` answers beside the records the ledger's `ended-days`, its keeping days and the soonest `expires`.
|
||||
`gate_records_follow_ends` (`why`, required) does by hand the gate's pass at its start: it gives every mover and act
|
||||
of an ended record that record's `ended` where they hold another, and takes it from those of an open record, reading
|
||||
them through the indexes `movers` and `acts`; it answers each record and the instances it wrote, and is recorded in
|
||||
the hand-act log of the seat `mesh-hand-acts`, as `gate_record_end` is (G §159). The tool runner's repairs of the
|
||||
gate's ledger (`ledger_rebuild`, `ledger_reindex`, `ledger_lag`) repair what (1) keeps. Built in the gate.
|
||||
(8) **Its size.** G §155's estimate is replaced by the case's figures, each about: a state key 3.9 KiB (67,108,471
|
||||
bytes in 16,869 keys), 22 instances a record (21,969 for 978), so 87 KiB of state a record; 226 KiB of history and 121
|
||||
KiB of snapshot a record; 98 records a day over the case's ten days. The state, at the ledger's cap of 1 GiB (ADR 0690
|
||||
§1; H-A-636), holds 30 days of ended records below about 400 records a day, and stays under the bus module's raise
|
||||
mark of 75% below about 300; at the case's rate 30 days need about 250 MiB, at G §155's estimated 20 a day about 51
|
||||
MiB. The history, at 1 GiB, holds 90 days below about 51 records a day (at the case's rate about 1.9 GiB). The
|
||||
ledger's snapshot store, each snapshot going with its key ((1); ADR 0690 §2), holds 30 days of ended records and the
|
||||
open ones: at the case's rate about 350 MiB, at 20 a day about 71 MiB, and it reaches its 1 GiB only above about 290
|
||||
records a day, when, as the bus module plans it, it drops its oldest. Above those rates the state refuses when full
|
||||
and loses no operation (ADR 0597 §6), the history refuses when full (G §181's `full`), and the bus module's condition
|
||||
says which object is full ((9)); the state's room grows with the ledger's `max-mib` alone, a change of the gate's
|
||||
manifest (ADR 0690 §1; principle 11).
|
||||
(9) **The bus module names the object it judged.** (ADR 0595 §6) The bus module's fill pass already reads each
|
||||
object of an entry that refuses when full and keeps the highest share; `full` and `full-cleared` carry that object:
|
||||
`object` (its bus name), `part` (its place in the entry's binding: `history`, `state` or `index <name>` for a
|
||||
ledger; the entry itself where it has one object), `bytes` and `cap`; their `why` and the condition's text name it
|
||||
(for the case above: the state `KV_mesh-delivery-gate_records_state` of `records` of mesh-delivery-gate holds 75%
|
||||
of its cap). The seat `mesh-broker`'s `show` answers in `fill`, beside the sum, `objects`: each object's bus name,
|
||||
part, bytes, cap and share; `nats_history` shows the new fields as it shows the rest. Built in the bus module
|
||||
(mesh-catalog `modules/nats`) and the seat `mesh-broker`'s definition (mesh-contracts). Principles 3 and 4.
|
||||
(10) **The order after H2's delivery.** First the operator's warrant for the bus module's `recreate` of the gate's
|
||||
`records` ((3); one ask, said to the operator before it is raised, naming each object it changes in place). Then by
|
||||
hand, each a hand act: `ledger_reindex` of `movers` and `acts`, so the indexes name each record's movers and acts
|
||||
(they held no key in the case); `gate_records_follow_ends`; `ledger_rebuild` of the whole ledger, so every instance
|
||||
held before this answer, and its snapshot, gets its lifetime, and no snapshot of one past it stays ((1), (4)); and
|
||||
`ledger_reindex` of both again, so their keys take those lifetimes. The 840 records ended at H1's clean state then go
|
||||
on 2026-12-20.
|
||||
How it is checked: rows of the tool runner's ledger unit tests, never a new top-level test function: an instance whose
|
||||
`ends-with` field gets a value is written with a lifetime of `ended-days` from that operation's `at`, and one emptied
|
||||
again with none; an end written again moves `ended-at`; a `rebuild` of an instance ended past `ended-days` writes no
|
||||
state and deletes the key held; and the snapshot, by write path (ADR 0690's How it is checked): through `apply`, an
|
||||
operation that ends an instance writes its snapshot with the same lifetime as its state, one that reopens it writes
|
||||
its snapshot with none, and in a ledger whose instances never end every snapshot is written with none; through
|
||||
`rebuild`, an instance ended within its lifetime gets its state and its snapshot with the same lifetime, an open one
|
||||
both with none, and one ended past its lifetime neither, its held snapshot purged; through the repair `snapshot`, an
|
||||
ended instance's snapshot is written with its state's lifetime, an open instance's with none, and none is written for
|
||||
an instance whose lifetime has ended, the one held purged; `reindex` writes an instance's index keys with its lifetime
|
||||
and none past it; `lag` counts it not behind; `get` answers `expires`. A case of the ledger's one integration test on
|
||||
the real bus, the day shortened in the test: a key written with a lifetime of two seconds is gone after them and a
|
||||
watch hands it removed, and a racing writer of a key with a lifetime is refused; after an ended instance's lifetime
|
||||
its state key and its snapshot are gone while its operations are still in the history, and an open instance's snapshot
|
||||
stays. Rows of the keeper's plan tests: a ledger with `ended-days` plans its state and index buckets with a lifetime
|
||||
per key at its `max-mib` and its snapshot store with a lifetime per message, and writes `ended-days` in its binding,
|
||||
one without plans neither; a held stream's lifetime per message is read back, so a snapshot store without it drifts;
|
||||
rows of its `recreate` tests: a shorter age and a lifetime per key or per message turned on are changed in place with
|
||||
their data kept, a lifetime per key or per message turned off is made again empty, and the ask names which. Rows of
|
||||
the manifest validator's unit tests: `ended-days` 0 and 3651 refused and 30 taken; an `ends-with` naming no field
|
||||
refused; `ended-days` with no `ends-with`, and the reverse, refused. Rows of the gate's record unit tests in
|
||||
`record_test.go`, in place of the rows of `record-retention`: an end writes the head, then each mover and act with its
|
||||
`ended`; a reopening empties the movers' and acts' first, then the head's; a failed write is said and the start's pass
|
||||
finishes it; an event for a record no longer read changes nothing and is said; a removed key drops the record from
|
||||
every list; `held/2026-11` is forgotten at a start; and the gate's manifest gives `ended-days` of 7 or more, since
|
||||
`gate_times` answers the last seven days (G §810). The gate's whole test's case of G §160, "a record past its
|
||||
retention is removed", becomes "an ended record's movers and acts take its end, and an open record's take none". A row
|
||||
of the bus module's fill pass unit tests: an entry whose state is at 75% and whose history is at 20% says `full`
|
||||
naming the state, and `show` answers each object. Live, after H2's delivery and (10): `mesh-broker.show` of the gate's
|
||||
`records` names its state and index buckets with a lifetime per key at 1,073,741,824 bytes, its snapshot store with a
|
||||
lifetime per message and its history at 90 days; `gate_records_expiring` names each ended record's `expires` 30 days
|
||||
after its end and no open record; from 30 days after (10)'s rebuild, while the rate of (8) holds, the gate's state
|
||||
stays under the raise mark of its cap and the bus module's condition for `records` stays cleared, and the bus module's
|
||||
`nats_streams` counts no more snapshots in the gate's snapshot store than keys in its state bucket; `nats_history` of
|
||||
the gate's `records` names the object in its `full`. ADR 0656 §7, §10; ADR 0690 §1, §2; ADR 0597 §1, §4, §5, §8, §10;
|
||||
ADR 0595 §2, §3, §5, §6, §8; ADR 0682 §11; principles 1, 3, 4, 7 and 11.
|
||||
|
||||
## Answers of 2026-11-24 from 01:08 CET
|
||||
|
||||
- **H-A-635 (a slow pass of the assigner says which phase it is in, 01:08)** 24 Nov, issue 1984; answers the stall met
|
||||
2026-11-23 23:53:48 UTC: the assigner on one machine logged "the pass took" (H-A-259) every 20 s, then nothing for six
|
||||
minutes at near-zero CPU while every validate and composition step of a 70-mover pipeline waited; a read of its locks
|
||||
found no cycle, and no tool takes a stuck process's stacks, so where it stood is not known. The pass names the phase it
|
||||
is in as each starts (the assignments seat, the kept graph, the wants, the pass said, the puts, the node wants, the
|
||||
backups and reverts), in the passer's own memory; a pass still running after the assigner setting
|
||||
`pass-stall-seconds` (10 to 600, default 60) says once in the journal "the pass started at <time> is in <phase> for
|
||||
<duration>", and again at each further bound until it ends; the end line stays as H-A-259 has it (principle 3: a part
|
||||
that waits says where; principle 11: the bound is a setting; principle 7: a journal line in the passer, no new key or
|
||||
event, since no other part acts on it). How it is checked: a unit row where a phase blocks past a short bound and the
|
||||
journal line names that phase, and none is said for a pass that ends within it. Principles 3, 7 and 11.
|
||||
- **H-A-636 (a ledger's state and index buckets take the ledger's cap, 01:31)** 24 Nov; answers the condition "Kept data
|
||||
is filling up" of the delivery gate's records (open since 2026-11-23 10:20 CET): the gate's ledger asks `max-mib`
|
||||
1024, which sizes its history and its snapshot, while the bus module plans the ledger's state bucket and each index
|
||||
bucket with no option (mesh-catalog modules/nats internal/keeper/plan.go, the ledger case,
|
||||
`stateSettings(options{})`), so each is the state default of 64 MiB whatever the module asks; the gate's state bucket
|
||||
is full since 2026-11-23 11:48 UTC, its operations kept in the history and the state behind (ADR 0597 §6). The
|
||||
ledger's state bucket and its index buckets take the ledger's own `max-mib`, as its history and snapshot do, through
|
||||
the existing `stateSettings` cap; no other option of the ledger reaches them (principle 11: no cap fixed in code;
|
||||
principle 7: the entry's one existing option, no new one). A raised cap reaches a held bucket through the keeper's
|
||||
existing path for larger settings, in place, and the state catches up by replay (ADR 0597 §5). In the bus module
|
||||
(mesh-catalog). How it is checked: a row of the keeper's plan tests (a ledger with `max-mib` 1024 plans its state and
|
||||
index buckets at 1 GiB, one with none at the default); live, `mesh-broker.show` of the gate's records names its state
|
||||
bucket at 1 GiB and the condition clears. **It stands by ADR 0690 §1** (accepted 2026-11-25 on the operator's
|
||||
Approve), which decides the cap it gave and changes ADR 0595 §3; H-A-638's withdrawal of it is dropped. Its checks
|
||||
gain two of that record's rows: a ledger with `max-mib` 1024 and its history's keeping days of 90 plans its state and
|
||||
index buckets at 1 GiB too, so no other option sets their cap; and a row of the bus module's fill pass unit tests,
|
||||
where a ledger whose state bucket holds 100 MiB under its cap of 1 GiB says no `full`, and at 75% of 1 GiB says `full`
|
||||
naming its state (H-A-634 (9)). ADR 0690 §1; principles 7 and 11.
|
||||
- **H-A-637 (the pipeline runner's test-run test waits on what it causes, never on a clock across a restart, 01:59)** 24 Nov,
|
||||
issue 1984; answers the failure of main.512 (mesh-delivery-pipeline's integration step on a loaded build node, "1 failed:
|
||||
TestTestRunsAreAskedOncePerLevelAndMoveEveryReader", which the same commit passed in main.511): the test writes the
|
||||
setting test-step-bound "2s", restarts the runner inside the test while that clock runs, and needs the restarted
|
||||
runner to hear its first step-progress before the clock ends; under load it did not (testruns_integration_test.go:411,
|
||||
60 s); two more waits of the same test fail under load (:357, the ask read once; :519, cause not known). The test
|
||||
restarts the runner under a bound longer than the restart (the setting rewritten to the short bound between the stop
|
||||
and the start), its start waits for the new runner's own take-in line, the ask is waited for as every other wait is,
|
||||
a wait whose run has ended stops at once naming it, and :519's cause is read before it is changed (principle 3: a
|
||||
check fails only for the change it checks, never for the machine's load; principle 7: the test's own waits, no new
|
||||
seam). Test-only: no behaviour of the runner changes. How it is checked: the test passes 10 of 10 runs pinned to one
|
||||
core under three busy loops, and fails at once when the runner's real behaviour it checks is taken out. Principles 3
|
||||
and 7.
|
||||
|
||||
## H-A-636 against design 25, settled by ADR 0690 (2026-11-24 from 21:30 CET; 2026-11-25)
|
||||
|
||||
- **H-A-638 (dropped 2026-11-25: H-A-636 stands)** It withdrew H-A-636 on 24 Nov at 21:55, since ADR 0595 §3 then gave a
|
||||
ledger's state and index buckets a state's cap of at most 64 MiB, and planned the revert of the change that built
|
||||
H-A-636 (mesh-catalog `modules/nats`, the ledger case of the keeper's plan, 0f648e26 on main) in H2. ADR 0690 §1,
|
||||
accepted 2026-11-25, decides the cap H-A-636 gave, so the withdrawal and the revert are dropped, as that record's
|
||||
Consequences say: nothing of H-A-638 is built, the row H-A-636 added to the keeper's plan tests stays, and the gate's
|
||||
state and index buckets stay at their `max-mib` of 1 GiB. ADR 0690 §1.
|
||||
|
||||
## The prepare's questions of the code milestone "design 47 H2's corrections" (2026-11-25 from 13:01 CET)
|
||||
|
||||
The milestone file (hq `.work/47-H2-corrections/milestone.md`) lists 36 design questions (DQ) and 12 places where a
|
||||
line and the code disagree (DMC). Five research-readers read each at today's mains (mesh-delivery 3b1f03ce,
|
||||
mesh-catalog 17e1bfb6, mesh-sdk bb11615, `mesh-host` d27af83, mesh-contracts 52e5224); each answer below rests on that
|
||||
reading and names the principle that settles it. Scope questions DQ-5, DQ-10, DQ-12, DQ-23, DQ-30 (and DMC-6, which
|
||||
follows DQ-12) wait for the operator; DMC-2, DQ-25 and DQ-27 go to hq-design-writer as design lines, since no
|
||||
principle settles them (H-A-682 to H-A-684, below).
|
||||
|
||||
- **H-A-639 (DQ-1: which manifest reads leave mesh-sdk)** `ManifestNeeds` and `ModuleNeeds` move whole into the
|
||||
indexer's manifest validator (their only callers); `MissingManifestReads`, `StatedManifestReads`, `BaselineManifestReads` and
|
||||
`manifest_reads_baseline.txt` are deleted, since no reader is left once `graph.MissingReads` (called by its test
|
||||
alone) goes; the node-engine's (`mesh-host`) `packaging/operator_keys_test.go` row that reads them goes too (it guards a word hold H §750
|
||||
ended); `ManifestReads` and its three prefixes stay with the manifest model the node-engine states from.
|
||||
Principles 7 and 9.
|
||||
- **H-A-640 (DQ-2: the new value of the node-engine seat)** `directory-contents-owner` joins `ManifestReadWord`'s enum
|
||||
with no form raise (no message names the type; §780 raises a form only for a field added or removed); its description
|
||||
names both values. Principle 7.
|
||||
- **H-A-641 (DQ-3: the units stopped for the owner pass)** When a declared directory exists with a found owner other
|
||||
than its declared one, the node-engine stops the module's units with `StopModule`, widened to its processes, before
|
||||
the first pass; the normal apply starts them again; the tool runner is never stopped; the pass back follows the same
|
||||
rule. Principles 2 and 7.
|
||||
- **H-A-642 (DQ-4: the token files that go, and when)** The four token files (`token`, `packages-token` and their
|
||||
`.scopes`), and any `.tmp` beside them, go pair by pair inside `doMint`'s first-mint drop: each pair matched to its
|
||||
token by its last eight characters and its scopes, revoked at the forge, then deleted; a pair with no match is kept
|
||||
and said. This is H-A-602's order. Principles 12 and 3.
|
||||
- **H-A-643 (DQ-6: one delivering pipeline per head revision)** `start` with `modules` follows `module`'s rule per
|
||||
module (H-A-571, H-A-594 (3), H-A-607 (3)): it joins the head's pipeline while that waits or runs, else a pipeline
|
||||
keyed `<branch>.<rev>`; a module whose own step failed reopens its pipeline as `rerun` does; `startAgain` and the
|
||||
`.unfinished` start go; both old key forms stay readable, marked as kept from before, until the last such key ages out
|
||||
(the ager: 7 days failed, 90 passed). Principles 7 and 3.
|
||||
- **H-A-644 (DQ-7: `place-unfinished` with `all`)** The verb gains a boolean `all`; exactly one of `key` or `all`; one
|
||||
hand act per call; the seat's form rises 12 to 13 once, together with `mover-added`. Principles 4 and 9.
|
||||
- **H-A-645 (DQ-8: `mover-added`'s subject and form)** `mover-added.<branch>.<revision>` from the runner's
|
||||
`subjectRevision`, the pipeline's key in the body; exactly one of `from`, `caller` or `take-in`, a reader refusing
|
||||
none or two; the gate consumes `mover-added.*.*`. Principles 7 and 3.
|
||||
- **H-A-646 (DQ-9: the edge that ties a carried mover)** A mover is tied to a failed one when it has an `awaited` edge
|
||||
from it (kind 1, the package published; kind 3, the build step passed), directly or through others; the tied group
|
||||
is closed under the tier kinds. The runner's own `awaited` is reused (principle 7); kind 3 is in because a dependent
|
||||
carried without its failed build module or image base would be built by another version than its pipeline waited
|
||||
for (principle 3). Principles 7 and 3.
|
||||
- **H-A-647 (DQ-31: the keys main.454 to main.493 left)** `runner_unfinished` answers none today; H-A-607 (4)'s acts
|
||||
read it before and after and act on what it holds; H-A-619's live check reads as H-A-625 (4) says: each main.457 mover
|
||||
whose own steps passed is wanted at its fingerprint or newer, read through `mesh-wants` before main.457 ages out
|
||||
(about 2026-11-30), otherwise on the next failed pipeline's keys. Principle 3.
|
||||
- **H-A-648 (DMC-4: the gate's held commit)** The milestone takes fa345c83 (branch hold/gate-h-a-585) onto its branch,
|
||||
resolves its one test conflict, then makes `RanAfterEnd` follow H-A-597 and H-A-617 (the first `running` per machine
|
||||
present at the end; a machine back moves nothing; `record-ended` again with `ends` plus one) and adds `mover-added`
|
||||
(H-A-609 (2)). Principles 7 and 3.
|
||||
- **H-A-649 (DMC-5: "could-not-run" as a pipeline's end)** No pipeline outcome is added: "could-not-run" in §786,
|
||||
H-A-581, H-A-594 (2), H-A-595 and H-A-607 (2) reads as a pipeline ended failed by a step that could not run, that
|
||||
mover counted failed; the outcomes stay passed, failed and cancelled. Principle 7.
|
||||
- **H-A-650 (DMC-10: `step-ended`'s `revision`)** No new field: `revision` (omitempty) is described "present exactly
|
||||
when superseded", the seat's form rising to 4; P1 turns the zero path into H-A-601's could-not-run; and where the
|
||||
builder heard no superseding revision for the module, it ends the step could-not-run itself, naming that, never
|
||||
with a zero. Principle 3.
|
||||
- **H-A-651 (DQ-11: subjects the indexer no longer consumes)** I9 is built here as H-A-578 (2) says, in the indexer's
|
||||
first change after the narrowing, which needs the bus module's narrowing tool (G5) delivered first; until then the
|
||||
hub's `event-unhandled` finding says each message it acknowledges. Principle 3.
|
||||
- **H-A-652 (DQ-13: one `again` in flight per holder, four `live`)** Per holder two durables on the work queue
|
||||
`publishes`: `.live.>` with four in flight and `.again.>` with one; the one durable `publishes-<holder>` is deleted
|
||||
first, since its filter overlaps both. This amends H-A-483's addendum, whose split was withdrawn only for an order of
|
||||
live before again that H-A-620 (2) no longer asks. Builder only. Principles 1 and 3.
|
||||
- **H-A-653 (DQ-14: an item past its deliveries)** The limit stays 10 (the work queue's declared `max-deliveries`, ADR
|
||||
0436 §6); at the delivery where an item reaches it the builder terminates the item and raises `version-unreleased`
|
||||
"given up after 10 deliveries", never leaving it dead on the queue (H-A-620 (1) needs this too). Principle 3.
|
||||
- **H-A-654 (DQ-15: the publish loop after a pull error)** Only the publishes' dispatch changes, to the step queue's
|
||||
shape: `Consume`, bound again on the consumer's created and deleted advisories, so an error never ends it. Principles
|
||||
3 and 7.
|
||||
- **H-A-655 (DQ-16: many dead items)** No new form: H-A-653 stops new dead items; today's items are dropped with
|
||||
`builder_publish_drop` or age out under the stream's seven days. Principle 7.
|
||||
- **H-A-656 (DQ-17: a reservation with no upstream)** At the republisher's read of the entry at the reservation's
|
||||
fingerprint, the builder fills the reservation's `upstream` once by compare-and-set, so every reader agrees; this
|
||||
amends H-A-486's addendum. Builder only. Principles 3 and 7.
|
||||
- **H-A-657 (DMC-9: the module of a durable)** The bus module's tool asks the seat `mesh-catalog`'s `modules` for the
|
||||
module's trunk fingerprint, then `entry` with it; both join the nats module's invokes. Principles 7 and 1.
|
||||
- **H-A-658 (DMC-11: `sdkstep.Passing`)** It reads as `buildstep.IsPassing`; `errorKindStopping` and `stopping` go; the
|
||||
type `Passing` stays. The code settles the reading.
|
||||
- **H-A-659 (DQ-18: a blank carried into a later revision)** It is built: a view read back from a revision fills a
|
||||
package with no version from the series' pin, so a mover's blank at one revision is never carried into an entry of
|
||||
the next that is no mover there. Checked by a row of the take-in's tests with two take-ins of one branch (the row in
|
||||
`TestMoversOf` cannot fail). Principles 3 and 7.
|
||||
- **H-A-660 (DQ-19: pins follow the newest released version)** A pin names the newest version of the series the indexer
|
||||
itself released (its versions state), never the newest heard published; this amends H-A-495's addendum; indexer
|
||||
only. Principles 3 and 7.
|
||||
- **H-A-661 (DQ-20: a reserve for a released fingerprint)** `builder_reserve_done` refuses a fingerprint the record of
|
||||
releases holds, "its version is released". Principles 3 and 7.
|
||||
- **H-A-662 (DQ-32: who builds again a done key a holder refused)** At `MarkUnstored`'s first true for a done trunk key,
|
||||
the builder starts `BuildAgain` itself, as it does for a key moved elsewhere, once per reservation (held by the kept
|
||||
`unstored`); `builder_build_again` stays the person's tool. Principles 3, 4 and 7.
|
||||
- **H-A-663 (DQ-33: a kept `published` counts as held)** Yes: a kept `published` at V whose digest the registry's
|
||||
`versions` still answers at V counts as held for F. Principles 2 and 7.
|
||||
- **H-A-664 (DQ-34: what a missing artifact clears)** In the same compare-and-set as H-A-588 (4)'s marking, each missing
|
||||
artifact's recorded digest and the reservation's `built-at` are cleared; `unstored` is kept (it is true, and
|
||||
clearing it would start H-A-662 again in a loop). Principles 3 and 7.
|
||||
- **H-A-665 (DQ-35: tagging a held build's bytes with a new number)** `builder_reserve_done`'s tagging path retires; the
|
||||
build step's failure words name `builder_build_again`. Principles 3 and 7.
|
||||
- **H-A-666 (DQ-36: "the builder's start pass")** It reads as a key's first look after the builder starts; H-A-588
|
||||
(4)'s read sits in `try` between the reserve and the build. Principle 7.
|
||||
- **H-A-667 (DMC-7: the registries' `fingerprint` field)** No definition change and no form raise: the field exists in
|
||||
all four seats; the holders fill it (G3). Principle 7.
|
||||
- **H-A-668 (DMC-8: the merge order of a partly published version)** B3 to B5 and G3 merge in one call (H-A-618 (1)),
|
||||
in the order the module graph gives (H-A-589 (6)). Principles 3 and 9.
|
||||
- **H-A-669 (DMC-1: moving `ManifestNeeds`)** No new mesh-sdk export: the manifest validator reads the manifest's JSON field by field through
|
||||
`catalogue.Manifest` and takes a key only where `ManifestReads()` names its path; a unit test holds that reading equal to
|
||||
`ManifestReads`' words, so a difference fails. Principles 7, 9 and 3.
|
||||
- **H-A-670 (DMC-3: the own-put rule's one place)** The commit e76cc064 (mesh-catalog's `checks/ownaccount`, which reads
|
||||
only mesh-catalog's own manifests) is left out; I2 builds the rule in the manifest validator, beside its runs-as rules. Principles
|
||||
7 and 10.
|
||||
- **H-A-671 (DMC-12: the widened mesh-sdk test)** S1 adds `ManifestNeeds`, `ModuleNeeds` and H-A-639's deleted reads
|
||||
to `TestMeshSDKHoldsOnlyWhatEveryModuleShares`' refused functions, and a refusal of the constant
|
||||
`ReadDirectoryContentsOwner`; the judge-free shape test and mesh-catalog's `checks/sdkjudge` stay. Principle 7.
|
||||
- **H-A-672 (DQ-21: an importer of a changed package is no mover)** Fixed here, indexer only: the import form takes no
|
||||
accepted-series override and reads each package's digest from its publisher's entry (H-A-580); the whole test's
|
||||
third merge asserts the importer is a mover (H-A-521, H-A-530). Principles 3 and 7.
|
||||
- **H-A-673 (DQ-22: a want that names no version)** Fixed here: the node-engine says "the want names no version" (not
|
||||
"no digest"), and the assigner rewrites a want that differs from §750's target, raising a finding where the target
|
||||
refuses (G-22's A-462 is not built on main). Principles 2 and 3.
|
||||
- **H-A-674 (DQ-24: the builder silent 19:55 to 20:00)** Its cause is read: one slow `manifest-reads-changed` handler
|
||||
held the one worker every node-engine event shares; it is DQ-25's kind, met twice in an hour, and is built with
|
||||
DQ-25's line. Principles 1 and 3.
|
||||
- **H-A-675 (DQ-26: the keeper's conditions read)** Nothing built: the assigner's words are on the machine that runs it; they are read once
|
||||
that machine answers, and a cause found then is answered then. Principle 3.
|
||||
- **H-A-676 (DQ-28: the README's checks)** mesh-delivery's README says what checks a change, read from the checker
|
||||
(merge-check.sh went with issue 1295). Principle 3.
|
||||
- **H-A-677 (DQ-29: `composition-diff` not found)** Its description gains "difference" and "compare". Principle 4 and
|
||||
one-question-one-tool; the node-engine seat package's digest moves, so its importers rebuild.
|
||||
- **H-A-678 (ADR 0690's state entries at 64 MiB)** ADR 0690 §1 keeps a state entry's bucket at 64 MiB, which G-22's
|
||||
A-277 (a state's `max-mib` 1 to 8192) contradicts; the record holds over a lead answer: the manifest validator refuses
|
||||
a state's `max-mib` above 64; a held state entry that asks more (mesh-build-go's `steps`, 128 MiB) is set to 64 in
|
||||
its manifest when its fill is under 64 MiB, and the operator is asked first when it is above. ADR 0595 §3, ADR 0690
|
||||
§1; principles 3 and 7.
|
||||
- **H-A-679 (H-A-634: writes before the lifetimes are allowed)** Between H2's delivery and H-A-634 (10)'s `recreate`,
|
||||
the tool runner writes the gate's state and snapshots with no lifetime and says so once in its journal; (10)'s
|
||||
rebuild sets them. Principles 3 and 7.
|
||||
- **H-A-680 (H-A-634: the gate's history cap)** The gate's records ask `max-mib` 2048, since 90 days of history at the
|
||||
measured rate need about 1.9 GiB (H-A-634 (8)). Principle 11.
|
||||
- **H-A-681 (H-A-634: the ledger account's purge grant)** The ledger account's grant to purge a history goes, since no
|
||||
caller is left after H2; the snapshot purge stays. Principle 7.
|
||||
|
||||
## The design lines of the three questions no principle settles (2026-11-25 from 13:05 CET)
|
||||
|
||||
Written by hq-design-writer under the records each follows (playbook 02, *Answering a design question*, item 1), from
|
||||
the research-readers' reading of the same mains.
|
||||
|
||||
- **H-A-682 (DMC-2: the indexer names each entry's needs, and the assigner holds a node's want for a need its
|
||||
node-engine does not state)** 25 Nov. Where met (mesh-delivery 3b1f03ce): the indexer's `CatalogEntryOf`
|
||||
(`internal/index/catalog_graph.go:33`) fills no `needs`, and `ModuleValueOf` says "the reader needs are not kept"
|
||||
(`:70`), while the take-in writes them on the module's value (`modules.go:105-108`); the assigner copies `e.Needs`
|
||||
(`cmd/mesh-delivery-assigner/halves.go:164`) and compares a node's words only for `want:version` (`pass.go:263-266`);
|
||||
`graph.MissingReads` has no caller. The records settle who reads them. ADR 0614 §4 is in force, read with ADR 0618
|
||||
§1 and ADR 0624 §2, whose second sentence keeps "a hold for a manifest word or seat name the engine does not state"
|
||||
as ADR 0614 §4 has it. ADR 0682 §9 ends the holds it names (the canary, a grant, a provision, a served verb, bus
|
||||
state, an acting part's build) and changes no clause of ADR 0614, so ADR 0682 §8's "whole want rule" is the rule of
|
||||
which version a want names and the order its writes follow, and the hold of a node whose node-engine cannot read the
|
||||
manifest stands beside it: §772 is that hold for one capability, `want:version`, and H-A-568, H-A-569 (2), H-A-586
|
||||
and H-A-622 already rest on it. So H §750's "The want is held for nothing else" reads "for nothing else than a reader
|
||||
capability its node-engine does not state (ADR 0614 §4), §772 being its first case"; no record is needed.
|
||||
(1) **The entry carries its needs.** `CatalogEntryOf` writes the entry's `needs` (the seat `mesh-catalog`'s
|
||||
`CatalogEntry` field, a sorted list of reader capabilities, absent when empty) from the module's value: the words,
|
||||
forms and seat names `ModuleNeeds` names, with the manifest validator's rule needs (H-A-568, H-A-569 (2), H-A-605
|
||||
(4)); `ModuleValueOf` reads them back, and its "the reader needs are not kept" goes. The field's description says
|
||||
"as the indexer derives them at the take-in" where it says "as the forge bridge read them at the merge"; no form is
|
||||
raised, since no field is added or removed (§780).
|
||||
(2) **The assigner compares them with the node's words.** The needs of a want are those of the catalog graph entry
|
||||
at the fingerprint it names: the module's entry the assigner holds when that entry names the fingerprint, else the
|
||||
seat `mesh-catalog`'s `entry` for it (G §443's read of a build older than the newest), asked once per fingerprint
|
||||
and kept until the next catalog revision the assigner takes in. A want whose needs hold a capability that the node's
|
||||
words in the assigner's state `engine-reads` (H-A-104: the words of the node's last `manifest-reads-changed`) do not
|
||||
hold is written held: `hold` true and `words` `awaits-reads:` followed by the missing capabilities, sorted and
|
||||
joined by commas (`awaits-reads:directory-contents-owner`); `assign.Module` takes the node's missing needs beside
|
||||
`ReadsVersion`. §772's case is read first and keeps its words `awaits-hand-placement`, since an engine that does not
|
||||
read a want by version reads no want of this form at all. The pass that the node's next `manifest-reads-changed`
|
||||
wakes (as today) writes the want with no hold once the node's words hold every need; a node away keeps its held
|
||||
want and moves on its return (ADR 0603 §7, as ADR 0614 §4 cites it). `assigner_why` names the missing capabilities
|
||||
of a held want and `assigner_engine_reads` the node's words; no state is added. A build key's reference forms add
|
||||
no need: every build keeps a form each counted engine states (ADR 0624 §1), so ADR 0624 §2's hold meets no node.
|
||||
(3) **No baseline.** An engine that states nothing states no `want:version`, so §772 holds it whatever the baseline
|
||||
would hold: reading it as the baseline (ADR 0614 §4) changes no want, and H-A-639's deletion of the baseline stands
|
||||
(principle 7).
|
||||
(4) **A held mover is waited for.** A want held on a present placing machine is a mover not running there, so its
|
||||
tier waits and ends `tier-late` within `tier-bound`, naming that machine (§751): the loud end of a node-engine that
|
||||
did not take its new version (principle 3).
|
||||
(5) **The node-engine's own build is refused, never held.** A mover that claims the seat `node-engine` and whose
|
||||
entry needs a capability that no node's words in `engine-reads` hold would be held on every machine, and no engine
|
||||
could ever state it; so the assigner's validate run adds to its verdict, for that mover's manifest, the problem
|
||||
"needs <capability>, which no node-engine states", counted as a new problem, and its step ends failed
|
||||
`manifest-refused` (ADR 0614 §4's check, a result of the step `validate` by ADR 0682 §5).
|
||||
Built in H2: the indexer (`CatalogEntryOf`, `ModuleValueOf`, the field's description) and the assigner (the want
|
||||
pass, `assign.Wants`, the validate run). How it is checked: unit (indexer): the entry of a module whose value names
|
||||
needs carries them, and the value read back from it names them; unit (assigner, `wants_test.go`): a node whose
|
||||
words lack a need of the want's entry is written held with `awaits-reads:<need>`, one whose words hold it is not, a
|
||||
node without `want:version` keeps `awaits-hand-placement`, a `manifest-reads-changed` naming the need writes the want
|
||||
with no hold, and a want at an older fingerprint takes the needs `entry` answers for it; unit (validate step): a
|
||||
node-engine mover needing a capability no node states ends `manifest-refused` naming it. ADR 0614 §4, ADR 0618 §1,
|
||||
ADR 0624 §2, ADR 0682 §5, §8, §9; principles 3 and 7.
|
||||
- **H-A-683 (DQ-25 with DQ-24 and H-A-674: one key's slow handling holds back no other key's events, a handler lists
|
||||
no keys, and a handling past its bound is a finding)** 25 Nov. Where met (mesh-sdk bb11615, mesh-delivery
|
||||
3b1f03ce): mesh-sdk's `process.HearEvents` (`go/process/module.go:115`) hands a durable's events to its handler one at
|
||||
a time, and the event hub (`EventHub`, `go/process/event_hub.go`) pulls through it; the builder hands its events on
|
||||
by the name they carry (`eventWorkers` and `eventKey`, `cmd/mesh-delivery-builder/eventtake.go`; H-A-514's addenda),
|
||||
every event of the seat `node-engine` under one key; `Retaker.retakeAll` (`internal/build/retake.go:171`) lists every
|
||||
build key and reads each at every `running` and `manifest-reads-changed`, `runningWant` (`:132`) asking the seat
|
||||
`mesh-catalog`'s `entry` first; `engineReads.heard` (`reads.go:148`) asks its node again (ADR 0618 §4). Met twice
|
||||
within an hour on 23 Nov: one node's `manifest-reads-changed` took 10 m 41 s and another's 5 m 53 s, the retake
|
||||
taking each, and meanwhile the builder handled no other event of that seat; the first of the kind was the pipeline
|
||||
runner's `step-ended` (issue 1984 note 6, fixed by mesh-delivery #359). The records place the rule: hearing an event
|
||||
and its kept consumers are the runtime every module uses, in mesh-sdk (ADR 0686 §1), and a pass takes only the keys
|
||||
its input names and reads nothing of its own whole (ADR 0682 §11, one shape in mesh-sdk); so the rule is the
|
||||
runtime's, for every module, and the builder's hand-out by key is that runtime built in one part (principle 7: one
|
||||
copy). A work queue per kind of work (ADR 0595 §2's template) was weighed and not taken: a waiting event is already
|
||||
kept on the bus by its own durable until its handler acknowledges it (H-A-281's in progress), so a queue would keep
|
||||
the same work twice; the builder's publish queue (§793) stays one, since its pieces are many per event and outlive it
|
||||
(ADR 0674 §3).
|
||||
(1) **The hub hands events by key.** mesh-sdk's `EventHub.Handle` takes, beside a pattern and its handler, the key
|
||||
of the pattern's events: a function of a message's subject and body that the module gives, or none. One key's
|
||||
events are handled one at a time in the order heard, the events of different keys side by side, at most
|
||||
`events-at-once` keys at once (a setting each module may set, read by the runtime: 1 to 64, default 8), the others
|
||||
waiting in the order heard; every pattern given no key hands its events under one shared key, so a module that gives
|
||||
none handles them as today. Each message still waiting is said in progress to the bus each time a handling ends
|
||||
(H-A-281's rule, kept), and `HearEvents`' pull stays. The builder's `eventWorkers` and `eventKey` move into the hub
|
||||
with their tests, none left in the builder, which gives its patterns their keys: a registry seat's outcome by its
|
||||
name, `version-released` by its module, and the seat `node-engine`'s `running` and `manifest-reads-changed` by the
|
||||
node their subject names, so a slow handling of one node's event holds back no other node's.
|
||||
(2) **A handler reads only what its event names.** A handler lists no keys of a bucket or stream and reads no state
|
||||
whole (ADR 0682 §11, now for every module's handlers); it reads and writes its own kept data by the keys its event
|
||||
names, and a call it needs is a kept call (ADR 0668) under its event's key. In the builder `retakeAll`'s list goes:
|
||||
the builder keeps in memory each build key whose newest revision failed on a transport fault, with the seat and
|
||||
node `TransportFaultOf` names, filled by its start sweep (`Sweep`, which reads every key once at the start until H4's
|
||||
index of what builds replaces it, §762) and kept by every write of a build's end; an event retakes only the keys of
|
||||
that set whose seat or node it names, and `runningWant` asks `entry` only while the set holds a key.
|
||||
`engineReads.heard` keeps asking its node (ADR 0618 §4), under that node's key.
|
||||
(3) **A handling past its bound is said, and past a longer one is a finding.** The hub times each handling: past
|
||||
`slow-event` (the builder's setting of §794, now read by the runtime for every module, default 100 ms) it writes
|
||||
§794's journal line with the key; when a handling runs past `event-overrun` (a setting, 1 second to 1 hour, default
|
||||
60 seconds) it tells a hook at once, while the handling still runs, which the process reader wires into the finding
|
||||
`event-overrun` where it holds a findings writer, as H-A-169 wires `event-unhandled`: one per module, its id the
|
||||
module, its summary the subject, the key and since when, cleared once no handling of the module is past the bound;
|
||||
the journal line at the handling's end says how long it took.
|
||||
Built in H2: mesh-sdk (the event hub, in mesh-sdk's change that rebuilds every module once, §818) and the builder,
|
||||
the one part that gives its patterns keys in H2; every other module gets (3) at that rebuild and gives its patterns
|
||||
keys where its finding or a fault shows the need (principle 7). How it is checked: unit (mesh-sdk,
|
||||
`event_hub_test.go`): with one key's handler blocked another key's event is handled, one key's events keep their
|
||||
order, the patterns given no key share one key, a handling past `event-overrun` tells the hook once while it runs and
|
||||
the finding clears at its end, and waiting messages are said in progress; unit (builder): a `manifest-reads-changed`
|
||||
of one node whose ask never answers holds back no event of another node, a `running` with the set empty makes no call
|
||||
and reads no key, and one naming a seat retakes only that seat's keys; the code review of every module H2 touches
|
||||
refuses a handler that lists keys or reads a state whole; live: the builder raises no `event-overrun` through H2's
|
||||
delivery. ADR 0686 §1, ADR 0682 §11, ADR 0618 §4, ADR 0673, ADR 0668; principles 1, 3, 7 and 11.
|
||||
- **H-A-684 (DQ-27: the assigner's tool `assigner_validate` judges a pipeline's candidate on request)** 25 Nov. Where
|
||||
met: no tool judges a manifest on request (issue 1984 note 25: a manifest changed by a fix had no verdict before its
|
||||
merge, and a whole run would have cost about an hour of build capacity); `indexer_judge` and `indexer_verdicts` went
|
||||
(H §764) and the take-in validates no manifest (ADR 0682 §5); the manifest validator runs only in the assigner's step
|
||||
`validate` (`cmd/mesh-delivery-assigner/validatestep.go`, H §745), one run per candidate keyed `<pipeline>.validate`
|
||||
in the state `composition-runs` (H-A-108), and `assigner_validate_before` reads what a run did not count; the package
|
||||
comment of mesh-delivery-indexer-tools still names the two removed tools. Principle 4 settles that the act gets a
|
||||
tool (the validate run is the assigner's own act, started today by a step alone, and ADR 0666 §25 gives every act a
|
||||
tool that starts it by hand); its input follows ADR 0682 §5 and ADR 0666 §18.
|
||||
(1) **The tool.** `assigner_validate` takes `pipeline` (required: a pipeline's key as the runner names it, a
|
||||
delivering pipeline's or a run on request's, ADR 0684 §3) and `module` (optional: narrows the answer to one
|
||||
manifest). It reads the pipeline's candidate (its module graph revision, or its run) from the seat
|
||||
`mesh-pipeline-runner`'s `show`, then joins or starts that candidate's validate run under `<pipeline>.validate`
|
||||
exactly as the step does, so a `validate` step the pipeline asks later joins it and builds no second manifest
|
||||
validator. It answers at once with the run as it stands: `running` with its start, or its end: passed; failed
|
||||
`cycle` naming the cycle; failed `manifest-refused` with every problem per manifest, those counted and those the case
|
||||
before holds too (as `assigner_validate_before` answers them); `could-not-run` with why. It writes no want, ends no
|
||||
step and changes no record, so it is no hand-act; a pipeline the runner does not know, or one whose candidate the
|
||||
indexer does not hold yet, is answered so, naming it, and nothing starts. `mesh-pipeline-runner.show` joins the
|
||||
assigner's `invokes` where it is not there. Its description carries "judge a manifest on request", "the manifest
|
||||
validator's verdict" and "validate", so `mesh_search` with those words finds it (one-question-one-tool).
|
||||
(2) **A candidate, not a manifest, a module or a commit.** A manifest given whole is not judged: the manifest
|
||||
validator is built from the candidate's own entry of the module holding the seat `mesh-catalog` and judges every
|
||||
manifest of one revision together (one name per module, the seats, the cycle; ADR 0682 §5, H-A-108), so a manifest
|
||||
alone has neither heads to build it from nor a revision to be judged in, and its verdict would name nothing the mesh
|
||||
can deliver (principle 2). A module alone only narrows the answer, since the run is one per revision. A commit not
|
||||
yet taken in has no candidate until a run on request makes one (ADR 0666 §18), so a change before its merge is
|
||||
judged by asking the runner's `run` with its members, then this tool with that run's key once the indexer holds the
|
||||
run's candidate; the person cancels the run (the runner's `cancel`) when its builds are not wanted.
|
||||
(3) **The indexer tools' comment.** The package comment of mesh-delivery-indexer-tools names only what the package
|
||||
serves.
|
||||
Built in H2 (the assigner; the indexer tools' comment). How it is checked: unit (assigner, `validatestep_test.go`):
|
||||
the tool on a pipeline with no validate run starts it under `<pipeline>.validate`, and that pipeline's later
|
||||
`validate` step joins it with no second validator build; on an ended run it starts nothing and answers its verdict,
|
||||
narrowed by `module`; an unknown pipeline and a candidate not held are answered so and start nothing; the
|
||||
assigner's manifest test lists `assigner_validate`; live: `mesh_search` with "judge a manifest on request" finds it.
|
||||
Principles 4, 2 and 7; ADR 0682 §5, ADR 0666 §18, §25, ADR 0684 §3.
|
||||
@@ -0,0 +1,509 @@
|
||||
---
|
||||
layer: to-be
|
||||
status: in-progress
|
||||
design: 47
|
||||
milestone: H
|
||||
updated: 2026-11-25
|
||||
decisions:
|
||||
- "ADR 0690"
|
||||
- "ADR 0597"
|
||||
- "ADR 0595"
|
||||
- "ADR 0686"
|
||||
- "ADR 0682"
|
||||
- "ADR 0674"
|
||||
- "ADR 0668"
|
||||
- "ADR 0666"
|
||||
- "ADR 0656"
|
||||
- "ADR 0614"
|
||||
- "ADR 0550"
|
||||
- "ADR 0436"
|
||||
- "ADR 0259"
|
||||
---
|
||||
# Design 47, milestone H2: lead answers, continued a fourth time
|
||||
|
||||
This file continues [H2-lead-answers-4.md](H2-lead-answers-4.md) from H-A-685 on, since that file reached its 60 KB
|
||||
bound with H-A-684: every later answer is written here. Each line names the record, the operator's answer or the
|
||||
principle that settles it.
|
||||
|
||||
## The review by architectural domain of H-A-634 to H-A-684 (2026-11-25 from 13:30 CET)
|
||||
|
||||
The four reviewers by architectural domain read hq 0cae7532..27e5c0d9 in one round, the only one (playbook 02,
|
||||
*Answering a design question*, item 3). Each of their findings that makes a line wrong or leaves its builder a choice
|
||||
is written below as an amendment of the answer it corrects, a choice within what the record it follows decides
|
||||
(playbook 02, item 1); where a clause of an earlier answer is rewritten, that clause reads as the amendment has it.
|
||||
Each rests on a reading of the same mains as H-A-639 (mesh-delivery 3b1f03ce, mesh-catalog 17e1bfb6, mesh-sdk
|
||||
bb11615, the node-engine d27af83, mesh-contracts 52e5224) and of mesh-tools 393449e.
|
||||
|
||||
- **H-A-685 (a ledger's binding names `ended-days` only once its held objects allow lifetimes; a changed binding is
|
||||
said again; the tool runner reads it at each call, 25 Nov)** Amends H-A-634 (1) and (3), and rewrites H-A-679.
|
||||
Where met: the keeper says an entry's binding with `created` once, and again only for an object made later or after
|
||||
a `recreate` (mesh-catalog `modules/nats/internal/keeper/keeper.go`, `ensureMade`); the grants part writes the
|
||||
binding it hears whole into the membership (mesh-delivery `modules/mesh-grants/internal/grants/bindings.go`); the
|
||||
tool runner opens a ledger at each call from its binding and checks each operation against the binding's types
|
||||
(mesh-tools `node-tools/internal/runtime/ledgers.go`, `ledger`); and the seat `mesh-broker`'s `Binding` carries no
|
||||
`ended-days` (mesh-contracts `go/seats/meshbroker`). So after H2's delivery the gate's `end` on its movers and acts
|
||||
and `forget` on `held` would be refused until a `recreate`, and nothing said when the tool runner may write a
|
||||
lifetime. ADR 0595 §1 and §7 carry the binding on the bus module's events into the membership through the grants
|
||||
part; what the binding names and when it is said again are the design's.
|
||||
(1) **The binding names `ended-days` only once the held objects allow lifetimes.** The keeper writes a ledger's
|
||||
`ended-days` into its binding when the ledger's own configuration gives it and the bus holds the ledger's state
|
||||
bucket and each index bucket with a lifetime per key and its snapshot store with a lifetime per message, as made or
|
||||
as changed by `recreate` (H-A-686); while any of them allows none, the binding names none. The seat `mesh-broker`'s
|
||||
`Binding` gains `ended-days` (a whole number of days, absent while none), and mesh-sdk's `membership.BusBinding` the
|
||||
same field; `list`, `show` and `orphans` answer the binding as the keeper last said it.
|
||||
(2) **A changed binding is said again.** The keeper keeps, for each entry, the binding it last said; when the
|
||||
binding it would say differs from it (a type gaining an operation or an index, `ended-days` named or no longer
|
||||
named), it says `created` again with the new binding, as it says it again today for an object made later (G §58),
|
||||
with no `recreate`; `recreated` carries the binding after a `recreate`, as today. So the gate's new operations
|
||||
reach its membership once the bus module has taken in the gate's new manifest, before the gate's new build runs
|
||||
(H-A-692 (1)).
|
||||
(3) **The grants part copies it.** The grants part reads the binding into mesh-sdk's `BusBinding` and compares
|
||||
bindings whole, so `ended-days` reaches the membership once the grants part is built with mesh-sdk's change
|
||||
(§818); a `created` heard again whose binding differs rewrites the membership on every machine the module is
|
||||
assigned, as `recreated` does.
|
||||
(4) **The tool runner writes a lifetime exactly while the binding names `ended-days`.** It reads the binding at
|
||||
each ledger call it opens, as it reads the types, so a binding rewritten after `created` or `recreated` reaches
|
||||
the next write with no restart. It keeps `ended-at` in every state it writes, from the types' `ends-with`, whether
|
||||
or not the binding names `ended-days`, and gives a lifetime to a state, a snapshot and an index key only while it
|
||||
does. A ledger whose types name `ends-with` and whose binding names no `ended-days` is written with no lifetime,
|
||||
said once per ledger and process in the tool runner's journal ("the ledger's types name an end and its binding no
|
||||
`ended-days`: written with no lifetime"): this is the gate's case from H2's delivery to its `recreate` (H-A-692),
|
||||
and H-A-679 reads so. A write the bus refuses for its lifetime (the object allows none, as after a change of it by
|
||||
hand) is written again with none and said once per ledger and process; its operation is never lost, and the bus
|
||||
module's `drifted` names the object, since it holds less than is asked.
|
||||
How it is checked: rows of the keeper's plan tests: a ledger with `ended-days` whose held objects allow no lifetime
|
||||
is said with no `ended-days`, and once they allow them with it; a held entry whose type gained an operation says
|
||||
`created` again with it, and one whose binding is the same says nothing; a row of the grants part's bindings tests:
|
||||
a `created` heard again with one operation or `ended-days` more rewrites the membership; rows of the tool runner's
|
||||
ledger unit tests: a binding whose types name `ends-with` and which names no `ended-days` writes no lifetime, keeps
|
||||
`ended-at` and says it once; the same ledger's binding rewritten with `ended-days` gives the next write its
|
||||
lifetime with no restart; a write refused for its lifetime is written again with none and said once; a case of the
|
||||
tool runner's ledger integration test (`node-tools/internal/runtime/ledger_integration_test.go`) on the real bus: a
|
||||
ledger made with no lifetimes, changed in place to allow them and its binding said again, gives its next write a
|
||||
lifetime. ADR 0595 §1, §7; ADR 0597 §1; ADR 0690 §2; principles 1, 3 and 7.
|
||||
- **H-A-686 (`recreate` changes an object in place or stops, and never empties one it planned to keep; the ask names
|
||||
what goes; a held lifetime matches an ask with none, 25 Nov)** Amends H-A-634 (3)'s `recreate`. ADR 0595 §5 gives
|
||||
`recreate` the rebuild of an entry from its data where the storage type allows it, on the operator's warrant after
|
||||
a stream snapshot; which object is changed how, what the ask names and what a refusal does are the design's.
|
||||
(1) **A held lifetime matches an ask with none.** The keeper's comparison takes a held bucket that allows a
|
||||
lifetime per key, or a held stream that allows a lifetime per message, as matching an asked one that allows none:
|
||||
allowing a lifetime is no setting a write must use, and the bus refuses to turn it off in place. So a ledger's
|
||||
manifest returned to one without `ended-days` (the gate's return to a build before H2 among them) raises no
|
||||
`drifted` and needs no `recreate`; the binding then names no `ended-days` (H-A-685 (1)), and a key written with a
|
||||
lifetime still goes at its end. Fate: H-A-634 (3)'s object "a lifetime per key or per message turned off", made
|
||||
again empty, goes; the one kind of object made again empty is one whose retention changes, which the bus refuses to
|
||||
change in place.
|
||||
(2) **A refused change in place stops the `recreate`.** When the bus refuses an object's change in place after the
|
||||
warrant, the `recreate` stops there: it makes no object it planned to change in place again empty, changes no
|
||||
object after it, answers the bus's refusal naming the object, and says no `recreated`; the objects it changed before
|
||||
keep their change and their data, `drifted` stays raised naming what still differs, and the warrant is spent (a
|
||||
warrant acts once), so another `recreate` needs another ask.
|
||||
(3) **The ask names what goes.** The ask `nats_recreate` raises names, per object, whether it is changed in place or
|
||||
made again empty, its held and asked settings, the messages, bytes and oldest message's time it holds (read when the
|
||||
ask is raised), and what the change removes: for a shorter age, the messages older than it (none while the oldest
|
||||
is younger); for a smaller cap, the oldest messages beyond it and the bytes over it; for an object made again empty,
|
||||
every message. The tool's answer and `recreated` name, per object, the messages and bytes it held before and after.
|
||||
(4) **No `recreate` while the bus module runs a build before H2.** That build reads a held lifetime per key as a
|
||||
drift and makes every object of a recreated entry again empty (H-A-634 (3)'s fate), so a drift it raises for the
|
||||
gate's `records` is left raised, and no `recreate` of it is asked until the bus module runs its H2 build again; the
|
||||
asker reads the bus module's running version before each ask (H-A-692 (2)).
|
||||
How it is checked: rows of the keeper's `recreate` tests: a held lifetime per key or per message with an ask of
|
||||
none raises no drift; with a stub bus refusing one object's change in place, the `recreate` stops, empties nothing,
|
||||
says no `recreated` and `drifted` stays; the ask names, for a shorter age, the messages older than it, and for a
|
||||
smaller cap the bytes over it; a case of the bus module's whole integration test (`TestTheBusModuleRunsWhole`,
|
||||
`cmd/nats-tools/keeper_integration_test.go`) on the real bus: a stream holding messages, recreated with a shorter
|
||||
age, a lifetime per message turned on and its refusal when full, keeps the messages younger than the age and takes a
|
||||
lifetime on its next write, and a bucket recreated with a lifetime per key turned on keeps its keys. ADR 0595 §5,
|
||||
§6; ADR 0259 §6; principles 3 and 7.
|
||||
- **H-A-687 (a ledger's snapshot store refuses when full and is judged as the part `snapshot`; the fill's fields; the
|
||||
seat's form, 25 Nov)** Amends H-A-634 (8) and (9). Where met: the keeper plans a ledger's snapshot store to drop its
|
||||
oldest when full (mesh-catalog `modules/nats/internal/keeper/plan.go`, the ledger case), and the fill pass reads only
|
||||
an object that refuses when full (`fill.go`), so a full snapshot store would remove the oldest snapshot silently,
|
||||
the only base of a rebuild of an idle open instance once its operations have aged out: against ADR 0597 §8 and ADR
|
||||
0690 §2, by which a snapshot goes only with its key, and against design 25 § 12.1's ledger row ("as log": a kept
|
||||
ledger refuses when full, ADR 0595 §3). The milestone's prepare found it as its item 14.
|
||||
(1) **The snapshot store refuses when full.** The bus module plans a ledger's snapshot store to refuse when full
|
||||
(one message per instance, at the ledger's cap), as the template ledger fixes, so the fill pass judges it as it
|
||||
judges the history, the state and the index buckets, as the part `snapshot` ((3)).
|
||||
(2) **A refused snapshot loses no operation.** An `apply` whose snapshot write the store refuses for room answers as
|
||||
ADR 0597 §6 answers for a full state: the operation is taken, with its sequence, and its snapshot is behind because
|
||||
the snapshot store is full; `lag` counts it behind, and the repair `snapshot` writes it once room is made. A
|
||||
`rebuild` or a repair `snapshot` whose write is refused so answers it for that instance and goes on with the next.
|
||||
(3) **The fill names its object.** H-A-634 (9)'s `object` and `part` go in the seat `mesh-broker`'s `Fill`, beside
|
||||
its `bytes`, `cap` and `count`: `full` and `full-cleared` carry `fill` for the object judged, whose `bytes`, `cap`
|
||||
and `count` are that object's; `part` is `history`, `state`, `index <name>` or `snapshot` for a ledger, and absent
|
||||
for an entry of one object. `show`'s `fill` keeps the entry's sum and gains `objects`, one `Fill` per object.
|
||||
(4) **The seat's form rises once.** The seat `mesh-broker`'s form rises from 1 to 2 for (3)'s fields and the
|
||||
binding's `ended-days` (H-A-685 (1)), as §780 asks for a field added; its contract is generated again and its
|
||||
importers rebuild with it.
|
||||
(5) **The held stores drift.** Each ledger's held snapshot store then differs from what is asked (three on the mains
|
||||
read: the gate's `records`, the knowledge base's `records` and zfs's `snapshots`), raising `drifted`; only
|
||||
`recreate` on the operator's warrant applies it (ADR 0595 §5), changed in place with its snapshots kept (H-A-686),
|
||||
asked as H-A-692 (2) says. H-A-634 (8)'s "when, as the bus module plans it, it drops its oldest" reads "when it
|
||||
refuses".
|
||||
How it is checked: a row of the keeper's plan tests: a ledger's snapshot store is planned to refuse when full, and
|
||||
a held one that drops its oldest drifts; a row of the fill pass unit tests: a ledger whose snapshot store holds 75%
|
||||
of its cap says `full` with a `fill` naming its object and the part `snapshot`, and `show` answers each object;
|
||||
rows of the tool runner's ledger unit tests: an `apply` whose snapshot write is refused for room answers taken with
|
||||
its snapshot behind, and the repair `snapshot` catches it up; a case of the ledger's integration test on the real
|
||||
bus, at a small cap: a full snapshot store refuses, `apply` answers taken with its snapshot behind and the history
|
||||
holds the operation; live, after H-A-692: `mesh-broker.show` of each of the three ledgers names its snapshot store
|
||||
refusing when full. ADR 0595 §3, §5, §6; ADR 0597 §6, §8; ADR 0690 §2; principles 3 and 7.
|
||||
- **H-A-688 (the gate's `records` ask `max-mib` 3072, 25 Nov)** Rewrites H-A-680 and amends H-A-634 (2), (8) and its
|
||||
live check, which still counted 1 GiB. At (8)'s rate (98 records a day, 226 KiB of history each) 90 days of history
|
||||
hold about 1,947 MiB: 95% of 2048, so the fill condition would be raised from about the 71st day, and a burst like
|
||||
H1's clean state (840 records, about 185 MiB) refused; at 3072 they hold 63%, the burst takes them to 69%, under the
|
||||
raise mark of 75% (2,304 MiB), which they reach only above about 116 records a day. The gate's `records` asks
|
||||
`max-mib` 3072 (principle 11: the cap in the manifest); by ADR 0690 §1 its state, both index buckets and its
|
||||
snapshot store are planned at 3 GiB too. Each held object of the entry also differs in a setting that does not only
|
||||
grow (its history's shorter age, a lifetime turned on), and the keeper applies alone only a difference that only
|
||||
grows, so the raise reaches them in place with H-A-692 (2)'s `recreate`, within the keeper's room check of the bus
|
||||
account's storage limit (G §547). (8) reads: the state, at 3 GiB, holds 30 days of ended records below about 1,200
|
||||
records a day and stays under the raise mark below about 900; at the case's rate 30 days need about 250 MiB, 8% of
|
||||
it, and at G §155's 20 a day about 51 MiB. The history, at 3 GiB, holds 90 days below about 154 records a day. The
|
||||
snapshot store, each snapshot going with its key and refusing when full (H-A-687), holds 30 days of ended records
|
||||
and the open ones: at the case's rate about 350 MiB, under the raise mark below about 650 records a day. H-A-634's
|
||||
live check reads: `mesh-broker.show` of the gate's `records` names its history, its state and both index buckets,
|
||||
and its snapshot store, each at 3,221,225,472 bytes. How it is checked: a row of the gate's manifest test
|
||||
(`manifest_test.go`): `records` asks `max-mib` 3072; the live check above. ADR 0690 §1; ADR 0595 §3; principles 3
|
||||
and 11.
|
||||
- **H-A-689 (`lag` reads an instance's end from its history; `get`'s `expires` is the lifetime the bus holds, 25
|
||||
Nov)** Amends H-A-634 (4). Where met: `lag` counts behind every instance whose state or snapshot is behind its
|
||||
history (mesh-tools `node-tools/internal/ledger/repair.go`, `Lag`), so an instance whose key and snapshot went by
|
||||
their lifetime would be counted behind, and H-A-634 (4) turned that round for every instance with neither, a lost
|
||||
state of an open instance among them; and every `expires` was the tool runner's own sum, never what the bus holds.
|
||||
(1) **An instance with no key and no snapshot is not behind only past its lifetime.** `lag` derives from an
|
||||
instance's history whether it has ended and when: its end is the `at` of the last operation that gave its
|
||||
`ends-with` field a value, with no later operation emptying it. An instance with no state key and no snapshot counts
|
||||
as not behind only when that end lies more than `ended-days` before now; an open instance, and one ended within
|
||||
`ended-days`, whose key or snapshot is gone counts behind (a lost state), as `lag` counts it today. The index's
|
||||
condition (H-A-690 (3)) reads `lag` so.
|
||||
(2) **`expires` is read from the bus.** `get` answers an ended instance's `expires` from the key's last write as the
|
||||
bus holds it: its time and the lifetime its `Nats-TTL` header carries; `watch`, whose changes carry no header,
|
||||
answers it as `ended-at` plus `ended-days`. So `gate_records_expiring` and `gate_records`, which read by `get`, name
|
||||
the lifetime the bus holds.
|
||||
How it is checked: rows of the tool runner's ledger unit tests: an open instance whose key was deleted is behind; an
|
||||
instance ended past `ended-days` whose key and snapshot are gone is not; one ended within `ended-days` whose key was
|
||||
deleted is behind; `get`'s `expires` is the write's time plus its lifetime, and `watch`'s `ended-at` plus
|
||||
`ended-days`; a case of the ledger's integration test on the real bus: an ended instance's `get` answers the
|
||||
`expires` its write gave it. Live, after H-A-692: `gate_records_expiring` names one ended record's `expires`, read
|
||||
from the bus, 30 days after its end. ADR 0597 §4, §10; ADR 0690 §2; principle 3.
|
||||
- **H-A-690 (the gate keeps its indexes by a watcher; a failed end is a finding, finished at the record's next event,
|
||||
25 Nov)** Amends H-A-634 (1), (2), (7) and (10). Where met: only the tool runner's repair `reindex` writes index
|
||||
keys (mesh-tools `node-tools/internal/ledger/repair.go`, `Reindex`), and no watcher keeps the gate's indexes, so they
|
||||
held no key in H-A-634's case while the gate reads a record's movers and acts through them (mesh-catalog
|
||||
`modules/mesh-delivery-gate`, `movers.go`, `owedended.go`); a mover or an act written after (10) would be missing
|
||||
from them, its end never followed, and an open record's mover left ageing by a failed reopening never found. ADR
|
||||
0597 §4 keeps an index by a watcher in the owning module's process, rebuildable from the history, raising a
|
||||
condition when it lags (design 25 bus-state §21); how it writes is the design's.
|
||||
(1) **The call `reindex` names an instance.** mesh-sdk's `ReindexRequest` gains `instance` (optional): `reindex`
|
||||
naming one writes that instance's entries in the index with its lifetime (H-A-634 (1)) and deletes the entries the
|
||||
index holds for it that it no longer should, touching no other key; one naming an instance whose lifetime has ended
|
||||
writes none and deletes its entries. So the tool runner stays the one writer of index keys and of their lifetime.
|
||||
(2) **The gate's watcher.** The gate's process watches its ledger's `mover/>` and `act/>` (ADR 0597 §10's `watch`)
|
||||
and, for each change it hands after the current states, calls `reindex` of `movers` or `acts` naming that instance;
|
||||
a key gone by its lifetime needs no call, since its index keys carry the same lifetime. At its start, before it
|
||||
follows the changes, it asks `lag` and calls `reindex` of each index `lag` names behind, whole, said in the journal
|
||||
with the count written; the gate's start pass of `gate_records_follow_ends` (H-A-634 (2)) begins only once that is
|
||||
done. A call that fails is said in the journal and made again at that instance's next change.
|
||||
(3) **The index's condition.** The gate writes its finding `index-behind` (id the index) when a call of (2) fails or
|
||||
`lag` still names the index behind after its whole `reindex`, naming the instances and the error, and clears it at
|
||||
the next `lag` that names the index not behind (at the gate's next start, or after `ledger_reindex` by hand). The
|
||||
kind joins the gate's writer's kinds.
|
||||
(4) **A failed end is a finding, and finished at the record's next event.** A write of H-A-634 (2) that fails (an
|
||||
end, or its emptying at a reopening) is said in the journal and written as the gate's finding `record-end-unwritten`
|
||||
(id the record, naming the instance and the error); the gate finishes it at the next event of that record it
|
||||
applies, by the pass of `gate_records_follow_ends` for that record alone, and at its next start by that pass over
|
||||
every record; the finding clears when the pass writes it. The kind joins the gate's writer's kinds.
|
||||
How it is checked: rows of the tool runner's ledger unit tests: `reindex` naming an instance writes its entries with
|
||||
its lifetime, deletes its entries no longer held and leaves every other key; one naming an instance past its
|
||||
lifetime writes none; rows of the gate's record unit tests in `record_test.go`: a mover's change handed by the watch
|
||||
makes one `reindex` naming it; at a start with `lag` naming `movers` behind, one whole `reindex` of it before the
|
||||
start pass; a failed call is said, raises `index-behind` and is made again at the instance's next change; a failed
|
||||
end raises `record-end-unwritten`, and the record's next event writes it and clears the finding; the gate's whole
|
||||
test's case of G §160 as H-A-634 has it ("an ended record's movers and acts take its end, and an open record's take
|
||||
none") finds the movers and acts through the indexes; live, after H-A-692: `ledger_lag` of the gate's `records`
|
||||
names no index behind. ADR 0597 §4, §10; ADR 0656 §7; principles 1, 3 and 7.
|
||||
- **H-A-691 (`held` keeps `hold` and `drop` declared, 25 Nov)** Amends H-A-634 (5). The tool runner's replay refuses an
|
||||
operation its type does not declare (mesh-tools `node-tools/internal/ledger/ledger.go`, `fold` and `operationOf`),
|
||||
and H-A-692 (3)'s `ledger_rebuild` replays `held/2026-11`'s `hold` and `drop`, which the history keeps up to 90
|
||||
days. So the type `held` keeps `hold` and `drop` declared beside `forget`, each described "kept for the replay of
|
||||
operations written before H2; applied by no part", and the gate applies neither (it writes no month list, H-A-634
|
||||
(5)). They leave the gate's manifest in its first change made 90 days or more after H2's delivery, when its history
|
||||
holds none of them. How it is checked: a row of the gate's manifest test: `held` declares `hold`, `drop` and
|
||||
`forget`; a row of the gate's record unit tests: no path of the gate applies `hold` or `drop`; H-A-692 (3)'s
|
||||
`ledger_rebuild` answers no instance refused. ADR 0597 §1, §5; principles 3 and 7.
|
||||
- **H-A-692 (the order after H2's delivery, 25 Nov)** Rewrites H-A-634 (10).
|
||||
(1) **The modules' order.** H2's modules move in the module graph's order (ADR 0682 §8: acting parts first,
|
||||
providers before their consumers): the bus module, the grants part and the tool runner before the gate, whose bus
|
||||
state requires the bus module's `bus-state` (design 25 bus-state §2), so the gate's binding with its new operations
|
||||
reaches its membership (H-A-685 (2)) before its new build applies `end` or `forget`; the delivery plan names that
|
||||
edge.
|
||||
(2) **The warrants.** Then the lead of H2's delivery asks one `recreate` per drifted entry through the bus module's
|
||||
tool `nats_recreate` (with `why`), each said to the operator before it is raised and acted on the operator's warrant
|
||||
after its stream snapshot (ADR 0595 §5; ADR 0259 §6), once `drifted` names the entry and the bus module runs its H2
|
||||
build (H-A-686 (4)): the gate's `records` (its history's age of 90 days, its state and index buckets' lifetime per
|
||||
key, its snapshot store's lifetime per message and its refusal when full, and every cap of 3 GiB (H-A-688), each in
|
||||
place); the knowledge base's `records` and zfs's `snapshots` (each its snapshot store's
|
||||
refusal when full, in place, H-A-687 (5)); and mesh-build-go's `steps` (its cap of 64 MiB, H-A-694). Each ask names
|
||||
what it removes (H-A-686 (3)).
|
||||
(3) **The hand acts.** Then, once the gate's `recreate` has acted and its binding names `ended-days` (H-A-685 (1)),
|
||||
by hand, each a hand act: `ledger_rebuild` of the gate's whole ledger, so every instance held before H-A-634, and
|
||||
its snapshot, gets its lifetime and no snapshot of one past it stays (H-A-634 (1), (4)); then `ledger_reindex` of
|
||||
`movers` and `acts`, so their keys take those lifetimes. The indexes' first keeping and the movers' and acts' ends
|
||||
are the gate's own at its start (H-A-690 (2); H-A-634 (2)); `gate_records_follow_ends` is called by hand only where
|
||||
`record-end-unwritten` names a record. The 840 records ended at H1's clean state then go on 2026-12-20.
|
||||
How it is checked: H2's delivery plan orders the bus module before the gate; `operator-channel.asks` holds the four
|
||||
asks, each naming its objects and what goes; live: `mesh-broker.show` names no drift for the four entries, and the
|
||||
hand-act log of the seat `mesh-hand-acts` holds the rebuild and the two reindexes. ADR 0595 §5; ADR 0682 §8; ADR
|
||||
0259 §6; principles 3 and 4.
|
||||
- **H-A-693 (the grants part composes the ledger account's purge of its snapshot store, and none of its history, 25
|
||||
Nov)** Rewrites H-A-681 and amends H-A-634 (1)'s "on the module's ledger connection, which holds that purge's
|
||||
grant". Where met: the grants part composes a ledger account's publishes on its ledgers' history and snapshot
|
||||
subjects alone (mesh-delivery `modules/mesh-grants/internal/buscompose/ledger.go`, `LedgerPublishGrants`), so no
|
||||
purge grant is composed to keep or to remove; the commit that would grant the purge of both streams (f80ef614, "A
|
||||
ledger account may purge its own ledger's two streams") is on no branch of the forge; and the tool runner's purge of
|
||||
one snapshot works today only because every account may publish on every subject (ADR 0682 §10). The grants part
|
||||
composes, beside those publishes, the purge request of each of its ledgers' snapshot store,
|
||||
`$JS.API.STREAM.PURGE.<module>_<local name>_snapshot`, its answer on the account's own inbox, and no purge of a
|
||||
history: so the tool runner's `Snapshots.Purge` (H-A-634 (1), (6)) holds a grant of its own in the composition,
|
||||
and the purge of a history (`History.Purge`, which goes with G §587's removal) has none; f80ef614 is not taken. How
|
||||
it is checked: a row of the grants part's `buscompose` unit tests: a ledger account's composition names the purge
|
||||
of each of its ledgers' snapshot store and of no history; live: `nats_user_can` of the gate's ledger account on its
|
||||
snapshot store's purge request answers allowed (by ADR 0682 §10's every subject as long as that holds, so the unit
|
||||
row is what checks the composition). ADR 0597 §9; ADR 0682 §10; principles 3 and 7.
|
||||
- **H-A-694 (mesh-build-go's `steps` goes to 64 MiB by `recreate` on the operator's warrant, whatever its fill, 25
|
||||
Nov)** Rewrites H-A-678's handling of a held state entry. ADR 0690 §1 keeps a state entry at the state template's
|
||||
bound, at most 64 MiB, so the manifest validator refuses a state's `max-mib` above 64 (H-A-678). Of the 40 state
|
||||
entries in the new form on the mains read 2026-11-25 (mesh-catalog 17e1bfb6, mesh-delivery 3b1f03ce, mesh-tools
|
||||
393449e, the node-engine d27af83), 29 give no cap (64 MiB), nine give 8, one 16 and one, mesh-build-go's `steps`,
|
||||
128: no other asks more than 64. H2 sets `steps`' `max-mib` to 64 in mesh-build-go's manifest. A smaller cap does
|
||||
not only grow, so the bus module raises `drifted` for the held bucket at 128 MiB, and only `recreate` on the
|
||||
operator's warrant applies it (ADR 0595 §5), whatever its fill: the lead of H2's delivery asks it through
|
||||
`nats_recreate` (H-A-692 (2)), its ask naming the bucket's keys, bytes and oldest write read when it is raised and
|
||||
what a cap of 64 MiB removes (the oldest beyond it, none while it holds less; H-A-686 (3)); until the warrant the
|
||||
bucket stays at 128 MiB with `drifted` raised. H-A-678's "set to 64 in its manifest when its fill is under 64 MiB,
|
||||
and the operator is asked first when it is above" reads so. How it is checked: rows of the manifest validator's unit
|
||||
tests: a state's `max-mib` 65 refused, 64 taken; the step `validate` of H2's pipeline takes mesh-build-go's
|
||||
manifest; live, after H-A-692: `mesh-broker.show` of mesh-build-go's `steps` names its bucket at 67,108,864 bytes
|
||||
and no drift. ADR 0595 §3, §5; ADR 0690 §1; principles 3 and 11.
|
||||
- **H-A-695 (the event hub holds every message it took said in progress, within a bound; a delivery again is
|
||||
dropped; kept seat events go through it; its settings are read undeclared at their defaults, 25 Nov)** Amends
|
||||
H-A-683 (1). Where met: a module's durable on the shared events stream has an ack wait of 30 seconds and five
|
||||
deliveries, and no bound of its own on unacknowledged messages, so the bus server's default holds (mesh-delivery
|
||||
`modules/mesh-grants/internal/buscompose/derived.go`); H-A-281 says in progress only for the message being handled
|
||||
(mesh-sdk `go/process/module.go`, `keptInProgress`); and a setting is read from what the node-engine composes of
|
||||
the module's config values, none composed being its default (mesh-sdk `go/settings.go`). Under H-A-683 (1) as
|
||||
written, a message waiting behind a handling of 10 m 41 s would have been said in progress only when a handling
|
||||
ended: given again every 30 seconds, handled up to five times and given up to the dead letters after about two and
|
||||
a half minutes; and an in-progress for every waiting message at every end would be hundreds of publishes a second at
|
||||
H-A-514's backlog of 246.
|
||||
(1) **Every message the event hub holds is said in progress, on H-A-281's tick.** The event hub holds each message it
|
||||
took until its handler ends, the one being handled and each one waiting under its key, and says in progress for
|
||||
every one at every third of its durable's ack wait (read once at the bind, as H-A-281 has it), from one ticker per
|
||||
durable; so no held message reaches its ack wait, whatever the handlings before it take. H-A-683 (1)'s "each time a
|
||||
handling ends" goes.
|
||||
(2) **It holds at most `events-waiting` messages.** A setting each module may set, read by the runtime (1 to 1000,
|
||||
default 100): the event hub pulls no more while it holds that many, so the rest wait on the bus, kept by the durable
|
||||
and not yet given; it says once in its journal when it reaches the bound, naming the key that holds most, and once
|
||||
when it falls below. The bound stays within the bus server's own default of 1000 unacknowledged messages per
|
||||
durable, past which the bus would give nothing more and the event hub would not know why; 100 messages said in
|
||||
progress every ten seconds are ten publishes a second.
|
||||
(3) **A delivery again of a held message is dropped.** A message the bus gives again whose stream sequence the
|
||||
event hub holds is handed to no handler, neither acknowledged nor refused, and said once in the journal; the copy
|
||||
held keeps its place under its key and is said in progress as before.
|
||||
(4) **Kept seat events go through it.** A kept seat event's message, pulled on the module's durable on that event's
|
||||
stream (`StartKept`), is handed by its key as an event of the shared stream is, held and said in progress on its own
|
||||
durable's ack wait, and counted in the same `events-waiting`.
|
||||
(5) **Where its settings are declared.** `events-at-once`, `events-waiting`, `slow-event` and `event-overrun` are
|
||||
read by the runtime under those names (mesh-sdk's settings reader): a module that declares none is read at the
|
||||
defaults, and one that needs another value declares the setting among its manifest's config values (§781) and sets
|
||||
it through the seat `mesh-config`, as any setting. The builder's declaration of `slow-event` (default 100 ms) stays,
|
||||
read by the runtime under the same name; no other manifest changes for them.
|
||||
How it is checked: rows of mesh-sdk's `event_hub_test.go`: with one key's handler blocked past five ack waits on a
|
||||
fake clock, its waiting event and another key's are each said in progress at every third and each handled once,
|
||||
none given up; a delivery again of a held sequence reaches no handler; holding `events-waiting` messages the event
|
||||
hub pulls none more and says it once; a kept seat event is handed by its key; a setting not composed reads its
|
||||
default; a case of mesh-sdk's `TestTheHubBindsALateConsumerAndSaysItIsLive` on the embedded bus, its durable's ack
|
||||
wait shortened: with one key's handling blocked past the ack wait no message is given again (the durable's
|
||||
redelivered count stays 0) and another key's events are handled; a case of the builder's whole test
|
||||
(`cmd/mesh-delivery-builder/integration_test.go`): while one node's `manifest-reads-changed` waits on an ask that
|
||||
never answers, another node's `running` is handled, and the dead letters hold no message of the builder's durable.
|
||||
ADR 0686 §1; ADR 0682 §11; principles 1, 3, 7 and 11.
|
||||
- **H-A-696 (the builder's retake waits for its start sweep, 25 Nov)** Amends H-A-683 (2). Where met: the builder's
|
||||
start sweep (`Sweep`) runs once the catalog half's first views are in, after the event hub has bound the module's
|
||||
durable (mesh-delivery `cmd/mesh-delivery-builder/main.go`: `hub.Start` at the start, `Sweep` in the catalog half's
|
||||
`ready`), so a `running` or `manifest-reads-changed` heard in between would find the set of keys faulted in
|
||||
transport empty and retake nothing; the node-engines' `running` of H2's own delivery arrives then. An event's retake
|
||||
waits for the sweep: a `running` or `manifest-reads-changed` heard before the start sweep has filled the set waits
|
||||
under its node's key until it has, then retakes the keys of the set whose seat or node it names; the sweep's end is
|
||||
said in the journal with the count of keys it put in the set, and a sweep that fails ends the builder's start as
|
||||
today (its error ends the process). How it is checked: rows of the builder's unit tests: a `running` heard before
|
||||
the sweep's end retakes, once the sweep ends, the keys its node names; one heard after, with the set empty, makes no
|
||||
call. ADR 0682 §11; principles 3 and 7.
|
||||
- **H-A-697 (`event-overrun`: cleared at the start, owned by every writer, naming every key past the bound, 25 Nov)**
|
||||
Amends H-A-683 (3). Where met: the process reader clears `event-unhandled` at its start (H-A-169; mesh-sdk
|
||||
`go/views/process_reader.go`); every writer owns, beside its module's kinds, the kinds of a views reader, `ViewKinds`
|
||||
(`go/views/writer.go`), which name neither `event-unhandled` nor `event-overrun`, so a module whose writer keeps its
|
||||
own kind list (the indexer's `index.FindingKinds`, the grants part's `grants.FindingKinds`, the gate's) refuses
|
||||
both, said once (H-A-242 (3)).
|
||||
(1) **Cleared at the process's start.** The process reader clears `event-overrun` at its start, as it clears
|
||||
`event-unhandled`, since no handling of the new process runs yet.
|
||||
(2) **Every writer owns it.** `ViewKinds` gains `event-unhandled` and `event-overrun`, so every writer, with its
|
||||
module's own kind list or none, writes both, and no module's list changes (H-A-242 (2)'s test of each module's own
|
||||
kinds stays).
|
||||
(3) **It names every key past the bound.** Its summary names each handling past `event-overrun`, the one that began
|
||||
first first, each with its subject, its key and since when, at most five and then how many more; it is written again
|
||||
at each handling that passes the bound or ends, and cleared once none is past it.
|
||||
(4) **What reads it.** The finding is the read of what the event hub's handlings hold back, since no tool reads a
|
||||
process's memory (principle 1); what waits on the bus is read by the bus module's `nats_consumer` (a durable's
|
||||
unacknowledged messages and its oldest) and, for the builder, by `builder_health` (H-A-435).
|
||||
H-A-683's live check reads: through H2's delivery the builder's journal holds no line of a handling past
|
||||
`event-overrun` (a line written whatever its writer takes), and the builder raises no `event-overrun`. How it is
|
||||
checked: rows of mesh-sdk's views unit tests: a writer given its own kinds writes `event-unhandled` and
|
||||
`event-overrun`; the summary names three keys past the bound, the oldest first; a case of mesh-sdk's
|
||||
`TestAReaderHearsAnOwnersChangesAsOrdinaryEvents` on the embedded bus: a handling past a short `event-overrun`
|
||||
raises the finding through a held writer given its own kinds, naming its key and since when, and the process
|
||||
started again clears it. ADR 0686 §1; principles 3, 4 and 7.
|
||||
- **H-A-698 (a want whose entry the assigner has not read is held, said and asked again; the seat `mesh-catalog`'s
|
||||
package moves, 25 Nov)** Amends H-A-682 (1) and (2). Where met: H-A-682 (2) asks the seat `mesh-catalog`'s `entry`
|
||||
for a want at an older fingerprint and says nothing of an ask that fails, finds no entry or is not answered, as when
|
||||
the indexer stalled (H-A-635); a pass that waited on it would hold back every want.
|
||||
(1) **The ask is the assigner's entry ask, beside the pass.** The want pass never waits on it: it starts the
|
||||
assigner's existing ask of a catalog entry (asked again on each catalog revision and when its link to the bus opens
|
||||
again, at most the setting `entry-asks` times, then the finding `entry-unanswered`; H-A-60), and the answer wakes a
|
||||
pass as a catalog revision does. An answer that no such entry is held writes the finding `entry-not-found` for the
|
||||
fingerprint (G §614).
|
||||
(2) **Until it is read the want is held, and says why.** A want whose entry's needs are not read yet is written
|
||||
held: `hold` true and `words` `awaits-entry:` followed by the fingerprint; `assigner_why` names the ask, how often it
|
||||
was asked and its last failure. The pass after the answer compares the needs as H-A-682 (2) has it; §772's
|
||||
`awaits-hand-placement` is still read first.
|
||||
(3) **The seat's package moves.** H-A-682 (1)'s change of the description of `needs` moves the digest of the seat
|
||||
`mesh-catalog`'s contract package, so its importers rebuild in H2, as H-A-677 says of the seat `node-engine`'s.
|
||||
How it is checked: rows of the assigner's `wants_test.go`: a want at an older fingerprint whose entry ask fails is
|
||||
written held with `awaits-entry:<fingerprint>`, and the pass does not wait; the answer wakes a pass that writes it by
|
||||
its needs; an entry not found raises `entry-not-found`; an ask failing past `entry-asks` raises `entry-unanswered`
|
||||
and the want stays held. ADR 0614 §4; ADR 0668; ADR 0682 §11; principles 3 and 7.
|
||||
- **H-A-699 (the token files' pass runs at every start while a file remains, reads the forge's token lists first, and
|
||||
a failed revocation is a finding, 25 Nov)** Amends H-A-642. Where met: gitea's token source (mesh-catalog
|
||||
`modules/gitea/token.ts`) at a first mint keeps the new token through the vault's own-put, then deletes at the forge
|
||||
the tokens of the account's old fixed name (`doMint`), and mints only when the vault holds no token; the retirement
|
||||
of the admin's old token keeps a retry file and is tried again at the next start (`retireAdmin`). So a pass inside
|
||||
the first mint's drop would list the forge's tokens after it had deleted those the files hold, match none, and never
|
||||
run again.
|
||||
(1) **At every start while a file remains.** The pass runs at each start of the bundle's process while any of the
|
||||
token files remains (`token`, `packages-token`, their `.scopes`, and a `.tmp` of any of them), once this start's
|
||||
token is held (minted and kept, or read from the vault: H-A-602's order), and not inside `doMint`.
|
||||
(2) **The lists first.** It reads the token lists at the forge, of each account the bundle mints for and of the
|
||||
admin, once, before this start deletes any token there: at a first mint, between the own-put and `doMint`'s drop of
|
||||
the old fixed name, which comes after it.
|
||||
(3) **The pairs.** A pair is a token file and its `.scopes`, matched to a listed token by the file's token's last
|
||||
eight characters and the scopes its `.scopes` names. A `.tmp` is a write the earlier build did not finish: a token
|
||||
`.tmp` is matched as its file is, by its own last eight characters, with its pair's scopes (its `.scopes`, else its
|
||||
`.scopes.tmp`), and goes with its pair; one holding no whole token (gitea's form, forty hexadecimal characters) is
|
||||
deleted with no revocation, since it names no token at the forge, said in the journal. A matched pair is revoked at
|
||||
the forge (deleted by its id), then deleted; a pair with no match is kept and said (H-A-642).
|
||||
(4) **A failed revocation is a finding.** A revocation the forge refuses (any answer but deleted or not found) keeps
|
||||
its pair and writes gitea's finding `token-file-unrevoked` in its findings state (id the file, naming the forge's
|
||||
answer), tried again at the next start by (1); a pair kept for no match writes the same finding, naming that; the
|
||||
finding clears when its pair is deleted.
|
||||
How it is checked: rows of gitea's `test/token.test.ts`: at a first mint the lists are read before the drop of the
|
||||
old fixed name, and both pairs match and go; with the vault holding a token, a start with a file left runs the pass;
|
||||
a `.tmp` with a whole token goes with its pair, and one with a cut token is deleted unrevoked; a refused revocation
|
||||
keeps the pair and writes the finding, and the next start's success clears it. ADR 0550 §1; principles 3, 4 and 12.
|
||||
- **H-A-700 (the publishes' two durables per holder, by name; H-A-483's addenda; a return to the earlier build, 25
|
||||
Nov)** Amends H-A-652. Where met: the builder's pull deletes a holder's `publishes-<holder>-live` and `-again` at
|
||||
every pull, then makes its one `publishes-<holder>`, filtered on `<subject>.publish.<holder>.>` (H-A-483's second
|
||||
addendum; mesh-delivery `cmd/mesh-delivery-builder/publishitem.go`, `pull`), and its learn refuses a holder whose
|
||||
name ends in `-live` or `-again` (the third addendum).
|
||||
(1) **The two durables.** Per holder, on the work queue `publishes`: `publishes-<holder>-live`, filtered on
|
||||
`<subject>.publish.<holder>.live.>`, with four in flight (§793), and `publishes-<holder>-again`, filtered on
|
||||
`<subject>.publish.<holder>.again.>`, with one (H-A-620 (2)); each with the ack wait `publish-pause-max` and ten
|
||||
deliveries (H-A-653), as the one durable has them.
|
||||
(2) **Who deletes the one, and when.** At each holder's pull the builder deletes `publishes-<holder>` before it makes
|
||||
the two, since its filter overlaps both and a work queue refuses overlapping filters; not found is ignored and a
|
||||
removal said; its unacknowledged items stay on the queue and reach the two.
|
||||
(3) **H-A-483's addenda.** The second addendum's deletion of `-live` and `-again` at each pull goes, since those are
|
||||
the two durables now made; the third addendum's refusal of a holder whose name ends in `-live` or `-again` stays,
|
||||
since such a holder's one durable of an earlier build would be another holder's durable now.
|
||||
(4) **A return to the earlier build.** A return of the builder to a build before H2 (the placement's one value, ADR
|
||||
0682 §8) needs no hand act: that build's pull deletes `publishes-<holder>-live` and `-again` before it makes its one
|
||||
(H-A-483's second addendum, as built), and the items stay on the queue. Where its journal says a removal failed, the
|
||||
person removes both with the bus module's `nats_consumer_remove` (with `why`).
|
||||
How it is checked: cases of the builder's publishes integration test
|
||||
(`TestThePublishQueueLosesNoItemAndNeverSendsADroppedItem`): with `publishes-<holder>` standing and an item
|
||||
unacknowledged on it, a pull removes it, makes the two, and the item is sent; four `live` sends run at once while a
|
||||
second `again` send waits; a pull with the two standing changes nothing. ADR 0674 §3; ADR 0682 §8; principles 1, 3
|
||||
and 7.
|
||||
- **H-A-701 (a failed owner pass leaves the units stopped, 25 Nov)** Amends H-A-641. When the owner pass fails on an
|
||||
entry (the node-engine cannot give it its declared owner), the apply ends failed, naming the path and the error as a
|
||||
failed apply is said, and the module's units stay stopped: a unit started on a directory partly given to another
|
||||
account would run or write as the wrong one (principle 3). The next apply runs the pass again from the start
|
||||
(H-A-550's rules take an entry already given as given) and starts the units once it completes; the pass back of
|
||||
H-A-602 follows the same rule, and the tool runner is never stopped. How it is checked: rows of the node-engine's
|
||||
unit tests (`internal/apply/contents_owner_test.go`): a pass failing on one entry leaves the units stopped and the
|
||||
apply failed naming the entry; the next apply's pass completes and starts them; the tool runner is not stopped.
|
||||
Principles 2 and 3.
|
||||
- **H-A-702 (`assigner_validate` is a hand act with `why`; a run on request builds until cancelled, 25 Nov)** Amends
|
||||
H-A-684 (1) and (2). The tool writes the state `composition-runs` and starts a manifest validator's build, so it is
|
||||
a hand act: it takes `why` (required) and is recorded in the hand-act log of the seat `mesh-hand-acts`, as
|
||||
`gate_record_end` is (G §159), naming the pipeline, the run joined or started and the caller; a call that starts
|
||||
nothing (a pipeline unknown, a candidate not held, a run already ended) records none. H-A-684 (1)'s "so it is no
|
||||
hand-act" goes. A run on request (the seat `mesh-pipeline-runner`'s `run`) takes only its members, and its steps run
|
||||
past `validate` until it ends or is cancelled: so a judgement before a merge costs the run's builds unless the person
|
||||
cancels it (`cancel`) once `assigner_validate` has answered; this tool stops no run after `validate`. How it is
|
||||
checked: rows of the assigner's `validatestep_test.go`: a call with no `why` is refused; a call that starts a run
|
||||
records one hand act naming it, and one on an ended run records none. ADR 0666 §18, §25; principles 3 and 4.
|
||||
- **H-A-703 (the check rows of H-A-653, H-A-654 and H-A-662, 25 Nov)** Each answer gains its row, none a new
|
||||
top-level test function. H-A-653: a row of the builder's publish unit tests: an item at its tenth delivery is
|
||||
terminated and `version-unreleased` "given up after 10 deliveries" raised, and the queue's dead letters hold none of
|
||||
it. H-A-654: a case of the builder's publishes integration test: the consumer deleted under a running dispatch and
|
||||
made again, the dispatch binds again on the created advisory and sends the next item, and a pull error never ends
|
||||
it. H-A-662: a row of the builder's build unit tests: `MarkUnstored`'s first true for a done trunk key starts
|
||||
`BuildAgain` once, and a second true for the same reservation starts none. ADR 0436 §6; principle 3.
|
||||
- **H-A-704 (a merge call refuses no member for its base not being a watched branch, 14:29)** 25 Nov; the operator,
|
||||
2026-11-25 about 14:3x CET in chat: "the merge tool shouldn't only merge watched branches, approving a merge request is
|
||||
simply an action, it requires 0 checks", after `git.merge-pull` refused hq #803 "its base main is no watched branch"
|
||||
(read 14:3x). ADR 0684 §4 decides it: no base is refused for not being a watched branch. The gitea module's merge call
|
||||
(mesh-catalog `modules/gitea/mergecall.ts`) keeps "a watched repository whose base is no watched branch stays
|
||||
refused"; that refusal goes: a member whose base is no watched branch, whatever its repository, is judged against
|
||||
nothing of the module graph and merged plainly in the order named, answered and kept with the note no delivery, and
|
||||
left out of merge-called (as H-A-471 has it for a repository with no watched branch); the seat `git`'s
|
||||
`merge-pull` description says so. Built with G1 (gitea's own account), so the gitea module is delivered once. How it
|
||||
is checked: a row of the merge call's tests (a watched repository's pull request into a branch it does not watch is
|
||||
merged plainly with the note); live, hq's next pull request merges through `git.merge-pull`. ADR 0684 §4; principle 7.
|
||||
- **H-A-705 (the operator's scope answer for H2's corrections, 14:41)** 25 Nov; the operator in chat, about 14:1x CET, "scope
|
||||
accepted", to the lead's five recommendations: DQ-5 in (H-A-543 and H-A-545 (3) as amended, as G1: 783d5c82 and
|
||||
b7e379f5 rebased onto mesh-catalog main, e76cc064 left out); DQ-10 in (H-A-566 as amended by H-A-572, H-A-595 and
|
||||
H-A-608, as I7, af09bb9a read as new code; H-A-565 (2) and (3) not taken); DQ-12 and DMC-6 to H3 (the dissolution of
|
||||
mesh-delivery-sdk; H-A-624 (1), (3) and H-A-626 wait there; H-A-589 (4), H-A-570 (3), H-A-603 and the kits are built
|
||||
where they stand); DQ-23 to H4 §759; DQ-30 after design 47, its decision first (issue 946).
|
||||
- **H-A-706 (the prepare's second questions, settled by principles, 14:42)** 25 Nov; the preparer's rows (hq
|
||||
.work/47-H2-corrections/milestone.md, DQ-37 to DQ-42, DMC-13, DMC-14), each answered as it recommended: (DQ-37) I9 is
|
||||
built in this milestone, in the indexer's first change after the narrowing (principle 3); (DQ-38) H-A-700's two
|
||||
durables take `publish-ack-minutes` as their ack wait, as H-A-613 (3) says, never `publish-pause-max`, which H-A-606
|
||||
removed (principle 7); (DQ-39) `builder_reserve_done` goes whole, H-A-661's refusal with it; `builder_build_again`
|
||||
stays the person's tool (principle 7); (DQ-40) H-A-673's finding is kind `want-unversioned`, id `<module>.<node>`,
|
||||
cleared once the want names a version (principle 3); (DQ-41) the seat `mesh-broker`'s list of fills has items of a
|
||||
definition of their own, never a type that names itself (principles 7 and 9); (DQ-42) `recreate` reads the bus
|
||||
account's room before its snapshot and refuses when the asked caps do not fit, saying how short (principle 3); (DMC-13)
|
||||
mesh-sdk's Go runtime gains the ledger watch a bundle asks of the tool runner (`mesh/ledger`), beside `BusState`,
|
||||
as S5, before G11 and G13 (principles 1 and 9); (DMC-14) the mesh-wants client takes the held words
|
||||
`awaits-reads:` and `awaits-entry:` beside `awaits-hand-placement`, as DC3, before A3 (principle 7).
|
||||
- **H-A-711 (a process placed before its node-engine named the node is applied again, 15:00)** 25 Nov, issue 1984 notes
|
||||
37 and 38; answers the review of the MESH_NODE fix (`mesh-host` branch fix/mesh-node-composition): the fix gives a process the
|
||||
node's name only at its module's next apply, so a process placed before it, networkmanager's sign-in among them
|
||||
(crash-looping on three of the four machines), keeps running without it. A-342 says the node-engine sets `MESH_NODE` in
|
||||
"every process it runs": at its first pass after its own update, the node-engine applies a process again when the unit
|
||||
it would write differs from the one its applied record says it wrote (the mesh's own truth, principle 2, and the
|
||||
comparison the apply already makes, principle 7; corrected 25 Nov from "the one on disk"), once, so every such process restarts once (the operator accepted the
|
||||
one-time restart of every process, 2026-11-25 about 14:40); afterwards an unchanged unit is never written again. How
|
||||
it is checked: a row of the node-engine's tests (a unit on disk without `MESH_NODE` is written again with it at the
|
||||
first pass, and not at the second); live, networkmanager's sign-in runs on those three machines after the node-engine's
|
||||
delivery. A-342; principles 3 and 2.
|
||||
|
||||
## The prepare's design questions no principle settles: DQ-43 to DQ-46 (2026-11-25 from 14:50 CET)
|
||||
|
||||
H-A-707 to H-A-710 answer the preparer's rows DQ-43 to DQ-46 (hq `.work/47-H2-corrections/milestone.md`) in
|
||||
[H2-lead-answers-6.md](H2-lead-answers-6.md)'s section of the same name: H-A-707, first written here, moved there whole
|
||||
with the fixes of its review by architectural domain, since this file is near its 60 KB bound.
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user