Design 47 H2b: H-A-796 to H-A-803, the lead's answers to the four reviews' round-1 findings that need one

This commit is contained in:
2026-11-26 23:22:38 +01:00
parent 5b02760ff0
commit ee5d6c5abf
@@ -1315,3 +1315,63 @@ mesh-delivery 3b1f03ce, mesh-tools 393449e, mesh-catalog 17e1bfb6 and mesh-sdk b
module; one that would empty something, and every drop, asks and names what goes. Design 25's checks in its
bus-module table that refuse a recreate without the warrant are amended to ADR 0692 §3 in the same round. Principle
10. How it is checked: ADR 0692's own checks, as the H2b line's rows of the bus module's whole test.
- **H-A-796 (the tool runner's bundle files wait on a node-engine capability, 23:22)** 26 Nov, the H2b review round 1
(security and upgrade 1, seams and tools 1, running and testing 1: no order between the node-engine and the tool
runner for §844). H §772's shape settles it: the H2b node-engine says a capability `tool-files` through the seat
`node-engine`'s capability event (G §590), and the assigner writes the tool runner's H2b want on a machine only once
that machine's node-engine says it (an ordering edge on a node-engine capability, design-it-as-it-should-be). The
node-engine composes the runner's unit from the manifest of the runner's build it applies, as it composes every unit
(principle 2): for a runner build whose manifest says it reads its bundles from files, the per-module files and a
unit environment without them; for an older one, the environment as today. So either build of the runner is served
throughout, and a revert of the runner to an older build composes the environment again. The engine's
`ToolsRunning` and `keepHeldSlices` (H-A-306) read the files for a runner that reads files. How it is checked: whole
(node-engine): the swap and its revert each serve every tool throughout; live: the first H2b machine's mesh MCP server
answers through the runner's move.
- **H-A-797 (§850 follows G §57 to §59: a large value is an object, never refused, 23:22)** Seams and tools 2, security
and upgrade 3, running and testing 5. ADR 0666 §16 and G §57 to §59 already decide it: a value over the bus's
per-value limit is put in the object store beside its state (`<state>-objects`) with its name in the key; a reply or
an event over the per-message limit carries the name of an object in the sender's sent store
(`<module>_sent-objects`), kept 7 days; a full store refuses loudly, naming it. §850 drops `value-max-kib` and the
refusal, and builds G §57 to §59 where H2b's prepare finds them not built (mesh-sdk's state writer, tool harness and
seat pass). The prepare lists each state's largest value today. Principle 7 (what exists), ADR 0666 §16.
- **H-A-798 (the form a reader declares is the seat value's, and every user of the seat is a reader, 23:22)** Seams and
tools 8, security and upgrade 4. A value another module reads is a seat's value, and its form is the seat contract's
(ADR 0686 §2, ADR 0596 §2, principle 9): `reads-form` goes on the reader's seat entry it already has (`consumes` or
`invokes`), naming the seat value, never the holder's kept data. G §59's ordering edge of kind 4 (a reader of the
form delivered before its producer writes it) is the edge §858 uses. Every module whose manifest names that seat
value is a reader: `validate` refuses a raise while any of them declares a lower form or none, naming each, so the
first raise carries its readers (principle 3; design-it-as-it-should-be). Amends H-A-780 and H-A-793.
- **H-A-799 (a module's own repair of its own ledger at its start is no hand act; the acts end per node, 23:22)**
Security and upgrade 2, seams and tools 6, running and testing 2, health and events 4. (1) The gate's start pass
repairing its own ledger is the module's own work, not a hand act: it gives no `why` and writes nothing in the
hand-act log; a call through the tools by a person or a session takes a `why` (H-A-789 (3)). (2) The edge: the tool
runner's H2b build is delivered before the gate's (a served verb's new form, design-it-as-it-should-be). (3) An `error`
answer raises `index-behind` (H-A-690 (3)) and the start pass begins; `repair-ended` is owed and said again as §832
owes; past five minutes of waiting the gate raises a finding naming the act. (4) A tool runner's start ends only the
acts whose key names its own node, and `ledger_repair_cancel` (an act id and a `why`, in the hand-act log) ends one by
hand. Principles 3 and 4.
- **H-A-800 (the event hub binds a late durable when the grants part says so, never on a timer, 23:22)** Seams and
tools 7, running and testing 8, health and events 3, security and upgrade 6. ADR 0682 §11 (wakes on its inputs alone)
and principle 1: the hub binds each stream it could not bind when the grants part says that its module's
membership changed, an event of the seat `mesh-grants`; `StartUntilBound`'s fixed 5-second retry goes. Where the
grants part says no such event today, H2b adds it there (design-it-as-it-should-be). `events-unheard` clears at that
bind. The four other callers of `StartKept` (the assigner, the builder, the indexer and the runner) change in H2b
and are named in the line.
- **H-A-801 (owed events are kept in memory in order, re-derived at a start, 23:22)** Running and testing 3, health and
events 1 and 2, seams and tools 5. Amends H-A-777: an owed event is kept in the assigner's memory, in order per wait
and per pipeline, a later one owed behind an earlier one, and said in order (a write on the bus that refused would
fail with it). At its start the assigner's start pass says again every event its kept state implies, under the same
ids. Each consumer keeps the newest by id and order, since the bus's duplicate window is 2 minutes; the line names
the window and the id forms with their key-safe encoding. The five minutes is a setting (`event-unsaid-after`,
principle 11), and two tools steer it: `assigner_owed` (read) and `assigner_owed_drop` (an id and a `why`, in the
hand-act log). Principles 3, 4 and 11.
- **H-A-802 (sizes: section 10 moves to a file of its own; H2b is not split, 23:22)** Seams and tools 10, security and
upgrade 10, running and testing 11. Playbook 02's *Bounds* (the main file at most 80 KB, a milestone part at most
60 KB) hold for what an agent reads whole: H2b's two parts are 51 KB each, within the bound, so H2b is not split and
the operator's answer (H-A-776) stands. H-deliver grew from 44 KB on main to 188 KB on #805 through section 10's
findings table: that table moves into a file of its own (`H-findings-of-the-live-runs.md`), read by row as the H2b
file cites it, and H-deliver keeps a pointer. The main file is 261 KB on main already; its reshaping stays the
separate run of H-A-334 (4).
- **H-A-803 (no paced read of conditions; ADR 0691 §2 stands, 23:22)** Health and events, note on §829 5. A paced new
read after a failed read would change ADR 0691 §2, which the operator approved; it is not built. The finding's words
name `assigner_release` `rejudge` as its way through. Principle 4.