Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31b491c501 |
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: mesh-code-reviewer
|
||||
description: Reviews one change of the Novox mesh before it is pushed (hq playbook 07, the review; at most three rounds): each commit against the design lines it cites, code no design line asks for, the build maps' What exists today, whether its tests prove it without standing in for another part of the mesh, and each changed module against the live mesh with the order of delivery it needs. Read-only; reports findings, never fixes, and never re-judges the design.
|
||||
description: Reviews one change of the Novox mesh before it is pushed (hq playbook 07, the review; at most three rounds): each commit against the design lines it cites, code no design line asks for, the build maps' What exists today, and whether its tests prove it. Read-only; reports findings, never fixes, and never re-judges the design.
|
||||
tools: Read, Grep, Glob, Bash, mcp__mesh__mesh_call, mcp__mesh__mesh_describe, mcp__mesh__mesh_search
|
||||
model: opus
|
||||
---
|
||||
@@ -34,14 +34,6 @@ questions are.
|
||||
searches again on the reviewed tree), or one the search finds and the answer omits;
|
||||
- a test that does not fail without its change (check it by taking the change out in a copy), an acceptance
|
||||
criterion with no test, a new test function where the repository is over budget, real sleeping;
|
||||
- **a test that stands in for another part of the mesh, by rule** (playbook 07 step 2, item 11): one that creates a
|
||||
stream, a consumer or a process taking a work queue's asks where the bus module, the grants part or the
|
||||
node-engine should, or fakes a seat's holder in a whole test. The fix is composing what it needs with the parts' own
|
||||
composers from the module's bus-shape sheet (step 0, item 11); a composer it cannot import is a gap of the build and
|
||||
delivery system, named for the lead. List every new or changed test that creates bus state or fakes a seat's
|
||||
holder, each with the composer that should make it;
|
||||
- a changed module whose bus shape differs from its bus-shape sheet (its manifest sections, accounts, streams and
|
||||
subjects, work queues and who takes their asks, who creates each);
|
||||
- vet or tests that fail: run `go vet ./...`, `go vet -tags integration ./...` and `go test ./...` in every
|
||||
touched module, with the siblings placed as the build map's one placement says;
|
||||
- a change to any `module.json` reported without the manifest validator's verdicts (every manifest whose verdict
|
||||
@@ -52,16 +44,6 @@ questions are.
|
||||
principle you know of, name the line and why in a note; the lead brings it to the operator. The code follows the
|
||||
line until the design changes.
|
||||
|
||||
**Read each changed module against the live mesh, and name the order of delivery** (playbook 07 step 2, item 12;
|
||||
the operator, 2026-11-22). Through the mesh MCP server's tools, read what runs on the nodes now: each node's haves of
|
||||
every module the change touches or relies on, and which parts still carry the form the change replaces (the tool
|
||||
runner, the build modules, the node-engine, the indexer and its manifest validator, the grants part). For each, ask
|
||||
whether its running version can take in, judge, build, compose or page the new form. Write a section `Live mesh`:
|
||||
each such part with the build read on each node and the time read, then the order of delivery the change needs (the
|
||||
parts that judge, build, compose or page first, then the modules that use them), each step an ordering edge the
|
||||
delivery plan derives, or a gap of the build and delivery system for the lead. A part on the old form that no step of
|
||||
the order brings over is a finding.
|
||||
|
||||
**Prove it against the live mesh, never a re-creation.** When the change answers a fault seen on the machines,
|
||||
check what it claims against the state the mesh itself uses, read through its tools (the manifest validator's own verdicts in the indexer,
|
||||
the packages state, the store, a node's haves), never against a copy you rebuilt: a manifest validator run without the seat list,
|
||||
@@ -71,6 +53,5 @@ such in the report.
|
||||
Anything else (hardening, a further case, a nicer form) is a note, never a round. Read only: no edits, no git
|
||||
write, no verb that writes, never ssh. Use a temporary directory under `/var/tmp`.
|
||||
|
||||
Answer playbook 07 step 2 item 10's two questions, one line each; then the list of tests of item 11 and the section
|
||||
`Live mesh` of item 12 (a report without them is not an approval). Answer **APPROVED at** the full commit ids, or numbered findings each with file:line, the design line it concerns,
|
||||
what is wrong, and the fix; design questions and notes apart. Under 40 lines, glossary words only.
|
||||
Answer playbook 07 step 2 item 10's two questions, one line each. Answer **APPROVED at** the full commit ids, or numbered findings each with file:line, the design line it concerns,
|
||||
what is wrong, and the fix; design questions and notes apart. Under 25 lines, glossary words only.
|
||||
|
||||
@@ -35,11 +35,7 @@ A fact the build map got wrong (a file moved, a function renamed) you say to the
|
||||
**How you work.** Worktrees from `origin/main` on the branch the handover names, subtasks in the build map's order:
|
||||
one that uses a contract, type, verb or package another subtask adds starts from that subtask's commit. Commit per
|
||||
subtask, its label in the subject and a line `Builds: design NN M §n, …` in the body, locally only: never push, never open a pull request, never call a verb that writes on the mesh (reads are fine). Never
|
||||
ssh, never a shell helper for the mesh. Tests: every change carries a test that fails without it (check it), and no test stands in for another part of the
|
||||
mesh (playbook 07 step 2, item 11): none creates a stream, a consumer or a process taking a work queue's asks that the
|
||||
bus module, the grants part or the node-engine should, and none fakes a seat's holder in a whole test; compose what a
|
||||
test needs with the parts' own composers from the module's bus-shape sheet, and a composer you cannot import is a
|
||||
question for the lead;
|
||||
ssh, never a shell helper for the mesh. Tests: every change carries a test that fails without it (check it);
|
||||
rows or subtests in existing tests where the repository is over the test budget the instructions set; no real
|
||||
sleeping. Run `go vet ./...`, `go vet -tags integration ./...` and `go test ./...` in every touched module as
|
||||
the running checker places siblings (playbook 07). Once per head you report, not per commit, also run the integration tests of
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
---
|
||||
name: mesh-preparer
|
||||
description: Prepares one milestone or small fix of the Novox mesh before any code is written (hq playbook 07, the prepare step; playbook 08), from the milestone's part of its design and the design's main file, read whole, then the code each design line lands in - one build map per repository (where each design line lands in code, what exists there today and what relies on it, the subtasks and their order), the list of design questions the design does not answer, and the list of places where a design line and the code disagree. Decides nothing; writes only its build maps, the milestone file's two lists and a bus-shape sheet per module.
|
||||
description: Prepares one milestone or small fix of the Novox mesh before any code is written (hq playbook 07, the prepare step; playbook 08), from the milestone's part of its design and the design's main file, read whole, then the code each design line lands in - one build map per repository (where each design line lands in code, what exists there today and what relies on it, the subtasks and their order), the list of design questions the design does not answer, and the list of places where a design line and the code disagree. Decides nothing; writes only its build maps and the milestone file's two lists.
|
||||
tools: Read, Grep, Glob, Bash, Write, mcp__mesh__mesh_call, mcp__mesh__mesh_describe, mcp__mesh__mesh_search, SendMessage
|
||||
model: opus
|
||||
---
|
||||
|
||||
You prepare one change of the Novox mesh for the lead who started you. The caller's handover names the issue, the
|
||||
design and its milestone part at an hq commit, and where your files go (playbook 07, step 0). You write the build
|
||||
maps, the milestone file's sections `Design questions` and `Design meets code`, and a bus-shape sheet per module with
|
||||
the test that composes it, in your own worktree, nothing else; you call no verb that writes and make no git
|
||||
maps and the milestone file's sections `Design questions` and `Design meets code`, nothing else; you call no verb that writes and make no git
|
||||
write.
|
||||
|
||||
**The design is your only input for what is built.** Read the milestone part and the design's main file whole, at the commit the
|
||||
@@ -39,17 +38,6 @@ code`: the design line, the code (file:line at the commit read, each repository'
|
||||
which of the three it is, and your recommendation, said as one. The lead answers these against the principles before
|
||||
develop starts, as it does the design questions; you answer none.
|
||||
|
||||
**End with a bus-shape sheet per module, composed in a test** (playbook 07 step 0, item 11; the operator,
|
||||
2026-11-22). For each module the milestone adds or changes, write `.work/<slug>/<module>.bus.md`: its manifest
|
||||
sections (each process, its `bus`, `serves` and `requires`), its bus accounts, its streams and their subjects, its
|
||||
work queues and the process that takes each queue's asks, its durable consumers, and who creates each (the bus module
|
||||
from `requires`, the grants part, the module's own process), every row citing its design line. Then judge it in a
|
||||
test in a worktree of your own under `/var/tmp`: the manifest validator with the live seat list, and the grants part's
|
||||
composer and the node-engine's composer (the composition of `mesh-delivery-sdk`) composing the manifests the sheet
|
||||
describes. A refusal is an entry under `Design meets code`; a row no design line gives is a design question; a composer
|
||||
the test cannot import you report to the lead as a gap of the build and delivery system. Name the test and its result
|
||||
at the top of the sheet.
|
||||
|
||||
**Everything the design does not say is a design question, never your answer.** A reader or an effect with no fate,
|
||||
a field's form, a key and who deletes it, a bound, a caller, an owner, a tool for a new state, an interaction whose
|
||||
seat, verb, event or provision the design does not name, a live state that contradicts a design line: list
|
||||
@@ -59,7 +47,6 @@ anything should be, no finding of your own and no ruling; where you think a desi
|
||||
principles, it is a design question too, and you map the line as written.
|
||||
|
||||
Report to the caller in under 30 lines: the build maps' paths, the count of design lines mapped per repository and
|
||||
any line not mapped, the subtasks' order, the bus-shape sheets' paths and their tests' results, the design questions and the entries of
|
||||
`Design meets code`, one line each with your recommendation, and their count: more than ten together send the
|
||||
milestone back to its design (step 0b, item 5). Glossary
|
||||
any line not mapped, the subtasks' order, the design questions and the entries of `Design meets code`, one line each with your
|
||||
recommendation. Glossary
|
||||
words only; a guess is said as one.
|
||||
|
||||
+12
-18
@@ -643,7 +643,7 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
||||
- **run on request** — a pipeline run for a named commit or group that delivers nothing, asked by the runner's verb
|
||||
`run`; the indexer builds its candidate from the runner's `run-started` (ADR 0666 §18).
|
||||
- **artifact reference** — an artifact written `<module>:<artifact>`, such as `mesh-grants:program`: the end of a
|
||||
dependency edge of the catalog graph (ADR 0666 §14).
|
||||
dependency edge of the module graph (ADR 0666 §14).
|
||||
- **mesh-pipeline-runner** — the seat, held once for the mesh, that runs each pipeline: it reads the policy from the
|
||||
registrations, asks each pipeline step of the seat that serves it, says each step's start and end and each pipeline's
|
||||
end as its events, keeps each pipeline's state and step log on the bus, and serves the run on request (ADR 0666 §7,
|
||||
@@ -675,23 +675,23 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
||||
release 4 of ADR 0429 a pull request carried two statuses, one for the modules the change touches and one
|
||||
for the repository's own script (ADR 0238). Goes at the delivery of design 47's milestone G, the **pipeline** in its
|
||||
place (ADR 0666 §17); the word goes to the *pipeline* entry's *Not:* line with the as-is update after that delivery.
|
||||
- **catalog graph** — the modules as their manifests declare them at one revision (bases, packages, provides and
|
||||
- **module graph** — the modules as their manifests declare them at one revision (bases, packages, provides and
|
||||
requires, invokes and serves), with the acting rules the seats declare; the indexer keeps it, one
|
||||
revision per source revision it takes in (ADR 0656). Its other name is **module graph**, the word for it before
|
||||
ADR 0656, from which each delivery part orders a source revision by its own rule: provisions, bus state, a served
|
||||
revision per source revision it takes in (ADR 0656). It was called "catalog graph" from ADR 0656 until
|
||||
the operator made module graph its one word again (2026-11-23). From it each delivery part orders a source revision by its own rule: provisions, bus state, a served
|
||||
verb and a reader's capability are waited on; a package, and until research 085's milestone a build module's
|
||||
change, are triggers that rebuild, never waits; a verb edge on a cycle is left out (ADR 0603 §1, §2, ADR 0614); from research 085's milestone an acting part's edge is a wait within
|
||||
its step (ADR 0656). From milestone G's delivery it is kept once per **watched branch**, and its edges run between
|
||||
**artifact references**, of six kinds, the reverse order holding when something goes away (ADR 0666 §6, §14).
|
||||
Nothing stores the order. Only the indexer reads the manifests; every other part reads the catalog graph (the operator,
|
||||
Nothing stores the order. Only the indexer reads the manifests; every other part reads the module graph (the operator,
|
||||
2026-11-11; design 47 G §442). Not the **assignment graph**, computed from it.
|
||||
*Not:* ~~build graph~~
|
||||
*Not:* ~~build graph~~, ~~catalog graph~~ (hq)
|
||||
- **assignment graph** — the module versions placed on nodes at one revision, with the edges between versions that
|
||||
its inputs give: provisioning, contribution, and the acting parts' versions that are to act on each entry. The
|
||||
assigner computes it from the catalog graph, the placements and the nodes' capabilities, and nothing else writes it;
|
||||
assigner computes it from the module graph, the placements and the nodes' capabilities, and nothing else writes it;
|
||||
it keeps each revision naming the revisions of its inputs, served by the seat `mesh-wants`, and writes the wants
|
||||
from a trunk revision's alone (ADR 0656), from milestone G's delivery from a revision of the watched branch a
|
||||
placement chose whose `required` pipeline steps passed (ADR 0666 §9). Not the **catalog graph**, whose entries are modules, not
|
||||
placement chose whose `required` pipeline steps passed (ADR 0666 §9). Not the **module graph**, whose entries are modules, not
|
||||
versions on nodes; not an **assignment**, one module put on one node.
|
||||
- **mesh-wants** — the seat, held once for the mesh, that keeps what each node should run, one want
|
||||
per node and module (`want.<node>.<module>`), and a person's upgrade policy, served as its verb `upgrade`
|
||||
@@ -708,7 +708,7 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
||||
the touched nodes and the order read off the edges. It is the change's delivery, and nothing stores a plan beside
|
||||
it (ADR 0656); the assigner serves it by the seat `mesh-wants`'s verb `difference` (design 47). Not a **delivery plan**,
|
||||
which was stored and handed out.
|
||||
- **revision view** — what every part acts on: the catalog graph with its heads, seat definitions, verdicts and
|
||||
- **revision view** — what every part acts on: the module graph with its heads, seat definitions, verdicts and
|
||||
fingerprints, served by the seat `mesh-catalog`'s verb `revision`, and the assignment graph computed from it,
|
||||
served by the seat `mesh-wants`'s verb `revision`, for a trunk revision or a candidate's heads; a pair, each half
|
||||
served by its one owner (ADR 0656; the verbs' names, design 47). A part with none for the current revision waits
|
||||
@@ -746,16 +746,10 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
||||
word goes to that entry's *Not:* line with the as-is update after that delivery.
|
||||
- **dry run** — a session's run, before a release is pushed, of the parts that will take it in, build it and merge it,
|
||||
as they run live, on the revision as the merge will make it: in process on the session's machine, reading the mesh
|
||||
and writing nothing there. It holds five items: the live take-in run whole with the seat list it will read, every
|
||||
build against the packages as published, the gate's merge path read for the group, the reviewed heads delivered once
|
||||
in the lab of one machine from take-in to `delivered`, and no item left open (hq playbook 07, step 2b). A change
|
||||
of a delivery module, the node-engine, the tool runner, the bus module or the SDK's bus packages never skips it. Not a **try** nor a **run on request**, which the mesh runs and which deliver a verdict; a dry
|
||||
and writing nothing there. It holds four items: the live take-in run whole with the seat list it will read, every
|
||||
build against the packages as published, the gate's merge path read for the group, and no item left open (hq
|
||||
playbook 07, step 2b). Not a **try** nor a **run on request**, which the mesh runs and which deliver a verdict; a dry
|
||||
run owes the forge nothing and is not a check.
|
||||
- **bus-shape sheet** — the prepare's list, per module a milestone adds or changes, of what the module will be on the
|
||||
bus: its manifest sections, bus accounts, streams and their subjects, work queues and the process that takes each
|
||||
queue's asks, durable consumers, and which part creates each; judged by the manifest validator and composed by the
|
||||
grants part's composer and the node-engine's composer in a test before any code (hq playbook 07, step 0, item 11).
|
||||
Not a **build map**, which says where each design line lands in code.
|
||||
- **trunk commit** — the commit of the trunk a merge check's verdict was judged against: the trunk's head when
|
||||
the build module cloned it. The verdict holds for that commit only, goes out of date when the trunk moves, and
|
||||
is then carried to the new commit (ADR 0323, ADR 0548). Goes at milestone G's delivery with the merge check: a pipeline
|
||||
|
||||
@@ -67,34 +67,22 @@ A small fix (one repository, one issue, about an hour of work) follows
|
||||
own indexer and five more modules with the live seat list, and its trunk builds waited on renamed packages only the
|
||||
take-in would publish. The dry run (step 2b) now runs the live take-in, the builds against what is published and the
|
||||
gate's merge path, and holds the push while any item is open.
|
||||
- **A change of the delivery system proven only on the live mesh.** On 2026-11-21 and 2026-11-22 milestone H2 of
|
||||
design 47 was delivered after a review that approved it, and about 25 faults showed only on the machines: the
|
||||
node-engine's composer stripped one manifest section of a process and kept another, so the declaration read refused
|
||||
the milestone's own manifests; a stream's subject was not widened, so an approved registration was never written; a
|
||||
work queue had no process taking its asks; and a durable consumer left behind for each old form set off the grants
|
||||
part's alarm. The tests had passed because they created the streams, consumers and takers of asks the broker should
|
||||
have, or a stand-in for a seat's holder, and the review read the code against the design, not against what the nodes
|
||||
ran: the tool runner, the build modules and the node-engine still carried the old form, and the parts that judge,
|
||||
build and compose had to reach the machines first. The prepare now ends with a bus-shape sheet composed in a test
|
||||
(step 0, item 11), a test that stands in for a part of the mesh is a finding (step 2, item 11), the review reads the
|
||||
live mesh and names the order of delivery (step 2, item 12), and the dry run delivers the reviewed heads once in the
|
||||
lab before any pull request opens (step 2b, item 4; the operator, 2026-11-22).
|
||||
- **A module proven only after it reached the machines.** The mail modules were delivered with unit tests
|
||||
only, then failed live three times (issues 859, 865, 868) and took five more hours of fixes.
|
||||
|
||||
## The shape
|
||||
|
||||
One feature is **one branch name**, **one worktree per repository**, **one pull request per repository**,
|
||||
opened **once**, after the review, and **one check** (ADR 0548). It runs in five steps, with the design completed between the first two (step 0b) and, for a change of what judges, builds, composes or delivers it, a dry run between the review and the check (step 2b), and its time is bounded. A milestone has no phases
|
||||
opened **once**, after the review, and **one check** (ADR 0548). It runs in five steps, with the design completed between the first two (step 0b) and, for a change of what judges, builds or merges it, a dry run between the review and the check (step 2b), and its time is bounded. A milestone has no phases
|
||||
(the operator, 2026-10-17): these are its steps, and a report names the step it is in:
|
||||
|
||||
| Step | What happens | Bound |
|
||||
|---|---|---|
|
||||
| 0. Prepare | from the milestone part and the design's main file, read whole, then the code each design line lands in: where each line lands, what exists there today and what relies on it, as one build map per repository; every design question, the design's silences, listed; every place where a design line and the code disagree, listed; and a bus-shape sheet per module, composed in a test | 15 minutes, longer when what exists is large: code never starts on an incomplete answer |
|
||||
| 0b. Design complete | every design question and every place where design and code disagree is answered: by the lead in one line against the principles, or, where no principle settles it, by the operator or `hq-design-writer` (step 0); each answer is written down (the lead's in the milestone's lead-answers file, the others into the milestone part, playbook 02) and its build map rows added; more than ten questions send the milestone back to its design | until the list is empty: develop never starts before |
|
||||
| 0. Prepare | from the milestone part and the design's main file, read whole, then the code each design line lands in: where each line lands, what exists there today and what relies on it, as one build map per repository; every design question, the design's silences, listed; and every place where a design line and the code disagree, listed | 15 minutes, longer when what exists is large: code never starts on an incomplete answer |
|
||||
| 0b. Design complete | every design question and every place where design and code disagree is answered: by the lead in one line against the principles, or, where no principle settles it, by the operator or `hq-design-writer` (step 0); each answer is written down (the lead's in the milestone's lead-answers file, the others into the milestone part, playbook 02) and its build map rows added | until the list is empty: develop never starts before |
|
||||
| 1. Develop | one fixing agent per repository builds every design line of its build map locally, each commit citing the lines it builds, the whole unit suite before every commit, the integration tests compiled, and once per head it reports those of the packages it touched and their importers run against an embedded bus (below); nothing is pushed | the milestone's issues, 30 minutes each |
|
||||
| 2. Review | one reviewer reads all of it, the local commits, judging the integration tests by reading them against the code, a test that stands in for a part of the mesh a finding, each changed module read against the live mesh and the order of delivery named; reports go both ways; at most 3 rounds | 15 minutes |
|
||||
| 2b. Dry run | for a release that changes a part judging a change, or a module path, a package or a manifest form the take-in reads, and always for one that changes a delivery module, the node-engine, the tool runner, the bus module or the SDK's bus packages: the live take-in run whole with the seat list it will read, every build against the packages as published, the gate's merge path read for the group, the reviewed heads delivered once in the lab from take-in to `delivered`, and no item left open | until no item is open: nothing is pushed before |
|
||||
| 2. Review | one reviewer reads all of it, the local commits, judging the integration tests by reading them against the code; reports go both ways; at most 3 rounds | 15 minutes |
|
||||
| 2b. Dry run | for a release that changes a part judging a change, or a module path, a package or a manifest form the take-in reads: the live take-in run whole with the seat list it will read, every build against the packages as published, the gate's merge path read for the group, and no item left open | until no item is open: nothing is pushed before |
|
||||
| 3. Check | push the reviewed heads once and open the pull requests together; the checker's one check runs the integration tests; no further review unless the check fails | one check run |
|
||||
| 4. Deliver | merge; the source revision moves, each module is built once and wanted on its nodes, its canary first | until the view says the source revision `delivered` |
|
||||
|
||||
@@ -326,24 +314,7 @@ of the prepare the lead names at the next report.
|
||||
Then, under `Design meets code`, every place item 3 found where a design line and the code disagree, each with
|
||||
the design line, the code (file:line at the `origin/main` commit read), which of the three it is (a form the code
|
||||
cannot take, a part the line assumes built that is not, a rule in code the line would break), and the preparer's
|
||||
recommendation, said as a recommendation. The two lists and the bus-shape sheets (item 11) are the prepare's last
|
||||
output and step 0b's input.
|
||||
11. **Write a bus-shape sheet per module, and compose it in a test, before any code** (the operator, 2026-11-22). For
|
||||
each module the milestone adds or changes, `.work/<slug>/<module>.bus.md` lists what the module will be on the bus
|
||||
once the change runs: its manifest sections (each process, its `bus`, `serves` and `requires`), its bus accounts,
|
||||
its streams with their subjects, its work queues with the process that takes each queue's asks, its durable
|
||||
consumers, and for each of these who creates it (the bus module from the module's `requires`, the grants part, the
|
||||
module's own process at its start). Each row cites the design line that gives it; a row no design line gives is a
|
||||
design question (item 10). The sheet is judged as the mesh will judge it, in a test in the preparer's worktree: the
|
||||
manifest validator judges the manifests the sheet describes, with the live seat list, and the grants part's
|
||||
composer and the node-engine's composer (the composition of `mesh-delivery-sdk`) compose them; each must take the
|
||||
sheet as written. A refusal is an entry under `Design meets code`. A composer a test cannot import is a gap of the
|
||||
build and delivery system, said to the lead and built there before develop (the grants part's composer belongs in
|
||||
the SDK, beside the composition of `mesh-delivery-sdk`); never a sheet left unjudged. The sheet is what the
|
||||
developers' tests and the reviewer's reading of the live mesh (step 2, items 11 and 12) hold the change to.
|
||||
How it is checked: every module a build map changes has its sheet, with the test that composed it and its result
|
||||
(`ls .work/<slug>/*.bus.md`); a fault of the bus's shape met after the push that the sheet omits is a miss of the
|
||||
prepare, named at the next report.
|
||||
recommendation, said as a recommendation. The two lists are the prepare's last output and step 0b's input.
|
||||
|
||||
## Step 0b — Design complete
|
||||
|
||||
@@ -368,13 +339,6 @@ answer is written down before the code; 2026-11-11: the lead answers it against
|
||||
answers it.
|
||||
4. **The design is complete** when every entry of both lists names its answering commit. Then step 1 starts, from the milestone
|
||||
part at that commit.
|
||||
5. **More than ten design questions send the milestone back to its design** (the operator, 2026-11-22). When the
|
||||
prepare leaves more than ten entries in `Design questions` and `Design meets code` together, the milestone part is
|
||||
not ready to be built: the lead answers none of them one by one, hands them all to `hq-design-writer` as one
|
||||
amendment of the milestone part (playbook [02](02-graduation.md)), read by the four reviewers by architectural
|
||||
domain, and the prepare runs again on the amended part. Develop starts only from a prepare that left ten or fewer.
|
||||
How it is checked: the milestone file's two lists, counted at the prepare's end (`grep -c`), and the hq commit of
|
||||
the amendment when they held more than ten.
|
||||
|
||||
**A question met later stops only its part.** A developer or the reviewer who meets a question the milestone part
|
||||
does not answer stops the subtasks that need the answer, says the question to the lead with the design line and
|
||||
@@ -407,10 +371,7 @@ an answer no hq commit holds, is a finding of the review (step 2, item 2a).
|
||||
the test calls what the change adds, the agent takes out the change's effect (the line that does it, not the new
|
||||
function), sees the test fail, and puts it back (2026-10-19: a check request's new field was proven by a test of
|
||||
its helper alone, and dropping the field from the request passed every test); `gofmt`, `go vet` and the whole unit suite stay green. **The tests are written from the issue's
|
||||
acceptance criteria**, and **a test never stands in for another part of the mesh** (step 2, item 11): it creates no
|
||||
stream, consumer or taker of a work queue's asks that the bus module or the grants part should create, and fakes no
|
||||
seat's holder in a whole test; it composes what it needs with the parts' own composers, from the bus-shape sheet
|
||||
(step 0, item 11). One test or more per criterion at the level it names, each test's comment citing
|
||||
acceptance criteria**: one test or more per criterion at the level it names, each test's comment citing
|
||||
the criterion it proves by its label (`// 1118/AC2`), and no criterion left without its test; an integration criterion is a test
|
||||
that compiles and is run by the pull request's one check. The integration tests (those that start a store, a bus
|
||||
or a process) are compiled with `go vet -tags integration ./...` while developing and run by that check. **Once per head it
|
||||
@@ -549,41 +510,15 @@ an answer no hq commit holds, is a finding of the review (step 2, item 2a).
|
||||
the record behind it, the lead brings it to the operator as a design question, and the code waits for the answer
|
||||
in the design. How it is checked: the review report has a line for each question with its answer, and the lead reads both before the
|
||||
push; a report without them is not an approval.
|
||||
11. **A test that stands in for another part of the mesh is a finding, by rule** (the operator, 2026-11-22). A test
|
||||
that creates a stream, a consumer or a process taking a work queue's asks where the bus module, the grants part
|
||||
or the node-engine should, or that fakes a seat's holder in a whole test, proves what the test made, not what the
|
||||
mesh will make: on 2026-11-21 milestone H2's tests passed on streams and takers they created themselves, and the
|
||||
live broker made neither. The fix is the test composing what it needs with the parts' own composers (the grants
|
||||
part's and the composition of `mesh-delivery-sdk`), from the module's bus-shape sheet (step 0, item 11); a
|
||||
composer it cannot import is a gap of the build and delivery system, built there in the milestone, never a stand-in
|
||||
kept. A unit test's fake of a function's own collaborator is not this; a stand-in for a part another module
|
||||
holds is. How it is checked: the review report lists every new or changed test that creates bus state or fakes a
|
||||
seat's holder, each with the composer that should make it, and a report without that list is not an approval.
|
||||
12. **Each changed module is read against the live mesh, not only the design** (the operator, 2026-11-22). The
|
||||
reviewer reads, through the mesh MCP server's tools, what runs on the nodes today: each node's haves of every
|
||||
module the change touches or relies on, and which parts still carry the form the change replaces (the tool runner,
|
||||
the build modules, the node-engine, the indexer and its manifest validator, the grants part). For each, it asks
|
||||
whether the running version can take in, judge, build, compose or page the change's new form. Then it names, in
|
||||
its report, **the order of delivery the change needs**: the parts that judge, build, compose or page the new form
|
||||
first, then the modules that use it, each step an ordering edge of the module graph the delivery plan derives
|
||||
(instruction design-it-as-it-should-be), or, where no edge carries it, a gap of the build and delivery system for
|
||||
the lead to bring to the operator. A part still on the old form that no step of the order brings over makes the
|
||||
change wrong. How it is checked: the review report holds a section `Live mesh` naming each node's build read for
|
||||
each such part, with its time, and the order of delivery; the lead copies the order into the milestone file and
|
||||
the dry run (step 2b, item 4) delivers in it. A fault met after the merge from a part on the old form is named at
|
||||
the next report.
|
||||
|
||||
## Step 2b — Dry run (a change of the delivery system, or of what the take-in reads)
|
||||
|
||||
**When it runs.** After the review approves the heads and before the push of step 3, for every release that changes a
|
||||
part judging a change (step 3, item 3: the indexer and its manifest validator, the gate, the builder, a build module,
|
||||
the checker or the pipeline runner, the node-engine, a seat definition), and for every release that adds or renames a
|
||||
module path or a package other modules take, or changes the form of manifests the take-in reads. **A release that
|
||||
changes a delivery module, the node-engine, the tool runner, the bus module or the SDK's bus packages never skips it**,
|
||||
and no rule is weighed against that (the operator, 2026-11-22: milestone H2's faults would each have shown in one
|
||||
delivery off the machines). The prepare step's milestone file says per release whether it runs and why (`Dry run: yes`
|
||||
or `no`, with the reason); the review refuses a group that lists a judging part with no such line, and a `no` for a
|
||||
release that changes one of the parts just named. The operator, 2026-11-13: "remember the mistake and make sure our
|
||||
module path or a package other modules take, or changes the form of manifests the take-in reads. The prepare step's
|
||||
milestone file says per release whether it runs and why (`Dry run: yes` or `no`, with the reason); the review refuses a
|
||||
group that lists a judging part with no such line. The operator, 2026-11-13: "remember the mistake and make sure our
|
||||
pipeline catches this".
|
||||
|
||||
**What it is.** A dry run runs the parts that will take the change in, build it and merge it, as they run live, on the
|
||||
@@ -591,7 +526,7 @@ revision as the merge will make it: in process on the session's machine, reading
|
||||
asking no try and no check. An agent of hq's definitions runs it, read-only on the mesh and on every working copy; the
|
||||
lead writes only the handover. Everything live it uses (the builds the nodes run, the seat list, the published
|
||||
versions, the trunks) is read in the same hour as the push, and read again, with the dry run run again, when a head,
|
||||
a main or a live build moves before the push. Five items, each held before any push:
|
||||
a main or a live build moves before the push. Four items, each held before any push:
|
||||
|
||||
1. **The live take-in, run whole.** The indexer that will take the revision in (the running one, read from the view's
|
||||
reach of its module; for a revision that names another build of the indexer, the running one, which keeps it
|
||||
@@ -619,18 +554,7 @@ a main or a live build moves before the push. Five items, each held before any p
|
||||
another base is moved to the gate's branch or left out of the group, a group the gate holds closed is pushed under a
|
||||
new branch name, and an Approve ask that names fewer members than the group is ended and said to the operator,
|
||||
never answered.
|
||||
4. **The reviewed heads delivered once in the lab, from take-in to delivery** (the operator, 2026-11-22). The lab of
|
||||
one machine raises the mesh's four node roles on the session's machine (the control-node's parts, a build node's,
|
||||
the bus module and a node-engine with its tool runner), with an embedded bus and store, from the builds the nodes
|
||||
run now (item 1's reading). The reviewed heads are merged there and run the whole way once: the take-in, the
|
||||
pipeline and its steps, the builds, the grants part's memberships, the compositions, the wants, the node-engine's
|
||||
apply and the tool runner's start, in the order of delivery the review named (step 2, item 12), until the lab's
|
||||
view says the source revision `delivered` and every changed module runs healthy and answers its tools. A step that
|
||||
refuses, holds or stands still is a fault of the release, fixed and reviewed before the push. Where the lab cannot
|
||||
yet raise a part (no bed for it), that is a gap of the build and delivery system, built in the lab in the same
|
||||
milestone or before it and said to the operator; the item is never closed as "not run". The pull requests open
|
||||
only after this item passed.
|
||||
5. **No item open.** The dry run's report says of each item what ran, at which heads and on which live builds, and its
|
||||
4. **No item open.** The dry run's report says of each item what ran, at which heads and on which live builds, and its
|
||||
counts ("ran: 193 manifests, 0 refused, seat list read at 13:05"). An item said "not run", "not known" or "read, not
|
||||
run" is closed, by running it or by showing why it does not apply, or the push is held: **a dry run with an open
|
||||
item is not a pass**, and no rule is weighed against it. Before the push the lead says to the operator, in one line
|
||||
@@ -644,8 +568,7 @@ take-in publishes; no dry run had built a trunk module against the published pac
|
||||
merged a group one member at a time with no undo, stopped at a member whose base was not main, and asked an Approve
|
||||
while a group was still forming and per member of a closed group.
|
||||
|
||||
**How it is checked.** The milestone file holds a section `Dry run` with each of the five items' result, the lab
|
||||
run's source revision and its `delivered` time among them, the reviewed heads it ran
|
||||
**How it is checked.** The milestone file holds a section `Dry run` with each item's result, the reviewed heads it ran
|
||||
on and its time (`grep -n -A6 '^## Dry run' .work/<slug>/milestone.md`), older than the push (the forge branch's
|
||||
first push of the heads) and with no item open; the pull requests' description names it in one line. A push of a
|
||||
release whose milestone file lists a judging part with no such section, or with an item open, is this step skipped;
|
||||
@@ -753,8 +676,7 @@ a fault met after the merge that an item would have shown is named at the next r
|
||||
4. **The milestone's acceptance is proven by its check.** A milestone that adds or changes a module
|
||||
carries an integration test that starts the module whole, its process against the real bus and store, and
|
||||
shows the milestone's acceptance sentence; the forge's checks run it (ADR 0391 §1, §6). Unit tests alone are not
|
||||
that proof; the mesh has no end-to-end tests yet, and the lab is used only for the dry run's delivery (step 2b,
|
||||
item 4; the operator, 2026-10-16 and 2026-11-22).
|
||||
that proof; the mesh has no end-to-end tests yet, and the lab is not used (the operator, 2026-10-16).
|
||||
**A new manifest word's test goes through the first composition that meets it, not only the verb that fills it.**
|
||||
On 2026-10-19 release 1 of feature mail-sender tested a process's own bus account through `module issue`
|
||||
alone; the first push after mesh-mail declared the process composed a random 40-character stand-in for the
|
||||
@@ -1021,15 +943,8 @@ issues in `fixing` that nobody works on reads to the operator as stuck work.
|
||||
item 6b). A fixing agent started on a file without the section, or an effect of a removed or moved part met only
|
||||
after the delivery, is the prepare step skipped, named in the next detailed report and written into the playbook's
|
||||
lessons here.
|
||||
- A release whose milestone file lists a part judging a change, or that changes a delivery module, the node-engine,
|
||||
the tool runner, the bus module or the SDK's bus packages, holds a `Dry run` section with all five items closed, the
|
||||
lab's delivery among them, older than its push (step 2b); one pushed without it, or with an item open, is that step
|
||||
skipped.
|
||||
- Every module a build map changes has its bus-shape sheet with the test that composed it (step 0, item 11); a
|
||||
milestone developed from a prepare that left more than ten design questions, with no amendment of its part between,
|
||||
is step 0b item 5 skipped.
|
||||
- Every review report holds the list of tests that create bus state or fake a seat's holder (step 2, item 11) and the
|
||||
section `Live mesh` with the order of delivery (step 2, item 12); a report without either is not an approval.
|
||||
- A release whose milestone file lists a part judging a change holds a `Dry run` section with all four items closed,
|
||||
older than its push (step 2b); one pushed without it, or with an item open, is that step skipped.
|
||||
- No issue of a running milestone is sized over an hour in its prepare note; an issue whose fixing agent passes
|
||||
twice its bound was not split.
|
||||
- Every issue of a running milestone has a note from the prepare step naming its files and tests (file:line), how
|
||||
|
||||
@@ -476,11 +476,11 @@ const P = [
|
||||
{n:"07",name:"Features",kind:"build",c:"--build",
|
||||
trig:"Work that changes code across issues or repositories, too large for a small fix.",
|
||||
who:"A lead (larger model), one fixing agent per repository (smaller), one reviewer (larger).",
|
||||
steps:["Prepare: name the branch, make the worktrees, read the milestone part and the design's main file whole, then the code each design line lands in. (new)","List every place where a design line and the code disagree, beside the design questions. (new)","Every agent is one of hq's definitions (mesh-preparer, mesh-developer, mesh-code-reviewer, mesh-watcher); the lead writes only the handover. (new)","The prepare's only output: a build map per repository, each row a design line and where it lands, and the design questions. No rulings. (new)","Design complete: the lead answers every question against the principles; one no principle settles goes to the operator or the design writer; then develop. (new)","Read what exists today from the code and the live mesh: every effect of what is removed or moved, every reader of each, what happens to each and its test. No code before it is complete; the review refuses work without it. (new)","The build map opens with what exists today; subtasks ordered contract first, one writer per file.","Write the findings and acceptance criteria into each issue.","Survey every other reader and writer of each changed value. (new)","Answer three questions in the milestone file: who deletes each new key and stream, how the switch-over is tried on one node first, what the one check does not cover. The review checks them. (new)","List every part the change reaches; copy fixtures from the real writer.","End the prepare with a bus-shape sheet per module (manifest sections, accounts, streams and subjects, work queues and who takes their asks, who creates each), judged by the manifest validator and composed by the grants part's and the node-engine's composers in a test; more than ten design questions send the milestone back to its design. (new)","Develop: one agent per repository, one commit per subtask, each citing its design lines; a question stops only its subtask. (new)","A test fails first on behaviour, not on compiling. (new)","Bring each branch up to the trunk; nothing is pushed, no try runs. (new)","Review all of it against the design lines, code no line asks for a finding, reading the integration tests against the code; at most 3 rounds; the report answers the state-and-seams and mesh-agnostic questions. (new)","A test that stands in for another part of the mesh (a stream, consumer or taker of asks it creates, a faked seat's holder) is a finding; the review reads each changed module against the live mesh and names the order of delivery: the parts that judge, build, compose or page first. (new)","Dry run, for a change of what judges, builds or merges it: the live take-in run whole with the seat list it will read, every build against the packages as published, the gate's merge path read for the group, the reviewed heads delivered once in the lab of one machine from take-in to delivered; an item left open holds the push, and a change of a delivery module, the node-engine, the tool runner, the bus module or the SDK's bus packages never skips it. (new)","A group pins the group's own mesh-sdk head in every member. (new)","Push the reviewed heads once and read each forge head against the reviewed commit; no draft pull request, no fix round on an open one. (new)","Open one pull request per repository, together, with Reviewed-by and Pushed-by; the one check runs. A failed check is read, fixed, reviewed, pushed once more. (new)","The operator's Approve on Telegram; the group merges in one pass.","Follow the delivery in the status view (moving, settled, stuck, delivered) to done; resolve the issues; clean up. (new)","When the builder cannot deliver its own fix: revert, a build by a session's call, a registration at the terminal, copies kept outside the store; a broken controller is put back by a want the operator writes, a hand build by mesh-hand-compose and a want. (new)"],
|
||||
steps:["Prepare: name the branch, make the worktrees, read the milestone part and the design's main file whole, then the code each design line lands in. (new)","List every place where a design line and the code disagree, beside the design questions. (new)","Every agent is one of hq's definitions (mesh-preparer, mesh-developer, mesh-code-reviewer, mesh-watcher); the lead writes only the handover. (new)","The prepare's only output: a build map per repository, each row a design line and where it lands, and the design questions. No rulings. (new)","Design complete: the lead answers every question against the principles; one no principle settles goes to the operator or the design writer; then develop. (new)","Read what exists today from the code and the live mesh: every effect of what is removed or moved, every reader of each, what happens to each and its test. No code before it is complete; the review refuses work without it. (new)","The build map opens with what exists today; subtasks ordered contract first, one writer per file.","Write the findings and acceptance criteria into each issue.","Survey every other reader and writer of each changed value. (new)","Answer three questions in the milestone file: who deletes each new key and stream, how the switch-over is tried on one node first, what the one check does not cover. The review checks them. (new)","List every part the change reaches; copy fixtures from the real writer.","Develop: one agent per repository, one commit per subtask, each citing its design lines; a question stops only its subtask. (new)","A test fails first on behaviour, not on compiling. (new)","Bring each branch up to the trunk; nothing is pushed, no try runs. (new)","Review all of it against the design lines, code no line asks for a finding, reading the integration tests against the code; at most 3 rounds; the report answers the state-and-seams and mesh-agnostic questions. (new)","Dry run, for a change of what judges, builds or merges it: the live take-in run whole with the seat list it will read, every build against the packages as published, the gate's merge path read for the group; an item left open holds the push. (new)","A group pins the group's own mesh-sdk head in every member. (new)","Push the reviewed heads once and read each forge head against the reviewed commit; no draft pull request, no fix round on an open one. (new)","Open one pull request per repository, together, with Reviewed-by and Pushed-by; the one check runs. A failed check is read, fixed, reviewed, pushed once more. (new)","The operator's Approve on Telegram; the group merges in one pass.","Follow the delivery in the status view (moving, settled, stuck, delivered) to done; resolve the issues; clean up. (new)","When the builder cannot deliver its own fix: revert, a build by a session's call, a registration at the terminal, copies kept outside the store; a broken controller is put back by a want the operator writes, a hand build by mesh-hand-compose and a want. (new)"],
|
||||
prod:"One pull request per repository, one source revision delivered, resolved issues, no branch or worktree left.",
|
||||
next:"02 (when it ships)",bounds:"Prepare 15 min, at most ten design questions · 30 min per issue · review 15 min, ≤ 3 rounds · one check, pushed once",
|
||||
prev:["Pull requests as scratchpads","Context bought again and again","A change built on what was remembered, not on what runs","Review rounds spent on what a run would show","A node agent's bus reads, proven only by review","A dry run with an open item, taken as a pass","A change of the delivery system proven only on the live mesh"],
|
||||
check:"The checker's one status, mesh/check; the review record; the dry run's section in the milestone file, the lab's delivery among its items; the bus-shape sheets; the review's Live mesh section; the tracker's move."},
|
||||
next:"02 (when it ships)",bounds:"Prepare 15 min · 30 min per issue · review 15 min, ≤ 3 rounds · one check, pushed once",
|
||||
prev:["Pull requests as scratchpads","Context bought again and again","A change built on what was remembered, not on what runs","Review rounds spent on what a run would show","A node agent's bus reads, proven only by review","A dry run with an open item, taken as a pass"],
|
||||
check:"The checker's one status, mesh/check; the review record; the dry run's section in the milestone file; the tracker's move."},
|
||||
{n:"08",name:"Small fixes",kind:"build",c:"--build",
|
||||
trig:"One issue in one repository, about an hour of work.",
|
||||
who:"The session, with one reviewer on the larger model.",
|
||||
|
||||
@@ -298,7 +298,7 @@ approves, for a marked event or a restricted stream.
|
||||
7-approval-mark §4's table gains the row). A module that marks only events needs neither `operator-channel` in
|
||||
`uses` nor `approval-mark/1`: the tool runner asks for the wait, not the module.
|
||||
33. **The tool runner reads the marks from the catalog half on the bus.** The tool runner derives each module's marked
|
||||
subjects from the catalog half it holds (§14; the catalog graph entry carries `needs-approval` and each stream's
|
||||
subjects from the catalog half it holds (§14; the module graph entry carries `needs-approval` and each stream's
|
||||
`grant`, design 46 7-approval-mark §5): for a marked event `<event>` of module `<module>`,
|
||||
`mesh.mod.<module>.event.<event>` and `mesh.stream.<module>.event.<event>`, each event pattern as the bus spells it
|
||||
(`WirePattern`); for a stream with a `grant`, every subject of `ModuleStream.Subjects()`; and each of these also
|
||||
|
||||
@@ -36,7 +36,7 @@ every-event, whose marked waits (design 34 every-event §32 to §37) use this ga
|
||||
gate in G").
|
||||
|
||||
**Where.** mesh-sdk (the manifest field, the seat definition's field, the per-machine state's keys), mesh-contracts
|
||||
(the login shell's seat definition), mesh-delivery (the indexer's manifest validator and catalog graph entry, the grants
|
||||
(the login shell's seat definition), mesh-delivery (the indexer's manifest validator and module graph entry, the grants
|
||||
part's deny), mesh-tools (the tool runner's gate, its state, its tools, and the mesh MCP server's `mesh_describe` in
|
||||
it) and mesh-catalog (the zsh module, which holds the login shell, and the forge module, §21). Nothing is built in a controller: no controller issues memberships today, bus permissions are the grants part's
|
||||
(seat `mesh-grants`), the hand-act log is the seat `mesh-hand-acts`, and the asker's logic is operator-channel's client
|
||||
@@ -106,7 +106,7 @@ enter; `node-files.stat` answers such a file's mode from this milestone (§21a),
|
||||
|
||||
## Where the marks are read, and where they are withheld
|
||||
|
||||
5. **From the catalog half on the bus, never from a bundle.** The indexer's catalog graph entry of a module (design 47
|
||||
5. **From the catalog half on the bus, never from a bundle.** The indexer's module graph entry of a module (design 47
|
||||
G §174) carries the validated manifest whole (design 47 G §443), its `needs-approval`, its `emits` and its streams
|
||||
(their events as the manifest spells them, and whether each carries a `grant`) among it; mesh-sdk's `buscompose`
|
||||
exports `WirePattern`, which a reader uses to turn a stream's events into the bus's subjects, the grants part's own
|
||||
@@ -385,7 +385,7 @@ enter; `node-files.stat` answers such a file's mode from this milestone (§21a),
|
||||
its budget.
|
||||
23. **In G's delivery group, ordered by the module graph.** The members are pushed and checked in design 47 milestone
|
||||
G's group, with design 34's milestone every-event. The orders are the module graph's: the indexer's manifest
|
||||
validator and catalog graph entry that read `needs-approval` before any manifest or seat definition carrying it (a
|
||||
validator and module graph entry that read `needs-approval` before any manifest or seat definition carrying it (a
|
||||
reader edge, design 47 G §89, whose list covers `needs-approval`; Q-RE); and the grants part that composes the deny of §6 before the seat definition marking
|
||||
`execute` (an edge of the seat definition's readers), so no machine serves `execute` unasked between the two; and
|
||||
the grants part serving `withheld` before a node-engine calls it (a served-verb edge, §6).
|
||||
|
||||
@@ -170,7 +170,7 @@ running delivery never touches merging: a merge moves the source revision, and t
|
||||
**From research 085's milestone, every change is checked and delivered by the acting parts built from its own
|
||||
heads** (ADR 0656, which supersedes ADR 0645 to ADR 0648). The acting parts, the parts that act on other modules'
|
||||
changes, declare in their seats' definitions what they act on and are versions in the module graph like any module.
|
||||
The indexer keeps the **catalog graph** (the modules as their manifests declare them) and the assigner computes the
|
||||
The indexer keeps the **module graph** (the modules as their manifests declare them) and the assigner computes the
|
||||
**assignment graph** (module versions placed on nodes, with the edges between versions), each per revision; a
|
||||
change's **graph difference** against the current assignment graph is its delivery, its acting parts' new versions
|
||||
acting first within a bound; its check runs on the acting parts built from its heads and fails, naming one that
|
||||
@@ -227,7 +227,7 @@ source revision is derived from the keys: every **want** equals its module's **f
|
||||
the indexer and the gate for the reads they make and the events they hear (*The seat `git`*, under *The verbs*).
|
||||
- **The indexer** computes each module's fingerprint at the merge preview and writes the candidates of each
|
||||
group and the modules of the trunk. It reads no placement: placement is not in any repository, and the forge
|
||||
bridge carries nothing of placement (ADR 0567). From research 085's milestone it keeps the catalog graph per
|
||||
bridge carries nothing of placement (ADR 0567). From research 085's milestone it keeps the module graph per
|
||||
revision and serves its half of the revision view by a verb of its seat `mesh-catalog` (ADR 0656,
|
||||
ADR 0656).
|
||||
- **The builder** claims a build by creating its key, once per fingerprint, and orders it as an ask on the stream of the artifact's
|
||||
@@ -282,13 +282,13 @@ source revision is derived from the keys: every **want** equals its module's **f
|
||||
no placement and waits for no node's answer: a pull request changes no placement, since placement is bus state
|
||||
changed by a proposal (ADR 0567; ADR 0446 §3 read as written). Its own composition stands in for every sealed value, so only a node's answer to a proposal can say that
|
||||
what the node would run is the same. From research 085's milestone it computes the assignment graph from the
|
||||
catalog graph, the placements and the nodes' capabilities, keeps each revision (ADR 0656) as objects
|
||||
module graph, the placements and the nodes' capabilities, keeps each revision (ADR 0656) as objects
|
||||
in an `objects` section in the old form (ADR 0619 §2), serves it and a change's graph difference by verbs of
|
||||
its seat `mesh-wants`, and writes the wants from a trunk revision's assignment graph alone (ADR 0656). From G's
|
||||
delivery it runs the composition step, and writes a want only from a revision whose every `required` pipeline step
|
||||
passed, on the watched branch a placement chose (ADR 0666 §9, §17).
|
||||
- **The node agent**, the node-engine's own process, follows its node's wants, **composes each wanted module for
|
||||
its own node** with the composition of `mesh-delivery-sdk` from the catalog graph's entry of the build (from milestone G; before it, the manifest by digest), the module's resolved values from
|
||||
its own node** with the composition of `mesh-delivery-sdk` from the module graph's entry of the build (from milestone G; before it, the manifest by digest), the module's resolved values from
|
||||
mesh-config, its secrets and bus credential asked of the vault sealed to the node's key, its licences and what
|
||||
its providers contribute, applies one module at a time and only what differs from what runs, backs up a data
|
||||
module first, and writes its haves with the fingerprint and the digest of the composition it runs (ADR 0547 §2,
|
||||
@@ -1075,7 +1075,7 @@ backup holder backs up nothing, and the have says so.
|
||||
*ADR 0360 §8, §9, ADR 0377, ADR 0429 §4, §6, ADR 0539 §9, §14 to §16, ADR 0546 §5, §6, ADR 0547 §2 to §9, ADR 0549, ADR 0555.*
|
||||
|
||||
- **Each node composes its own.** For each want `want.<node>.<module>` the node agent composes that module for
|
||||
its own node with the composition of `mesh-delivery-sdk` from the catalog graph's entry of the build, from milestone G (before it, the manifest by digest the indexer wrote), the module's resolved
|
||||
its own node with the composition of `mesh-delivery-sdk` from the module graph's entry of the build, from milestone G (before it, the manifest by digest the indexer wrote), the module's resolved
|
||||
values read from mesh-config's resolved state filtered to its node, its secrets and bus credential asked of the
|
||||
vault sealed to the node's key (ADR 0349 §11), its licences, and what its providers contribute; and the node's
|
||||
own composition (adoption, firewall openings, accounts, the resolver, identities and groups) from the same
|
||||
@@ -1090,7 +1090,7 @@ backup holder backs up nothing, and the have says so.
|
||||
- **the node records**, each in its node's own have key `<node>.node`, written by that node alone and heard as
|
||||
the key's change (ADR 0555 §3);
|
||||
- **the manifests**, until milestone G the indexer's `modules.<module>` and its manifests by digest, or the digest the composing
|
||||
node's want names where it runs another build; from milestone G the catalog graph's entries of the catalog half,
|
||||
node's want names where it runs another build; from milestone G the module graph's entries of the catalog half,
|
||||
the indexer being the only part that reads a manifest (design 47 G §442); the private network's manifest is its holder `mesh-wireguard`'s
|
||||
own (ADR 0636 §4);
|
||||
- **the config values**, mesh-config's resolved state, the composing node's slice alone for a node agent; a module
|
||||
@@ -1385,7 +1385,7 @@ assignments bucket is kept equal to it by the holder until ADR 0547's third mile
|
||||
| placement candidate | while a proposal is open: one node's placement as the proposal lays it, which that node composes in shadow and answers | the assigner | the seat's state `candidates` |
|
||||
| assignment | until ADR 0547's third milestone: the module and node, pinned or not, ended or not, written by `assign` and `unassign` after an approved placement change, so that it equals the placement (ADR 0567) | the controller, called by the holder | `mesh-controller_assignments` |
|
||||
| rollout | read-only from release 6: each plan of releases 1 to 5, its tiers, the builds it carried and the assignments it changed | nobody from release 6 | `mesh-controller_rollouts` |
|
||||
| catalog graph revision | from research 085's milestone: every module as its manifest declares it at one source revision, with the seats' acting rules (ADR 0656), kept while a delivery record pins it or it is current | the indexer | objects in an `objects` section in the old form (ADR 0619 §2), capped at 512 MiB |
|
||||
| module graph revision | from research 085's milestone: every module as its manifest declares it at one source revision, with the seats' acting rules (ADR 0656), kept while a delivery record pins it or it is current | the indexer | objects in an `objects` section in the old form (ADR 0619 §2), capped at 512 MiB |
|
||||
| assignment graph revision | from research 085's milestone: every module version on a node at one revision, its edges, and the revisions of its inputs (ADR 0656), kept while a delivery record pins it or it is current | the assigner | objects in an `objects` section in the old form (ADR 0619 §2), capped at 512 MiB, served by the seat `mesh-wants` |
|
||||
| delivery record | from research 085's milestone: one milestone's delivery, its group's state, its trace and what happened to each entry on each node (ADR 0656), kept 90 days by default (the gate's setting `record-retention`) | the gate | a ledger instance of the gate's (ADR 0595, ADR 0597) |
|
||||
|
||||
@@ -1693,7 +1693,7 @@ list:
|
||||
performance is fixed; no check starts real builds.
|
||||
37. **Nothing is delivered ahead.** Research 085's milestone is delivered with no part delivered ahead of it, read
|
||||
from its delivery record (ADR 0656, How it is checked).
|
||||
38. **A newer indexer is reached.** *(Retires at milestone H, design 47 H §764.)* A merged revision naming a newer indexer gives, from the running indexer, a catalog
|
||||
38. **A newer indexer is reached.** *(Retires at milestone H, design 47 H §764.)* A merged revision naming a newer indexer gives, from the running indexer, a module
|
||||
graph revision that is the previous one with only the indexer's entry replaced; no other want moves; the new
|
||||
indexer is wanted, granted, started, and takes the revision in.
|
||||
39. **Revisions are kept, and stores say their fill.** A revision pinned by two records stays until both free it, one
|
||||
@@ -1720,7 +1720,7 @@ Each change ADR 0656 makes in an earlier record, and its test:
|
||||
§1) builds each other module once, by it, with no build by the running recipe of a module the new build module
|
||||
builds; the third node builds nothing of the language until it reports the agreed version (whole, assigner and
|
||||
builder).
|
||||
44. **The graph is kept per revision** (ADR 0603 §2). A source revision taken in gives one catalog graph revision and
|
||||
44. **The graph is kept per revision** (ADR 0603 §2). A source revision taken in gives one module graph revision and
|
||||
its assignment graph revision, kept as objects in an `objects` section in the old form, and a revision a delivery
|
||||
record pins is not removed; no per-module key with five past values is written (whole, indexer and assigner).
|
||||
45. **The tiers are a view of the difference** (ADR 0603 §6). The view's tiers of a group equal those read off its
|
||||
@@ -2170,7 +2170,7 @@ release reports the controller's code lines against research 063's baseline (acc
|
||||
| L6 | Provisioning leaves the controller (ADR 0570): every provision is one key of the seat `mesh-provisioner`, held by mesh-provisioner, holding a reference and never a value, and each placed module's provisioning plan a key of its state `plans`, both composed from placement, the wants and the manifests on change events; each provider acts once all a provision depends on is provided; the assigner moves a want only once its build's provisions are provided; a provision no want needs is retiring, and its account or credential is removed only on the operator's Approve, its data never; the vault mints each provision's secret sealed to the consumer's and the provider's node, and the consumer's node-engine writes it; a wait for a person is a provision's state, which the watchman reads; bus permissions stay with the grants part (ADR 0349, ADR 0230, ADR 0547 §11) | — | mesh-sdk, the node-engine (`mesh-host`), mesh-tools (the tool runner's provisioner client), mesh-catalog (mesh-provisioner, the vault, the provisioner client, postgres, keycloak, gitea, route-adapter), mesh-delivery (assigner, watchman) | 1954 |
|
||||
| L7 | History and records leave the controller (ADR 0571): the builder keeps its build log, one entry at a build's start and one at its end, from which build history and durations are read and the module mesh-catalog asks the builds it missed; the artifact sweep is the seat `mesh-artifact-sweep`, held by artifact-store-tools beside the artifact store, its keep set from the store's own listing, the wants and the build log, sweeping at each build's end from the lease write and recording each deletion in the hand-act log; disk readings are disk-load's own state on every node; who holds which seat is the state `seat-holders` of the seat `mesh-placement` (now `mesh-module-assigner`), and tools are found by the tool runners' announcements; what a node runs is its want and its have; the grants part writes `grants.<module>.<fingerprint>` and keeps memberships in its own state; root-free is a probe of the self-check; no manifest but the controller's reads, invokes or consumes `mesh-controller`, but a named list kept to the lease write, so the lease write's check passes (ADR 0189, ADR 0547 §11, ADR 0549 §6) | — | mesh-sdk, mesh-controller (its pin only), mesh-delivery (builder, indexer, assigner, grants part, view), mesh-catalog (artifact-store-tools, disk-load, the backup seat's holder, mounts, nfs-server, minio, mesh-watcher, the messenger, the self-check, the module mesh-catalog, docker), mesh-tools (the tool runner) | 1955 |
|
||||
| B0 | The bootstrap delivery: every check, a lone pull request's as a group of one and a verdict carried after a trunk move included, is judged by a checking program built from the change's own heads in the build seat's sandbox, which also makes the heads' one seat list that the check hands the manifest validator and the composer; it brings no seat definition and no manifest field, so the running checker checks it (ADR 0644; *The bootstrap delivery, and the one milestone after it*) | 26 needs it | mesh-sdk (`go/delivery`: the seat `node-build-go`'s ask `run` and the checker's record of which checking program judged; `go/composer`: the request's seat list), mesh-catalog (mesh-build-go: the run step, the refused answer, the kept programs' tools and sweep), mesh-delivery (checker: the checking program and its command), hq (this design, the glossary) | 1921 |
|
||||
| G | Two graphs and one revision view: the catalog graph and the assignment graph kept per revision, a change delivered as its graph difference, the acting parts' rules on their seats as bounded waits that hold their modules when the new version fails, the check on the change's own acting parts, the revision view and each process's own build, the gate's delivery record, and the trace's links (ADR 0656); no part reads a pull request's description (ADR 0659); every delivery part reaches the forge through the seat `git` and names no other module; nothing holds an approved merge for another check; and, one milestone with them, research 086's pipelines: a change of any module goes from a commit on a watched branch to the machines through its module's pipeline, its policy in its registration, ordered by edges between artifacts, with no Approve per merge and no hand act, the checker gone (ADR 0666, ADR 0667). Test counts at its start (G's prepare, 2026-11-09): mesh-delivery 665 unit and 68 integration, the node-engine (`mesh-host`) 1,742 unit; each other repository's and each catalog module's from the last check's verdict, read in the joint prepare | 26 to 62, 63 to 106 | mesh-sdk (the runtime: the fingerprint, the view, the definition reader, the seat list's one wiring), mesh-contracts and the domains' contracts modules (`acts`, the new verbs and events, the seat `mesh-grants`, the seat `git`'s verbs), mesh-delivery (indexer, assigner, checker until its removal, builder, grants part, gate's view, forge bridge, watchman, the new pipeline runner `mesh-delivery-pipeline`, `contracts` and `sdk` moved under `modules/`), mesh-catalog (the gate, the build modules, the forge module, mesh-issues, mesh-knowledge, the `node-backup` holder, the router, nats: a module's kept data on the bus as a backed-up item and the object store beside each state), mesh-sdk (also its small object store package, for values of any size), the node-engine (`mesh-host`), hq | 1966, 1961 (retargeted to this row's shape), 1660, 1972, 1721, 1783, 1785, 1794, 1791, 1373, 595; 1962 goes back with 1958, whose assignment entry it needs (ADR 0641 §3) |
|
||||
| G | Two graphs and one revision view: the module graph and the assignment graph kept per revision, a change delivered as its graph difference, the acting parts' rules on their seats as bounded waits that hold their modules when the new version fails, the check on the change's own acting parts, the revision view and each process's own build, the gate's delivery record, and the trace's links (ADR 0656); no part reads a pull request's description (ADR 0659); every delivery part reaches the forge through the seat `git` and names no other module; nothing holds an approved merge for another check; and, one milestone with them, research 086's pipelines: a change of any module goes from a commit on a watched branch to the machines through its module's pipeline, its policy in its registration, ordered by edges between artifacts, with no Approve per merge and no hand act, the checker gone (ADR 0666, ADR 0667). Test counts at its start (G's prepare, 2026-11-09): mesh-delivery 665 unit and 68 integration, the node-engine (`mesh-host`) 1,742 unit; each other repository's and each catalog module's from the last check's verdict, read in the joint prepare | 26 to 62, 63 to 106 | mesh-sdk (the runtime: the fingerprint, the view, the definition reader, the seat list's one wiring), mesh-contracts and the domains' contracts modules (`acts`, the new verbs and events, the seat `mesh-grants`, the seat `git`'s verbs), mesh-delivery (indexer, assigner, checker until its removal, builder, grants part, gate's view, forge bridge, watchman, the new pipeline runner `mesh-delivery-pipeline`, `contracts` and `sdk` moved under `modules/`), mesh-catalog (the gate, the build modules, the forge module, mesh-issues, mesh-knowledge, the `node-backup` holder, the router, nats: a module's kept data on the bus as a backed-up item and the object store beside each state), mesh-sdk (also its small object store package, for values of any size), the node-engine (`mesh-host`), hq | 1966, 1961 (retargeted to this row's shape), 1660, 1972, 1721, 1783, 1785, 1794, 1791, 1373, 595; 1962 goes back with 1958, whose assignment entry it needs (ADR 0641 §3) |
|
||||
| H | The build-and-delivery system delivers itself by its one model, in six releases (H0 to H5, the plan's section 6): one merge call of the seat `git`'s `merge-pull` naming one or more pull requests is a delivery's start and its group; the gate names the merged heads one source revision and opens its record; the indexer takes it in (a commit, the fingerprints of its repositories' modules, one catalog revision) and names the movers; one pipeline per take-in, none in parallel (`pipelines-at-once`, default 1); a want is the newest released version whose pipeline passed; the forge's event is the watchdog (`head-untaken`); every delivery part wakes on its inputs alone and reads no other part's state; the per-pull-request paths, the catch-up by comparison, the sweep and the checker go; one clean state placed by hand once, after which every release is delivered by its own pipeline (ADR 0682, ADR 0681, ADR 0666, ADR 0667; design 47 H §734 to §774) | 110 to 119 | mesh-delivery, mesh-catalog, `mesh-host`, mesh-tools, mesh-sdk, mesh-contracts, hq | opened by each release's prepare |
|
||||
|
||||
An issue is in one row only (ADR 0493 §2): where a row named an issue another row names too, the last row keeps it and the
|
||||
@@ -2354,7 +2354,7 @@ and what answers it:
|
||||
| testing | a revert test that needed a second check; the view with the assigner down | whole-module revert tests on the real builds from before milestone G; the assigner stopped and a cold control-node |
|
||||
| health and events | waits with no event or bound; a record that never ends; parts waiting for the view unreported; when a wait is first said; a put that never ends | `wait-held` at the start with its bound, timed by the watchman; held and failed outcomes and `record-ended`; `view-waits` after five minutes; `put-stands`, timed by the watchman from the put's `wait-held` |
|
||||
| security | a checking program hiding a removed rule; forged events; the `run` ask's grant; a kept build overwritten by the program it built; the review line retired before the review verb's grant | the running checker names every change of the checking program's fingerprint; the node in event subjects and grants per account; builds kept only from a step that runs nothing; the review verb left to issue 1782 |
|
||||
| upgrade | a newer indexer never wanted after milestone G; a revert across a change of kept data's form | the stand-in catalog graph revision; restore points taken before a move across a `form` change, restored at a revert before the reverted build starts, the node-engine back last |
|
||||
| upgrade | a newer indexer never wanted after milestone G; a revert across a change of kept data's form | the stand-in module graph revision; restore points taken before a move across a `form` change, restored at a revert before the reverted build starts, the node-engine back last |
|
||||
|
||||
The amendment for milestone B0 (2026-11-06) carries the review of seams and tools of B0's prepare, which did not
|
||||
approve on three findings: a `run` ask an old build module drops is silent, the kept programs have no tool, and the
|
||||
@@ -2390,7 +2390,7 @@ hold ends itself on the node's `running`, built first in the issue 1966 recovery
|
||||
test 62); and ADR 0662, which decided the same switch as ADR 0661 another way, is withdrawn, so G builds ADR 0661.
|
||||
|
||||
The amendment for research 086's graduation (2026-11-10) writes ADR 0666 and ADR 0667 into this design: *Pipelines
|
||||
per module* whole (registrations, watched branches and the catalog graph per branch, the pipeline steps and the policy,
|
||||
per module* whole (registrations, watched branches and the module graph per branch, the pipeline steps and the policy,
|
||||
what holds a delivery, approval as a step and a session's merge through `merge-pull` judged on the runs at the head's
|
||||
fingerprint, groups, the six kinds of edge between artifacts, a publish that rebuilds, values of any size, the pipeline
|
||||
making the check, callers per verb, health, the recovery fix, the tools, the runner's kept data and the build capacity,
|
||||
|
||||
@@ -41,7 +41,7 @@ ADR 0664 §4, ADR 0398 §2, ADR 0593 §9; research 086, Direction.*
|
||||
|
||||
§1 From milestone G's delivery. A change of any module, the delivery system's own parts included, goes from a commit to
|
||||
the machines through that module's **pipeline**: the pipeline steps its **policy** names, run for each commit or group
|
||||
on each of the module's **watched branches** by the seat `mesh-pipeline-runner`, ordered by the catalog graph's edges
|
||||
on each of the module's **watched branches** by the seat `mesh-pipeline-runner`, ordered by the module graph's edges
|
||||
between artifacts, with no hand act (ADR 0666 §1). Milestone G is the one milestone that builds it, beside the two
|
||||
graphs, the revision view and the delivery record (ADR 0667 §1). Until G's delivery the sections this one replaces
|
||||
(*Checks*, *A try*, *The Approve and the merge*, the state table and the trunk-only want) hold as written, and they
|
||||
@@ -49,7 +49,7 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
|
||||
```
|
||||
a session ──merge-pull (seat git)──► forge ──commit on a watched branch──► forge bridge ──► indexer (mesh-catalog)
|
||||
│ registrations; a catalog graph
|
||||
│ registrations; a module graph
|
||||
│ per watched branch; the revision
|
||||
│ validated before take-in
|
||||
▼ take-in.taken
|
||||
@@ -70,7 +70,7 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
operator's Approve (ADR 0666 §2). The indexer is a foundation part, so the registrations are kept in its old sections
|
||||
(ADR 0619 §1 to §3, ADR 0666 §4): one key per module in its old `state` section `registrations`, and every version on
|
||||
its old `streams` section's stream `registration-history`, kept with no age limit.
|
||||
The catalog graph is derived from the registrations and the manifests they point to; the mesh knows modules, and a
|
||||
The module graph is derived from the registrations and the manifests they point to; the mesh knows modules, and a
|
||||
repository only as a module's git origin.
|
||||
- §3 **Changing one is a trusted act.** The seat's verbs `register` (a module whole), `policy` (one module's step
|
||||
statuses, per artifact), `watch` and `unwatch` (add or remove a watched branch) each raise an authorising ask of tier
|
||||
@@ -95,7 +95,7 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
value. How it is checked: a unit test of the manifest validator refuses a template in the manifest of every part on
|
||||
its list, the runner's included, and judges every other part's manifest as any part's.
|
||||
- §7 **No part fixes a name: a guideline the code review reads.** (§507) Every branch, repository and module name a part
|
||||
needs is read from the registrations and the catalog graph, never fixed in its code. This is a guideline, not a
|
||||
needs is read from the registrations and the module graph, never fixed in its code. This is a guideline, not a
|
||||
step: the code review reads it, and no lint step scans for names (the operator, 2026-11-11 about 00:05 CET: the scan was a flaky check; where
|
||||
guidelines live is research 087's). It departs from ADR 0666 §5's refusal by the lint step, by the operator's choice,
|
||||
and a later record brings it in line. The names G's own work removes (about 39 in 9 parts, found on 2026-11-09,
|
||||
@@ -129,7 +129,7 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
as one ask, and `indexer_seed_again` asks it again after a Decline and after an expiry; a policy making code review
|
||||
`required` is refused. Tests 75, 68 and 83.
|
||||
|
||||
### Watched branches and the catalog graph per branch
|
||||
### Watched branches and the module graph per branch
|
||||
|
||||
- §11 **Only a watched branch starts a pipeline.** (§509) The forge bridge hears every commit of every watched branch the
|
||||
registrations name, through the seat `git`'s event `branch-moved` (a branch's new head, from the forge's push
|
||||
@@ -143,12 +143,12 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
unless it waits as progress not owed: a member of a gathered group is governed by ADR 0633 §5's 30-minute bound, and
|
||||
a merge behind a pending revision of the same branch by its 60-minute bound (ADR 0666 §24). The finding clears on the
|
||||
runner's `pipeline-started` for that head.
|
||||
- §13 **The catalog graph per watched branch.** The indexer keeps the catalog graph once per watched branch, from that
|
||||
- §13 **The module graph per watched branch.** The indexer keeps the module graph once per watched branch, from that
|
||||
branch's manifests at each source revision (ADR 0666 §6): each revision names its branch, and the stores, caps and
|
||||
pins of *Two graphs, one source of truth* hold per branch.
|
||||
- §14 **A placement names the branch.** Each module of a placement key names the watched branch its node runs, by default the
|
||||
registration's first, set by a placement proposal like every other placement change (ADR 0567, ADR 0666 §6). The
|
||||
assigner computes each node's entries from the catalog graph of the branch its placement names, so a module watched on
|
||||
assigner computes each node's entries from the module graph of the branch its placement names, so a module watched on
|
||||
`main` and `beta` runs `beta` only where a placement chose it.
|
||||
- §15 **A source revision per watched branch.** The gate keeps one source revision per watched branch, `source.<branch>`,
|
||||
in place of `source.main` (ADR 0429 §11 to §13 as ADR 0666 §6 changes them), in the old `state` section `source`
|
||||
@@ -352,7 +352,7 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
|
||||
### Dependencies between artifacts
|
||||
|
||||
- §47 **Six kinds of edge between artifact references.** The catalog graph's edges run between **artifact references**,
|
||||
- §47 **Six kinds of edge between artifact references.** The module graph's edges run between **artifact references**,
|
||||
`<module>:<artifact>`, such as `mesh-grants:program`, of six kinds (ADR 0666 §14):
|
||||
|
||||
| Kind | B before A | Derived from |
|
||||
@@ -372,11 +372,11 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
old holder released before the new one claims (ADR 0666 §14).
|
||||
- §49 **The edges alone order.** (§569) The build and the delivery order by these edges alone; a cycle of delivery edges
|
||||
(kinds 2, 4, 5, 6) alone is delivered as one step, and a cycle with any build edge (kind 1 or 3), whatever its other
|
||||
edges, is refused, naming every artifact on it (ADR 0666 §14; research 086, R17). The cycle rule is the indexer's, in the catalog graph it keeps, so the checking
|
||||
edges, is refused, naming every artifact on it (ADR 0666 §14; research 086, R17). The cycle rule is the indexer's, in the module graph it keeps, so the checking
|
||||
program's cycle rule goes with the checker.
|
||||
- §50 **A format's reader first.** A format a running reader cannot read is preceded by its reader, an edge of kind 4 on
|
||||
every watched branch (ADR 0666 §14): the indexer's manifest validator for a new field of a seat definition or a
|
||||
manifest, and on each node the node-engine that reads a catalog graph entry's new fields before any manifest that writes them
|
||||
manifest, and on each node the node-engine that reads a module graph entry's new fields before any manifest that writes them
|
||||
(ADR 0667 §4).
|
||||
- §51 **How it is checked.** Unit (indexer's graph): a chain per artifact where modules would cycle; two programs needing
|
||||
each other's new verb are one step; two artifacts each needing the other's new package to build are refused, naming
|
||||
|
||||
@@ -161,7 +161,7 @@ each the design's choice with its reason, §468 to §479 those of the runner's,
|
||||
module), a fetched build whose bytes do not match its digest fails the step naming the member.
|
||||
- §466 **A build names what it resolved.** Each built artifact of the build answer (BuiltArtifact, in the step's
|
||||
result) gains `resolved`, a list of `{package, version, digest}`, one per mesh package the build resolved (one
|
||||
that the catalog graph entry's packages name, the edges of kind 1), `digest` the `sha256:` digest of the package's
|
||||
that the module graph entry's packages name, the edges of kind 1), `digest` the `sha256:` digest of the package's
|
||||
bytes as the build fetched them; ToolchainUsed gains `digest`, the building node's digest of its toolchain program
|
||||
(§472), kind 3's entry, never the build module's own program. The builder carries both, per artifact,
|
||||
in `package-published` as `resolved` and `toolchain`, from which the indexer writes §374's entries of kinds 1 and 3.
|
||||
|
||||
@@ -247,7 +247,7 @@ reason. What a question of another kind leaves open waits for the operator and i
|
||||
build without a version (§371, §458), the builder writing it in its journal naming the module; at G's heads the
|
||||
validator refuses such a manifest (§411). Why: such an entry is only read from a revision before G (develop
|
||||
question of the builder). How it is checked: unit (builder), an entry of version `"1"` reserves nothing.
|
||||
- §506 **The entry carries its manifest's digest.** (§609) The catalog graph entry gains `manifest-digest`, the `sha256:`
|
||||
- §506 **The entry carries its manifest's digest.** (§609) The module graph entry gains `manifest-digest`, the `sha256:`
|
||||
digest of the manifest's bytes as the forge answered them, set by the indexer at take-in (in `EntryInputs`) and
|
||||
never computed again from the manifest whole, whose encoding may differ; the module's value and §445's
|
||||
`manifests` key are that digest. Why: the bytes, not the map, are what the node-engines before G read (develop
|
||||
|
||||
@@ -208,7 +208,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
revision; the manifest validator, beside §508's refusal of a second claim, refuses a revision in which no module
|
||||
claims it, naming the seat. §364's, §365's and §508's "from the seat list" read so, the condition keeper's too. With
|
||||
no entry claiming the seat, which only a revision from before G shows, as at a revert of G, the node-engine's own
|
||||
module is the module of the catalog graph entry its own build's fingerprint names (§443, §205), so a revert of the
|
||||
module is the module of the module graph entry its own build's fingerprint names (§443, §205), so a revert of the
|
||||
node-engine applies. Why: §364 and §508 have the node-engine claim its seat
|
||||
as one module, so the claim names it (develop question H-15). How it is checked: unit (manifest validator), a
|
||||
revision with no claim of `node-engine` refused; whole (node-engine), its guard protects the module its catalog
|
||||
@@ -226,7 +226,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
- **Every other part** asks both in its `requires`: the state `findings` by the template `state`, keeping its local
|
||||
name and carrying its settings as options (ADR 0595 §11), and the stream by the template `events` under the local
|
||||
name `finding-events`, with `max-age-days` 7 and `max-mib` 16, which the template drops oldest when full (ADR 0595
|
||||
§3), its entry listing the three finding events in its field `events`, which the catalog graph entry carries
|
||||
§3), its entry listing the three finding events in its field `events`, which the module graph entry carries
|
||||
(§365), published on its binding's subject, `mesh.bus.<module>.finding-events.<event>.<node>`.
|
||||
- **`mesh-healers`**, whose old `streams` declares `mesh-healers-findings` on main, moves it so in G's change, as
|
||||
ADR 0595 §11 moves a module G touches. Its old stream stays on the bus as an orphan that `orphans` lists, removed
|
||||
@@ -240,7 +240,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
moved; every other old `streams` entry is judged as today. A part whose list entry is missing is a fault of the
|
||||
list, fixed in the validator (ADR 0619 §3). The validator refuses a manifest whose state `findings` has no finding
|
||||
stream in its part's form, or no `consumes` of `mesh-conditions.findings-asked` (§387). The writer (§461) is handed
|
||||
the subjects from the part's binding or its old stream, as it is handed every subject. The catalog graph entry
|
||||
the subjects from the part's binding or its old stream, as it is handed every subject. The module graph entry
|
||||
carries the finding stream in either form (§365); the grants part makes the keeper's consumer of §386 on an
|
||||
old stream at the revision that declares it, and on a template stream when it hears the bus module's `created` for
|
||||
`finding-events` and grants each part publish on its own finding stream's subjects of its own node only, in either form; the
|
||||
@@ -335,7 +335,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
## The bus module's plans
|
||||
|
||||
- §533 **A module of the new form.** "A module of the new form" (§59, §344) is a module that is no foundation part.
|
||||
The bus module tells it by its catalog graph entry declaring no old `objects` section `sent-objects`: a foundation
|
||||
The bus module tells it by its module graph entry declaring no old `objects` section `sent-objects`: a foundation
|
||||
part whose entry claims a seat whose definition has a verb or an event, or declares an event of its own, declares
|
||||
it (§59), and the manifest validator refuses such a foundation part's manifest without it, naming it. Why: the bus
|
||||
module reads no list of foundation parts, which is the validator's alone (ADR 0619 §3; develop question on §59 and
|
||||
@@ -349,7 +349,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
a seat whose verbs come only from an included part gives its holder a sent store, and one including only bodies
|
||||
gives none.
|
||||
- §538 **The bus module plans again when the bus-state entries change.** The bus module compares, for each module,
|
||||
the bus-state entries the catalog graph entry carries with those it last planned for that module, kept in its old
|
||||
the bus-state entries the module graph entry carries with those it last planned for that module, kept in its old
|
||||
`state` section `plans` (the bus module is a foundation part), one key `<module>` holding the entries as planned
|
||||
and their digest, written after each plan and deleted when the module is in no watched branch's newest revision, its
|
||||
entries then orphans that `orphans` lists; its tool `nats_plans` reads it. It plans again only when they differ; it never compares the manifest's digest (§506), which changes with
|
||||
@@ -502,7 +502,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
refused; unit (tool runner), the words it states are exactly its manifest's `states`; unit (delivery plan), the edge to the module stating the word.
|
||||
- §546 **When the builder forgets a node's toolchain.** The builder deletes its `toolchains-heard` key
|
||||
`<node>.<language>` (§604) when the node-engine seat's `running.<node>.<module>` says `stopped` (§365) for the
|
||||
module whose catalog graph entry claims the build seat of that language (its `acts` rule `build` with `on` naming
|
||||
module whose module graph entry claims the build seat of that language (its `acts` rule `build` with `on` naming
|
||||
it, §535), heard through its consumer of that seat's `running`, read as §556 has it; never on a placement, which
|
||||
is the seat `mesh-module-assigner`'s state. The state is an old `state` section of the builder, a foundation part,
|
||||
one key per node and language, about 12 keys of about 0.3 KiB each, capped at 1 MiB, so it adds no objects store
|
||||
@@ -519,7 +519,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
server's own limit does not. So each `<state>-objects` is planned with 16 MiB (about 2.4 GiB for 150 states), a
|
||||
state needing more naming `objects-max-mib`, and no later measure is waited for. The bus module reads the account's
|
||||
and the server's storage limits at its start and at each plan, sums the cap of every entry it plans (states, objects
|
||||
stores, sent stores, streams, logs) and of every old section the catalog graph's entries declare, and shows the sum and
|
||||
stores, sent stores, streams, logs) and of every old section the module graph's entries declare, and shows the sum and
|
||||
both limits in its `list` and its read tool. A plan whose sum would pass the account's limit is refused, naming the
|
||||
sum and the limit, said as its `refused` (ADR 0595 §6): the plan refused is the one that adds or raises a cap, and
|
||||
the caps already made stay as they are. With no account limit (unlimited) nothing is refused and the sum is shown
|
||||
|
||||
@@ -98,12 +98,12 @@ are written into the lines of G-12 they name.*
|
||||
consumer §556 needs, from the process's `consumes`; its calls of `node-backup`'s `restore`, which takes its class's default with no own-item limit (§610, §555), and
|
||||
of `mesh-broker`'s `snapshot-get` and `snapshot-restore` with `snapshot-get`'s chunk subjects, and the hearing
|
||||
of `snapshot-restored` from its `consumes` (§681); and nothing else. The bus names granted are those of every kept data
|
||||
of every catalog graph entry the catalog half keeps (§443) and of every entry a restore point names (an old
|
||||
of every module graph entry the catalog half keeps (§443) and of every entry a restore point names (an old
|
||||
section's name before a form change, a template's binding after), read by the grants part through
|
||||
`kept-points` (§565); no stream of the mesh's own (`CONTROL`, `NODES`, `EVENTS`, `DEAD_LETTER_NOTICES`, `DEAD_LETTERS`,
|
||||
`PROV_APPLIED`, `CHECKS_READY`, `CHECKS_OTHER`, every `SEAT_` stream and every `KV_` bucket of a seat) is ever
|
||||
granted. Restricted streams (ADR 0436) are among the names, as ADR 0672 records.
|
||||
- **Bus names.** The recovery module turns a module and a kept data into bus names from the catalog graph entry of
|
||||
- **Bus names.** The recovery module turns a module and a kept data into bus names from the module graph entry of
|
||||
the fingerprint it acts at, read by `mesh-catalog`'s `entry` (§443) in its `invokes` (an edge of kind 6): a
|
||||
template entry's name is `<module>_<local>` (ADR 0595 §1), an old section's its declared name; a point records the
|
||||
names it took, and a restore uses those.
|
||||
@@ -183,7 +183,7 @@ are written into the lines of G-12 they name.*
|
||||
takes a long form, `{verb, fields}`: `verb` as today (`seat:<seat>.<verb>`), `fields` the names of its answer's
|
||||
fields the consumer relies on. The manifest validator refuses a field the seat's definition does not give that
|
||||
verb's answer, naming it. The delivery plan derives the edge of kind 6 from the holders of that seat to the
|
||||
consumer, held until the holder runs a build whose catalog graph entry's seat definition (§194) gives the verb's
|
||||
consumer, held until the holder runs a build whose module graph entry's seat definition (§194) gives the verb's
|
||||
answer every named field; §374's entry of kind 6 records the verb and its fields, and `outdated` (§375) says it
|
||||
behind when the delivered version no longer gives them. Both forms stay: the short string where no field is relied on, the long form
|
||||
where one is. On main mesh-sdk's manifest reader reads `invokes` as a list of strings, so the long form is read
|
||||
|
||||
@@ -266,7 +266,7 @@ form only. A note that corrects a line of G-12 or G-14 is written in that line;
|
||||
record of the builder's retry, ADR 0673 §1 to §3, which changes ADR 0664 §3: a key whose error opens `transport
|
||||
fault:` is built again, once, as a new revision of the key (ADR 0429 §18), on the first event after its failure
|
||||
that says its cause passed. Two events say so (ADR 0673 §2): the node-engine seat's `running.<node>.<module>`
|
||||
saying `running` for a module whose catalog graph entry claims the build seat the failed step ran on (§546), on
|
||||
saying `running` for a module whose module graph entry claims the build seat the failed step ran on (§546), on
|
||||
any node; and the node-engine seat's `manifest-reads-changed` of the node the failed step ran on with `why`
|
||||
`returned` (ADR 0618 §4, ADR 0668 §4; §590), which it says when that node is heard again after being away. One
|
||||
saying `why` `started` builds nothing again. The builder hears both through its consumers of the node-engine seat, read as §556 has it.
|
||||
@@ -472,7 +472,7 @@ form only. A note that corrects a line of G-12 or G-14 is written in that line;
|
||||
|
||||
## The indexer's forms
|
||||
|
||||
- §578 **`manifest-digest` carries its prefix, and the key does not.** (§506, §445) The catalog graph entry's field
|
||||
- §578 **`manifest-digest` carries its prefix, and the key does not.** (§506, §445) The module graph entry's field
|
||||
`manifest-digest` is `sha256:` followed by the 64 hex digits, as every digest a record names. The module's value
|
||||
and §445's `manifests` key stay the 64 hex digits as on main, since a key's name takes no `:` (§73), and mesh-sdk's
|
||||
catalog client gives the bare digits as today. The indexer writes all three from the one digest it computed at take-in.
|
||||
@@ -481,7 +481,7 @@ form only. A note that corrects a line of G-12 or G-14 is written in that line;
|
||||
prefix equals the key's name and the module's value.
|
||||
- §579 **The indexer keeps the records pinning each revision, and removes a revision only on an event.** (§153,
|
||||
§178, §216)
|
||||
- **Where.** The indexer, a foundation part, keeps its old `state` section `pins`: one key per catalog graph
|
||||
- **Where.** The indexer, a foundation part, keeps its old `state` section `pins`: one key per module graph
|
||||
revision, `<branch>.<revision>` (the watched branch and the revision's id, each escaped as a key's name is, §73),
|
||||
whose value is the list of delivery record ids that pin it. A list of ids is kept rather than a count, so a
|
||||
`pinned` heard twice pins once. At about 20 revisions pinned a day for 90 days, about 1,800 keys of about 0.2 KiB
|
||||
@@ -505,7 +505,7 @@ form only. A note that corrects a line of G-12 or G-14 is written in that line;
|
||||
`pins-stated` said after its state `pins` was made. It judges on applying `freed`, on a revision ceasing to be
|
||||
current, on being caught up, and at its start after both of these hold, when it judges every kept revision, so a
|
||||
stop between a take-in and a removal keeps nothing for ever. Never on a timer.
|
||||
- **Inputs.** A catalog graph revision names no input revision. "The input revisions it names" (§178) are an
|
||||
- **Inputs.** A module graph revision names no input revision. "The input revisions it names" (§178) are an
|
||||
assignment graph revision's catalog revisions, which a delivery record pins itself (§153), so the indexer keeps
|
||||
each by its own list alone.
|
||||
- **The assigner** keeps its pins of assignment graph revisions in the same form and by the same rules: its old
|
||||
|
||||
@@ -70,7 +70,7 @@ answer of 2026-11-11, between 15:14 and 15:42 CET. A line of another file that o
|
||||
- **By itself, on an event.** The operator, 2026-11-11 between 15:14 and 15:42 CET at lead-47's terminal, decided by
|
||||
ADR 0674 (the builder's publish again), which extends ADR 0673 to publishes: the builder
|
||||
publishes again, by itself, every reserved version `version-unreleased` names (§369), on the node-engine seat's
|
||||
`running` of a module whose catalog graph entry claims the registry seat of the missing artifacts' kind, on any
|
||||
`running` of a module whose module graph entry claims the registry seat of the missing artifacts' kind, on any
|
||||
node, and on the node-engine seat's `manifest-reads-changed` with `why` `returned` of the node that holder runs on
|
||||
(ADR 0673 §2, §590); one with `why` `started`, or with none, publishes nothing. No timer. The builder's manifest
|
||||
`consumes` both events (it does for ADR 0673 already).
|
||||
@@ -116,9 +116,9 @@ answer of 2026-11-11, between 15:14 and 15:42 CET. A line of another file that o
|
||||
- §589 **`builder_build` answers a module's build keys whole.** (§348, §568, §575; *one-question-one-tool*) The
|
||||
builder's tool `builder_build` (class `read`) takes `module` and, optional, `fingerprint`. With `fingerprint`, it
|
||||
answers that key whole; with `module` alone, the module's build keys newest first, at most 20, each with its
|
||||
`fingerprint` whole (the build-input fingerprint as the catalog graph entry carries it, never cut), `state`
|
||||
`fingerprint` whole (the build-input fingerprint as the module graph entry carries it, never cut), `state`
|
||||
(`queued`, `building`, `done` or `failed`), the key's revision and since when, the step and its node, the error
|
||||
whole, `event-builds` and the open ask (§568), and `newest: <branch>` for each watched branch whose newest catalog
|
||||
whole, `event-builds` and the open ask (§568), and `newest: <branch>` for each watched branch whose newest module
|
||||
graph entry of the module names that fingerprint, read from the builder's own view of the catalog half (§348). A
|
||||
module none of whose keys the newest entry names says so, naming the entry's fingerprint. Beside it,
|
||||
`builder_builds_since` gains `module`, which narrows its answer to that module's builds, and `builder_stuck`
|
||||
@@ -205,9 +205,9 @@ answer of 2026-11-11, between 15:14 and 15:42 CET. A line of another file that o
|
||||
|
||||
## Readers of a module's manifest
|
||||
|
||||
- §594 **The readers take a module's manifest from its catalog graph entry.** (§196, §421, §443, §445; ADR 0656 §6,
|
||||
- §594 **The readers take a module's manifest from its module graph entry.** (§196, §421, §443, §445; ADR 0656 §6,
|
||||
ADR 0615 §1) The holders of `mesh-config`, `mesh-provisioner` and `mesh-self-check`, and the claude-code module,
|
||||
read a module's manifest from the catalog graph entry that carries it whole (§443), taken through
|
||||
read a module's manifest from the module graph entry that carries it whole (§443), taken through
|
||||
`meshcatalogclient`'s view of the catalog half, which follows each watched branch's newest `catalog-revision` and
|
||||
asks `revision` again on a gap (§196). None reads a manifest by digest from the indexer, its state `manifests` or
|
||||
its tools: `manifests` is kept only for node-engines from before G (§445). Why: test 61's "no call of the indexer
|
||||
|
||||
@@ -170,7 +170,7 @@ for several build maps is answered once, and the maps' names for it are given in
|
||||
every finding that view raised (`first-view-unanswered`, `view-waits`, `view-unsaid`, `view-too-large`), says the
|
||||
drop and each cleared finding in the part's log, and removes the view's row of `<module>_first_views` [D-12].
|
||||
|
||||
This is the one form for every reader of which modules exist and of the catalog graph's entries: the tool runner
|
||||
This is the one form for every reader of which modules exist and of the module graph's entries: the tool runner
|
||||
(its owner of the assigner's views, §616, and its branches, [mesh-tools Q-R12]), the grants part [D-5], the
|
||||
readers of §594, the node-engine (§421) and the Go build module (§615); and it answers mesh-sdk's question on
|
||||
§532. Why: the same question came from five build maps, each about to build its own form (develop's D-5). How it
|
||||
@@ -181,7 +181,7 @@ for several build maps is answered once, and the maps' names for it are given in
|
||||
runner), a part started with one branch at `none-yet` acts once every first view is in; a dropped branch's findings
|
||||
are cleared; whole (node-engine), a want composed with no branch view and no `source` answered.
|
||||
- §615 **The tool runner's and the Go build module's manifests come from the entry too.** (§594, §614, §443, §445,
|
||||
test 61) The mesh MCP server of the tool runner takes each module's manifest from its catalog graph entry, through §614's
|
||||
test 61) The mesh MCP server of the tool runner takes each module's manifest from its module graph entry, through §614's
|
||||
reader; its first view of the indexer's `manifests` and its `consumes` of `mesh-delivery-indexer.views.manifests`
|
||||
go [mesh-tools Q-R2]. The Go build module's compose ask takes each manifest whole from the entry its fingerprint
|
||||
names, by `seat:mesh-catalog.entry` (§506's `manifest-digest` naming the entry's), and its `invokes` of
|
||||
@@ -466,7 +466,7 @@ for several build maps is answered once, and the maps' names for it are given in
|
||||
- §663 **The condition keeper's sources are the bus module's `created` events, and it follows a moved stream.** (§515,
|
||||
§529, §611, §612) The keeper takes a source when it hears the seat `mesh-broker`'s `created` of a part's
|
||||
`finding-events` entry, named in its `consumes`, and a foundation part's old finding stream from the catalog half
|
||||
(§614); at its start it reads both by `list` and the catalog half. When a part's catalog graph entry no longer
|
||||
(§614); at its start it reads both by `list` and the catalog half. When a part's module graph entry no longer
|
||||
declares the stream the keeper follows for it (its findings moved to a template, §611, or to an old section, §612),
|
||||
the keeper drops that source (the grants part its consumer, §690), keeps the part's open conditions, and asks `findings-asked` on the
|
||||
new stream once it is a source; the part's statement there settles them (§384). §515 is corrected so.
|
||||
|
||||
@@ -110,7 +110,7 @@ node-engine keeps and the grants part's first composition (§682 to §684); the
|
||||
seat server: the waiting calls with their caller, ask and state, the `act.` keys and the claims, never an argument
|
||||
of a call it was not asked by that call's caller.
|
||||
- **A holder that does not check is never reached.** The grants part composes, for a module's process that serves
|
||||
a marked verb, the subscription of that verb's subjects only when the catalog graph entry of the build its want
|
||||
a marked verb, the subscription of that verb's subjects only when the module graph entry of the build its want
|
||||
names (heard by `wanted`, §344) declares that `approvals` entry, which only a build of G's seat server passes the
|
||||
validator with, so a G holder is granted before it subscribes; otherwise it composes the subscribe deny design 46
|
||||
7-approval-mark §6 composes for a runner that does not state `approval-mark/1`, named in `withheld` with "its
|
||||
@@ -307,7 +307,7 @@ node-engine keeps and the grants part's first composition (§682 to §684); the
|
||||
full pass waits on the gate's G version (kind 6), while the gate's G version waits on the grants part composing its
|
||||
account (kind 5). So, until every branch it follows has its first view, the grants part keeps the user list it last
|
||||
wrote and composes, for a want whose account it holds none of or whose fingerprint changed, that one account from
|
||||
the want's catalog graph entry by fingerprint (§614, *An older build's entry*) and the assigner's views alone, as it
|
||||
the want's module graph entry by fingerprint (§614, *An older build's entry*) and the assigner's views alone, as it
|
||||
composes any account, every marked subject in it denied while the marks are unread (design 46
|
||||
7-approval-mark §19); it writes that account into the user list it keeps, and says in its log and in
|
||||
`<module>_first_views` that it composed it before its first views. Its full pass, once the first views are in,
|
||||
@@ -379,7 +379,7 @@ node-engine keeps and the grants part's first composition (§682 to §684); the
|
||||
- §690 **Who drops the keeper's consumer of a moved finding stream, and the gate's `source` in mesh-contracts.**
|
||||
(§386, §611, §612, §614, §663, §684) [D-25, mesh-catalog COND9.]
|
||||
- **The grants part drops it.** The grants part, which makes the keeper's consumers (§386), deletes the keeper's
|
||||
durable consumer on a part's stream at its first composition from a catalog graph entry of that part that no
|
||||
durable consumer on a part's stream at its first composition from a module graph entry of that part that no
|
||||
longer declares the stream, and makes the consumer on the new stream from the same entry, as §386 does for a
|
||||
module that declares the events later. The keeper deletes no consumer: when it hears, through its catalog half
|
||||
reader (§614), the part's new entry, it stops reading the old source and keeps the part's open conditions.
|
||||
|
||||
@@ -45,7 +45,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
beside it, `<state>-objects`, a template form of ADR 0595 that the bus module provides and the grants part grants to
|
||||
the state's owner alone (ADR 0666 §16); a foundation part's large values go in an old `objects` section of its own.
|
||||
Its size is the template's (ADR 0595 §3). An object store holds no space until a value is written to it, so the many
|
||||
it adds reserve nothing; the few values over the limit (a delivery record, a catalog graph revision list, a test's
|
||||
it adds reserve nothing; the few values over the limit (a delivery record, a module graph revision list, a test's
|
||||
output) are estimated, as a guess, at under 1 GiB across the mesh.
|
||||
- §59 **An object sent is readable by the modules it is for.** (§533) A reply's or an event's object is written to the sender's
|
||||
**sent store**, `<module>_sent-objects`: the bus module plans it, with no manifest field, for every module of the new
|
||||
@@ -55,9 +55,9 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
event, read within its call's bound or its consumer's lag, so its expiry is not a removal of kept data that ADR 0595
|
||||
§4 holds to a person's word (the design's choice; 7 days is a guess at the longest a consumer lags, read from the
|
||||
fill tools once G runs). A full sent store is the bus module's `full` and its condition (ADR 0595 §6), and the sender
|
||||
then refuses the large reply or event loudly, naming the store. The grants part derives from the catalog graph (§442), never from a manifest, a standing grant to read them: the
|
||||
then refuses the large reply or event loudly, naming the store. The grants part derives from the module graph (§442), never from a manifest, a standing grant to read them: the
|
||||
callers its seat definition names for the verbs it serves, and the consumers whose `consumes` declare its events;
|
||||
no other module may read them (ADR 0666 §16). The grant follows the catalog graph, so it is written at each `catalog-revision` that changes it,
|
||||
no other module may read them (ADR 0666 §16). The grant follows the module graph, so it is written at each `catalog-revision` that changes it,
|
||||
never per object. A consumer's reader of
|
||||
the form is delivered before its producer writes it, an edge of kind 4.
|
||||
- §60 **Its tools come with the package.** The package serves each module that imports it `<module>_state_objects` (the
|
||||
@@ -240,7 +240,7 @@ and an estimated 2 mesh-sdk publishes a day, each rebuilding about 120 artifacts
|
||||
| the teller | `widens-said` (§335) | the template `state` | until the branch is unwatched | a few KiB; the template's |
|
||||
| each build module | `detected-steps` (§326, §414) | the template `state` | one key per artifact, dropped by `steps` with `drop` | under 1 MiB; the template's |
|
||||
| the indexer | `registrations` and its stream `registration-history` | old `state` and `streams` sections | the life of the mesh, never derived again | 64 MiB (*A module's registration*) |
|
||||
| the indexer | catalog graph revisions, per watched branch | objects in the old form (ADR 0619 §2) | while a record pins it or it is its branch's current | 512 MiB, as *Two graphs, one source of truth*; a second watched branch on a few modules adds a few MiB |
|
||||
| the indexer | module graph revisions, per watched branch | objects in the old form (ADR 0619 §2) | while a record pins it or it is its branch's current | 512 MiB, as *Two graphs, one source of truth*; a second watched branch on a few modules adds a few MiB |
|
||||
| the gate | `source`: one key per watched branch | its old `state` section, as today | 64 revisions of each key; a branch's key deleted when `registration-changed` says the last registration watching it unwatched it (`unwatch`) | a few KiB |
|
||||
| the forge module | `failed-steps`: failed `required` steps by module and fingerprint, with the commits each was seen at, and the `seen` keys of §487 | state | an entry deleted once none of its commits is a watched branch's head or the head an open pull request names, judged on each `branch-moved` and each pull request's close | the template's 64 MiB; an estimated 50 failed steps a day of about 0.5 KiB, most gone within days, is under 1 MiB; the `seen` keys under 3 MiB (§487) |
|
||||
| every module that imports the object store package | `<state>-objects` beside each state | objects | an object no key names, its key deleted or its value replaced, until `<module>_state_objects_drop` on a person's word (ADR 0595 §4, ADR 0666 §16) | the template's; nothing reserved until written |
|
||||
@@ -278,7 +278,7 @@ step keys and the builder's build log, against the checker's last week (test 99)
|
||||
them; the manifest validator for the manifests' new words (`version`, §368; a `*` emitter in `consumes`, §386; the
|
||||
finding stream an observer declares, §383, §387) and the grants part that makes a `*` entry's durable consumers
|
||||
(§386), before the keeper's or any observer's manifest using them; on each node the node-engine that reads `form`
|
||||
and `catch-up` from the catalog graph before any manifest writing them. The manifest validator the running checker asks for G's own check is the indexer's, so the reading
|
||||
and `catch-up` from the module graph before any manifest writing them. The manifest validator the running checker asks for G's own check is the indexer's, so the reading
|
||||
of these words goes in the reader release of §340, whether or not that validator already takes one of them.
|
||||
- §90 **The stream maker first** (ADR 0667 §5): the grants part, which makes each kept seat stream and its durable
|
||||
consumers, before the parts that hear a kept stream.
|
||||
@@ -344,7 +344,7 @@ step keys and the builder's build log, against the checker's last week (test 99)
|
||||
| §121 The six kinds derived from existing words, `needs` per artifact only where nothing says it | one form of each fact (ADR 0656 §6); the catalog entry's `needs` already exists from G |
|
||||
| §122 The cycle rule in the indexer's graph | the graph is the indexer's, and the checking program goes with the checker |
|
||||
| §123 The builder's seat `mesh-builds` and its event `package-published` | the record has the builder say the publication as an event of its seat (ADR 0666 §15); its waits move only when a later change gives the seat its verbs |
|
||||
| §124 Each state's object store `<state>-objects` through mesh-sdk's small package, sent objects readable by a standing grant derived from the catalog graph, and the package's two tools | one object store per state, granted to its owner; the sender's declared callers and consumers read what it sends (ADR 0666 §16); only its users import it, so nothing else is rebuilt |
|
||||
| §124 Each state's object store `<state>-objects` through mesh-sdk's small package, sent objects readable by a standing grant derived from the module graph, and the package's two tools | one object store per state, granted to its owner; the sender's declared callers and consumers read what it sends (ADR 0666 §16); only its users import it, so nothing else is rebuilt |
|
||||
| §125 The `run` ask published by the runner's account and the indexer's; the verb `run` called by the sessions and the operator only | the steps and the validation run code from the change, in the sandbox only, and each asker reads only its own step keys (ADR 0363 §2); a run publishes tagged packages, so nothing else may ask one |
|
||||
| §126 The checker's step `check` becomes `pipeline`; `kept` starts empty | the runner is an acting part in the checker's place (ADR 0666 §19); a step's result is taken only from its seat holder (ADR 0666 §21), so no verdict of the checker's is taken in, at the cost of one round of every module's tests |
|
||||
| §127 The field `callers` in a seat definition replaces the holders' trusted `callers`, a missing field taking the default of the verb's `class` (§391) | the record makes the definition the grants part's one source (ADR 0666 §20); a field left out must open nothing |
|
||||
|
||||
@@ -50,7 +50,7 @@ design's choice within the record it cites, tested against [the principles](../.
|
||||
order for the assigner's `Compute`. A catalog entry's `requires` stay bare provision names. For each requirement
|
||||
R of a placed module on node N, in this order:
|
||||
1. **The named seat's holder.** The seat whose definition's field `delivers` (mesh-sdk `seatdef`) is R, among the
|
||||
seat definitions the entry's catalog graph revision names in its `definitions` (each read whole through the
|
||||
seat definitions the entry's module graph revision names in its `definitions` (each read whole through the
|
||||
seat `mesh-catalog`'s verb `seat-definitions`, as every part reads the catalog half). Its holder is read from
|
||||
the same revision's placements, from their `holds`, as the assigner's state `seat-holders` keeps them: the key
|
||||
`<seat>` for a seat held once for the mesh, `<seat>.<N>` for a node seat. A seat that delivers R and that no
|
||||
@@ -138,7 +138,7 @@ design's choice within the record it cites, tested against [the principles](../.
|
||||
§569, A-208) This completes §47's row 5 for the indexer, which writes a catalog entry's edges (A-208).
|
||||
- **The entry's `acts`.** The indexer fills a catalog entry's field `acts` when it makes the entry: for each seat
|
||||
its manifest's `claims` names, each acting rule that seat's definition carries, among the definitions the entry's
|
||||
catalog graph revision names in its `definitions` (read through the seat `mesh-catalog`'s verb
|
||||
module graph revision names in its `definitions` (read through the seat `mesh-catalog`'s verb
|
||||
`seat-definitions`, as §708), as one item `{seat, step, on, bound}`: `seat` the claimed seat, `step`, `on` and
|
||||
`bound` as the definition writes them, `bound` left absent where the rule names none (its step's default, §266,
|
||||
is the reader's). Items sorted by `seat`, then `step`; a module that claims no seat with a rule has no `acts`. It
|
||||
|
||||
@@ -116,7 +116,7 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
found by holder from the seat list; the acting rules `step`, `on` and `bound` and the credentials the entries
|
||||
declare), and the grants part's `grants-for` (the permissions); no other verb.
|
||||
- **A-208** (ADR 0656, §558, §605, §16, §293, §600, §18, §104, §44-§46, A-93, A-190; principle 7) The indexer writes a
|
||||
catalog entry's edges of kinds 1 to 6, as the catalog graph is its own; the long form of `invokes` is read by the
|
||||
catalog entry's edges of kinds 1 to 6, as the module graph is its own; the long form of `invokes` is read by the
|
||||
second reader release's `InvokeFields`, which G merges. Every watched branch's take-in uses the trunk's machinery,
|
||||
per branch: its own pending revision (holding only that branch) and its own groups. `stepsVia` is open while the
|
||||
entry's fingerprint is still in the branch's newest revision; `messageVia` while a pending entry names the merge or
|
||||
@@ -509,7 +509,7 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
step key that names them: the store's age is the steps state's time to live (two days), its cap 256 MiB, and the
|
||||
bus's own age removes an object; nothing else deletes one. The milestone's lifetime list gains this line.
|
||||
- **A-310** (§615, §506; principles 7 and 3) A compose request's manifest named by digest also names the fingerprint
|
||||
whose catalog graph entry holds it: `composer.Manifest` gains `fingerprint` beside `digest`, and the checker, the one
|
||||
whose module graph entry holds it: `composer.Manifest` gains `fingerprint` beside `digest`, and the checker, the one
|
||||
part that sends digests, fills it (a pull's `Fps`, else the trunk revision's entry of that module). The Go build module
|
||||
reads the entry by `seat:mesh-catalog.entry` with that fingerprint, takes its manifest whole, and refuses the request,
|
||||
saying which module, when the entry's `manifest-digest` differs or a digest comes without a fingerprint. A manifest
|
||||
@@ -609,7 +609,7 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
§49's: where the build edge (kind 3) goes out of an artifact of a module that holds a build seat into an artifact it
|
||||
builds, the running version builds the new one (§270), so the cycle is broken at the running version and is allowed.
|
||||
Every other cycle with a build edge is refused at take-in, naming every artifact on it (§49, §51); the indexer builds
|
||||
that rule in G, over the catalog graph it keeps. An edge of kind 4 names the artifact that offers the provision (its
|
||||
that rule in G, over the module graph it keeps. An edge of kind 4 names the artifact that offers the provision (its
|
||||
`answered-by`), not the module's first process resource.
|
||||
- **A-327** (§21, §23, §54; principles 1, 3) A pipeline started before its module has a registration is placed when the
|
||||
registration arrives: the runner, on `registration-changed`, places from the registration the steps of every pipeline of
|
||||
@@ -929,7 +929,7 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
assignment graph's requirement resolution and the order waits keep reading holders from the holds alone; the post-G
|
||||
remarks take that up with the rest of the holders question.
|
||||
- **A-401** (live, the control-node 2026-11-14 21:5x: the assigner ended every proposal, since f1-circuits (watched on
|
||||
`master`), link2pay and photos (watched on nox-mesh) are held in no catalog graph of their branch; the gate writes
|
||||
`master`), link2pay and photos (watched on nox-mesh) are held in no module graph of their branch; the gate writes
|
||||
`source.<branch>` only on a take-in of a merge on that branch (A-34), so a newly watched branch is never started; the
|
||||
operator, 2026-11-14 about 22:00: "by doing a git clone"; principles 2, 4 and 7, §15, §430, A-85, A-93) A watched branch
|
||||
starts from the forge, as a clone does. The gate, at its start and on each `registration-changed` of the seat
|
||||
@@ -1270,13 +1270,13 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
Go fetch's one caller with no `dir` is that check, and a fetch with no `dir` still fetches the tree whole for it;
|
||||
every pipeline step and build names its module (A-447 to A-447c). The refusal of a fetch with no `dir` lands with
|
||||
the checker's removal.
|
||||
- **A-448** (§476, §493, §200; principles 3 and 7) `take-in.taken` names the catalog graph revision the take-in made
|
||||
- **A-448** (§476, §493, §200; principles 3 and 7) `take-in.taken` names the module graph revision the take-in made
|
||||
(`revision`), written by the indexer with the event. The runner starts each pipeline of a take-in at that revision,
|
||||
never at the revision its own view holds; while its view holds an older one, it waits for it (§200) and places no step.
|
||||
(Live, 2026-11-16: main.947 was started at revision 356 while its take-in made 357; its composition read 356 after
|
||||
the indexer had removed it.)
|
||||
- **A-449** (§153, §579, design 47's "kept while a delivery record pins it or it is current"; principle 7; corrected in
|
||||
place by design 47 H §763, H §749) A pipeline pins its catalog graph revision: the indexer pins it in the take-in's
|
||||
place by design 47 H §763, H §749) A pipeline pins its module graph revision: the indexer pins it in the take-in's
|
||||
write (A-449a) or on the runner's `pipeline-started`, and frees it on the runner's `pipeline-ended`, so the indexer
|
||||
keeps the revision while any pipeline runs on it. The runner says no `pinned` or `freed` of the seat
|
||||
`mesh-delivery`; those stay the gate's alone (§153).
|
||||
@@ -1287,7 +1287,7 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
- **A-226b** (completes A-226 and A-167; ADR 0593 §7; principles 7 and 9) The seat `node-engine`'s `compose-candidate`
|
||||
takes three key forms, parsed by one parser in the seat's client (`nodeengineclient`) that every caller builds its key
|
||||
with: a check's candidate `<group>.<heads hash>` (as today), a branch pipeline's revision `<branch>.<revision>` and a
|
||||
run's `run-<id>`. For a revision key the node-engine reads that catalog graph revision's entries through
|
||||
run's `run-<id>`. For a revision key the node-engine reads that module graph revision's entries through
|
||||
`mesh-catalog.revision` and composes them as the candidate; for a run's key it reads the run's candidate from the
|
||||
indexer's `runs` state. The seat definition's `candidate` input names the three forms. The assigner builds its key
|
||||
with the client's builder, never by hand. (Live, 2026-11-16: main.948's composition step: "\"main.362\" is not a
|
||||
|
||||
@@ -17,13 +17,13 @@ deals with it, which is how the list is kept true.
|
||||
|
||||
## The operator's remarks (2026-11-14, deferred until G is live)
|
||||
|
||||
1. **Two graphs only:** the catalog graph and the assignment graph. Each node's modules publish the state they own and
|
||||
1. **Two graphs only:** the module graph and the assignment graph. Each node's modules publish the state they own and
|
||||
the version they run on the bus; a gap between the assignments and what a node says is closed by the node-engine.
|
||||
2. **What a node can run is checked only on assignment and un-assignment** (for the modules that depend on it), never
|
||||
as an input to every computation. The glossary's *assignment graph* and ADR 0656 say the assigner computes from the
|
||||
catalog graph, the placements and the nodes' capabilities: check the record and the code against this.
|
||||
module graph, the placements and the nodes' capabilities: check the record and the code against this.
|
||||
3. **Assignments enter as commands** (the seat `mesh-module-assigner`'s `propose`: place, take off, ...); the assigner
|
||||
computes no placement, it only derives each placed module's version from the catalog graph into the wants. Check the
|
||||
computes no placement, it only derives each placed module's version from the module graph into the wants. Check the
|
||||
glossary's wording against this.
|
||||
4. **A pin** ("use this provider for this provision") may not belong in the assignments at all: question it, and what
|
||||
the provision wiring should be instead.
|
||||
|
||||
@@ -234,7 +234,7 @@ graphs answer them, the second computed from the first, so there is one source o
|
||||
Findings 11). How each is kept, read and retained is this design's choice under ADR 0656.
|
||||
|
||||
```
|
||||
manifests ──► indexer (mesh-catalog) ──► catalog graph revision ──┐
|
||||
manifests ──► indexer (mesh-catalog) ──► module graph revision ──┐
|
||||
├──► assigner (mesh-wants) ──► assignment graph revision
|
||||
placements (mesh-module-assigner) ───────────────────────────────┤ │ │
|
||||
node capabilities (node-engine seat) ────────────────────────────┘ │ └─► wants, from a trunk revision only
|
||||
@@ -242,22 +242,22 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
a change's assignment graph − the current one = its graph difference = its delivery
|
||||
```
|
||||
|
||||
- §174 **The catalog graph is the indexer's.** The indexer, holder of the seat `mesh-catalog`, keeps the modules as their
|
||||
- §174 **The module graph is the indexer's.** The indexer, holder of the seat `mesh-catalog`, keeps the modules as their
|
||||
manifests declare them; it is today's module graph, and *module graph* stays its other name (ADR 0656). At each
|
||||
revision it holds one entry per module: its bases, its packages, the toolchain version and recipe version of the
|
||||
build module that builds it as ADR 0603 §2 has them, its provides and requires, its invokes and serves, and its
|
||||
fingerprint, with the rules the seats declare (*An acting part's new version acts first*, below).
|
||||
- §175 **The assignment graph is the assigner's, computed and never written by hand.** The assigner, holder of the seats
|
||||
`mesh-module-assigner` and `mesh-wants`, computes the module versions placed on nodes, with the edges between
|
||||
versions, from the catalog graph, the placements and the nodes' capabilities, and nothing else writes it
|
||||
versions, from the module graph, the placements and the nodes' capabilities, and nothing else writes it
|
||||
(ADR 0656). Each entry is one module version on a node; its edges are provisioning, contribution, and the acting
|
||||
parts' versions that are to act on it (ADR 0656), whose rules and versions come in with the catalog graph. It is
|
||||
parts' versions that are to act on it (ADR 0656), whose rules and versions come in with the module graph. It is
|
||||
kept, but it is no stored plan: it has one writer, no part orders work by a stored plan, and any revision is computed
|
||||
again from the inputs it names and compared with the one kept, by a tool (below), so a kept revision is a checked
|
||||
derivation, never a second source of the kind research 063 removed (research 085, Findings 5).
|
||||
- §176 **Each graph is kept per revision, and each revision names its inputs** (ADR 0656). The indexer keeps a catalog
|
||||
- §176 **Each graph is kept per revision, and each revision names its inputs** (ADR 0656). The indexer keeps a module
|
||||
graph revision for each source revision it takes in; the assigner keeps an assignment graph revision for each change
|
||||
of its inputs, naming the catalog graph revision, the placements and the capability readings it was computed from.
|
||||
of its inputs, naming the module graph revision, the placements and the capability readings it was computed from.
|
||||
Both parts are the foundation (ADR 0619 §1), so both keep their revisions as objects declared in an `objects`
|
||||
section in the old form, each with a cap it declares there, never in the new form (ADR 0619 §2), and neither waits
|
||||
on the bus module to start; the manifest validator refuses either manifest that declares them in the new form
|
||||
@@ -265,8 +265,8 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
verbs. This replaces ADR 0603 §2's one key per module with five past values as the graph's form (ADR 0656, which
|
||||
changes ADR 0603 §2); the keys are written no more, and a revert of milestone G restores them from their backup
|
||||
(*Reverted*, below).
|
||||
- §177 **A revision is made by a merge, and also with no merge.** The indexer makes a catalog graph revision when it
|
||||
takes a source revision in. The assigner makes an assignment graph revision on each new catalog graph revision, on
|
||||
- §177 **A revision is made by a merge, and also with no merge.** The indexer makes a module graph revision when it
|
||||
takes a source revision in. The assigner makes an assignment graph revision on each new module graph revision, on
|
||||
the seat `mesh-module-assigner`'s event `assignments-changed` (ADR 0567 §5, ADR 0641), and on the node-engine seat's event
|
||||
`manifest-reads-changed`, which a node-engine says when the capabilities it states change and when its node returns
|
||||
(ADR 0614 §4, ADR 0618 §3, §4; §590), so the assigner follows an event and never reads a node record across the seam (ADR 0596). A
|
||||
@@ -286,12 +286,12 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
revision whatever changed, and a cap would only delay the same fill.
|
||||
- §180 **The caps and the growth** (estimates, to be read from the fill tools once the milestone runs). A whole assignment
|
||||
graph revision of about 120 modules on four nodes is under the bus's 256 KiB value limit (its unit test), and a
|
||||
catalog graph revision's list of about 120 entries about 4 KiB, its entries, each carrying its manifest whole
|
||||
module graph revision's list of about 120 entries about 4 KiB, its entries, each carrying its manifest whole
|
||||
(§443), about 15 KiB each. A record pins the revisions before and after its
|
||||
delivery, and consecutive records share one, so at an estimated 20 deliveries a day about 20 revisions of each graph
|
||||
a day stay pinned. A delivery moving 5 modules on four nodes adds about 20 assignment entries of about 1 KiB and a
|
||||
list of about 15 KiB, and 5 catalog entries of about 15 KiB and a list of about 4 KiB: about 0.7 MiB a day of assignment graph and
|
||||
1.6 MiB of catalog graph, about 63 MiB and 144 MiB at the records' default retention of 90 days. The caps are 512 MiB
|
||||
1.6 MiB of module graph, about 63 MiB and 144 MiB at the records' default retention of 90 days. The caps are 512 MiB
|
||||
for each, many times the steady state. Placement-only and capability-only revisions are pinned by no record and go
|
||||
when they stop being current.
|
||||
- §181 **A store filling is said before it is full.** The indexer, the assigner and the gate each say their fill against
|
||||
@@ -309,9 +309,9 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
- §183 **The want stays the one record a node reads.** The assigner writes `want.<node>.<module>` from a trunk
|
||||
revision's assignment graph only; a node-engine reads its want, never the assignment graph, and the have stays what
|
||||
it runs (ADR 0656, which changes ADR 0571 §8).
|
||||
- §184 **From G's delivery, per watched branch and between artifacts.** The catalog graph is kept once per watched branch,
|
||||
- §184 **From G's delivery, per watched branch and between artifacts.** The module graph is kept once per watched branch,
|
||||
each revision naming its branch, and its edges run between artifact references, of the six kinds of *Dependencies
|
||||
between artifacts* (ADR 0666 §6, §14). The assigner computes a node's entries from the catalog graph of the branch its
|
||||
between artifacts* (ADR 0666 §6, §14). The assigner computes a node's entries from the module graph of the branch its
|
||||
placement names, and writes a want from a revision of that branch whose `required` steps passed, in place of a trunk
|
||||
revision's alone (ADR 0666 §9, which changes ADR 0656 §2).
|
||||
- §185 **Reverted.** Only the new form is written: the indexer, the assigner and the gate keep nothing of ADR 0603 §2's
|
||||
@@ -323,7 +323,7 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
|
||||
| Part | Kept data before G (form 0) | After G | Restored at a revert |
|
||||
|---|---|---|---|
|
||||
| the indexer | the state `modules` (ADR 0603 §2's one key per module) and its durable consumer's position on the forge bridge's stream `forge`; the states `holds`, `engine-reads` and `hold-bounds` of its mesh-wide hold | catalog graph revisions as objects, form 1; `modules` no longer declared, nor its tool `indexer_read_modules` or its view; the mesh-wide hold, its three states and its tools `indexer_holds` and `indexer_engine_reads` gone, the wait per node being the assigner's (*Composing waits per node, by the assigner*); every reader of it reading the catalog half (*Every other reader of which modules exist*, under *The revision view*, below) | yes: `modules` and the hold's three states as they stood at G's delivery, and the consumer's position |
|
||||
| the indexer | the state `modules` (ADR 0603 §2's one key per module) and its durable consumer's position on the forge bridge's stream `forge`; the states `holds`, `engine-reads` and `hold-bounds` of its mesh-wide hold | module graph revisions as objects, form 1; `modules` no longer declared, nor its tool `indexer_read_modules` or its view; the mesh-wide hold, its three states and its tools `indexer_holds` and `indexer_engine_reads` gone, the wait per node being the assigner's (*Composing waits per node, by the assigner*); every reader of it reading the catalog half (*Every other reader of which modules exist*, under *The revision view*, below) | yes: `modules` and the hold's three states as they stood at G's delivery, and the consumer's position |
|
||||
| the gate | the states `merges` and `turns` | the delivery record's ledger, form 1; `merges` and `turns` no longer declared | yes: `merges` and `turns` as they stood at G's delivery |
|
||||
| the assigner | the wants, written from the indexer's `modules` | the same wants, form 0, written from the assignment graph; the assignment graph revisions as objects, form 1 | no |
|
||||
|
||||
@@ -341,7 +341,7 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
### A change's graph difference is its delivery
|
||||
|
||||
- §186 **The difference names everything a plan named.** (§512) For a change (a pull request's heads, a delivery group's
|
||||
heads, or a merge), the indexer gives its catalog graph and the assigner its assignment graph. Compared with the
|
||||
heads, or a merge), the indexer gives its module graph and the assigner its assignment graph. Compared with the
|
||||
current revision, the difference names the new versions, the moved edges, the touched nodes and the order, read off
|
||||
the edges, and no plan is stored (ADR 0656). The assigner serves it by the seat `mesh-wants`'s verb `difference`,
|
||||
for two revisions of the assignment graph or for a candidate against trunk. ADR 0603 §6's tiers, as ADR 0633 §5
|
||||
|
||||
@@ -42,10 +42,10 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
### The revision view
|
||||
|
||||
- §194 **A pair, each half served by its one owner** (ADR 0656). For a trunk revision, or for a candidate's heads before
|
||||
any merge, the indexer serves the catalog half by the seat `mesh-catalog`'s verb `revision`: the catalog graph, the
|
||||
any merge, the indexer serves the catalog half by the seat `mesh-catalog`'s verb `revision`: the module graph, the
|
||||
heads, the seat definitions, the manifests' verdicts and the fingerprints. The assigner serves the assignment half by
|
||||
the seat `mesh-wants`'s verb `revision`: an assignment graph revision, named by its own revision and naming its
|
||||
inputs, the catalog graph revision, the placements and the capability readings. A part's view for the current
|
||||
inputs, the module graph revision, the placements and the capability readings. A part's view for the current
|
||||
revision is the newest assignment half and the catalog half it names. `seat-definitions` stays the seat list's verb
|
||||
(ADR 0636 §4), and the catalog half carries the same definitions at its revision.
|
||||
- §195 **Every part takes a first view, then follows the events.** The checker, the builder, the grants part and the
|
||||
@@ -69,7 +69,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
module, names the seat and never the indexer, and keeps no list of its own (ADR 0656 §6, ADR 0596 §2; ADR 0615 §1,
|
||||
under which every reader of the indexer's state moves in one milestone). A reader that misses a `catalog-revision`
|
||||
(a gap in the revisions it heard) asks `revision` once more, said in its log (ADR 0615 §5). The design's choice
|
||||
under ADR 0656 §6: one form of the fact, never `modules` kept beside the catalog graph for these readers, which
|
||||
under ADR 0656 §6: one form of the fact, never `modules` kept beside the module graph for these readers, which
|
||||
would be a second source of the same fact. How it is checked: test 61.
|
||||
- **The forge module's tools come from mesh-sdk's TypeScript side.** mesh-sdk's TypeScript side has no view
|
||||
today; milestone G adds there a view follower with its read and ask-again tools, which adopts and drops a branch's
|
||||
@@ -108,7 +108,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
indexer's whole-module test, started with a definition on a contracts trunk that no event announced, the first
|
||||
manifest claiming that seat is judged with it.
|
||||
- §199 **Who holds a seat is applied by one rule, from what each node runs.** (§556) The node-engine and the grants part decide a
|
||||
seat's pass by mesh-sdk's `SeatsToPassOn` (ADR 0660 §3), reading the catalog graph's entry of the build each assignment
|
||||
seat's pass by mesh-sdk's `SeatsToPassOn` (ADR 0660 §3), reading the module graph's entry of the build each assignment
|
||||
runs, never a manifest (ADR 0660 §2; §442). What each node runs is heard, never asked: each part keeps it from the node-engine seat's events
|
||||
`running.<node>.<module>` (*What each step says*), through a durable consumer of its own declared in its `consumes`,
|
||||
so a pass is decided with no call to a node that may be away. The seat's stream keeps the last message per subject
|
||||
@@ -118,7 +118,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
digest of the build's manifest, which is the indexer's manifest of that build (ADR 0660 §2's "the indexer's
|
||||
manifest of it"), read by digest from the catalog half; the builder's done key is not needed, since the event names
|
||||
the digest it would give. A node that has said no `running` for a module since the part's consumer began counts by
|
||||
the catalog graph's entry of the module on its placement's branch, as ADR 0660 §2 has it where the running build cannot be read, and both parts apply that same
|
||||
the module graph's entry of the module on its placement's branch, as ADR 0660 §2 has it where the running build cannot be read, and both parts apply that same
|
||||
fallback in the one function (ADR 0660 §3), whose input is §459's. Never another node's have key, its want or the assignment half (ADR 0596
|
||||
§2; *Each part acts on its own entries*). The design's choice under ADR 0660 §2: the node that runs a build says what
|
||||
it runs, and an event kept by a durable consumer answers when that node is away. How it is checked: test 56.
|
||||
@@ -147,7 +147,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
naming the language of the modules it acts on, matched against what the manifest says its language is, as the
|
||||
indexer's language map matches today; and `bound`, how long an entry waits in that step for the acting part's new
|
||||
version (*An acting part's new version acts first*, below, gives each step's default). The definition format's own
|
||||
schema (design 26) gains the field, and the format stays 1. The indexer reads it into the catalog graph, the assigner
|
||||
schema (design 26) gains the field, and the format stays 1. The indexer reads it into the module graph, the assigner
|
||||
into edges, and the checking program from the revision view. **Its cost in mesh-sdk:** the seat-definition reader in
|
||||
mesh-sdk's runtime refuses a definition with a field it does not know or a format other than 1, so a reader built
|
||||
before the field refuses every definition that carries `acts`, and a refused definition blocks new claims of that
|
||||
@@ -236,7 +236,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
| §234 Each step's wait held by the part that does the step, with its own read and release tools and the events `wait-held` (at the wait's start, with its bound) and `wait-ended`, timed by the watchman, whose clock starts when the new version's build is done | the part that does the step already holds its state; the watchman timing from `wait-held` still raises a wait whose holder stopped, and counting from the build done leaves a slow build to the build's own wait |
|
||||
| §235 The bound per step in the acting rule, with a default per step | the time a step's new version needs is the acting part's to know, not another module's |
|
||||
| §236 A build module's wait ends on the agreed toolchain naming the new build module | the agreed toolchain is what a fingerprint takes (ADR 0584 §1), so before it names the new build module no module could be built once by it |
|
||||
| §237 The running indexer makes a catalog graph revision with the named indexer's entry | the newer indexer can then be wanted and granted, so a revision waiting for it is never stuck behind it |
|
||||
| §237 The running indexer makes a module graph revision with the named indexer's entry | the newer indexer can then be wanted and granted, so a revision waiting for it is never stuck behind it |
|
||||
| §238 The acting rule's field `acts` with `step`, `on` and `bound`, the definition format staying 1 | the steps and the language match are what the indexer's map and the checker's cases held in code (research 085, Findings 2); the reader refuses an unknown field, so the runtime learns it in the one rebuild the milestone makes |
|
||||
| §239 The fingerprint handed as `MESH_FINGERPRINT` at a process's start | one value every runtime reads before anything else, a service and a container alike |
|
||||
| §240 The delivery record's consumer, held and failed outcomes, end and `record-ended`, the finding `record-open`, node away and wake, switch done once, and tools | a restart must lose and double nothing; a reader sees why an entry stands still; a node asleep must not hold a delivery open; a switch run twice must ask no approved group again |
|
||||
@@ -248,7 +248,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
| §246 The seat list's reader and its two tools wired once by mesh-sdk's runtime | ADR 0636 §7 puts them in the runtime bundle; four hand-wired copies would each learn `acts` apart |
|
||||
| §247 The trunk's heads from the catalog half, and nothing read of the gate by the checker | ADR 0596 §2; with the hold and turns removed nothing of the gate is left for the checker to read |
|
||||
| §248 The indexer reads every contracts trunk's definitions at its start, before it judges | a definition merged while it was down is never judged against a list that lacks it (ADR 0636 §1) |
|
||||
| §249 Another node's running build kept from the node-engine seat's `running` events by a durable consumer, the event carrying the fingerprint and the manifest's digest, the catalog graph's entry for a node that said nothing | ADR 0660 §2 reads the manifest of the build each node runs; an event kept by a durable consumer answers while a node is away, where a call would wait on it; one fallback in the one function keeps the two parts agreed (ADR 0660 §3) |
|
||||
| §249 Another node's running build kept from the node-engine seat's `running` events by a durable consumer, the event carrying the fingerprint and the manifest's digest, the module graph's entry for a node that said nothing | ADR 0660 §2 reads the manifest of the build each node runs; an event kept by a durable consumer answers while a node is away, where a call would wait on it; one fallback in the one function keeps the two parts agreed (ADR 0660 §3) |
|
||||
| §250 What the gate and the checker owe the forge said as the event `owed` per repository and pull request, each act safe to repeat at the forge, each outcome said as `owed.ended` and recorded, an unanswered act said again at the gate's start and stalled after 15 minutes | ADR 0596 §1, §2 end the watches of the gate's and the checker's keys; an act safe to repeat cannot be lost between the act and its record, where an id recorded first could; an outcome said and recorded leaves no act unseen |
|
||||
| §251 A merge made at the forge opens a `forge-made` delivery record | its trace and outcomes are kept like every delivery's, and no later merge waits behind a merge the gate never heard |
|
||||
| §252 Every delivery part and the gate reach the forge only through the seat `git`'s verbs and events, the act verbs granted by the holder's trusted `callers` to the forge bridge alone, a failed read answered as an error | the delivery parts name no other module (ADR 0656 §1, acceptance test 27); the forge's answers are typed in the seat's contract instead of guessed in each caller; the bridge stays the one part that acts on the forge; an error read as an empty answer would hide a forge down |
|
||||
@@ -263,7 +263,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
|
||||
### What each step says
|
||||
|
||||
§260 Each step says what it did as its own event, the event of the part that did it. A catalog graph revision kept
|
||||
§260 Each step says what it did as its own event, the event of the part that did it. A module graph revision kept
|
||||
carries the source revision; an assignment graph revision kept and a difference worked out carry the source revision
|
||||
and the assignment graph revisions; an entry taken in, built, checked, composed, wanted and running also carries the
|
||||
entry's fingerprint and its node. The gate's delivery record is built from them. The seat's event comes first where
|
||||
@@ -278,7 +278,7 @@ say another runs a build (ADR 0363 §2); the gate's events are granted to the ga
|
||||
|
||||
| Step | Event | Owner: the seat, then the module | Subject | Declared in |
|
||||
|---|---|---|---|---|
|
||||
| a catalog graph revision kept, saying whether it is a trunk revision or a candidate's and its watched branch | `catalog-revision` | `mesh-catalog`, the indexer | `mesh.seat.mesh-catalog.event.catalog-revision`, the watched branch in the subject from G's delivery | the seat's definition in `mesh-delivery-contracts` |
|
||||
| a module graph revision kept, saying whether it is a trunk revision or a candidate's and its watched branch | `catalog-revision` | `mesh-catalog`, the indexer | `mesh.seat.mesh-catalog.event.catalog-revision`, the watched branch in the subject from G's delivery | the seat's definition in `mesh-delivery-contracts` |
|
||||
| an assignment graph revision kept | `assignment-revision` | `mesh-wants`, the assigner | `mesh.seat.mesh-wants.event.assignment-revision` | the seat's definition in `mesh-delivery-contracts` (ADR 0641 §2) |
|
||||
| a difference worked out | `difference` | `mesh-wants`, the assigner | `mesh.seat.mesh-wants.event.difference` | the same |
|
||||
| an entry taken in | `take-in.taken`, which gains the entries | the indexer's own | `mesh.stream.mesh-delivery-indexer.event.take-in.taken` | the indexer's manifest |
|
||||
@@ -309,8 +309,8 @@ on another node's subject is refused by the bus.
|
||||
|
||||
| Line | The assigner | The indexer |
|
||||
|---|---|---|
|
||||
| read everything it holds | `assigner_revision` (one assignment graph revision whole, with the revisions of its inputs), `assigner_revisions` (every kept revision with what pins it, and the store's fill against its cap), `assigner_entry` (one entry, with the seat rule that gave each edge), `assigner_difference` (a change's difference), `assigner_waits` (*Order without a person*), `assigner_candidate_graphs` (every candidate's graphs: its heads, its revisions, since when), `assigner_consumer` (its consumer of the gate's events: the last applied, the waiting), `assigner_puts` (each put with its step, since when, held or not, the `running` that ended it, and for a put without hold whether it is past its 30-minute bound; a put older than the trunk's newest build of its module said so) | `indexer_catalog_revision` (one catalog graph revision), `indexer_catalog_revisions` (every kept revision with what pins it, and the store's fill against its cap), `indexer_candidate_graphs` (every candidate's catalog half), `indexer_consumer` (the same as the assigner's) |
|
||||
| do by hand what it does itself | `assigner_recompute` (compute a revision again from its named inputs and compare it with the one kept) | `indexer_recompute` (compute a catalog graph revision again from its source revision and compare it with the one kept) |
|
||||
| read everything it holds | `assigner_revision` (one assignment graph revision whole, with the revisions of its inputs), `assigner_revisions` (every kept revision with what pins it, and the store's fill against its cap), `assigner_entry` (one entry, with the seat rule that gave each edge), `assigner_difference` (a change's difference), `assigner_waits` (*Order without a person*), `assigner_candidate_graphs` (every candidate's graphs: its heads, its revisions, since when), `assigner_consumer` (its consumer of the gate's events: the last applied, the waiting), `assigner_puts` (each put with its step, since when, held or not, the `running` that ended it, and for a put without hold whether it is past its 30-minute bound; a put older than the trunk's newest build of its module said so) | `indexer_catalog_revision` (one module graph revision), `indexer_catalog_revisions` (every kept revision with what pins it, and the store's fill against its cap), `indexer_candidate_graphs` (every candidate's catalog half), `indexer_consumer` (the same as the assigner's) |
|
||||
| do by hand what it does itself | `assigner_recompute` (compute a revision again from its named inputs and compare it with the one kept) | `indexer_recompute` (compute a module graph revision again from its source revision and compare it with the one kept) |
|
||||
| recover without help | `assigner_drop_candidate_graph` (drop a candidate's graphs whose gate event never came), `assigner_release` (*Order without a person*) | `indexer_drop_candidate_graph` (the same for its half) |
|
||||
| one seat, many tools | `mesh-wants`: `revision`, `entry`, `difference` | `mesh-catalog`: `revision`, beside `seat-definitions` |
|
||||
|
||||
@@ -330,8 +330,8 @@ steered by a tool.
|
||||
§263 **How it is checked.** Unit (assigner): a revision of the assignment graph computed again from its named inputs
|
||||
equals the one kept; a fixture change with a new fingerprint and an empty difference is refused, naming its module;
|
||||
one revision of about 120 modules on four nodes stays under the bus's value limit; of the view the assigner reads only
|
||||
the catalog half. Unit (indexer): a catalog graph revision holds one entry per module of its source revision. Whole
|
||||
(indexer): a source revision taken in gives one catalog graph revision kept as objects in an `objects` section in the
|
||||
the catalog half. Unit (indexer): a module graph revision holds one entry per module of its source revision. Whole
|
||||
(indexer): a source revision taken in gives one module graph revision kept as objects in an `objects` section in the
|
||||
old form within the cap its manifest declares; the manifest validator refuses the indexer's or the assigner's manifest
|
||||
that declares them in the new form. Whole (indexer, assigner): a revision a delivery record pins is not removed; one
|
||||
two records pin stays until both free it; one neither pinned nor current is removed; a `freed` said while the part
|
||||
|
||||
@@ -147,7 +147,7 @@ names go, since every new acting part needed code changes elsewhere (research 08
|
||||
- §273 **The indexer's own steps have no wait, and a newer indexer is reached.** Taking in and validating stay as *Taken in
|
||||
by the indexer it names* has them: a revision is taken in only by the indexer it names, which judges its own change
|
||||
at its start, and no build waits on which indexer judged it (ADR 0603 §4, as ADR 0633 §1 changes it). So that the
|
||||
named indexer can start at all, the running indexer makes, for a merged revision naming a newer indexer, a catalog
|
||||
named indexer can start at all, the running indexer makes, for a merged revision naming a newer indexer, a module
|
||||
graph revision that is the previous one with only the indexer's entry replaced by the one its manifest at the merge
|
||||
gives, and nothing else of the revision, so no other want moves before the named indexer takes the revision in; the assigner wants it and the grants part grants it like any module, and once it runs it takes the revision
|
||||
in whole. Without that, a revision waiting for its indexer would wait for good.
|
||||
@@ -191,7 +191,7 @@ names go, since every new acting part needed code changes elsewhere (research 08
|
||||
`wait-held` carries `clock-from` from the builder's `build.ended`. Whole (assigner, node-engine): during a node-engine change with
|
||||
one node away, the present nodes take their new node-engine and then their other wants, nothing waits on the node
|
||||
away and no condition is raised for it; a node asleep since before milestone G wakes, takes its new node-engine
|
||||
first, then the rest. Whole (indexer, assigner): a merged revision naming a newer indexer gives a catalog graph
|
||||
first, then the rest. Whole (indexer, assigner): a merged revision naming a newer indexer gives a module graph
|
||||
revision that is the previous one with only the indexer's entry replaced, and no other want moves; the new indexer is wanted and granted, starts,
|
||||
and takes the revision in, with no build waiting on which indexer judged it. Whole (assigner): a module with no
|
||||
holder for its step is held by name, and the check of a change bringing it fails naming the missing holder. Unit
|
||||
@@ -298,7 +298,7 @@ running versions never check in their place, and a check fails, naming the part,
|
||||
`source.<branch>`, as a commit or a group lands there; the pipeline runs on each revision the indexer takes in, and
|
||||
the wants follow a revision whose `required` steps passed, on the branch each placement chose (ADR 0666 §6, §9).
|
||||
- §292 **From research 085's milestone, the wants follow the trunk's assignment graph.** A merge taken in makes a
|
||||
catalog graph revision and then an assignment graph revision; the assigner writes each want from that revision,
|
||||
module graph revision and then an assignment graph revision; the assigner writes each want from that revision,
|
||||
its rules unchanged (ADR 0656), and each acting part's new version acts first in its own step (ADR 0656; *Two
|
||||
graphs, one source of truth*, above).
|
||||
|
||||
@@ -309,7 +309,7 @@ running versions never check in their place, and a check fails, naming the part,
|
||||
sandbox, and a revision it refuses stays pending, as the bullets above have it, with the way back a revert; a pending
|
||||
revision holds only its own watched branch; a group's member reaches it by landing, and the group ends when the gate's
|
||||
group verb says every member has; `bridge_group_end_again` reads that verb; and the check's refusal below goes with the
|
||||
check (*Watched branches and the catalog graph per branch*, *Groups*).
|
||||
check (*Watched branches and the module graph per branch*, *Groups*).
|
||||
|
||||
## A backup before the apply: kept data on the bus
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ each step says*.
|
||||
|
||||
§309 **The seat `node-engine`**'s (§520) event `running.<node>.<module>` carries, from research 085's milestone, the module, its
|
||||
fingerprint and the digest of its build's manifest, so the node-engine of another node and the grants part decide a
|
||||
seat's pass from the catalog graph's entry of that build (ADR 0660 §2; *Who holds a seat is applied by one rule*). No verb is added.
|
||||
seat's pass from the module graph's entry of that build (ADR 0660 §2; *Who holds a seat is applied by one rule*). No verb is added.
|
||||
|
||||
§310 **The seat `git`.** The seat `git` (design 26, *The git seat*), of the Delivery domain, defined in
|
||||
`mesh-delivery-contracts`, holds no verb today, and the delivery parts and the gate reach the forge by naming the forge
|
||||
|
||||
@@ -43,7 +43,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
|
||||
### The runner and its steps
|
||||
|
||||
- §323 **A step's build seat is read from the artifact's language.** (§535) The catalog graph entry names each artifact's
|
||||
- §323 **A step's build seat is read from the artifact's language.** (§535) The module graph entry names each artifact's
|
||||
`language`, as its manifest's artifact entry says it and as the indexer's language map matches today; the runner
|
||||
reads it from the catalog half of its revision view and asks lint and the test steps of the build seat whose
|
||||
definition's acting rule `build` has `on` naming that language. With no such seat, or no holder of it, the pipeline
|
||||
@@ -190,7 +190,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
|
||||
### The catalog, the builder and the assigner
|
||||
|
||||
- §342 **A module not watched on a branch.** A watched branch's catalog graph takes each module not watched on that branch
|
||||
- §342 **A module not watched on a branch.** A watched branch's module graph takes each module not watched on that branch
|
||||
from the registration's first watched branch. `register` names a module's watched branches; with none named it takes
|
||||
the repository's default branch, read through the seat `git`. Why: a placement's default is the registration's first
|
||||
branch (ADR 0666 §6). How it is checked: whole (indexer), a `beta` revision holds a `main`-only module at `main`'s
|
||||
@@ -199,7 +199,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
`entry`, naming why, since the catalog keeps its revisions under `<branch>.<revision>` beside those two key forms.
|
||||
How it is checked: whole (indexer), each is refused.
|
||||
- §344 **The bus module plans a sent store from what the catalog already says.** (§533, §537) It plans `<module>_sent-objects` for a
|
||||
module of the new form whose catalog graph entry claims a seat whose definition has a verb or an event, or declares
|
||||
module of the new form whose module graph entry claims a seat whose definition has a verb or an event, or declares
|
||||
an event of its own, read from the catalog half of its revision view and the seat list; the indexer's event carries
|
||||
no field `sends`. When a seat's definition gains its first verb or event later, the bus module plans the store for
|
||||
its holders on the seat list's change. Why: no manifest field (*Any size*), and the catalog half is every part's view
|
||||
@@ -220,7 +220,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
- §348 **The builder reads the catalog through its seat.** The builder reads the registrations' watched branches through
|
||||
`mesh-catalog`'s `registrations` and `registration-changed`, the released versions it numbers from through
|
||||
`versions` and `version-released`, keeping no list of versions of its own, and a build seat's holder from the seat list; the
|
||||
manifests, the packages, each package's name in its ecosystem (the Go module path, the npm name, which the catalog
|
||||
manifests, the packages, each package's name in its ecosystem (the Go module path, the npm name, which the module
|
||||
graph entry's packages carry) and a run's candidate from the catalog half of its revision view, never the indexer's
|
||||
state. With no holder of a build seat, a build ends `could not run`, naming the seat, and is asked again on the seat
|
||||
list's change. Why: ADR 0596 §2. How it is checked: the builder's account holds no grant to the indexer's state.
|
||||
@@ -302,7 +302,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
- §364 **The node-engine claims its seat.** (§508, §527) The node-engine's manifest claims the node seat `node-engine` (ADR 0563), and
|
||||
the indexer and the node-engine's own guard read its holder from the seat list, keeping no module name. How it is
|
||||
checked: the code review reads that neither fixes a module name (§7).
|
||||
- §365 **The condition keeper finds its sources in the catalog.** (§527, §532) The catalog graph entry carries the events each
|
||||
- §365 **The condition keeper finds its sources in the catalog.** (§527, §532) The module graph entry carries the events each
|
||||
manifest declares in its `streams`; the keeper takes a first view of the catalog half, and its sources are the
|
||||
modules whose entry declares the finding events of §383, the node-engine among them, its holder read from the seat
|
||||
list. It joins the readers of *Every other reader of which modules exist*, reading every watched branch's newest
|
||||
@@ -408,7 +408,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
and the wait are the design's choice, round 2 of the review by architectural domain, 2026-11-10. How it is checked: test 103.
|
||||
- §374 **A release records, per edge, the part it was built against or delivered after.** (§558) One version per module
|
||||
stays (§52), and an edge is judged by the digest of the part it points to. The catalog records on each released
|
||||
version (§349), in its key of `versions`, one entry per catalog-graph edge of the module's artifacts (the six kinds
|
||||
version (§349), in its key of `versions`, one entry per module-graph edge of the module's artifacts (the six kinds
|
||||
of *Dependencies between artifacts*), a lockfile per released version. An entry names the kind, whether the edge
|
||||
makes the dependent stale or only orders it (§378), the manifest word it came from, the part it points to, and what
|
||||
the edge depended on:
|
||||
@@ -431,7 +431,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
A build of a watched branch other than the registration's first releases no version (§371): its entries are kept in
|
||||
the indexer's old `state` section `build-edges`, one key per module and watched branch holding the newest build's
|
||||
entries, keyed by its fingerprint, replaced by the next build and deleted when `registration-changed` says the
|
||||
branch is no longer watched, and they compare by the part's digest alike. The declared edge stays in the catalog
|
||||
branch is no longer watched, and they compare by the part's digest alike. The declared edge stays in the module
|
||||
graph; an entry is the release's or the build's fact, written once. Why: the operator, 2026-11-10 about 22:30 to 23:00 CET and 22:10 CET (issue 1961), and
|
||||
the lead's review of these lines. Each entry is about 0.1 KiB, about ten a version, so `versions` stays within its
|
||||
64 MiB (an estimate). How it is checked: test 104.
|
||||
|
||||
@@ -102,7 +102,7 @@ record says so in its Why. Round 3 of the review by architectural domain (2026-1
|
||||
hearing an event that many modules say; the keeper's `*.finding-written`, `*.finding-cleared` and
|
||||
`*.findings-stated` are the first. The manifest validator takes `*` only as the whole emitter, and only before an
|
||||
event that a seat's definition or a contract in mesh-sdk defines, with its fields (for the finding events, the seat `mesh-conditions`' definition, §439); it refuses `*.>` and `*` in part of an emitter's name, and a `*` entry before any other event keeps its meaning on main (§474). The grants part,
|
||||
from the catalog graph as it derives every grant (§59, §442), makes on each declaring module's stream one durable consumer
|
||||
from the module graph as it derives every grant (§59, §442), makes on each declaring module's stream one durable consumer
|
||||
for each process of the consumer that hears it, named as A-397 names a process's durable (`<machine>_<module>` for
|
||||
its program, `<machine>_<module>_tools` for its tool runner, `<machine>_<module>_<process>` for another; corrected in
|
||||
place by design 47 H §763, where one per module stood), with its grants to read and acknowledge it and
|
||||
|
||||
@@ -133,7 +133,7 @@ line says so.*
|
||||
operator, are refused by the bus; a failed restore says `restored` with `failed` and its error.
|
||||
- §406 **A catch-up names its tool and arguments.** (§516, §555) A restore point records the catch-up tool and its arguments whole
|
||||
(§299), and the fingerprint of the newer build it was taken before; the grants part derives the grant of that tool to
|
||||
`holder:node-engine@same-node` from the catalog graph's entry of that recorded fingerprint (§443). Why: the design's
|
||||
`holder:node-engine@same-node` from the module graph's entry of that recorded fingerprint (§443). Why: the design's
|
||||
choice (Q-H7). How it is checked: whole (node-engine), a restore runs its recorded catch-up, granted from the
|
||||
recorded build's entry.
|
||||
- §407 **The object store package.** mesh-sdk's object store package is `go/stateobjects`; it also takes a foundation
|
||||
@@ -208,7 +208,7 @@ line says so.*
|
||||
### Readers, branches and the node-engine
|
||||
|
||||
- §421 **The node-engine reads the entry its want names.** (§526, §532) The node-engine joins §196's readers: it reads, from the
|
||||
catalog half, the catalog graph's entry of the fingerprint its want names (§443), never a manifest and never by
|
||||
catalog half, the module graph's entry of the fingerprint its want names (§443), never a manifest and never by
|
||||
branch, so a want needs no field `branch`, and the parts by digest from its want (§379); its reads of the indexer's
|
||||
and builder's states go. When the catalog half no longer holds that entry, the node-engine holds the want and its
|
||||
have says the phase `entry-missing`, naming the fingerprint. The tool runner follows every watched branch's newest
|
||||
@@ -267,7 +267,7 @@ line says so.*
|
||||
`merges`. Why: the design's choice (C13, C14, D9, D11). How it is checked: whole (gate), each verb served or not as
|
||||
named; whole (knowledge base), the overview shows a group's end from `group-ended`.
|
||||
- §432 **The edges a `needs` names.** An artifact's `needs` names artifact references `<module>:<artifact>` of the
|
||||
catalog graph's edges (§95, §121). Why: the design's choice (C21). How it is checked: unit (manifest validator).
|
||||
module graph's edges (§95, §121). Why: the design's choice (C21). How it is checked: unit (manifest validator).
|
||||
- §433 **The bus module reads the catalog half.** (§532, §538) The bus module's `consumes` and its call of `indexer_bus_state` are
|
||||
replaced by its view of the catalog half (§344). Why: ADR 0596 §2 (C22). How it is checked: its manifest.
|
||||
- §434 **Findings name their owner and whom they wait on, and the keeper reads by events.** (§541) A finding of §33, §8 and
|
||||
@@ -318,9 +318,9 @@ line says so.*
|
||||
never refused). This amends §401. Why: lead-47's ruling, 2026-11-11, on D15 and Q12. How it is checked: whole (grants
|
||||
part, runner), a change widening a grant names it in `widens` from `grants-for`, and with the grants part stopped
|
||||
`widens` says `could not run`.
|
||||
- §442 **Only the indexer reads a manifest.** The indexer alone reads the manifests, to build the catalog graph, whose
|
||||
- §442 **Only the indexer reads a manifest.** The indexer alone reads the manifests, to build the module graph, whose
|
||||
entry carries the validated manifest whole (§443); every other part (the grants part, the condition keeper, the
|
||||
assigner, the runner, the tool runner, the node-engine, the checks and the reviews) reads the catalog graph's entry
|
||||
assigner, the runner, the tool runner, the node-engine, the checks and the reviews) reads the module graph's entry
|
||||
of the build concerned from the catalog half (§196, §421). Today's readers move: in mesh-catalog, `brother`,
|
||||
`distribution`, the forge module's package registry and `mesh-build-go` read the entry they need by `mesh-catalog`'s
|
||||
`entry` or `revision`; in `mesh-host`, the node-engine reads the entry its want names (§421). The one exception is
|
||||
@@ -329,11 +329,11 @@ line says so.*
|
||||
its inputs and the composition check. Why: the operator, 2026-11-11 about 03:05 CET at the terminal: "only the
|
||||
indexer uses the manifest to build the module catalog". How it is checked: test 61, extended to the node-engine and
|
||||
the grants part: whole cases whose accounts hold no read of a manifest; the grants part's table test derives each
|
||||
grant from a catalog graph fixture with no manifest.
|
||||
grant from a module graph fixture with no manifest.
|
||||
|
||||
### From the review of step 0b (2026-11-11)
|
||||
|
||||
- §443 **The catalog graph's entry carries the manifest, and is kept while a build names it.** (§506) Each catalog graph
|
||||
- §443 **The module graph's entry carries the manifest, and is kept while a build names it.** (§506) Each module graph
|
||||
entry carries the validated manifest whole beside the fields §174 names, kept as an object of the indexer's old
|
||||
`objects` section by its digest (§179), so no size limit applies to it. The indexer keeps an entry while a kept
|
||||
revision lists it, or a want (heard by `mesh-wants`' `wanted`) or a running build (heard by the node-engine seat's
|
||||
@@ -343,7 +343,7 @@ line says so.*
|
||||
whole (indexer), an entry no revision lists stays readable by `entry` while a want names its fingerprint, and goes
|
||||
after the want moves on.
|
||||
- §444 **The grants part derives each module's grants from the build placed.** The grants part derives each module's
|
||||
grants from the catalog graph's entry of the build its want names (heard by `wanted`), never from a branch's newest
|
||||
grants from the module graph's entry of the build its want names (heard by `wanted`), never from a branch's newest
|
||||
revision, so a change on a branch no placement names grants nothing. This amends §59 and §386. Why: §442; a grant
|
||||
follows what runs. How it is checked: the grants part's table test, a widening on a branch no placement names
|
||||
grants nothing, and the same widening once wanted is granted.
|
||||
|
||||
@@ -235,7 +235,7 @@ flowchart LR
|
||||
- §746 **One take-in is one pipeline.** (ADR 0682 §6; the operator, 2026-11-20 01:10 CET; ADR 0666 §1, §7, §9 read per
|
||||
source revision) On a `take-in.taken` with entries the runner starts exactly one pipeline, keyed `<branch>.<source>`
|
||||
by compare-and-set on its absence, whose movers are the event's entries. It asks each mover's pipeline steps in the
|
||||
catalog graph's build order (a mover's build waits for the `package-published` of each mover it has a "published
|
||||
module graph's build order (a mover's build waits for the `package-published` of each mover it has a "published
|
||||
before it builds" edge to, toolchain edges first), and computes the movers' delivery order in ADR 0666 §14's order as
|
||||
tiers (acting parts first, providers before their consumers; movers no edge orders share a tier). The pipeline passes
|
||||
when every mover's `required` steps passed, a `required` step ending `nothing to run` counting as passed (ADR 0682 §8; H-A-3), and
|
||||
|
||||
@@ -270,7 +270,7 @@ Where two preparers disagreed, the chosen one is named.
|
||||
marker goes: by the tool's name, the forms `<module>_first_views` and `<module>_first_view_again` that mesh-sdk's views
|
||||
already serve; no environment marker and no tool runner change. P7 (what exists over a new side channel).
|
||||
- **H-A-70 (contracts-indexer-bridge developer, 02:40)** `acts` stays everywhere as a declaration: it is what the
|
||||
catalog graph's kind-5 edge ("B has acted for A") is built from, and H-A-51 orders the pipeline's tiers by that edge.
|
||||
module graph's kind-5 edge ("B has acted for A") is built from, and H-A-51 orders the pipeline's tiers by that edge.
|
||||
So the `acts` entries of the seats mesh-catalog (take-in, validate), mesh-wants (place) and the build seats stay, as do
|
||||
`ActingRule` and `CatalogEntry.acts`; what goes is the hold and its wait: `bound` on the build seats' `acts` and every
|
||||
reader that waits or holds on an acting part (the builder's bound reader and its re-asks, the assigner's acting holds,
|
||||
|
||||
Reference in New Issue
Block a user