From a935ab993962eb02376d35c3794be21531880de4 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 25 Nov 2026 15:08:33 +0100 Subject: [PATCH] Design 47 H2: H-A-707 to H-A-710, the prepare's DQ-43 to DQ-46 as design lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No principle settles these four, so each is written as a choice within the records it follows: a build of a key holds one entry and its origin, and a blank pin is the publisher's build in that revision (ADR 0573 §2, ADR 0666 §15); a starting holder answers what it holds and says away for a view it waits on, and a composition's reads wait within reads-bound (ADR 0664 §1, ADR 0668 §1, ADR 0615 §4); show and stands answer within a bound, pipeline-started carries what its readers read, and mesh_wait cuts a long body and hears every seat of the seat list (ADR 0367, ADR 0670); no container is handed MESH_FINGERPRINT and a difference of it alone asks nothing (ADR 0656 §1, ADR 0539 §14). The fifth file reaches its 60 KB bound with H-A-707, so a sixth holds the rest. --- .../47-milestones/H2-lead-answers-5.md | 53 ++++++ .../47-milestones/H2-lead-answers-6.md | 168 ++++++++++++++++++ 2 files changed, 221 insertions(+) create mode 100644 03-DESIGN/01-to-be/47-milestones/H2-lead-answers-6.md diff --git a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-5.md b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-5.md index 020ac6df..3ab95ab7 100644 --- a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-5.md +++ b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-5.md @@ -6,6 +6,7 @@ milestone: H updated: 2026-11-25 decisions: - "ADR 0690" + - "ADR 0573" - "ADR 0597" - "ADR 0595" - "ADR 0686" @@ -501,3 +502,55 @@ bb11615, the node-engine d27af83, mesh-contracts 52e5224) and of mesh-tools 3934 it is checked: a row of the node-engine's tests (a unit on disk without `MESH_NODE` is written again with it at the first pass, and not at the second); live, networkmanager's sign-in runs on shanks, ace and g14 after the node-engine's delivery. A-342; principles 3 and 2. + +## The prepare's design questions no principle settles: DQ-43 to DQ-46 (2026-11-25 from 14:50 CET) + +The preparer's rows DQ-43 to DQ-46 (hq `.work/47-H2-corrections/milestone.md`) name four questions of scope item 13 and +issue 1984's notes that no principle settles; each is answered as a design line of the milestone, a choice within +what the records it names decide (playbook 02, *Answering a design question*, item 1), read at mesh-delivery 3b1f03ce, +mesh-sdk bb11615, mesh-tools 393449e, the node-engine d27af83 and mesh-catalog 17e1bfb6. H-A-707 is below; H-A-708 to +H-A-710 continue in [H2-lead-answers-6.md](H2-lead-answers-6.md), since this file reaches its 60 KB bound with it. + +- **H-A-707 (DQ-43: a key's build holds one entry and its origin; a blank pin is the publisher's build in that + revision, or the pin a newer entry of the key names, 25 Nov)** Where met (issue 1984 note 30, read at mesh-delivery + 7b1756e5): six builds of main.511 failed after 10 minutes, " publishes no version of it at source revision + 155 of main within 10m0s". mesh-config's fingerprint was the same at revisions 510 and 511, its contracts pins blank + at 510 and filled (v0.1.109) at 511; `Reconsider` (`internal/build/run.go`) started the key's build from its copy of + `known`, revision 510's entry, while `take` moved `origin[key]` to source 155, and `awaitPublished` + (`revisionwait.go`) filled the blank pin through `Reserver.VersionAt` (`internal/versions/reserve.go`), which matches + the publisher's reservation or release at that exact branch and source: every publisher had published at source + 154, none at 155. The next build, from revision 511's entry, built at once. ADR 0573 §2 has a module built against + the latest published version of each package it uses and ADR 0666 §15 has it wait for its dependency's publish; + which entry a build reads and how a blank pin is matched are the design's (H-A-521, H-A-547 (3), H-A-551 and + H-A-165 placed them; this line amends them). + (1) **A build holds one entry and its origin.** The builder keeps, per build key, the newest entry heard and the + origin it came with (branch, source and catalog revision) as one value, written together at each `take` in place of + `origin` by key. A build the builder starts by itself (at a `take`, `Reconsider`, `NodesChanged` or a package's + publish) reads its key's newest value when it starts, whatever value woke it; a build a step asks (`buildEntry`, + `step.go`) holds the step's entry with the step's branch, source and revision. Its reservation, its pins and its + revision wait read the value it holds, never `origin` as it stands at that moment; `originOf` goes. + (2) **A newer entry's pin ends the wait.** While a build waits for a blank pin's version, each wake (a `take`, a + registry seat's `package-published`) reads its key's newest entry: when that entry, of the same fingerprint, names a + version for the package, that version is the pin and the wait ends, said once in the journal (" at + : takes , the pin of the entry of revision , heard while the build from revision + waited"). The build keeps its own origin, since its reservation names it (H-A-218), and is neither ended nor + started again: a key claimed is not left to undo, and the same fingerprint builds the same source. + (3) **Else a blank pin is the version of the publisher's build that the build's revision names.** The builder finds + the module that publishes the package (`Members`) and its fingerprint in the catalog revision the build holds (in its + picture of that branch while the picture holds that revision, else in the revision read by number through the seat + `mesh-catalog`'s `revision`, kept once read, as the revision wait reads it, H-A-205), and fills the pin with the + version `Reserver.PublishedOf` answers for that module, artifact and fingerprint: the rule of the seat + `mesh-builds`' `published` (H-A-328), by which the assigner fills a blank pin (H-A-628 (2)), so the two parts keep + one rule. While neither (2) nor (3) gives a version the build waits, within `package-wait-minutes` (H-A-165), and past + it fails the key: "package has no published version: at (revision ) is not + published within ". Fate: `Reserver.VersionAt` and `versionAtOrigin` go, this fill being their one caller; + H-A-547 (3)'s and H-A-551's "the reservation of the module that publishes it at the source revision of the key's own + origin" reads "the publisher's build that the build's revision names"; the released record's source stays. + How it is checked: rows of the builder's unit tests (`internal/build`): a build woken by revision 510's value after a + `take` of revision 511 with the same fingerprint builds from revision 511's entry and origin; a build waiting on a + blank pin takes the version a newer entry of its key names, says the line once and writes no failure; a blank pin + whose publisher's fingerprint was published at another source is filled at once with that version; one never + published fails past the bound naming the publisher and its fingerprint. A case of the builder's whole test + (`cmd/mesh-delivery-builder/integration_test.go`): an entry taken in again at a later revision with the same + fingerprint while the earlier build waits builds once, with no key written failed. Live, after H2's delivery: no + build fails "publishes no version of it at source revision". ADR 0573 §2; ADR 0666 §15; principles 3 and 7. diff --git a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-6.md b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-6.md new file mode 100644 index 00000000..1ae94237 --- /dev/null +++ b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-6.md @@ -0,0 +1,168 @@ +--- +layer: to-be +status: in-progress +design: 47 +milestone: H +updated: 2026-11-25 +decisions: + - "ADR 0664" + - "ADR 0668" + - "ADR 0615" + - "ADR 0682" + - "ADR 0670" + - "ADR 0367" + - "ADR 0656" + - "ADR 0539" + - "ADR 0377" +--- +# Design 47, milestone H2: lead answers, continued a fifth time + +This file continues [H2-lead-answers-5.md](H2-lead-answers-5.md) from H-A-708 on, since that file reached its 60 KB +bound with H-A-707: every later answer is written here. Each line names the record, the operator's answer or the +principle that settles it. + +## The prepare's design questions no principle settles: DQ-43 to DQ-46, continued + +H-A-708 to H-A-710 answer DQ-44 to DQ-46 as [H2-lead-answers-5.md](H2-lead-answers-5.md)'s section of the same name +says (H-A-707 answers DQ-43 there), read at the same mains. + +- **H-A-708 (DQ-44: a starting holder answers what it holds and says `away` for a view it waits on; a composition's + reads wait within `reads-bound`, 25 Nov)** Where met (issue 1984 note 28): main.509's compositions of four movers + ended could-not-run at 23:42 on 2026-11-23, "the definition of the seat git is not read: mesh-catalog.seat-definitions + unanswered within its bound of 30s ... unanswered after 3m0.001s", asked at 23:39 while the indexer, holder of the + seat `mesh-catalog`, restarted at 23:35:31 and ran its start (its build log, its findings, its re-pins, a take-in, its + packages' publish at start) until the seat answered again at about 23:45; that the start held the answers is the + lead's reading, not proven. The composition run's reads (`cmd/mesh-delivery-assigner/compositionreads.go`, + `callRetry`) call again only while the fault's words match a list (`transient`), for a constant three minutes + (`readsBound`). Note 11's kind D (a build step's publish met by a tool runner's restart) is §799's, with H-A-603's + `again-delays`. The records settle the classes and the caller's duty: the transport faults are ADR 0664 §1's and + ADR 0668 §1's, `away` among them since their insights of 2026-11-21; a kept call is called again through each until it + is answered or its caller stops, and is the finding `call-unanswered` at five minutes (ADR 0668 §1, §3); an owner + answers its first-view verbs from what it holds as soon as it is connected (ADR 0615 §4). A holder that is starting + gets no class of its own, as one that is stopping got none (H-A-570): it is met as one of these. + (1) **A starting holder answers what it holds.** A verb or tool whose answer its holder reads from its own state + answers from the moment its process or bundle is connected: a start pass (a sweep, a take-in, a publish at start, a + log read whole) runs beside the answers and never holds one, as ADR 0615 §4 has it for the first-view verbs; the + holder says its start's phases in its journal and in its runtime's first-view tool (G §200). + (2) **What it waits on it answers `away`, at once.** A verb or tool whose answer needs a first view of another part + that its holder has not had yet (G §200) answers at once with the error kind `away` (§776), `part` naming that view + and `words` "not read yet since