diff --git a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-2.md b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-2.md index feb94fe5..402919f4 100644 --- a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-2.md +++ b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-2.md @@ -5,6 +5,22 @@ 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 0603" + - "ADR 0593" + - "ADR 0563" + - "ADR 0550" + - "ADR 0370" + - "ADR 0349" + - "ADR 0266" - "ADR 0674" - "ADR 0267" - "ADR 0605" @@ -19,9 +35,306 @@ decisions: --- # 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 still stand in H2-lead-answers.md until a later round moves them here; H-A-588 and later are -written here alone. Each line names the record or the principle that settles it. +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 with round 2 of their review, and every later answer is written here alone. +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:20 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:20)** 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:22)** 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 ", 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:28)** 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..` per module and branch (`failed.` 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:32)** 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:34)** 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:36)** 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 + `.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:38)** 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:40)** 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...revision` and + `.wait-ended...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 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 `..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:` 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:42)** 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..` 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:46)** 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:50)** 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:52)** 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:54)** 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:40)** 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:42)** 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:44)** 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:46)** 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) @@ -178,3 +491,160 @@ and how each is checked. 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. + +## Round 2 of the review by architectural domain of H-A-568 to H-A-587 (2026-11-23 from 15:58 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:58)** 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, 16:00)** 23 + Nov, round 2, amends H-A-566 and H-A-572 (1): the record `failed..` 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, 16:01)** 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, 16:02)** 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, 16:03)** 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, 16:04)** 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 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, 16:05)** 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, 16:06)** 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, 16:07)** 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, 16:08)** 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, 16:09)** 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, 16:10)** 23 Nov, round 2: (1) H-A-568: ADR 0686 §5, proposed and not in force, would + move mesh-sdk's manifest reads, `ManifestNeeds` included, to the indexer; if it is accepted before H-A-568 is built, + both moves land as one change of mesh-sdk. (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, 16:12)** 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. diff --git a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers.md b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers.md index 523aaffb..dd9c7774 100644 --- a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers.md +++ b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers.md @@ -1910,299 +1910,4 @@ The lead's one-line answers to the questions H2's develop and review raise (impl its branch. So: (3) is withdrawn; a failed mover waits for `rerun`, `start` (H-A-565 (2)) or a new fingerprint, its revision kept by H-A-565 (1) and H-A-566; §786 and H-A-414 stand. Source: §786, H-A-414; principle 3. -## From the review by architectural domain of H-A-534 to H-A-567 (2026-11-23 from 15:20 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:20)** 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:22)** 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 ", 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:28)** 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..` per module and branch (`failed.` 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:32)** 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:34)** 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:36)** 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 - `.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:38)** 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:40)** 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...revision` and - `.wait-ended...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 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 `..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:` 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:42)** 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..` 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:46)** 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:50)** 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:52)** 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:54)** 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:40)** 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:42)** 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:44)** 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:46)** 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. +H-A-568 to H-A-587, and every later answer, are in [H2-lead-answers-2.md](H2-lead-answers-2.md).