Compare commits
56
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
94d52534ab | ||
|
|
6808125e1d | ||
|
|
32da464794 | ||
|
|
10bc8d396c | ||
|
|
8e732e22ae | ||
|
|
6ef40bbcc7 | ||
|
|
7ff4c7ce68 | ||
|
|
0d1aa93e37 | ||
|
|
1afab9739e | ||
|
|
420751b214 | ||
|
|
043f8ecf9c | ||
|
|
132aae8433 | ||
|
|
28d84f31bf | ||
|
|
278ca42b3d | ||
|
|
1dab64134a | ||
|
|
a0e4c1fe17 | ||
|
|
7c88f297fc | ||
|
|
495d740d5f | ||
|
|
df4ff3d039 | ||
|
|
d698942b1d | ||
|
|
a6cc3d2e0b | ||
|
|
b6572acd72 | ||
|
|
ebc1a84e59 | ||
|
|
5bb109e36e | ||
|
|
d948774794 | ||
|
|
68f8a8c198 | ||
|
|
b5b84fafc6 | ||
|
|
0488bc1801 | ||
|
|
973182cdf9 | ||
|
|
97d600650a | ||
|
|
515c405c89 | ||
|
|
a6e27687db | ||
|
|
b7dabd8ceb | ||
|
|
3a5c4c7c4d | ||
|
|
250c3ff605 | ||
|
|
a3f6e967c0 | ||
|
|
11b0a450c3 | ||
|
|
122cda84b3 | ||
|
|
be1bbe0a65 | ||
|
|
585551722a | ||
|
|
f1c50d3e01 | ||
|
|
d70791ddee | ||
|
|
5bdeb8db83 | ||
|
|
d94f8a05a8 | ||
|
|
fd0d712f7d | ||
|
|
de4c69d476 | ||
|
|
9eb963d5f1 | ||
|
|
c255fd071c | ||
|
|
b11120f681 | ||
|
|
0354947ba6 | ||
|
|
4d596bd211 | ||
|
|
0e1d0392bc | ||
|
|
ba09497092 | ||
|
|
2d3a205740 | ||
|
|
3dbb5d4e65 | ||
|
|
4b514e4d69 |
+108
-40
@@ -173,8 +173,10 @@ every other domain has something to run on. **Recorded by** the controller and t
|
|||||||
mesh. It is not a separate kind of node — it is a node that additionally runs the controller (and,
|
mesh. It is not a separate kind of node — it is a node that additionally runs the controller (and,
|
||||||
today, the foundation). Lose it and the other nodes keep running what they were last told; they simply
|
today, the foundation). Lose it and the other nodes keep running what they were last told; they simply
|
||||||
cannot be told anything new.
|
cannot be told anything new.
|
||||||
- **node-engine** — the program on every node that applies what the controller declares: it receives
|
- **node-engine** — the program on every node that applies what its node should run: from release 6 of
|
||||||
the node's declaration, writes the files, runs the services and containers, and reports what it did.
|
ADR 0429 its node agent follows the node's wants and the compositions the controller signs for it, one module
|
||||||
|
at a time (ADR 0539); until then it received the node's whole declaration. It writes the files, runs the
|
||||||
|
services and containers, and says what it runs in its haves.
|
||||||
It is the engine, not a module: it owns no file's content, and every file it writes belongs to the
|
It is the engine, not a module: it owns no file's content, and every file it writes belongs to the
|
||||||
module that declared it. *Agent* is avoided because that word means a coding agent here. A record
|
module that declared it. *Agent* is avoided because that word means a coding agent here. A record
|
||||||
written before the rename keeps the old name. "The host" is retired in this repository's prose only:
|
written before the rename keeps the old name. "The host" is retired in this repository's prose only:
|
||||||
@@ -233,12 +235,24 @@ every other domain has something to run on. **Recorded by** the controller and t
|
|||||||
## Placement — what runs on which node
|
## Placement — what runs on which node
|
||||||
|
|
||||||
**Purpose.** To decide, send and apply what each node runs, and to say why.
|
**Purpose.** To decide, send and apply what each node runs, and to say why.
|
||||||
**Recorded by** the controller's `inventory` database. **Upstream of** Provisioning, Connectivity, Data
|
**Recorded by** the controller's `inventory` database; from ADR 0549, by the catalogue's placement files, which
|
||||||
and Health and repair. **Decided by** ADR 0100, 0126, 0176, 0181, 0207, 0221, 0252, 0261, 0411.
|
the indexer reads onto the bus. **Upstream of** Provisioning, Connectivity, Data
|
||||||
|
and Health and repair. **Decided by** ADR 0100, 0126, 0176, 0181, 0207, 0221, 0252, 0261, 0411, 0539, 0549, 0559.
|
||||||
**Uses:** node, machine, module, seat, manifest (Module), config value (Config).
|
**Uses:** node, machine, module, seat, manifest (Module), config value (Config).
|
||||||
|
|
||||||
- **assignment** — a module put on a node. Its config values on that node (module-assignment config,
|
- **assignment** — a module put on a node. Its config values on that node (module-assignment config,
|
||||||
Config) are `mesh-config`'s, never part of what the controller records (ADR 0348 §9).
|
Config) are `mesh-config`'s, never part of what the controller records (ADR 0348 §9).
|
||||||
|
- **placement file** — the catalogue's file for one node: the modules placed on it and, for each, its pins, its
|
||||||
|
host ports and its bindings to the providers it requires. It changes only by a pull request on the catalogue,
|
||||||
|
and the indexer reads it at each trunk merge into its state `placement`, one key per node, which every reader
|
||||||
|
of placement watches (ADR 0549 §1 to §3). Until ADR 0547's third milestone the controller's assignments are
|
||||||
|
kept equal to it.
|
||||||
|
- **placement candidate** — a placement file of one node as an open catalogue pull request has it at its head,
|
||||||
|
kept by the indexer in its state `placement-candidates` under `<group>.<node>` while the pull request is open.
|
||||||
|
Every node composes it in **shadow** (composed and compared, never applied) and answers in its own have whether
|
||||||
|
what it would run is the same; the composition check passes only when every placed node has answered the same
|
||||||
|
or differs only where the change intends (ADR 0559). Not the indexer's candidates of a group, which are
|
||||||
|
fingerprints (Delivery).
|
||||||
- **pending assignment** — an assignment of a module whose build is still running, kept, and made by the
|
- **pending assignment** — an assignment of a module whose build is still running, kept, and made by the
|
||||||
controller when that build registers the module, or ended with why when it does not
|
controller when that build registers the module, or ended with why when it does not
|
||||||
(ADR 0261).
|
(ADR 0261).
|
||||||
@@ -259,14 +273,33 @@ and Health and repair. **Decided by** ADR 0100, 0126, 0176, 0181, 0207, 0221, 02
|
|||||||
`package` on `node-package-manager`, a `container` on `node-container-runtime`
|
`package` on `node-package-manager`, a `container` on `node-container-runtime`
|
||||||
(ADR 0207).
|
(ADR 0207).
|
||||||
Not a claim: a module claims a seat it holds and declares resources.
|
Not a claim: a module claims a seat it holds and declares resources.
|
||||||
- **declaration** — what the controller sends one node: every resource of every module assigned there,
|
- **declaration** — every resource of every module assigned to one node, composed, which the controller sent
|
||||||
composed. The noun is this domain's; what a manifest says is that it *declares* (Module), and a manifest
|
that node until release 6 of ADR 0429. From release 6 nothing is sent: what a node applies is its
|
||||||
is never called a declaration. The controller's verb `plan` previews a node's declaration.
|
compositions, and the node-engine keeps the declaration it applied last only as what it starts from, its
|
||||||
- **send** — the controller giving a node its declaration. The controller's verb `push` asks for a
|
**last declaration** (ADR 0539 §9). The switch's own last declaration carries the operator's public key
|
||||||
send (of one node, or of every node); prose says send. A git push and a phone's push notification are
|
(ADR 0539 §3, §11). The noun is this domain's; what a manifest says is that it *declares* (Module), and a
|
||||||
other things (see [Homonyms](#homonyms)).
|
manifest is never called a declaration. The controller's verb `plan` previewed a node's declaration until
|
||||||
- **apply** — the node-engine making its node match its declaration; **reconcile** is doing so again
|
release 6.
|
||||||
until nothing differs.
|
- **composition** — one module's resources composed for one node at one fingerprint, signed by the controller
|
||||||
|
(or, made by hand with `mesh-hand-compose`, by the operator), written by the controller as
|
||||||
|
`<node>.<module>.<fingerprint>` in that node's bucket `composed-<node>`, which only that node reads; the node's
|
||||||
|
own resources (adoption, firewall openings, accounts, the resolver, identities and groups) are its node
|
||||||
|
composition `<node>.node`. Its digest, with the controller's judgement of the move from what the node runs
|
||||||
|
now, is kept under the same key in `mesh-controller_composed`; a want names that digest. Derived state, kept
|
||||||
|
while its fingerprint is among the module's five newest or a want names it, and no link of the chain
|
||||||
|
(ADR 0539 §1 to §4). From release 6. Not mesh-sdk's composition, the function that composes it (see
|
||||||
|
[Homonyms](#homonyms)), nor the **composition check** (Delivery).
|
||||||
|
- **send** — the controller giving a node its declaration, until release 6 of ADR 0429. The controller's verb
|
||||||
|
`push` asked for a send (of one node, or of every node); prose says send. From release 6 nothing is sent: the
|
||||||
|
controller writes compositions and the assigner writes wants, and every act that sent writes compositions
|
||||||
|
instead (ADR 0539 §5). A git push and a phone's push notification are other things (see
|
||||||
|
[Homonyms](#homonyms)).
|
||||||
|
- **apply** — the node-engine making its node match what it should run. From release 6 of ADR 0429 its node
|
||||||
|
agent applies one module at a time, the composition whose digest the module's want names, only when the
|
||||||
|
want's fingerprint or digest differs from what runs, and removes only that module's own resources
|
||||||
|
(ADR 0539 §9); until then it applied the node's whole declaration. **reconcile** is doing so again until
|
||||||
|
nothing differs; from release 6 a failed apply is retried by the next change of the want or the composition,
|
||||||
|
never by a clock.
|
||||||
- **operator account** — the machine account of the operator's person identity on a node, read from the
|
- **operator account** — the machine account of the operator's person identity on a node, read from the
|
||||||
identity and no longer stated on the node record; empty for a node nobody logs into. Everything the mesh
|
identity and no longer stated on the node record; empty for a node nobody logs into. Everything the mesh
|
||||||
places under a person's home is resolved against this account's home and owned by it
|
places under a person's home is resolved against this account's home and owned by it
|
||||||
@@ -344,7 +377,7 @@ and vault (Identity and access).
|
|||||||
**Purpose.** To issue, hold, rotate and check the credentials and grants by which modules, nodes, agents
|
**Purpose.** To issue, hold, rotate and check the credentials and grants by which modules, nodes, agents
|
||||||
and the operator act. **Recorded by** the controller's `identity` and `licences` databases and the vault.
|
and the operator act. **Recorded by** the controller's `identity` and `licences` databases and the vault.
|
||||||
**Upstream of** Provisioning, Delivery, and Operator and conversation.
|
**Upstream of** Provisioning, Delivery, and Operator and conversation.
|
||||||
**Decided by** ADR 0085, 0113, 0183, 0225, 0234, 0386, 0387, 0388, 0411, 0413, 0414.
|
**Decided by** ADR 0085, 0113, 0183, 0225, 0234, 0386, 0387, 0388, 0411, 0413, 0414, 0550.
|
||||||
**Uses:** module, node, seat, tool (Module), operator, consumer and provision (Provisioning), agent and ask (Operator and conversation).
|
**Uses:** module, node, seat, tool (Module), operator, consumer and provision (Provisioning), agent and ask (Operator and conversation).
|
||||||
|
|
||||||
- **credential** — anything that proves an identity: a password, a key, a token. A **pair credential**
|
- **credential** — anything that proves an identity: a password, a key, a token. A **pair credential**
|
||||||
@@ -356,7 +389,8 @@ and the operator act. **Recorded by** the controller's `identity` and `licences`
|
|||||||
and never made by the mesh
|
and never made by the mesh
|
||||||
(ADR 0283).
|
(ADR 0283).
|
||||||
- **vault** — the module that owns every secret (`mesh-vault`,
|
- **vault** — the module that owns every secret (`mesh-vault`,
|
||||||
[24 — The secrets vault](../03-DESIGN/01-to-be/24-the-secrets-vault.md)).
|
[24 — The secrets vault](../03-DESIGN/01-to-be/24-the-secrets-vault.md)): the mesh's signing key, with which
|
||||||
|
it signs on request, licence grants and tokens, bus account passwords and module secrets (ADR 0550).
|
||||||
- **identity** — a person, an agent or a module as the mesh knows it: a name, a kind, a role, and whether it
|
- **identity** — a person, an agent or a module as the mesh knows it: a name, a kind, a role, and whether it
|
||||||
is switched on; a person or an agent also has a login name, the machines it is present on and, for a person,
|
is switched on; a person or an agent also has a login name, the machines it is present on and, for a person,
|
||||||
the login kept on a machine where it differs. Every identity and role is held by the identity seat, in the
|
the login kept on a machine where it differs. Every identity and role is held by the identity seat, in the
|
||||||
@@ -403,7 +437,7 @@ and the operator act. **Recorded by** the controller's `identity` and `licences`
|
|||||||
back when it fails. The domain is continuous integration and delivery, named **delivery**, and its parts live in
|
back when it fails. The domain is continuous integration and delivery, named **delivery**, and its parts live in
|
||||||
the repository `mesh-delivery` (ADR 0429 §2). **Recorded by** the `mesh-delivery` module (deliveries) and the
|
the repository `mesh-delivery` (ADR 0429 §2). **Recorded by** the `mesh-delivery` module (deliveries) and the
|
||||||
controller (the planner, the rollout) until release 6 of ADR 0429; from each release on, by the parts it builds. **Downstream of** Module, Core, Health and repair and Data.
|
controller (the planner, the rollout) until release 6 of ADR 0429; from each release on, by the parts it builds. **Downstream of** Module, Core, Health and repair and Data.
|
||||||
**Decided by** ADR 0162, 0218, 0236, 0237, 0238, 0239, 0250, 0267, 0270, 0276, 0323, 0401–0408, 0428, 0429, 0444–0447, 0524–0530.
|
**Decided by** ADR 0162, 0218, 0236, 0237, 0238, 0239, 0250, 0267, 0270, 0276, 0323, 0401–0408, 0428, 0429, 0444–0447, 0524–0530, 0539, 0548, 0551.
|
||||||
**Uses:** module, node, declaration and send (Placement), health (Health and repair), person.
|
**Uses:** module, node, declaration and send (Placement), health (Health and repair), person.
|
||||||
|
|
||||||
- **merge check** — what a pull request carries before it may merge, judging the merge of its head into a
|
- **merge check** — what a pull request carries before it may merge, judging the merge of its head into a
|
||||||
@@ -413,16 +447,27 @@ 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
|
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).
|
for the repository's own script (ADR 0238).
|
||||||
- **composition check** — whether the machines a change touches still compose with it, run by the assigner
|
- **composition check** — whether the machines a change touches still compose with it, run by the assigner
|
||||||
from the modules the indexer and the builder hold, with the composition the controller sends with
|
from the modules the indexer and the builder hold, with mesh-sdk's composition, the one the controller
|
||||||
|
composes with
|
||||||
(ADR 0446). It replaces the controller's check of that kind, which composed every machine from release 4 of
|
(ADR 0446). It replaces the controller's check of that kind, which composed every machine from release 4 of
|
||||||
ADR 0429 back (issue 1303).
|
ADR 0429 back (issue 1303).
|
||||||
*Not:* ~~merge gate~~ (hq)
|
*Not:* ~~merge gate~~ (hq)
|
||||||
- **kept verdict** — a package's passing verdict at one test level, kept by the checker under the digest of
|
- **kept verdict** — a package's passing verdict at one test level, kept by the checker under the digest of
|
||||||
everything its tests read, written once and read-only; a check takes it instead of running an unchanged
|
everything its tests read, written once and read-only; a check takes it instead of running an unchanged
|
||||||
package (ADR 0444).
|
package (ADR 0444).
|
||||||
|
- **carried verdict** — a delivery's verdict moved to a newer trunk commit, or a newer sibling commit, by its
|
||||||
|
package digests: the checker merges the head onto the new commit and runs only the packages whose digest the
|
||||||
|
move changed, keeping the composition while no composed fingerprint changed; the verdict names the commits it
|
||||||
|
was carried from (ADR 0548 §5, §6). A head git refuses onto the new commit is not carried: its next check is
|
||||||
|
whole (ADR 0548 §7).
|
||||||
- **trunk commit** — the commit of the trunk a merge check's verdict was judged against: the trunk's head when
|
- **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, and goes out of date when the trunk moves
|
the build module cloned it. The verdict holds for that commit only, goes out of date when the trunk moves, and
|
||||||
(ADR 0323).
|
is then carried to the new commit (ADR 0323, ADR 0548).
|
||||||
|
- **merge turn** — an approved merge's key on a repository in the gate's `turns` bucket: the deliveries waiting
|
||||||
|
to merge there in the order of their Approve, and the check each waits for. It holds new checks off that
|
||||||
|
repository until the merge is done (ADR 0548 §3). Written only while the check gates merges (the gate's
|
||||||
|
setting `check-gates-merge`); while it does not, no turn is written and an approved merge goes in at once
|
||||||
|
(ADR 0551 §1).
|
||||||
- **build seat** — a language's node seat, held on a node by that language's build module: `node-build-go`,
|
- **build seat** — a language's node seat, held on a node by that language's build module: `node-build-go`,
|
||||||
`node-build-node` and `node-build-image` (ADR 0525 §2). Its accepted kinds are the **build streams**, and its
|
`node-build-node` and `node-build-image` (ADR 0525 §2). Its accepted kinds are the **build streams**, and its
|
||||||
verbs `current`, `pause` and `resume` serve that node's pulls. It replaces the seat `node-build-agent`, retired
|
verbs `current`, `pause` and `resume` serve that node's pulls. It replaces the seat `node-build-agent`, retired
|
||||||
@@ -468,14 +513,17 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
|||||||
Its states are one table (`proposed`, `checked`, `ready` or `rejected`, `published`, `delivering`,
|
Its states are one table (`proposed`, `checked`, `ready` or `rejected`, `published`, `delivering`,
|
||||||
`held`, and the final six: `delivered`, `failed`, `superseded`, `stopped`, `retired` and `covered`;
|
`held`, and the final six: `delivered`, `failed`, `superseded`, `stopped`, `retired` and `covered`;
|
||||||
ADR 0250,
|
ADR 0250,
|
||||||
ADR 0270). Not *change* (a diff). *Pipeline* is the predecessor's build-and-deploy
|
ADR 0270). From release 6 of ADR 0429 the gate keeps the merge's states alone (`proposed`, `ready`,
|
||||||
|
`rejected`, `held`, `merged` and `closed`), and a merged delivery is delivered when its source revision is,
|
||||||
|
derived from the wants and the haves (ADR 0539 §17). Not *change* (a diff). *Pipeline* is the predecessor's build-and-deploy
|
||||||
mechanism, which the as-is designs describe; it is never a word for a delivery.
|
mechanism, which the as-is designs describe; it is never a word for a delivery.
|
||||||
*Not:* ~~deployment~~ (hq)
|
*Not:* ~~deployment~~ (hq)
|
||||||
- **covered** — the end of a delivery that a later merge containing it delivered: every module it moves was
|
- **covered** — the end of a delivery that a later merge containing it delivered: every module it moves was
|
||||||
sent to every machine running it by the rollout of a later merge into the same trunk, delivered on its own
|
sent to every machine running it by the rollout of a later merge into the same trunk, delivered on its own
|
||||||
passing check, whose merge commit the forge says contains this one. Not *superseded*, which is a delivery
|
passing check, whose merge commit the forge says contains this one. Not *superseded*, which is a delivery
|
||||||
whose rollout a newer delivery took over before it ended; nor *delivered*, which its own rollout or an empty plan
|
whose rollout a newer delivery took over before it ended; nor *delivered*, which its own rollout or an empty plan
|
||||||
ends in (ADR 0270).
|
ends in (ADR 0270). As a state of the gate it goes at release 6; a newer delivered source revision then
|
||||||
|
covers the older merges of its repository (ADR 0539 §17).
|
||||||
- **delivery group** — two or more deliveries sharing a pull request head branch name across the mesh's
|
- **delivery group** — two or more deliveries sharing a pull request head branch name across the mesh's
|
||||||
repositories, delivered as one unit in an order declared (`after:`) or inferred by the planner. One
|
repositories, delivered as one unit in an order declared (`after:`) or inferred by the planner. One
|
||||||
level: a group holds deliveries, never groups. Its state is derived from its members, never set.
|
level: a group holds deliveries, never groups. Its state is derived from its members, never set.
|
||||||
@@ -490,16 +538,20 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
|||||||
- **delivery plan** — what a delivery does to the mesh: its **build plan** (the modules it moves and
|
- **delivery plan** — what a delivery does to the mesh: its **build plan** (the modules it moves and
|
||||||
their dependents, in tiers), its **deploy plan** (per node, what it receives and what waits for a
|
their dependents, in tiers), its **deploy plan** (per node, what it receives and what waits for a
|
||||||
person) and its verdict (the composed nodes, the replays). Computed by the controller's planner from a
|
person) and its verdict (the composed nodes, the replays). Computed by the controller's planner from a
|
||||||
diffset; the controller's verb `delivery-plan` shows it. *Deploy* is used in this one place. Deleted at
|
diffset; the controller's verb `delivery-plan` showed it. *Deploy* is used in this one place. Deleted at
|
||||||
release 6 of ADR 0429 (§8): the word stays in use until that release is delivered, and then retires.
|
release 6 of ADR 0429 (§8, ADR 0539): the word stays in use until that release is delivered, and goes to a
|
||||||
|
*Not:* line with the as-is update that follows the delivery (playbook 02).
|
||||||
*Not:* ~~change plan~~, ~~release plan~~
|
*Not:* ~~change plan~~, ~~release plan~~
|
||||||
- **merge window** — the rolling wait in which the controller collects merges before it plans them: each
|
- **merge window** — the rolling wait in which the controller collects merges before it plans them: each
|
||||||
merge restarts it, and it closes when none arrived for its length (90 seconds by default) or at the latest
|
merge restarts it, and it closes when none arrived for its length (90 seconds by default) or at the latest
|
||||||
10 minutes after its first merge (ADR 0276). Kept as two keys with a time to live on the bus; the first to
|
10 minutes after its first merge (ADR 0276). Kept as two keys with a time to live on the bus; the first to
|
||||||
expire closes the batch (ADR 0407). Goes at release 6 of ADR 0429, when nothing collects merges (§12).
|
expire closes the batch (ADR 0407). Goes at release 6 of ADR 0429, when nothing collects merges (§12), and
|
||||||
|
its keys' bucket is deleted (ADR 0539 §13); the word goes to a *Not:* line with the as-is update after that
|
||||||
|
delivery.
|
||||||
- **batch** — the merges one merge window collected, planned once as one rollout. For a repository merged more
|
- **batch** — the merges one merge window collected, planned once as one rollout. For a repository merged more
|
||||||
than once in it, the rollout takes the latest commit, and the earlier merges are answered by it. Not *group*,
|
than once in it, the rollout takes the latest commit, and the earlier merges are answered by it. Not *group*,
|
||||||
which is a delivery group. Goes at release 6 of ADR 0429 (§11, §12).
|
which is a delivery group. Goes at release 6 of ADR 0429 (§11, §12): a merge moves the source revision and
|
||||||
|
nothing collects it; the word goes to a *Not:* line with the as-is update after that delivery.
|
||||||
- **mesh-delivery** — the repository of the delivery domain, holding its parts as modules prefixed
|
- **mesh-delivery** — the repository of the delivery domain, holding its parts as modules prefixed
|
||||||
`mesh-delivery-` (ADR 0429 §2), made by the forge module from its config (ADR 0428). Until release 3 of
|
`mesh-delivery-` (ADR 0429 §2), made by the forge module from its config (ADR 0428). Until release 3 of
|
||||||
ADR 0429 also the module in the catalogue that owns deliveries and delivery groups, holding the mesh-scoped
|
ADR 0429 also the module in the catalogue that owns deliveries and delivery groups, holding the mesh-scoped
|
||||||
@@ -512,9 +564,10 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
|||||||
trunk), the **builder** (claims one fingerprint once and orders its build), the **checker** (the merge check on built
|
trunk), the **builder** (claims one fingerprint once and orders its build), the **checker** (the merge check on built
|
||||||
artifacts), the **gate** (merges a group and moves the source revision; *gate part* where it could be read
|
artifacts), the **gate** (merges a group and moves the source revision; *gate part* where it could be read
|
||||||
as another gate, see [Homonyms](#homonyms)), the **teller** (the operator's phone, and the only writer of an
|
as another gate, see [Homonyms](#homonyms)), the **teller** (the operator's phone, and the only writer of an
|
||||||
ask's answer), the **assigner** (writes each node's wants by its six rules), the **node agent** (the
|
ask's answer), the **assigner** (writes each node's wants by its seven rules, ADR 0539 §6), the **node
|
||||||
node-engine's own process, applying its wants), the **watchman** (presence and pulses) and the **status
|
agent** (the node-engine's own process, applying its wants), the **watchman** (presence and pulses) and the
|
||||||
view** (`mesh-delivery-cli` and a web view, writing only its answers to asks). The reviewer is the review
|
**status view** (`mesh-delivery-cli` and a web view, writing only its answers to asks and saying the events
|
||||||
|
`delivered`, `moving`, `settled` and `stuck`, derived from the keys). The reviewer is the review
|
||||||
agent's session, not a part. Built over releases 1 to 6 of ADR 0429.
|
agent's session, not a part. Built over releases 1 to 6 of ADR 0429.
|
||||||
- **fingerprint** — what identifies a module's build by its content: a hash over its source files, its
|
- **fingerprint** — what identifies a module's build by its content: a hash over its source files, its
|
||||||
manifest and the fingerprints of its build-time inputs, so equal content gives an equal fingerprint whatever
|
manifest and the fingerprints of its build-time inputs, so equal content gives an equal fingerprint whatever
|
||||||
@@ -527,11 +580,15 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
|||||||
want and is healthy, derived from the keys and recorded by no part (§1).
|
want and is healthy, derived from the keys and recorded by no part (§1).
|
||||||
- **canary** — the first node of a module's nodes, ordered by ring then name: a new fingerprint reaches it
|
- **canary** — the first node of a module's nodes, ordered by ring then name: a new fingerprint reaches it
|
||||||
first and the module's other nodes only once it runs healthy there (ADR 0429 §6). Replaces sending to every
|
first and the module's other nodes only once it runs healthy there (ADR 0429 §6). Replaces sending to every
|
||||||
machine at once from release 6 (§15).
|
machine at once from release 6 (§15); a fingerprint that fails there is held and the canary set back, or for
|
||||||
- **want** and **have** — a want (`want.<node>.<module>`) is the fingerprint a node should run, written by the
|
a module that keeps data the operator is asked (ADR 0539 §18, §19).
|
||||||
assigner; a have (`have.<node>.<module>`) is what the node runs, its phase and health, written by that node's
|
- **want** and **have** — a want (`want.<node>.<module>`) is the fingerprint a node should run of a module and
|
||||||
agent (ADR 0429 §4, §6). A node's facts that no module owns are its node key. They replace assignments and
|
the digest of the one **composition** it allows for it, written by the assigner by its seven rules; the node's
|
||||||
rollouts at release 6 (§17); haves are written from release 1.
|
own want `want.<node>.node` names its node composition (ADR 0429 §4, §6; ADR 0539 §1, §6). A want may also
|
||||||
|
carry the operator's answer to a failed backup (ADR 0539 §16). A have (`have.<node>.<module>`) is what the
|
||||||
|
node runs: the fingerprint, the composition's digest, its phase (`held` among them) and health, written by
|
||||||
|
that node's agent. A node's facts that no module owns are its node key. They replace rollouts at release 6,
|
||||||
|
and the assignments keep placement alone (ADR 0429 §17, ADR 0539 §12); haves are written from release 1.
|
||||||
- **pulse** — a key the watchman writes for each key whose next move a machine owes, with a time to live; its
|
- **pulse** — a key the watchman writes for each key whose next move a machine owes, with a time to live; its
|
||||||
expiry is a stall, raised as a condition, so no part needs a timer (ADR 0429 §1, research 063). A person's
|
expiry is a stall, raised as a condition, so no part needs a timer (ADR 0429 §1, research 063). A person's
|
||||||
wait carries none.
|
wait carries none.
|
||||||
@@ -541,10 +598,13 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
|||||||
merge it answers, and its record is one key of the bus's rollouts bucket, a link of the chain (ADR 0408). A primitive the delivering stage
|
merge it answers, and its record is one key of the bus's rollouts bucket, a link of the chain (ADR 0408). A primitive the delivering stage
|
||||||
asks for, not an object anyone manages. A **tier** is one step of a rollout: a module, then the modules
|
asks for, not an object anyone manages. A **tier** is one step of a rollout: a module, then the modules
|
||||||
built against it. The controller's verb `plans` lists the rollouts. A module is rolled out by its `roll`
|
built against it. The controller's verb `plans` lists the rollouts. A module is rolled out by its `roll`
|
||||||
policy. Rollouts and tiers go at release 6 of ADR 0429 (§8, §15), replaced by wants and haves (§17).
|
policy. Rollouts and tiers go at release 6 of ADR 0429 (§8, §15), replaced by wants and haves (§17); the
|
||||||
|
rollouts bucket is kept read-only with its history (ADR 0539 §12), and both words go to a *Not:* line with
|
||||||
|
the as-is update after that delivery.
|
||||||
*Not:* ~~walk~~ (hq)
|
*Not:* ~~walk~~ (hq)
|
||||||
- **first-node gate** — the judgement on a delivery's first node: healthy three times, no witness put it
|
- **first-node gate** — the judgement on a delivery's first node: healthy three times, no witness put it
|
||||||
back, no condition raised since the send (ADR 0236 §2). Not *the gate* bare (see [Homonyms](#homonyms)).
|
back, no condition raised since the send (ADR 0236 §2). Goes at release 6 of ADR 0429, replaced by the
|
||||||
|
**canary**. Not *the gate* bare (see [Homonyms](#homonyms)).
|
||||||
- **core module** and **leaf module** — a core module is one on the controller's own path (the controller,
|
- **core module** and **leaf module** — a core module is one on the controller's own path (the controller,
|
||||||
the node-engine, the tool runner, the bus, mesh-delivery) or the mesh's resolver, whose judgement protects
|
the node-engine, the tool runner, the bus, mesh-delivery) or the mesh's resolver, whose judgement protects
|
||||||
the mesh's ability to reach a node at all; a leaf module is every other module. Decided by
|
the mesh's ability to reach a node at all; a leaf module is every other module. Decided by
|
||||||
@@ -560,8 +620,9 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
|||||||
part. Its **fix budget** is what it is held to: five minutes for a leaf module, ten for a core module, counted
|
part. Its **fix budget** is what it is held to: five minutes for a leaf module, ten for a core module, counted
|
||||||
from the move to `fixing`; an issue whose fixes move no module has none (ADR 0313). Not the delivery time,
|
from the move to `fixing`; an issue whose fixes move no module has none (ADR 0313). Not the delivery time,
|
||||||
which starts at the merge.
|
which starts at the merge.
|
||||||
- **release** — a person's word that a held delivery goes on; the verb `mesh-delivery.release`. Used in
|
- **release** — a person's word that a held delivery goes on; the verb `mesh-delivery.release`, until release 6
|
||||||
this sense only.
|
of ADR 0429, when the verb goes (ADR 0539 §17) and a held move goes on by the operator's answer to the
|
||||||
|
assigner's ask. Used in this sense only.
|
||||||
- **rollback** — putting a node back on the build it ran before, by something other than the build being
|
- **rollback** — putting a node back on the build it ran before, by something other than the build being
|
||||||
judged (a witness, ADR 0236).
|
judged (a witness, ADR 0236).
|
||||||
- **the lab**, **scenario**, **replay** — a real mesh raised to run a change against before it reaches
|
- **the lab**, **scenario**, **replay** — a real mesh raised to run a change against before it reaches
|
||||||
@@ -877,6 +938,10 @@ Not a domain of the mesh but of the way it is built, listed because its words me
|
|||||||
- **design state** — of a design: proposed, designed, in progress or implemented, worked out by the knowledge base
|
- **design state** — of a design: proposed, designed, in progress or implemented, worked out by the knowledge base
|
||||||
from the issues with a design link to it and whether their deliveries are done; never written by anyone
|
from the issues with a design link to it and whether their deliveries are done; never written by anyone
|
||||||
(ADR 0424).
|
(ADR 0424).
|
||||||
|
- **progress** — of a design, a milestone, an issue or a record: how far it has come, each part done, moving,
|
||||||
|
waiting or stuck with when it last moved, worked out by the knowledge base's verb `progress` from the issue tracker
|
||||||
|
and the deliveries and never written by anyone; `minimal` says one line per part, `detailed` the tree of a lead's
|
||||||
|
report (issue 1947).
|
||||||
- **glossary entry** — one entry of the glossary as a record of the knowledge base: its head word or words, its
|
- **glossary entry** — one entry of the glossary as a record of the knowledge base: its head word or words, its
|
||||||
domain, its meaning, its *Not:* line and its identifier line (ADR 0423). Until the move, an entry of this page.
|
domain, its meaning, its *Not:* line and its identifier line (ADR 0423). Until the move, an entry of this page.
|
||||||
- **milestone** — a group of a design's issues delivered together, as one delivery group, or one pull request when
|
- **milestone** — a group of a design's issues delivered together, as one delivery group, or one pull request when
|
||||||
@@ -923,13 +988,16 @@ renaming one sense, the old sense moves to a *Not:* line and becomes mechanical.
|
|||||||
|
|
||||||
| Word | Sense | Say | Domain |
|
| Word | Sense | Say | Domain |
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
| plan | what the controller would send one node | that node's **declaration** (verb `plan`) | Placement |
|
| plan | what the controller would send one node, until release 6 | that node's **declaration** (verb `plan`) | Placement |
|
||||||
| | what a delivery would do to the mesh | **delivery plan** | Delivery |
|
| | what a delivery would do to the mesh, until release 6 | **delivery plan** | Delivery |
|
||||||
| | the sending of one batch of commits across nodes | **rollout** (verb `plans`) | Delivery |
|
| | the sending of one batch of commits across nodes, until release 6 | **rollout** (verb `plans`) | Delivery |
|
||||||
| | a step a person starts, like the bus's | **planned step** | Core |
|
| | a step a person starts, like the bus's | **planned step** | Core |
|
||||||
|
| composition | one module's resources for one node at one fingerprint, signed, from release 6 | **composition** | Placement |
|
||||||
|
| | the function in mesh-sdk that composes them, which the controller and the assigner both run | **mesh-sdk's composition** | Placement |
|
||||||
|
| | whether the machines a change touches still compose | **composition check** | Delivery |
|
||||||
| membership | the subjects a bus account is issued | **membership** | Provisioning |
|
| membership | the subjects a bus account is issued | **membership** | Provisioning |
|
||||||
| | an account in a group of the machine | **account group** | Placement |
|
| | an account in a group of the machine | **account group** | Placement |
|
||||||
| push | the controller giving nodes their declarations | **send** (verb `push`) | Placement |
|
| push | the controller giving nodes their declarations, until release 6 | **send** (verb `push`) | Placement |
|
||||||
| | a git push | **git push** | The record |
|
| | a git push | **git push** | The record |
|
||||||
| | a phone notification | **push notification** | Operator and conversation |
|
| | a phone notification | **push notification** | Operator and conversation |
|
||||||
| release | a person letting a held delivery go on | **release** | Delivery |
|
| release | a person letting a held delivery go on | **release** | Delivery |
|
||||||
|
|||||||
@@ -173,6 +173,22 @@ quietly stop being true, and nobody will learn that from a document.
|
|||||||
Not test-driven development as a blanket rule — a test written first against undiscovered
|
Not test-driven development as a blanket rule — a test written first against undiscovered
|
||||||
behaviour asserts a guess. The obligation is that every decision has a defender.
|
behaviour asserts a guess. The obligation is that every decision has a defender.
|
||||||
|
|
||||||
|
### A bus permission is proven under the real permission
|
||||||
|
|
||||||
|
A change that adds or widens what a mesh process reads or writes on the bus (a subscription, a publish, a stream or
|
||||||
|
key-value read, a consumer) carries an integration test that runs it on a bus user with exactly the production
|
||||||
|
permissions of that account (mesh-sdk's composition of them), against a real bus server, and that fails with the
|
||||||
|
bus's permissions violation when the widest new access is not granted. It runs in the forge's check like every
|
||||||
|
integration test. A reviewer reading code does not see a grant, and a fake bus grants everything (ADR 0560).
|
||||||
|
|
||||||
|
How it is checked: a review that approves such a change whose pull request names no such test is the rule skipped.
|
||||||
|
|
||||||
|
### A bus permission under the real permission — how it was earned
|
||||||
|
|
||||||
|
On 2026-10-27 a change widened what every node agent watches; two reviews read its code and its tests ran against a
|
||||||
|
fake bus. Live, every node's agent was refused that read by its grant and stopped composing, and the same day the
|
||||||
|
grants part's user list dropped nine seats' subscriptions (issues 1126 and 1945).
|
||||||
|
|
||||||
### Tests run at the lowest level that proves them, within a time budget
|
### Tests run at the lowest level that proves them, within a time budget
|
||||||
|
|
||||||
Three levels, by how much real system a test uses (ADR 0391):
|
Three levels, by how much real system a test uses (ADR 0391):
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ A drawn overview of them, the cycle, a feature's steps, the review loop and an i
|
|||||||
| [05](05-constitution-sync.md) | Constitution sync | `how-we-build.md` changed a rule the mesh enforces |
|
| [05](05-constitution-sync.md) | Constitution sync | `how-we-build.md` changed a rule the mesh enforces |
|
||||||
| [06](06-writing-a-module.md) | Writing a module | Something that runs today must run on the mesh |
|
| [06](06-writing-a-module.md) | Writing a module | Something that runs today must run on the mesh |
|
||||||
| [07](07-feature-branches.md) | Features | Work that changes code across issues or repositories: prepared context, local development, one review, one check, one delivery |
|
| [07](07-feature-branches.md) | Features | Work that changes code across issues or repositories: prepared context, local development, one review, one check, one delivery |
|
||||||
| [08](08-small-fixes.md) | Small fixes | One issue in one repository, about an hour of work: one try, one review, one delivery |
|
| [08](08-small-fixes.md) | Small fixes | One issue in one repository, about an hour of work: one review, one check, one delivery |
|
||||||
| [09](09-cleanup.md) | Cleanup | Merged branches, stale pull requests, finished worktrees and folders: read first, delete only what the operator approves, report the rest |
|
| [09](09-cleanup.md) | Cleanup | Merged branches, stale pull requests, finished worktrees and folders: read first, delete only what the operator approves, report the rest |
|
||||||
| [10](10-visual-design.md) | Visual design | A page the operator will use is about to be designed or rebuilt: mockups with fixed data, the operator picks, the pick is the reference |
|
| [10](10-visual-design.md) | Visual design | A page the operator will use is about to be designed or rebuilt: mockups with fixed data, the operator picks, the pick is the reference |
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ an hour, and said to the operator if it runs past.
|
|||||||
|
|
||||||
A design becomes **milestones**, and each milestone becomes **issues**:
|
A design becomes **milestones**, and each milestone becomes **issues**:
|
||||||
|
|
||||||
- **A milestone is usable on its own.** Once its delivery plan is done, the operator or the mesh can do
|
- **A milestone is usable on its own.** Once it is delivered, the operator or the mesh can do
|
||||||
something new, said in one sentence ("a Claude Code session is mirrored into a thread on the bus").
|
something new, said in one sentence ("a Claude Code session is mirrored into a thread on the bus").
|
||||||
A milestone that changes nothing anyone can use is not a milestone; fold it into the next.
|
A milestone that changes nothing anyone can use is not a milestone; fold it into the next.
|
||||||
- **A milestone is one release** of playbook [07](07-feature-branches.md): prepared, developed whole, reviewed,
|
- **A milestone is one release** of playbook [07](07-feature-branches.md): prepared, developed whole, reviewed,
|
||||||
@@ -17,9 +17,10 @@ A design becomes **milestones**, and each milestone becomes **issues**:
|
|||||||
- **A milestone is one piece of functionality, never cut by an order between its parts** (the operator, 2026-10-21:
|
- **A milestone is one piece of functionality, never cut by an order between its parts** (the operator, 2026-10-21:
|
||||||
a milestone may span several modules, repositories and dependencies such as an SDK change; 2026-10-22: "a milestone
|
a milestone may span several modules, repositories and dependencies such as an SDK change; 2026-10-22: "a milestone
|
||||||
is a milestone, we shouldn't cut it"). Which of its modules reaches the machines first (a reader of a new manifest
|
is a milestone, we shouldn't cut it"). Which of its modules reaches the machines first (a reader of a new manifest
|
||||||
word before the modules that use it, an SDK change before its users) is the delivery plan's, drawn from the module
|
word before the modules that use it, a provider before its consumers) is the assigner's rules' (design 47); an SDK
|
||||||
graph. The parts such an order touches are found in playbook [07](07-feature-branches.md) step 0 item 6 and become
|
change is built into its users. The parts such an order touches are found in playbook [07](07-feature-branches.md)
|
||||||
issues of the same milestone; an order the plan cannot keep is an issue of the build and delivery system, not a cut.
|
step 0 item 6 and become issues of the same milestone; an order those rules cannot keep is an issue of the build
|
||||||
|
and delivery system, not a cut.
|
||||||
Until 2026-10-22 this rule cut milestones by release order (design 47's release 1-2 became six milestones).
|
Until 2026-10-22 this rule cut milestones by release order (design 47's release 1-2 became six milestones).
|
||||||
- **An issue is one repository's part of a milestone,** sized so a fixing agent finishes it inside the
|
- **An issue is one repository's part of a milestone,** sized so a fixing agent finishes it inside the
|
||||||
milestone's development time. Issues that must land in order are linked `depends-on`.
|
milestone's development time. Issues that must land in order are linked `depends-on`.
|
||||||
@@ -37,8 +38,9 @@ A design becomes **milestones**, and each milestone becomes **issues**:
|
|||||||
4. **Break it into milestones.** Write them into the design, in a section *Milestones*: for each, its number,
|
4. **Break it into milestones.** Write them into the design, in a section *Milestones*: for each, its number,
|
||||||
its one-sentence outcome, the acceptance tests of the design it proves, the repositories it touches, and
|
its one-sentence outcome, the acceptance tests of the design it proves, the repositories it touches, and
|
||||||
what it depends on. Order them so each is usable as soon as it is delivered, the smallest useful one
|
what it depends on. Order them so each is usable as soon as it is delivered, the smallest useful one
|
||||||
first. A milestone is named by what it lets someone do; how it ships is shaped by the plan its changes would
|
first. A milestone is named by what it lets someone do; how it ships is shaped by the modules its changes move
|
||||||
have, asked through `mesh-delivery.what-if`: the modules it moves and their fan-out (ADR 0401 §6).
|
and the nodes that run them (ADR 0401 §6), read from the indexer's fingerprints through the status view's
|
||||||
|
`indexer_modules` and `indexer_candidates`, and from the nodes' haves (`node_haves`).
|
||||||
5. **Ask the operator to confirm the milestones**, in a short table: number, outcome, the acceptance tests it
|
5. **Ask the operator to confirm the milestones**, in a short table: number, outcome, the acceptance tests it
|
||||||
proves, repositories, the parts each repository builds. Change what they change.
|
proves, repositories, the parts each repository builds. Change what they change.
|
||||||
6. **Open the issues.** For each confirmed milestone, `issue-tracker.open` one issue per repository part, its
|
6. **Open the issues.** For each confirmed milestone, `issue-tracker.open` one issue per repository part, its
|
||||||
@@ -48,7 +50,7 @@ A design becomes **milestones**, and each milestone becomes **issues**:
|
|||||||
7. **Flip the status.** `status: in-progress`, `updated:` today; the design change goes through playbook
|
7. **Flip the status.** `status: in-progress`, `updated:` today; the design change goes through playbook
|
||||||
[08](08-small-fixes.md) (one hq pull request).
|
[08](08-small-fixes.md) (one hq pull request).
|
||||||
8. **Hand each milestone to playbook 07, one at a time.** The milestone is one release of playbook 07; its issues
|
8. **Hand each milestone to playbook 07, one at a time.** The milestone is one release of playbook 07; its issues
|
||||||
are the release's issues; the next milestone starts when the previous one's delivery plan is done. A design waits
|
are the release's issues; the next milestone starts when the previous one is delivered. A design waits
|
||||||
while another design's milestones are being built: one design is built at a time (playbook
|
while another design's milestones are being built: one design is built at a time (playbook
|
||||||
[07](07-feature-branches.md)), so this step starts only when the design before it is delivered.
|
[07](07-feature-branches.md)), so this step starts only when the design before it is delivered.
|
||||||
9. **On completion of the last milestone**, run the "when something ships" section of playbook
|
9. **On completion of the last milestone**, run the "when something ships" section of playbook
|
||||||
@@ -72,5 +74,6 @@ Read by the lead and the reviewer today; a check among hq's Go tests is tracked
|
|||||||
issues; an in-progress design without one is the smell of building without a breakdown.
|
issues; an in-progress design without one is the smell of building without a breakdown.
|
||||||
- Every issue a milestone names exists in the tracker (`issue-tracker.get`), and an issue in `fixing` names
|
- Every issue a milestone names exists in the tracker (`issue-tracker.get`), and an issue in `fixing` names
|
||||||
its milestone in its report.
|
its milestone in its report.
|
||||||
- A milestone whose issues are all `resolved` has had its delivery plan done; its outcome sentence and
|
- A milestone whose issues are all `resolved` is delivered (the status view said `delivered` for its source
|
||||||
|
revision); its outcome sentence and
|
||||||
acceptance tests are proven on the mesh before the next milestone starts.
|
acceptance tests are proven on the mesh before the next milestone starts.
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ A small fix (one repository, one issue, about an hour of work) follows
|
|||||||
minutes took forty-one.
|
minutes took forty-one.
|
||||||
- **Finished work that never ships.** A feature that kept taking new issues held thirteen landed issues
|
- **Finished work that never ships.** A feature that kept taking new issues held thirteen landed issues
|
||||||
undelivered for a day: an issue done at 21:09 was still not on the machines at 15:00 the next day.
|
undelivered for a day: an issue done at 21:09 was still not on the machines at 15:00 the next day.
|
||||||
- **Work that waits and nobody notices.** Most lost time was not work at all, but a check, a delivery plan
|
- **Work that waits and nobody notices.** Most lost time was not work at all, but a check, a delivery
|
||||||
or an agent waiting on something that had stopped, unseen.
|
or an agent waiting on something that had stopped, unseen.
|
||||||
- **Review that keeps hardening.** One fix went through seven review rounds in five and a half hours, each
|
- **Review that keeps hardening.** One fix went through seven review rounds in five and a half hours, each
|
||||||
asking for more hardening than its issue asked (issue 704, 2026-10-14). A round is for what makes the
|
asking for more hardening than its issue asked (issue 704, 2026-10-14). A round is for what makes the
|
||||||
@@ -35,41 +35,51 @@ A small fix (one repository, one issue, about an hour of work) follows
|
|||||||
proved nothing, and dropping the field it was for passed every test. A reader of the changed record that the
|
proved nothing, and dropping the field it was for passed every test. A reader of the changed record that the
|
||||||
survey never listed ended a module's conditions at each sync. The reviewer judged the bus tests by reasoning, and
|
survey never listed ended a module's conditions at each sync. The reviewer judged the bus tests by reasoning, and
|
||||||
wrongly, because they ran only after the review.
|
wrongly, because they ran only after the review.
|
||||||
|
- **A check asked again and again.** Build capacity is the mesh's scarcest resource ("we don't have more
|
||||||
|
processing power", the operator, 2026-10-26), and a release that ran a try before its review, a try after it
|
||||||
|
and a check per fix round on an open pull request spent it several times over: every push to an open pull
|
||||||
|
request asks a new check, of every member for a group. A release runs one check ("every release should only
|
||||||
|
run 1 check or 1 try", the operator, 2026-10-26; ADR 0548).
|
||||||
|
- **A node agent's bus reads, proven only by review.** On 2026-10-27 a change widened what every node agent watches
|
||||||
|
on the bus; two reviews read the code, no test ran it under a node's real permissions, and once it was live every
|
||||||
|
node's agent was refused that read and stopped composing (issue 1126). How-we-build's rule "A bus permission is
|
||||||
|
proven under the real permission" (ADR 0560) is what the review now asks for.
|
||||||
- **A module proven only after it reached the machines.** The mail modules were delivered with unit tests
|
- **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.
|
only, then failed live three times (issues 859, 865, 868) and took five more hours of fixes.
|
||||||
|
|
||||||
## The shape
|
## The shape
|
||||||
|
|
||||||
One feature is **one branch name**, **one worktree per repository**, **one pull request per repository**,
|
One feature is **one branch name**, **one worktree per repository**, **one pull request per repository**,
|
||||||
opened **once**, after the review. It runs in five steps, 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, 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:
|
(the operator, 2026-10-17): these are its steps, and a report names the step it is in:
|
||||||
|
|
||||||
| Step | What happens | Bound |
|
| Step | What happens | Bound |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| 0. Prepare | the lead settles the open questions and writes one context file per repository | 15 minutes |
|
| 0. Prepare | the lead settles the open questions and writes one context file per repository | 15 minutes |
|
||||||
| 1. Develop | one fixing agent per repository builds every issue locally, the whole unit suite before every commit; then each branch is pushed and tried | the milestone's issues, 30 minutes each, and one try |
|
| 1. Develop | one fixing agent per repository builds every issue locally, the whole unit suite before every commit, the integration tests compiled; nothing is pushed | the milestone's issues, 30 minutes each |
|
||||||
| 2. Review | one reviewer reads all of it with the tries' results; reports go both ways; at most 3 rounds | 15 minutes |
|
| 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 |
|
||||||
| 3. Check | push the reviewed heads; a head the review changed is tried again; then the pull requests are opened and the forge's merge checks run the integration tests again; no further review | at most one more try and one check run |
|
| 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 delivery plan builds, publishes and sends the whole feature | its delivery plan |
|
| 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` |
|
||||||
|
|
||||||
**One milestone is one release** (the operator, 2026-10-17). A milestone is developed whole, tried before its review, reviewed once,
|
**One milestone is one release** (the operator, 2026-10-17). A milestone is developed whole, reviewed once,
|
||||||
opened once and delivered once. It is never cut into steps for its size or for time: every cut adds a review, a
|
pushed once, checked once and delivered once. It is never cut into steps for its size or for time: every cut adds a review, a
|
||||||
merge check, an Approve and a delivery plan of waiting, so the fewest cuts is the fastest. Nor is it cut for an
|
merge check, an Approve and a delivery of waiting, so the fewest cuts is the fastest. Nor is it cut for an
|
||||||
order between its parts (the operator, 2026-10-22: "a milestone is a milestone, we shouldn't cut it"): which module
|
order between its parts (the operator, 2026-10-22: "a milestone is a milestone, we shouldn't cut it"): which module
|
||||||
reaches the machines before which is the delivery plan's, drawn from the module graph, and that is what the plan is
|
reaches the machines before which is the assigner's rules' (a build and a composition before the want, a provider
|
||||||
for. An order the plan cannot keep is a fault of the build and delivery system, opened as an issue there, never a cut
|
before its consumers, the canary before the rest; design 47), and that is what they are for. An order they cannot
|
||||||
and never a step a session takes by hand.
|
keep is a fault of the build and delivery system, opened as an issue there, never a cut and never a step a session
|
||||||
|
takes by hand.
|
||||||
A milestone is one piece of functionality, possibly spanning several modules, repositories and dependencies such as
|
A milestone is one piece of functionality, possibly spanning several modules, repositories and dependencies such as
|
||||||
an SDK change (the operator, 2026-10-21). Its pull requests in every repository share the milestone's branch name,
|
an SDK change (the operator, 2026-10-21). Its pull requests in every repository share the milestone's branch name,
|
||||||
so they are one delivery group (ADR 0482, which holds that a change across repositories is one group, one plan and
|
so they are one delivery group (ADR 0482, which holds that a change across repositories is one group, one plan and
|
||||||
one Approve, and that its developer orders no release). Nothing of the milestone merges until every issue of it is
|
one Approve, and that its developer orders no release). Nothing of the milestone merges until every issue of it is
|
||||||
built, reviewed and checked; then the one Approve and one tiered delivery plan release it all, the plan's tiers
|
built, reviewed and checked; then the one Approve releases it all as one source revision, the assigner's rules
|
||||||
keeping a dependency such as the SDK before its dependents. A small fix found during the milestone rides in this
|
keep a provider before its consumers, and an SDK change is built into the modules that use it. A small fix found during the milestone rides in this
|
||||||
group, as playbook [08](08-small-fixes.md) says.
|
group, as playbook [08](08-small-fixes.md) says.
|
||||||
|
|
||||||
**One design is built at a time** (the operator, 2026-10-17). While the milestones of one design are being
|
**One design is built at a time** (the operator, 2026-10-17). While the milestones of one design are being
|
||||||
built, no milestone of another design starts: its issues stay `open`, and nobody moves them to `diagnosing` or
|
built, no milestone of another design starts: its issues stay `open`, and nobody moves them to `diagnosing` or
|
||||||
`fixing`. The next design starts when the last milestone of the one being built has its delivery plan done. A
|
`fixing`. The next design starts when the last milestone of the one being built is delivered. A
|
||||||
lead who finds another design's milestone already in `fixing` asks its owner before starting its own. A small
|
lead who finds another design's milestone already in `fixing` asks its owner before starting its own. A small
|
||||||
fix ([playbook 08](08-small-fixes.md)) and an issue that is in no design's milestones are not held by this rule.
|
fix ([playbook 08](08-small-fixes.md)) and an issue that is in no design's milestones are not held by this rule.
|
||||||
|
|
||||||
@@ -79,7 +89,7 @@ next milestone or the next feature.
|
|||||||
|
|
||||||
**An issue opened along the way is fixed by the session that opened it** (the operator, 2026-10-21): it is never only
|
**An issue opened along the way is fixed by the session that opened it** (the operator, 2026-10-21): it is never only
|
||||||
listed under "Opened along the way" and left. A small one (one repository, about an hour) is fixed in between, as a
|
listed under "Opened along the way" and left. A small one (one repository, about an hour) is fixed in between, as a
|
||||||
small fix ([playbook 08](08-small-fixes.md)) while the milestone waits on a check, an Approve or a delivery plan; the
|
small fix ([playbook 08](08-small-fixes.md)) while the milestone waits on a check, an Approve or a delivery; the
|
||||||
rest are fixed right after the milestone's delivery, before the next milestone starts, together on one branch where
|
rest are fixed right after the milestone's delivery, before the next milestone starts, together on one branch where
|
||||||
they share a repository. Either way it stays out of the running milestone's branch and pull request, unless it blocks
|
they share a repository. Either way it stays out of the running milestone's branch and pull request, unless it blocks
|
||||||
the running milestone, so the scope above holds. Only an issue in another design's milestones (one design is built at
|
the running milestone, so the scope above holds. Only an issue in another design's milestones (one design is built at
|
||||||
@@ -99,7 +109,10 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
clone stays on `main`** (the operator, 2026-10-17): no work is done in it and no branch is checked out
|
clone stays on `main`** (the operator, 2026-10-17): no work is done in it and no branch is checked out
|
||||||
there, so a session that opens in it reads what holds now; fetch and fast-forward it before reading.
|
there, so a session that opens in it reads what holds now; fetch and fast-forward it before reading.
|
||||||
3. **Settle every open question** in the feature's issues before any agent starts: on the issue, through
|
3. **Settle every open question** in the feature's issues before any agent starts: on the issue, through
|
||||||
the knowledge base, or by asking the operator. A fixing agent that meets an undecided design question
|
the knowledge base, or by asking the operator. **Read what is decided before designing** (`knowledge-base.ask`):
|
||||||
|
a question about delivery, checks or builds is most likely answered in design 47 and its decisions already (the operator,
|
||||||
|
2026-10-26: "that is simply our delivery plan and milestones, we've already researched it"); propose new research
|
||||||
|
only for what no record decides. A fixing agent that meets an undecided design question
|
||||||
stops, and its run is spent again.
|
stops, and its run is spent again.
|
||||||
4. **Write one context file per repository**, `.work/<slug>/<repo>.context.md`. It is what a fixing agent
|
4. **Write one context file per repository**, `.work/<slug>/<repo>.context.md`. It is what a fixing agent
|
||||||
reads instead of rediscovering the code, and it is reused by every agent and every round:
|
reads instead of rediscovering the code, and it is reused by every agent and every round:
|
||||||
@@ -111,7 +124,7 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
- what not to touch, and what lands beside it in other repositories;
|
- what not to touch, and what lands beside it in other repositories;
|
||||||
- the local facts: the worktree, the branch, the check commands, a temporary directory for tests outside
|
- the local facts: the worktree, the branch, the check commands, a temporary directory for tests outside
|
||||||
the home (`TMPDIR`), and the unit tests to run (never a database server: tests that need one are
|
the home (`TMPDIR`), and the unit tests to run (never a database server: tests that need one are
|
||||||
integration tests, which the try (`mesh-controller.try`) and the checker's merge check run).
|
integration tests, which the pull request's one check runs).
|
||||||
When the reading is large, a read-only agent on the smaller model answers the lead's exact questions with
|
When the reading is large, a read-only agent on the smaller model answers the lead's exact questions with
|
||||||
file:line, and the lead writes the file from its answers.
|
file:line, and the lead writes the file from its answers.
|
||||||
5. **Write the findings into the issues** (the operator, 2026-10-17: the better the content of the issues, the
|
5. **Write the findings into the issues** (the operator, 2026-10-17: the better the content of the issues, the
|
||||||
@@ -121,7 +134,8 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
of record), each with what it does with the new value, and a criterion for each that could treat it wrongly
|
of record), each with what it does with the new value, and a criterion for each that could treat it wrongly
|
||||||
(2026-10-19: the router's sync with the controller ended every condition the controller did not list, and the
|
(2026-10-19: the router's sync with the controller ended every condition the controller did not list, and the
|
||||||
survey, which followed only the new condition's own path, never named it); how the change is checked and delivered end to end (which test proves its done-when, which
|
survey, which followed only the new condition's own path, never named it); how the change is checked and delivered end to end (which test proves its done-when, which
|
||||||
modules its delivery plan moves, to which machines); and for a group, its merge order. The context file
|
modules its merge moves, read from the indexer's candidates of its group, and to which machines); and for a
|
||||||
|
group, its merge order. The context file
|
||||||
points to these notes; an issue reread by another session or a later agent then holds what was found.
|
points to these notes; an issue reread by another session or a later agent then holds what was found.
|
||||||
When the reading is large, it starts with a read-only survey agent on the smaller model.
|
When the reading is large, it starts with a read-only survey agent on the smaller model.
|
||||||
**Each issue carries its acceptance criteria, written by the lead** (the operator, 2026-10-18: the larger
|
**Each issue carries its acceptance criteria, written by the lead** (the operator, 2026-10-18: the larger
|
||||||
@@ -148,10 +162,10 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
new verbs were refused on the claim); the node-engine's decoder for a new key on the wire; the route by which a
|
new verbs were refused on the claim); the node-engine's decoder for a new key on the wire; the route by which a
|
||||||
repository's first module registers; and a part that needs something the bus or a manifest cannot yet give, which
|
repository's first module registers; and a part that needs something the bus or a manifest cannot yet give, which
|
||||||
needs its decision first. Each such part is an issue of the milestone and its pull request a member of the group;
|
needs its decision first. Each such part is an issue of the milestone and its pull request a member of the group;
|
||||||
the order in which they reach the machines is the delivery plan's (the operator, 2026-10-22), never a cut. Where
|
the order in which they reach the machines is the assigner's rules' (the operator, 2026-10-22), never a cut.
|
||||||
the plan cannot keep an order (a node told of a key before it reads it, a module using a word before its readers
|
Where those rules cannot keep an order (a node told of a key before it reads it, a module using a word before its
|
||||||
are delivered), that is an issue of the build and delivery system, opened with `issue-tracker.open` and said to
|
readers are delivered), that is an issue of the build and delivery system, opened with `issue-tracker.open` and
|
||||||
the operator.
|
said to the operator.
|
||||||
7. **Write fixtures from the shape the other side writes, never from memory** (2026-10-18: a watchman's tests
|
7. **Write fixtures from the shape the other side writes, never from memory** (2026-10-18: a watchman's tests
|
||||||
mirrored a build key the controller never writes, and every test passed): copy a value from the writer's code or
|
mirrored a build key the controller never writes, and every test passed): copy a value from the writer's code or
|
||||||
from the live bus, and name where it came from.
|
from the live bus, and name where it came from.
|
||||||
@@ -163,13 +177,12 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
(one line for every key-value bucket key and stream the work creates or starts writing; "none created" if none)
|
(one line for every key-value bucket key and stream the work creates or starts writing; "none created" if none)
|
||||||
Trying the switch-over on one node first (b):
|
Trying the switch-over on one node first (b):
|
||||||
- <which node goes first, and what is read there before the rest>
|
- <which node goes first, and what is read there before the rest>
|
||||||
- or: the operator chose no try on one node first, on <date>; what that risks: <one sentence>
|
- or: the operator chose no first trial on one node, on <date>; what that risks: <one sentence>
|
||||||
Integration level before the pull requests (c):
|
Integration level (c):
|
||||||
- <the tries that run it, per repository; a group try if issue 1921 has delivered one>
|
- <the one check that runs it: the group's pull requests, one check each, none before the review>
|
||||||
- what no try covers: <the parts of the group that meet only in the merge check>
|
- what the check does not cover: <the parts of the group that meet only live>
|
||||||
```
|
```
|
||||||
A key or stream with no one who deletes it and no time to live is a leak and is settled before work starts. Until
|
A key or stream with no one who deletes it and no time to live is a leak and is settled before work starts.
|
||||||
issue 1921 gives a group try, answer (c) with the single-repository tries and say so.
|
|
||||||
9. **Move the issues to `fixing`**, `by` naming the feature's agent for that repository.
|
9. **Move the issues to `fixing`**, `by` naming the feature's agent for that repository.
|
||||||
|
|
||||||
## Step 1 — Develop (one fixing agent per repository, smaller model)
|
## Step 1 — Develop (one fixing agent per repository, smaller model)
|
||||||
@@ -187,27 +200,27 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
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
|
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**: 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
|
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 waits for the try at this step's end. The integration tests (those that start a store, a bus
|
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 run first by that try, and again by the checker's merge check.
|
or a process) are compiled with `go vet -tags integration ./...` while developing and run by that check, nowhere
|
||||||
- **No pull request is opened in this step. When every issue is committed, the lead brings each feature branch up
|
else.
|
||||||
to the current trunk (fetch by name, then merge), pushes it and tries it** (`mesh-controller.try`, as step 3 item 1 says), so the review reads the integration tests' real
|
- **Nothing is pushed and no pull request is opened in this step, and there is no try** (ADR 0548; the operator,
|
||||||
results and judges none by reasoning (2026-10-19: a reviewer reasoned that a warning goes out at once, the
|
2026-10-26: "every release should only run 1 check or 1 try"). When every issue is committed, the lead brings each
|
||||||
router holds it 30 s, and the try after the review found it). A failed try goes back to the same fixing agent
|
feature branch up to the current trunk (fetch by name, then merge) and the review reads the local commits. Never call
|
||||||
with its whole log, read as step 3 item 3 says, before the review starts. Never land on a red check: run the
|
`mesh-controller.try`, `mesh-delivery-checker.try` or `mesh-delivery-checker.checker_try`; one is run only when the operator asks for it. A reviewer
|
||||||
checks, read the result, then land in a separate step.
|
or a session that wants the code on the forge may push a branch that has no pull request: it runs nothing. Never land
|
||||||
|
on a red check: read the result, then land in a separate step.
|
||||||
- **The fixing agent's brief** (the lead gives it with the context file): name your issue in every step and
|
- **The fixing agent's brief** (the lead gives it with the context file): name your issue in every step and
|
||||||
message ("issue 805: landing in mesh-catalog"); reach the mesh only through the mesh MCP server, never ssh;
|
message ("issue 805: landing in mesh-catalog"); reach the mesh only through the mesh MCP server, never ssh;
|
||||||
never push, open, merge or close a pull request; never write to a store's database by hand, a schema change
|
never push, open, merge or close a pull request; never call a try; never write to a store's database by hand, a schema change
|
||||||
is a numbered migration and the consolidated schema; Go only unless the context file says otherwise; never
|
is a numbered migration and the consolidated schema; Go only unless the context file says otherwise; never
|
||||||
move another issue; **leave the integration tests to the try while developing** (no `go test -tags integration`,
|
move another issue; **leave the integration tests to the check** (no store or bus started by hand): compile them
|
||||||
no store or bus started by hand): compile them with `go vet -tags integration ./...` and leave the running to
|
with `go vet -tags integration ./...`. A single integration test may be run locally against an embedded bus when
|
||||||
the lead's try at the end of this step, where `mesh-controller.try` runs them on the pushed branch. On 2026-10-17 three fixing agents ran them anyway, one for minutes on end, because the
|
it is the fastest way to find a cause, said in the review report and the pull request. After a failed check it
|
||||||
brief only said they wait for the check (the operator). After a failed try or check it
|
|
||||||
usually pays to run that repository's whole integration level locally (`go test -tags integration -count=1 ./...` in each
|
usually pays to run that repository's whole integration level locally (`go test -tags integration -count=1 ./...` in each
|
||||||
module), by the lead or by the fixing agent on the lead's word, before another try: a verdict names only the first failed
|
module), by the lead or by the fixing agent on the lead's word, before the one more push: a verdict names only the first failed
|
||||||
test (issue 1921), and on 2026-10-23 R4g's faults surfaced one per try until a local run listed them all in a minute (a
|
test (issue 1921), and on 2026-10-23 R4g's faults surfaced one per run until a local run listed them all in a minute (a
|
||||||
guideline, the operator). Report back in under 150 words: commits, tests added and that they failed first, the
|
guideline, the operator). Report back in under 150 words: commits, tests added and that they failed first, the
|
||||||
check results, anything you stopped on.
|
local results, anything you stopped on.
|
||||||
- **An agent that finds the code differs from its context file stops and reports** (file:line); the lead
|
- **An agent that finds the code differs from its context file stops and reports** (file:line); the lead
|
||||||
settles it, updates the context file, and continues the agent.
|
settles it, updates the context file, and continues the agent.
|
||||||
- **Two repositories that depend on each other** keep their order in the context files: the reader before the
|
- **Two repositories that depend on each other** keep their order in the context files: the reader before the
|
||||||
@@ -220,11 +233,11 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
|
|
||||||
## Step 2 — Review (one reviewer, larger model; at most 3 rounds, about 15 minutes)
|
## Step 2 — Review (one reviewer, larger model; at most 3 rounds, about 15 minutes)
|
||||||
|
|
||||||
1. **The reviewed tree is the tree that was tried**: every feature branch was brought up to the current trunk
|
1. **The reviewed tree is the tree that is pushed**: every feature branch was brought up to the current trunk
|
||||||
before its push and try (step 1). A try and a merge check each run on the merge with the trunk as it is then, so a
|
before the review (step 1). The check runs on the merge with the trunk as it is then, so a
|
||||||
trunk that moves later is met by the forge's merge check, not by another merge here. Every verdict names the
|
trunk that moves later is met by the forge's merge check, not by another merge here. Every verdict names the
|
||||||
trunk it merged onto ("pass <head> on <trunk>"), and the lead reads that trunk against the repository's main
|
trunk it merged onto ("pass <head> on <trunk>"), and the lead reads that trunk against the repository's main
|
||||||
at once: a trunk behind main means the source revision (source.main) lags, and every check and try in that
|
at once: a trunk behind main means the source revision (source.main) lags, and every check in that
|
||||||
repository is judged on it until it moves, so the operator's Approve will merge nothing. Say it then, not at the
|
repository is judged on it until it moves, so the operator's Approve will merge nothing. Say it then, not at the
|
||||||
merge (issue 1726: on 2026-10-24 the gate dropped two merges it heard before it held its seat, and a
|
merge (issue 1726: on 2026-10-24 the gate dropped two merges it heard before it held its seat, and a
|
||||||
reviewed, approved pull request in each of the two repositories was refused at its Approve).
|
reviewed, approved pull request in each of the two repositories was refused at its Approve).
|
||||||
@@ -236,7 +249,7 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
It says which round it is in ("round 1 of at most 3").
|
It says which round it is in ("round 1 of at most 3").
|
||||||
3. **The report goes to the same fixing agents** that wrote the code, continued by their ids, so they fix
|
3. **The report goes to the same fixing agents** that wrote the code, continued by their ids, so they fix
|
||||||
with the context they already hold. Each answers the reviewer: what it changed, per finding, or why not.
|
with the context they already hold. Each answers the reviewer: what it changed, per finding, or why not.
|
||||||
4. **Every new integration test is read against the code it drives and against its try.** Fixing agents only compile it, and its one run before the review is the try (step 1), which shows whether it passed but not whether it proves what it says. The reviewer traces each step of each new integration test through the code (fixtures against the manifest rules, what the store keeps and reads back, who holds a seat), and says which steps it could not trace. On 2026-10-17 a new test failed on its first two runs, on a fixture and then on a fault of the change; reading it against the code after the first failure found another fault, which would have failed a run too. The reviewer also checks that each new integration test enters through the same path the live trigger takes, not through a state it writes by hand: on 2026-10-17 milestone 4's test saved its delivery plan directly, so it skipped the cut from a batch that every live plan takes, and it passed while the backup step never ran (issue 1086).
|
4. **Every new integration test is read against the code it drives.** Fixing agents only compile it, and no run precedes the review (step 1), so the reviewer judges it by reading; the check that follows shows whether it passed but not whether it proves what it says. The reviewer traces each step of each new integration test through the code (fixtures against the manifest rules, what the store keeps and reads back, who holds a seat), and says which steps it could not trace. On 2026-10-17 a new test failed on its first two runs, on a fixture and then on a fault of the change; reading it against the code after the first failure found another fault, which would have failed a run too. A review that finds a fault only by reading is the cheaper run. The reviewer also checks that each new integration test enters through the same path the live trigger takes, not through a state it writes by hand: on 2026-10-17 milestone 4's test saved its delivery plan directly, so it skipped the cut from a batch that every live plan takes, and it passed while the backup step never ran (issue 1086).
|
||||||
5. **The reviewer reads the answers and the new commits**, and approves or reports again (step 7 says what a round
|
5. **The reviewer reads the answers and the new commits**, and approves or reports again (step 7 says what a round
|
||||||
may ask). After round 3 the lead stops and brings the operator what is left, with a recommendation.
|
may ask). After round 3 the lead stops and brings the operator what is left, with a recommendation.
|
||||||
6. **The reviewer reads every acceptance criterion against its test**: each criterion has a test at its level
|
6. **The reviewer reads every acceptance criterion against its test**: each criterion has a test at its level
|
||||||
@@ -253,8 +266,7 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
6a. **The reviewer reads the milestone file's three answers** (step 0, item 8) against the change: it lists every bucket
|
6a. **The reviewer reads the milestone file's three answers** (step 0, item 8) against the change: it lists every bucket
|
||||||
key and stream the diff creates or writes (search the diff for the bucket and stream names) and finds each in the
|
key and stream the diff creates or writes (search the diff for the bucket and stream names) and finds each in the
|
||||||
lifetime answer with a deleter and event, or a time to live; it reads the switch-over answer and checks it was done as
|
lifetime answer with a deleter and event, or a time to live; it reads the switch-over answer and checks it was done as
|
||||||
written or that the operator's choice is recorded; it reads the integration-level answer against the tries named
|
written or that the operator's choice is recorded; it reads the integration-level answer against the check the pull requests will ask. A missing answer, or a key or stream the diff creates that the answer omits, is a change asked.
|
||||||
in the pull request. A missing answer, or a key or stream the diff creates that the answer omits, is a change asked.
|
|
||||||
7. **A finding outside the issues' done-when and their acceptance criteria is never a change asked, in any round.** More hardening, a
|
7. **A finding outside the issues' done-when and their acceptance criteria is never a change asked, in any round.** More hardening, a
|
||||||
further case, a nicer form: the reviewer opens it with `issue-tracker.open` and names the number in its
|
further case, a nicer form: the reviewer opens it with `issue-tracker.open` and names the number in its
|
||||||
report, and the round does not wait for it. What a round asks is only what makes the change wrong against
|
report, and the round does not wait for it. What a round asks is only what makes the change wrong against
|
||||||
@@ -267,26 +279,33 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
One with no answer is a change asked. On 2026-10-23 the forge module's loop rewrote every repository's
|
One with no answer is a change asked. On 2026-10-23 the forge module's loop rewrote every repository's
|
||||||
branch protection every ten minutes from rules in its code and undid the operator's changes at the forge
|
branch protection every ten minutes from rules in its code and undid the operator's changes at the forge
|
||||||
(issue 1903).
|
(issue 1903).
|
||||||
|
9. **At the second instance of a fault kind in a review, the developer searches for every instance and names each in the
|
||||||
|
report.** On 2026-10-25 a "busy, return at once" guard that dropped a newer request was found in three places,
|
||||||
|
one review after another. The developer writes the kind in one line, searches the repository (`git grep`) for
|
||||||
|
its shape, fixes every hit in one change and lists each file and line in the report. How it is checked: a
|
||||||
|
report to the second round naming a kind and one place only, followed by a third round on the same kind, is
|
||||||
|
this rule skipped.
|
||||||
|
|
||||||
## Step 3 — Check (no review)
|
## Step 3 — Check (no review)
|
||||||
|
|
||||||
1. **Push the reviewed heads, try again a head the review changed, then open one pull request per repository,
|
1. **Push the reviewed heads once, then open one pull request per repository, together** (ADR 0548; the operator,
|
||||||
together.** **The integration tests run before the pull requests are opened**, first before the review (step 1)
|
2026-10-26: "every release should only run 1 check or 1 try"). **No pull request, draft or not, exists before the
|
||||||
and again for a head the review changed since its try: `mesh-controller.try` with the
|
review approves the heads**, and no fix round is pushed to an open pull request: every push to an open pull request
|
||||||
repository and the pushed branch is a check ask of the checker (ADR 0501 §5): the checker runs the repository's tests on the
|
asks a new check, of every member for a group, and the mesh's build capacity is spent on it ("we don't have more
|
||||||
merge with the trunk's head, at the unit and the integration level, through the build module of the repository's language and by
|
processing power"). The integration tests run once, in the checker's merge check on the merge with the trunk's head, at the unit
|
||||||
that language's convention, as the merge check does, and answers with an id to read back. The try is an ask on the language's check
|
and the integration level, through the build module of the repository's language and by that language's convention
|
||||||
stream (ADR 0525 §1), so it waits behind the asks before it until a build node has a free slot; no script of the repository decides
|
(ADR 0445, ADR 0529); the check waits on the language's check stream until a build node has a free slot
|
||||||
it (ADR 0445, ADR 0529). A try that fails goes to step 3 item 3 as a failed check does; the pull requests are opened only
|
(ADR 0525 §1). **No try:** never call `mesh-controller.try`, `mesh-delivery-checker.try` or `mesh-delivery-checker.checker_try`, except when the
|
||||||
when every head's last try passed (the operator, 2026-10-18: three pushes in a row failed their first merge check on
|
operator asks for one. While developing, no `go test -tags integration` run of a whole level, and no store or bus started
|
||||||
faults a try finds in minutes). While developing, no `go test -tags integration` or store or bus started
|
by hand on the machine (the operator, 2026-10-18).
|
||||||
by hand on the machine (the operator, 2026-10-18); after a failed try, a local run of the whole level is the guideline
|
**A group is one check.** Before the push, every member pins the group's own mesh-sdk head exactly (the checker refuses an
|
||||||
in step 1's brief. Pull requests in two or
|
older commit of the same branch), then all members are pushed and opened together, so the group's check runs once. A head the review replaces
|
||||||
|
counts for nothing against a running check; say so, and ask no other until the new head is reviewed.
|
||||||
|
**Before a session trusts an agent's "pushed", it reads the forge branch's head** (`git ls-remote origin refs/heads/<branch>`) and compares it with the commit reviewed; an agent may commit on a detached HEAD and report a push that never happened (2026-10-26: the first check of a reviewed fix failed "not our ref"). The pull request is opened only on that read head. Pull requests in two or
|
||||||
more repositories that share the branch name are one delivery group (ADR 0239 §2).
|
more repositories that share the branch name are one delivery group (ADR 0239 §2).
|
||||||
**A temporary mode that merges by hand** (the lead merges because the normal Approve and merge path is not
|
**A temporary mode that merges by hand** (the lead merges because the normal Approve and merge path is not
|
||||||
running): before it asks the merge, the lead runs the full integration level with nothing kept, a try with tests
|
running): the pull request's one check still runs the integration level, and the lead names its verdict in the
|
||||||
`.` for each repository of the group, and names those tries (ids and verdicts) in the pull request's description.
|
pull request's description. A try with tests `.` is asked only when the operator asks for one, and then named there with its id and verdict (research 071).
|
||||||
A merge asked without them is a step skipped (research 071).
|
|
||||||
Where a session pushes through the forge tool `gitea_commit` (one commit on the forge's current base), the
|
Where a session pushes through the forge tool `gitea_commit` (one commit on the forge's current base), the
|
||||||
reviewer first confirms that commit's tree equals the reviewed one. **A large change is pushed by a pusher agent** on the smaller
|
reviewer first confirms that commit's tree equals the reviewed one. **A large change is pushed by a pusher agent** on the smaller
|
||||||
model: `gitea_commit` patches of about 30 KB each, a file copied from another path sent as a copy (`copy_from`)
|
model: `gitea_commit` patches of about 30 KB each, a file copied from another path sent as a copy (`copy_from`)
|
||||||
@@ -311,17 +330,20 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
controller's unit tests against the catalogue's branch**, because those tests read the catalogue and no check
|
controller's unit tests against the catalogue's branch**, because those tests read the catalogue and no check
|
||||||
of the catalogue runs them: on 2026-10-20 mesh-catalog #381 removed the old delivery module, and every
|
of the catalogue runs them: on 2026-10-20 mesh-catalog #381 removed the old delivery module, and every
|
||||||
controller check failed afterwards on a test of the catalogue's subjects until issue 1406 removed the name
|
controller check failed afterwards on a test of the catalogue's subjects until issue 1406 removed the name
|
||||||
mesh-issues still listened to. A controller try does not find it, since a check reads the catalogue's main
|
mesh-issues still listened to. A controller's check does not find it, since a check reads the catalogue's main
|
||||||
(also in a delivery group that holds the catalogue's pull request); the lead runs mesh-controller's unit
|
(also in a delivery group that holds the catalogue's pull request); the lead runs mesh-controller's unit
|
||||||
suite with `MESH_CHECK_BESIDE` naming a directory that holds the catalogue's branch, as mesh-controller's
|
suite with `MESH_CHECK_BESIDE` naming a directory that holds the catalogue's branch, as mesh-controller's
|
||||||
`internal/beside` says.
|
`internal/beside` says.
|
||||||
2. **The checker's merge check runs the integration tests again, as the gate** (its one status, `mesh/check`). No
|
2. **The checker's merge check runs the integration tests once, as the gate** (its one status, `mesh/check`). No
|
||||||
second review: step 2 reviewed this tree.
|
second review: step 2 reviewed this tree.
|
||||||
3. **A check that fails** goes back to the same reviewer, continued by its id, with the failure, for **one more cycle** of step 2 with
|
3. **A check that fails** goes back to the same reviewer, continued by its id, with the failure, for **one more cycle** of step 2 with
|
||||||
the same fixing agents; then push once again. **The failure is read from the check's whole log**, never
|
the same fixing agents; then push **once** again (the one more push of ADR 0548). The check is **read, never re-asked to see if it passes**: a
|
||||||
|
check asked again without a new, reviewed head spends the build capacity for nothing. **The failure is read from the check's whole log**, never
|
||||||
reasoned from its summary: `mesh-delivery.show` names the check's build id, and `mesh-controller.builds` with
|
reasoned from its summary: `mesh-delivery.show` names the check's build id, and `mesh-controller.builds` with
|
||||||
`log` set to that id prints everything the builder said. A check's summary picks only some failing lines;
|
`log` set to that id prints everything the builder said. A check's summary picks only some failing lines;
|
||||||
on 2026-10-17 it showed a store test's `FAIL` without its cause, and a fix was first guessed from the code.
|
on 2026-10-17 it showed a store test's `FAIL` without its cause, and a fix was first guessed from the code.
|
||||||
|
**A failure the check hides or loses** (a verdict naming only the first failed test, a log not kept) is a fault of the
|
||||||
|
checking tool: it is fixed there, the same turn (instruction fix-a-bug-met-twice), not asked around.
|
||||||
**A change to the Go build module's recipe is judged by the build module the nodes run**, not by the changed one, so a
|
**A change to the Go build module's recipe is judged by the build module the nodes run**, not by the changed one, so a
|
||||||
test the change adds must pass under either version. **A change that needs the new recipe to judge it ships the recipe
|
test the change adds must pass under either version. **A change that needs the new recipe to judge it ships the recipe
|
||||||
first, as a small fix of its own**, and the rest waits for its delivery: on 2026-10-17 milestone 3 of design 47 moved its
|
first, as a small fix of its own**, and the rest waits for its delivery: on 2026-10-17 milestone 3 of design 47 moved its
|
||||||
@@ -334,19 +356,29 @@ issue whether it is being fixed in between, after the delivery, or waits, and on
|
|||||||
carries an integration test that starts the module whole, its process against the real bus and store, and
|
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
|
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 not used (the operator, 2026-10-16).
|
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 push that meets it first, not only the verb that fills it.**
|
**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`
|
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
|
alone; the first push after mesh-mail declared the process composed a random 40-character stand-in for the
|
||||||
account file before anyone issued it, and the process crash-looped until the account was issued and pushed by
|
account file before anyone issued it, and the process crash-looped until the account was issued and pushed by
|
||||||
hand (issue 1226).
|
hand (issue 1226).
|
||||||
5. **The operator's Approve is asked as soon as the checks pass** (ADR 0421). Nobody marks, labels, comments or
|
5. **The operator's Approve is asked as soon as the checks pass** (ADR 0421). Nobody marks, labels, comments or
|
||||||
rechecks: mesh-delivery asks the Approve on Telegram, the channel that proves who answered today (ADR 0398 §3;
|
rechecks: mesh-delivery asks the Approve on Telegram, the channel that proves who answered today (ADR 0398 §3;
|
||||||
an Approve at the terminal is issue 953), once both checks passed, for a delivery group once for all its
|
an Approve at the terminal is issue 953), once its one check (`mesh/check`) passed, for a delivery group once for all its
|
||||||
members, naming the review record. On the Approve it merges the approved heads, a group's in one pass
|
members, naming the review record. On the Approve it merges the approved heads, a group's in one pass
|
||||||
(ADR 0418). A new head ends the Approve and is asked again once its checks pass. A watcher follows the checks,
|
(ADR 0418). A new head ends the Approve and is asked again once its checks pass, which is why a head is pushed only after its review. A watcher follows the checks,
|
||||||
the Approve and the merge, and wakes the lead. Beyond that
|
the Approve and the merge, and wakes the lead. Beyond that
|
||||||
Approve, the operator's word is waited for only when the milestone changes what the operator sees, removes
|
Approve, the operator's word is waited for only when the milestone changes what the operator sees, removes
|
||||||
data, or needs a step only the operator's terminal can take; the lead says which before the milestone starts.
|
data, or needs a step only the operator's terminal can take; the lead says which before the milestone starts.
|
||||||
|
**A pull request that depends on an earlier one outside its delivery group is opened only once the earlier one is delivered**, its build
|
||||||
|
running on every machine it should reach, not merely merged. A note in the description is no safeguard: the
|
||||||
|
operator's Approve merges whatever is asked. On 2026-10-25 a second change merged before the first was delivered
|
||||||
|
and machines lost modules. How it is checked: `mesh-delivery.deliveries` shows the earlier change's source
|
||||||
|
revision `delivered` before the later pull request exists (`gitea.gitea_get_pull_request`, its creation time);
|
||||||
|
a later one older than that is this rule skipped. Members of one delivery group are the exception: they open together, with one check, one Approve and one merge in one pass (item 1).
|
||||||
|
**A reviewed follow-up to a change the operator has not yet approved is folded into that pull request** (its head
|
||||||
|
moved to include it): one Approve, one delivery. The old Approve ask closes itself on the new head and the new
|
||||||
|
head is asked once its checks pass. How it is checked: a follow-up that sits in a second pull request while the
|
||||||
|
first still waits shows in `gitea.gitea_list_pull_requests` as two open pull requests of one lead.
|
||||||
|
|
||||||
**One exception: a catalogue change that uses a new manifest word.** The catalogue's merge check reads
|
**One exception: a catalogue change that uses a new manifest word.** The catalogue's merge check reads
|
||||||
manifests with the controller the mesh runs, so the controller's pull request is merged and delivered first;
|
manifests with the controller the mesh runs, so the controller's pull request is merged and delivered first;
|
||||||
@@ -362,36 +394,41 @@ check, judged by the group's controller, is then each member's gate, and the fea
|
|||||||
|
|
||||||
## Step 4 — Deliver
|
## Step 4 — Deliver
|
||||||
|
|
||||||
The merge starts the delivery plan: build, publish, send. A merge into a branch other than `main` is not a
|
The merge moves the source revision; there is no delivery plan (design 47, ADR 0539). The indexer writes each
|
||||||
delivery: no machine receives it (issue 889 while it still starts one). The lead follows it to done
|
module's new fingerprint, the builder builds it once, the controller writes its compositions, credential and grant,
|
||||||
(`mesh-controller.plans` with `wait` and `until: done`), then resolves the feature's issues with `fixed-by`
|
and the assigner writes each node's want when its seven rules hold: the module's canary first, its other nodes once
|
||||||
naming its pull requests, and removes what is left: no `feat/<slug>` branch and no `.work/<slug>` worktree
|
it runs healthy there. A merge into a branch other than `main` is not a delivery: no machine receives it.
|
||||||
survive.
|
|
||||||
|
|
||||||
**What a merge moves is read from its plan before the operator is told.** A change to mesh-sdk rebuilds every
|
**The view follows a delivery; nobody asks the controller.** The lead's watcher waits on the status view's events:
|
||||||
module that takes the SDK, with their backups and their asks for a person (issue 721): on 2026-10-20 the lead
|
`moving` (a module's want on a node differs from its have), `settled` (the have reached the want, running and
|
||||||
said an SDK merge moved nothing, and its delivery plan moved mesh-sdk with 41 dependents to all four machines.
|
healthy), `stuck` (held, a failed health check, or past the watchman's thirty minutes) and `delivered` (every want of
|
||||||
The lead reads the delivery plan in `mesh-delivery.show` and names what it moves before asking an Approve.
|
the source revision equals its fingerprint and every have its want). After each wake it reads the state again from
|
||||||
|
the view's wants page or its tools: `assigner_wants` and `assigner_want` (a want not yet at the newest fingerprint
|
||||||
|
names, in `newest` and `rule`, the rule that holds it back, and its words say why), and `node_haves` (the node
|
||||||
|
agent's haves: fingerprint, composition digest, phase and health). The delivery is done when the view says
|
||||||
|
`delivered` for its source revision; then the lead resolves the feature's issues with `fixed-by` naming its pull
|
||||||
|
requests, and removes what is left: no `feat/<slug>` branch and no `.work/<slug>` worktree survive.
|
||||||
|
|
||||||
**A failed plan's Retry is asked of the operator alone, never beside an Approve.** An Approve's merge starts a
|
**What a merge moves is read before the operator is told.** A change to mesh-sdk rebuilds every module that takes
|
||||||
plan, and the controller refuses a Retry while another plan runs; on 2026-10-20 the operator chose both at once,
|
the SDK, with their backups and their asks for a person (issue 721): on 2026-10-20 the lead said an SDK merge moved
|
||||||
the merge's plan started first, the chosen Retry was refused and nobody asked it again (issue 1408). So the lead
|
nothing, and its delivery moved mesh-sdk with 41 dependents to all four machines. The lead reads the indexer's
|
||||||
never tells the operator to answer a Retry while an Approve is open, and reads the failed plan again after the
|
candidates of the group (the view's `indexer_candidates`: each module whose fingerprint the change moves) and the
|
||||||
answer: a Retry refused is asked again once the other plan ends.
|
nodes that run them, and names what it moves before asking an Approve.
|
||||||
|
|
||||||
**A push by hand is read from its plan first.** `mesh-controller.push` sends a machine everything it is owed, not
|
**A held move is the operator's answer, asked by the assigner.** A module of policy `record` whose move would
|
||||||
only what the lead changed: on 2026-10-21 a push of the control node to tell the bus of two new accounts also moved
|
recreate a container or move data, a failed backup before an apply, and a data module whose new fingerprint failed
|
||||||
mail's module to a build its upgrade policy holds for a person's word, and recreated one of its containers. Before
|
its health check on the canary each wait for the operator's answer to the assigner's ask; the view says them
|
||||||
every push by hand, the lead reads `mesh-controller.plan` with `diff` for that machine, and for the machine holding
|
`stuck`, and a condition names the node and the module. The lead reads the ask on the router
|
||||||
the bus when a push issues accounts, and pushes only when the plan names what the lead means to change.
|
(`operator-channel.asks`) before telling the operator it waits, and adds it to the wait list. No session writes a
|
||||||
|
want to get past a hold.
|
||||||
|
|
||||||
**A new module's first assignment is its first real composition.** The composition check composes every machine as it is
|
**A new module's first assignment is its first real composition.** The composition check composes every machine as
|
||||||
assigned, so a module that no machine runs yet is composed by no check: on 2026-10-21 the build modules' first
|
it is assigned, so a module that no machine runs yet is composed by no check: on 2026-10-21 the build modules' first
|
||||||
assignment found two faults no merge check could see (issue 1537, a template the controller filled for a value the
|
assignment found two faults no merge check could see (issue 1537, a template the controller filled for a value the
|
||||||
forge serves only later; issue 1542, the node-engine refusing the module's own `.ssh`). So a new module is assigned
|
forge serves only later; issue 1542, the node-engine refusing the module's own `.ssh`). So a new module is assigned
|
||||||
to one machine first, its plan read before the push and its apply read after it (`mesh-controller.node`: the
|
to one machine first, its have read after the node agent applies it (`node_haves`: phase and health) and its node's
|
||||||
answer, and `status` for a failed resource), and taken back at once when that machine cannot compose or apply, so
|
answer read for a failed resource (`mesh-controller.node`), and taken back at once when that machine cannot compose
|
||||||
the machine keeps applying everything else; the other machines follow once it runs there.
|
or apply, so the machine keeps applying everything else; the other machines follow once it runs there.
|
||||||
|
|
||||||
## Deliver the controller, the builder or a build module without the builder
|
## Deliver the controller, the builder or a build module without the builder
|
||||||
|
|
||||||
@@ -402,16 +439,23 @@ step recorded in the hand-act log with its reason:
|
|||||||
|
|
||||||
1. **Revert, with no build.** Revert the change that broke the builder or the build module: the earlier source's fingerprint has a done key naming
|
1. **Revert, with no build.** Revert the change that broke the builder or the build module: the earlier source's fingerprint has a done key naming
|
||||||
references, so the revert's delivery builds nothing. Read first that the artifact store still holds the earlier artifact
|
references, so the revert's delivery builds nothing. Read first that the artifact store still holds the earlier artifact
|
||||||
(`mesh-controller.artifacts`): it keeps a recorded build while it is among its module's five newest or a definition names it.
|
(`mesh-controller.artifacts`): it keeps a recorded build while it is among its module's five newest or a definition names it, and the
|
||||||
|
controller keeps its composition while it is among the five newest too, so the assigner's want delivers it.
|
||||||
2. **A build by a session's call.** Call the build module's fetch and build tools on one named build node (for Go, `build_go_fetch` and then
|
2. **A build by a session's call.** Call the build module's fetch and build tools on one named build node (for Go, `build_go_fetch` and then
|
||||||
`build_go_build` with `publish: true`); the build module pushes the artifact and answers its reference. `mesh-pack` in mesh-sdk gives a
|
`build_go_build` with `publish: true`); the build module pushes the artifact and answers its reference. `mesh-pack` in mesh-sdk gives a
|
||||||
hand build the build module's form; write the Go version of each hand build down, since another version gives another digest.
|
hand build the build module's form; write the Go version of each hand build down, since another version gives another digest.
|
||||||
3. **Register by reference, at the controller's terminal only.** The operator names the module, its repository, its path and each artifact's
|
3. **Register by reference, at the controller's terminal only.** The operator names the module, its repository, its path and each artifact's
|
||||||
reference there; no verb reaches it. Say before you ask that this is a terminal step, and which notifications it raises; check that the
|
reference there; no verb reaches it. Say before you ask that this is a terminal step, and which notifications it raises; check that the
|
||||||
command exists on the node before you hand it over.
|
command exists on the node before you hand it over.
|
||||||
4. **A controller that cannot take its own fix** is put on the control-node by hand: register its hand build as in step 3, read the control-node's
|
4. **A controller that cannot take its own fix** is put back by keys the operator writes at the terminal, with the operator's administrator
|
||||||
plan, then `mesh-controller.push`. Only in the worst case does the operator send a declaration by hand at the terminal (its source and
|
account (the operator's credential), never by a declaration sent by hand (ADR 0539 §10). To an earlier controller: the operator writes
|
||||||
digest the hand build's) and register it as in step 3 so the next push keeps it.
|
`want.<control-node>.mesh-controller` naming a fingerprint whose composition is kept and that composition's digest; a controller
|
||||||
|
composes the one it replaced at its start, so that one is always kept. To a hand build never composed: register it as in step 3, then
|
||||||
|
`mesh-hand-compose` (in mesh-sdk, beside `mesh-pack`) composes the module for the control-node from the controller's kept inputs, signs it
|
||||||
|
with the operator's key, and with `-write` and the operator's credential writes the composition into `composed-<node>` and its digest
|
||||||
|
into `mesh-controller_composed`; the operator then writes the want naming that digest. Read the composition `mesh-hand-compose` prints
|
||||||
|
before `-write`. Each act goes into the hand-act log with its reason; say before you ask that these are terminal steps, and which
|
||||||
|
notifications they raise.
|
||||||
5. **Before a switch that moves the controller, the builder or a build module,** the lead keeps the running versions' artifacts outside the
|
5. **Before a switch that moves the controller, the builder or a build module,** the lead keeps the running versions' artifacts outside the
|
||||||
artifact store, by digest on two nodes, with module, artifact, commit, Go version and the steps that put each back; the store's nightly
|
artifact store, by digest on two nodes, with module, artifact, commit, Go version and the steps that put each back; the store's nightly
|
||||||
collection removes a blob the controller did not record.
|
collection removes a blob the controller did not record.
|
||||||
@@ -442,22 +486,23 @@ on, with when it started and its bound.
|
|||||||
| a fixing agent's issue | 30 minutes | ask it where it stands; split or take over |
|
| a fixing agent's issue | 30 minutes | ask it where it stands; split or take over |
|
||||||
| the review | 15 minutes a round | ask the reviewer; stop at round 3 |
|
| the review | 15 minutes a round | ask the reviewer; stop at round 3 |
|
||||||
| a merge check | 15 minutes | read `mesh-delivery.show` (its state and verdict), then the check's log; the check stream's backlog and the age of its oldest ask are in the delivery view (ADR 0525 §9) |
|
| a merge check | 15 minutes | read `mesh-delivery.show` (its state and verdict), then the check's log; the check stream's backlog and the age of its oldest ask are in the delivery view (ADR 0525 §9) |
|
||||||
| the Approve's ask | 5 minutes after both checks pass | read `mesh-delivery.show`: an ask not raised is a fault, said to the operator |
|
| the Approve's ask | 5 minutes after the check (`mesh/check`) passes | read `mesh-delivery.show`: an ask not raised is a fault, said to the operator |
|
||||||
| a merge after the Approve | 5 minutes | read `mesh-delivery.show` for the delivery |
|
| a merge after the Approve | 5 minutes | read `mesh-delivery.show` for the delivery |
|
||||||
| a delivery plan | its class's budget (`mesh-delivery.times`), at most 30 minutes | read `mesh-controller.plans`, then `mesh-delivery.stalled` |
|
| a delivery | its class's budget (3 minutes for a leaf module, 10 for a core module), at most 30 minutes | read the view's wants page, or `assigner_wants` against `node_haves`: a want held back names its rule, a `stuck` module its words |
|
||||||
|
|
||||||
**Every wait on the list has a watcher** (the operator, 2026-10-17). A session runs only when a message reaches
|
**Every wait on the list has a watcher** (the operator, 2026-10-17). A session runs only when a message reaches
|
||||||
it, so a check, a merge, a delivery plan, a record's review or the operator's Approve on a channel that lands
|
it, so a check, a merge, a delivery, a record's review or the operator's Approve on a channel that lands
|
||||||
while the lead's turn has ended wakes nobody: on 2026-10-17 an approved group sat half merged for 14 minutes
|
while the lead's turn has ended wakes nobody: on 2026-10-17 an approved group sat half merged for 14 minutes
|
||||||
unseen (issue 1032). For each wait the lead starts a watcher, an agent on the smaller model that changes nothing,
|
unseen (issue 1032). For each wait the lead starts a watcher, an agent on the smaller model that changes nothing,
|
||||||
never the smallest (the operator, 2026-10-17).
|
never the smallest (the operator, 2026-10-17).
|
||||||
It loops `mesh_wait` on the event families of what it watches (`mesh-delivery-gate.transition` and
|
It loops `mesh_wait` on the event families of what it watches (`mesh-delivery-gate.transition` and
|
||||||
`mesh-delivery-gate.group` for a delivery, for example; the families a watcher may wait on are those the mesh granted
|
`mesh-delivery-gate.group` for a merge, `mesh-delivery-view.moving`, `.settled`, `.stuck` and `.delivered` for its
|
||||||
|
delivery to the nodes, for example; the families a watcher may wait on are those the mesh granted
|
||||||
the tool runner, and a refusal names them) with a timeout under 60 seconds, since the call itself ends near
|
the tool runner, and a refusal names them) with a timeout under 60 seconds, since the call itself ends near
|
||||||
a minute. After every answer or timeout it reads the state from the verb that owns it (`mesh-delivery.show`,
|
a minute. After every answer or timeout it reads the state from the verb that owns it (`mesh-delivery.show`,
|
||||||
`mesh-controller.plans`, `knowledge-base.get`), because an event only wakes it (ADR 0367). It finishes, and so wakes
|
the view's `assigner_wants` and `node_haves`, `knowledge-base.get`), because an event only wakes it (ADR 0367). It finishes, and so wakes
|
||||||
the lead, when the state changes or the wait passes its bound. The lead never sleeps or polls by hand to wait.
|
the lead, when the state changes or the wait passes its bound. The lead never sleeps or polls by hand to wait.
|
||||||
**A watcher watches one wait and ends with it.** It is never re-pointed at the next pull request or plan: on
|
**A watcher watches one wait and ends with it.** It is never re-pointed at the next pull request or delivery: on
|
||||||
2026-10-19 one watcher sent on to three pull requests in turn missed that the third's checks had passed at 04:58,
|
2026-10-19 one watcher sent on to three pull requests in turn missed that the third's checks had passed at 04:58,
|
||||||
and the lead told the operator for 15 minutes that they were still running. The next wait gets a fresh watcher,
|
and the lead told the operator for 15 minutes that they were still running. The next wait gets a fresh watcher,
|
||||||
and before a report the watcher reads the owning verb once more and says only what it says now.
|
and before a report the watcher reads the owning verb once more and says only what it says now.
|
||||||
@@ -466,7 +511,7 @@ Approve, a Retry or a Release waits for them, it reads `operator-channel.asks` a
|
|||||||
on 2026-10-20 an ask was named to the operator that the router did not hold. A merge the gate passed but whose
|
on 2026-10-20 an ask was named to the operator that the router did not hold. A merge the gate passed but whose
|
||||||
ask is not on the router is the fault of the Approve's wait in the table above.
|
ask is not on the router is the fault of the Approve's wait in the table above.
|
||||||
|
|
||||||
**Every ten minutes (the operator, 2026-10-17), every two minutes while a delivery plan runs, and at once when something lands, stops or
|
**Every ten minutes (the operator, 2026-10-17), every two minutes while a delivery moves (the view says modules `moving`), and at once when something lands, stops or
|
||||||
needs the operator,** the lead reports, in one of the two layouts below (the operator, 2026-10-16: an overview
|
needs the operator,** the lead reports, in one of the two layouts below (the operator, 2026-10-16: an overview
|
||||||
of the issues, often). Times are local and absolute, from the clock (`date`), never guessed; every number has its
|
of the issues, often). Times are local and absolute, from the clock (`date`), never guessed; every number has its
|
||||||
unit and its bound or baseline; an issue is named by its number and a few words, never by its number alone.
|
unit and its bound or baseline; an issue is named by its number and a few words, never by its number alone.
|
||||||
@@ -498,6 +543,13 @@ Allowance: week <n> % (<+d> since the last report), session <n> %
|
|||||||
Next: <the next actions up to the delivery, in order>
|
Next: <the next actions up to the delivery, in order>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**The tree is read, not assembled.** `knowledge-base.progress` with `of: "design <nn>"` answers the tree's
|
||||||
|
milestones, issues, pull requests and held groups in one call, each with when it last moved: `detail: minimal` for the
|
||||||
|
five-minute report, `detailed` about every thirty minutes and whenever something stops (issue 1947). What it cannot
|
||||||
|
read for certain from the design's milestone table it says in `warnings`; the lead fixes the table, it does not
|
||||||
|
correct the tree by hand. How it is checked: a report's tree that disagrees with the verb's answer of the same minute
|
||||||
|
is a tree assembled by hand.
|
||||||
|
|
||||||
**The short layout** (on a channel such as Telegram, or when nothing changed but time):
|
**The short layout** (on a channel such as Telegram, or when nothing changed but time):
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -525,7 +577,7 @@ moments, the same hour, an hq change going through [playbook 08](08-small-fixes.
|
|||||||
|
|
||||||
- **The first milestone starts:** the design's `status: in-progress` ([playbook 04](04-build-handoff.md) step 7),
|
- **The first milestone starts:** the design's `status: in-progress` ([playbook 04](04-build-handoff.md) step 7),
|
||||||
if it is not already.
|
if it is not already.
|
||||||
- **A milestone's delivery plan is done:** its issues are resolved (step 4), with `fixed-by` naming its pull
|
- **A milestone is delivered** (the view says `delivered` for its source revision): its issues are resolved (step 4), with `fixed-by` naming its pull
|
||||||
requests. The design's milestone entry is not changed: it names the milestone's issues, and whether they are
|
requests. The design's milestone entry is not changed: it names the milestone's issues, and whether they are
|
||||||
delivered, when and by what is read from the issue tracker when it is asked, never copied into the design
|
delivered, when and by what is read from the issue tracker when it is asked, never copied into the design
|
||||||
(issue 1038; AGENTS.md: cross-cutting views are generated when they are read).
|
(issue 1038; AGENTS.md: cross-cutting views are generated when they are read).
|
||||||
@@ -588,8 +640,13 @@ issues in `fixing` that nobody works on reads to the operator as stuck work.
|
|||||||
- A running milestone's file holds the three answers of step 0 item 8 (`cat .work/<slug>/milestone.md`), and the
|
- A running milestone's file holds the three answers of step 0 item 8 (`cat .work/<slug>/milestone.md`), and the
|
||||||
review report says it read them (step 2, item 6a): a bucket key or stream in the diff (`git diff main --
|
review report says it read them (step 2, item 6a): a bucket key or stream in the diff (`git diff main --
|
||||||
| grep -i 'bucket\|stream'`) that the lifetime answer omits is the failure of that item (research 071).
|
| grep -i 'bucket\|stream'`) that the lifetime answer omits is the failure of that item (research 071).
|
||||||
- A pull request merged by hand in a temporary mode names, in its description on the forge (`gitea.gitea_get_pull_request`), a try with
|
- A pull request merged by hand in a temporary mode names, in its description on the forge (`gitea.gitea_get_pull_request`), the
|
||||||
tests `.` for each repository of the group; one without is the step 3 rule skipped.
|
verdict of its one check; a try with tests `.` is named only where the operator asked for one.
|
||||||
|
- **One release, one check** (ADR 0548): `gitea.gitea_get_pull_request` shows each pull request created after its
|
||||||
|
review record's time, and `mesh-delivery.show` shows one check per head and, for a group, one head per member; a pull
|
||||||
|
request that existed before its review approved it, a second head with no failed check before it, or a check of a
|
||||||
|
head asked more than once, is this rule skipped. A call of `mesh-controller.try`, `mesh-delivery-checker.try` or `checker_try` that the operator
|
||||||
|
did not ask for shows in the checker's asks and is the same breach.
|
||||||
- A milestone that adds or changes a module whose pull request has no integration test that starts the module
|
- A milestone that adds or changes a module whose pull request has no integration test that starts the module
|
||||||
whole is the failure of the check step's fourth item.
|
whole is the failure of the check step's fourth item.
|
||||||
- A bed run from `.work/<slug>/mesh-lab` that fails naming a `.work/<slug>/<repo>/…` path it cannot find is a
|
- A bed run from `.work/<slug>/mesh-lab` that fails naming a `.work/<slug>/<repo>/…` path it cannot find is a
|
||||||
|
|||||||
@@ -26,14 +26,15 @@ this moment): it goes alone as a small fix, and the lead's report says why.
|
|||||||
|
|
||||||
## The aim
|
## The aim
|
||||||
|
|
||||||
A small fix spends its time on the fix, and runs the long part once: **one try before the review, one review, one check run,
|
A small fix spends its time on the fix, and runs the long part once: **one review, one push, one check run,
|
||||||
one delivery**. Everything before the try is local and fast.
|
one delivery** (ADR 0548; the operator, 2026-10-26: "every release should only run 1 check or 1 try"; "we don't have more
|
||||||
|
processing power"). Everything before the push is local and fast, and no try is run.
|
||||||
|
|
||||||
## Steps
|
## Steps
|
||||||
|
|
||||||
1. **Read the issue and the code it names** (the session's own model, or one read-only agent on the smaller
|
1. **Read the issue and the code it names** (the session's own model, or one read-only agent on the smaller
|
||||||
model answering exact questions with file:line). If a design question is open, it is settled before any
|
model answering exact questions with file:line). If a design question is open, it is settled before any
|
||||||
code is written: on the issue, through the knowledge base, or by the operator. A fix that turns out to
|
code is written: on the issue, through the knowledge base (`knowledge-base.ask` first: what is decided is read before anything is designed), or by the operator. A fix that turns out to
|
||||||
need a second repository, or more than about an hour, stops here and becomes a feature; one that needs a
|
need a second repository, or more than about an hour, stops here and becomes a feature; one that needs a
|
||||||
decision stays a small fix. **The session's own model (the larger) then writes the issue's acceptance
|
decision stays a small fix. **The session's own model (the larger) then writes the issue's acceptance
|
||||||
criteria** as playbook [07](07-feature-branches.md) step 0 item 5 says: each one sentence, given, when, then,
|
criteria** as playbook [07](07-feature-branches.md) step 0 item 5 says: each one sentence, given, when, then,
|
||||||
@@ -50,39 +51,49 @@ one delivery**. Everything before the try is local and fast.
|
|||||||
caught only by the review); read `git show --stat` before pushing.
|
caught only by the review); read `git show --stat` before pushing.
|
||||||
The tests are written from the acceptance criteria, at least one per criterion at its level, each citing the
|
The tests are written from the acceptance criteria, at least one per criterion at its level, each citing the
|
||||||
criterion it proves by its label (`<issue>/AC<n>`, playbook 07 step 0 item 5). Commit, naming the issue. For a playbook or design edit, run the repository's own checks (in hq,
|
criterion it proves by its label (`<issue>/AC<n>`, playbook 07 step 0 item 5). Commit, naming the issue. For a playbook or design edit, run the repository's own checks (in hq,
|
||||||
`go test ./...` at the root). Then push the branch and run `mesh-controller.try` on it, so the review reads the
|
`go test ./...` at the root). The integration tests are compiled (`go vet -tags integration ./...`) and not run:
|
||||||
integration tests' real results; a failed try goes back to the same agent before the review.
|
nothing is pushed, no pull request is opened and no try (`mesh-controller.try`, `mesh-delivery-checker.try`, `mesh-delivery-checker.checker_try`) is called, unless the operator asks for
|
||||||
4. **One review of the commit and its try** (a reviewer that did not write it, larger
|
one. A single integration test may be run locally against an embedded bus when it is the fastest way to find a cause.
|
||||||
|
4. **One review of the local commit** (a reviewer that did not write it, larger
|
||||||
model; at most 3 rounds, as playbook 07; from round 2 only what is wrong; it reads each acceptance criterion
|
model; at most 3 rounds, as playbook 07; from round 2 only what is wrong; it reads each acceptance criterion
|
||||||
against its test, as playbook 07 step 2 item 6; a finding outside the issue's done-when and its acceptance
|
against its test, as playbook 07 step 2 item 6; a finding outside the issue's done-when and its acceptance
|
||||||
criteria is opened as an issue of its own, never asked as a change). The reviewer's findings go back to the same agent that wrote the fix, continued by
|
criteria is opened as an issue of its own, never asked as a change; it judges the integration tests by reading them against the code, as playbook 07 step 2 item 4 says). The reviewer's findings go back to the same agent that wrote the fix, continued by
|
||||||
its id, so the fix keeps its context. A playbook or design edit of a few lines may skip the reviewer: the
|
its id, so the fix keeps its context. A playbook or design edit of a few lines may skip the reviewer: the
|
||||||
operator's Approve of its merge is its review, and the review record says so.
|
operator's Approve of its merge is its review, and the review record says so.
|
||||||
5. **Push the reviewed head, try it again if the review changed it, and open the pull request.** The trunk is what runs and nothing holds merged work back
|
5. **Push the reviewed head once and open the pull request, only after the review approves.** The trunk is what runs and nothing holds merged work back
|
||||||
(ADR 0401), so a fix waits for no other change's delivery. `mesh-controller.try` on the pushed branch runs
|
(ADR 0401), so a fix waits for no other change's delivery. No pull request, draft or not, exists before the review
|
||||||
the integration tests, and the pull request is opened only when the head's last try passed; the checker's merge check runs
|
approves the head, and no fix round is pushed to an open pull request: every push to an open pull request asks a new
|
||||||
them again as the gate (playbook [07](07-feature-branches.md) step 3). A failed try or check is best run locally
|
check. The checker's merge check runs the unit and the integration level once, as the gate (playbook [07](07-feature-branches.md) step 3); the pushed head is read from the forge first, as playbook 07 step 3 item 1 says.
|
||||||
first: the repository's whole integration level (`go test -tags integration -count=1 ./...` in each module) shows every
|
A failed check is read from its whole log (never re-asked to see if it passes), then the repository's whole integration level
|
||||||
failure at once, where a verdict names only the first (issue 1921) and a try per fault costs a round each (a guideline,
|
is run locally (`go test -tags integration -count=1 ./...` in each module) so every failure shows at once, where a verdict
|
||||||
the operator, 2026-10-23). The failures go back to the same agent, fixed in one change where they can be, and the
|
names only the first (issue 1921); the failures go back to the same agent, fixed in one change, the reviewer reads only the change
|
||||||
reviewer reads only the change it makes, before the next try.
|
it makes, and the head is pushed once more.
|
||||||
**A temporary mode that merges by hand** (the lead merges because the normal Approve and merge path is not
|
**A temporary mode that merges by hand** (the lead merges because the normal Approve and merge path is not
|
||||||
running): before it asks the merge, the lead runs the full integration level with nothing kept, `mesh-controller.try`
|
running): the one check still runs, and the lead names its verdict in the pull request's description; a try with tests `.` is asked only when the operator asks for one (research 071; playbook
|
||||||
with tests `.`, and names that try (id and verdict) in the pull request's description (research 071; playbook
|
|
||||||
[07](07-feature-branches.md) step 3).
|
[07](07-feature-branches.md) step 3).
|
||||||
6. **The pull request's description carries the review record** (`Reviewed-by: <who@node> at <full sha>`,
|
6. **The pull request's description carries the review record** (`Reviewed-by: <who@node> at <full sha>`,
|
||||||
playbook [07](07-feature-branches.md) step 3) and the session that pushed it (`Pushed-by: <who@node>`, ADR 0505 §5), and mesh-delivery asks the operator's Approve as soon as its
|
playbook [07](07-feature-branches.md) step 3) and the session that pushed it (`Pushed-by: <who@node>`, ADR 0505 §5), and mesh-delivery asks the operator's Approve as soon as its
|
||||||
checks pass and merges the approved head (ADR 0421); nobody marks, labels, comments or rechecks. A fix to a module that changes how it runs carries an
|
checks pass and merges the approved head (ADR 0421); nobody marks, labels, comments or rechecks. A fix to a module that changes how it runs carries an
|
||||||
integration test starting the module whole against the real bus and store, run by `mesh-controller.try` and the checker's merge check
|
integration test starting the module whole against the real bus and store, run by the checker's one merge check
|
||||||
(ADR 0391 §1, §6); unit tests alone are not that proof, and the lab is not used. The operator's word is waited for only when the fix changes what the operator sees, removes data,
|
(ADR 0391 §1, §6); unit tests alone are not that proof, and the lab is not used. The operator's word is waited for only when the fix changes what the operator sees, removes data,
|
||||||
or needs the operator's terminal.
|
or needs the operator's terminal.
|
||||||
7. **Follow its delivery plan to done** (`mesh-controller.plans` with `wait` and `until: done`), prove the fix on
|
**A fix that depends on another pull request outside its delivery group opens only once that one is delivered**, not merely merged (members of one group open together, as playbook 07 step 3 item 1 says) (a note
|
||||||
the mesh (the symptom gone, measured), and resolve the issue with `located-in` and `fixed-by` the same hour.
|
in the description does not hold it back: the Approve merges whatever is asked; 2026-10-25, machines lost modules
|
||||||
|
when a second change merged first). **A reviewed follow-up to a fix still waiting for the Approve is folded into
|
||||||
|
that pull request** (head moved): one Approve, one delivery. Both are checked as playbook
|
||||||
|
[07](07-feature-branches.md) step 3 says.
|
||||||
|
**At the second instance of a fault kind found in a review, the developer searches for every instance** and names
|
||||||
|
each in the report (playbook [07](07-feature-branches.md) step 2, item 9).
|
||||||
|
7. **Follow its delivery to done**: a watcher waits on the status view's events (`mesh-delivery-view.moving`,
|
||||||
|
`.settled`, `.stuck` and `.delivered`) and reads the view's `assigner_wants` and `node_haves` after each wake, as
|
||||||
|
playbook [07](07-feature-branches.md) step 4 says; the delivery is done when the view says `delivered` for its
|
||||||
|
source revision. Then prove the fix on the mesh (the symptom gone, measured), and resolve the issue with
|
||||||
|
`located-in` and `fixed-by` the same hour.
|
||||||
|
|
||||||
A fix that stops before its delivery moves its issue back to `open` with a note saying how far it got
|
A fix that stops before its delivery moves its issue back to `open` with a note saying how far it got
|
||||||
(branch, last commit, what is left), as playbook [07](07-feature-branches.md) says.
|
(branch, last commit, what is left), as playbook [07](07-feature-branches.md) says.
|
||||||
|
|
||||||
**An issue opened along the way is fixed too** (the operator, 2026-10-21). A fix's review, try or delivery that
|
**An issue opened along the way is fixed too** (the operator, 2026-10-21). A fix's review, check or delivery that
|
||||||
opens an issue (a remark outside the done-when, a fault met live) leaves it to the same session to fix: right after
|
opens an issue (a remark outside the done-when, a fault met live) leaves it to the same session to fix: right after
|
||||||
this fix's delivery, as a small fix of its own, or folded into the next one in the same repository. It waits only
|
this fix's delivery, as a small fix of its own, or folded into the next one in the same repository. It waits only
|
||||||
when another running milestone owns it, or it needs a decision or the operator first; the report then says on what.
|
when another running milestone owns it, or it needs a decision or the operator first; the report then says on what.
|
||||||
@@ -106,12 +117,11 @@ code.
|
|||||||
| Waiting on | Bound | Past the bound |
|
| Waiting on | Bound | Past the bound |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| building the fix | 1 hour | it is a feature: stop and plan it under playbook 07 |
|
| building the fix | 1 hour | it is a feature: stop and plan it under playbook 07 |
|
||||||
| the try | 30 minutes | a try is a check ask on the language's check stream and waits behind the asks before it for a build node's free slot (ADR 0525); past the bound, read the stream's backlog and the age of its oldest ask in the delivery view |
|
|
||||||
| the review | 15 minutes | ask the reviewer where it stands |
|
| the review | 15 minutes | ask the reviewer where it stands |
|
||||||
| the merge check | 15 minutes | read `mesh-delivery.show`, the check's log and the check stream's backlog in the delivery view |
|
| the merge check | 30 minutes (it waits behind the asks before it for a build node's free slot, ADR 0525) | read `mesh-delivery.show`, the check's log and the check stream's backlog in the delivery view |
|
||||||
| the Approve's ask | 5 minutes after both checks pass | read `mesh-delivery.show`: an ask not raised is a fault, said to the operator |
|
| the Approve's ask | 5 minutes after the check (`mesh/check`) passes | read `mesh-delivery.show`: an ask not raised is a fault, said to the operator |
|
||||||
| the merge after the Approve | 5 minutes | read `mesh-delivery.show` for the delivery |
|
| the merge after the Approve | 5 minutes | read `mesh-delivery.show` for the delivery |
|
||||||
| the delivery plan | its class's budget (`mesh-delivery.times`), at most 30 minutes | read `mesh-controller.plans`, then `mesh-delivery.stalled` |
|
| the delivery | its class's budget (3 minutes for a leaf module, 10 for a core module), at most 30 minutes | read the view's wants page, or `assigner_wants` against `node_haves`: a want held back names its rule, a `stuck` module its words |
|
||||||
|
|
||||||
A wait past its bound is said to the operator at once, with what is being done about it.
|
A wait past its bound is said to the operator at once, with what is being done about it.
|
||||||
|
|
||||||
@@ -124,9 +134,11 @@ reading itself and uses one subagent only for the review.
|
|||||||
|
|
||||||
- A small fix has one pull request with one or few commits naming its issue, opened after its review: a pull
|
- A small fix has one pull request with one or few commits naming its issue, opened after its review: a pull
|
||||||
request with many heads is a fix reviewed after its pull request was opened.
|
request with many heads is a fix reviewed after its pull request was opened.
|
||||||
- A pull request merged by hand in a temporary mode names a try with tests `.` at its head in its description
|
- A pull request merged by hand in a temporary mode names the verdict of its one check in its description
|
||||||
on the forge (`gitea.gitea_get_pull_request`); one without is the step skipped.
|
on the forge (`gitea.gitea_get_pull_request`); one without is the step skipped.
|
||||||
- Its issue moves to `resolved` within the hour its delivery plan ends.
|
- One fix, one check (ADR 0548): a pull request that existed before its review approved the head, or a head whose check was
|
||||||
|
asked more than once with no new reviewed head, is steps 4 and 5 skipped; so is a `mesh-controller.try` or `mesh-delivery-checker.try` the operator did not ask for.
|
||||||
|
- Its issue moves to `resolved` within the hour the view says its source revision `delivered`.
|
||||||
- A pull request with no review record at its head (the Approve's ask says so first), a fix to a module's
|
- A pull request with no review record at its head (the Approve's ask says so first), a fix to a module's
|
||||||
running pushed with no integration test of the module whole, or a review report
|
running pushed with no integration test of the module whole, or a review report
|
||||||
asking a change outside the issue's done-when and acceptance criteria, is the failure of steps 4 to 6.
|
asking a change outside the issue's done-when and acceptance criteria, is the failure of steps 4 to 6.
|
||||||
@@ -136,7 +148,7 @@ reading itself and uses one subagent only for the review.
|
|||||||
- An issue in `fixing` with nobody on it shows in `issue-tracker.list` with `flag: abandoned`; a stopped fix
|
- An issue in `fixing` with nobody on it shows in `issue-tracker.list` with `flag: abandoned`; a stopped fix
|
||||||
moves it back to `open` with its note.
|
moves it back to `open` with its note.
|
||||||
- A fix found during a milestone is named in the lead's report with the group it rides in, or with the reason it
|
- A fix found during a milestone is named in the lead's report with the group it rides in, or with the reason it
|
||||||
went alone. `mesh-delivery.deliveries` shows the milestone's members in one group and one delivery plan per
|
went alone. `mesh-delivery.deliveries` shows the milestone's members in one group, merged as one source revision
|
||||||
milestone; a merge of mesh-sdk or mesh-controller outside the group, with no reported reason, is this rule skipped.
|
per milestone; a merge of mesh-sdk or mesh-controller outside the group, with no reported reason, is this rule skipped.
|
||||||
- The repository's own clone says `main` (`git -C <clone> branch --show-current`); another branch there is a
|
- The repository's own clone says `main` (`git -C <clone> branch --show-current`); another branch there is a
|
||||||
fix built outside a worktree (issue 1010).
|
fix built outside a worktree (issue 1010).
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
<main>
|
<main>
|
||||||
<button class="chip theme" id="theme" type="button">Theme</button>
|
<button class="chip theme" id="theme" type="button">Theme</button>
|
||||||
<h1>Novox Playbooks</h1>
|
<h1>Novox Playbooks</h1>
|
||||||
<p class="sub">How work is done on the mesh, from an idea or a symptom to a delivered change. Drawn from hq's <code>00-META/process/</code> at main <code>f269e83</code>, 2026-10-19, including playbook change hq #433 (try before the review).</p>
|
<p class="sub">How work is done on the mesh, from an idea or a symptom to a delivered change. Drawn from hq's <code>00-META/process/</code> at main <code>f269e83</code>, 2026-10-19, amended 2026-10-26 for ADR 0548 (one release, one check: no try).</p>
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<a href="#cycle">The cycle</a>
|
<a href="#cycle">The cycle</a>
|
||||||
@@ -141,7 +141,7 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
<rect x="950" y="160" width="116" height="74" rx="10" fill="var(--card)" stroke="var(--mesh)" stroke-width="2.5"/>
|
<rect x="950" y="160" width="116" height="74" rx="10" fill="var(--card)" stroke="var(--mesh)" stroke-width="2.5"/>
|
||||||
<text x="1008" y="188" text-anchor="middle" class="t">Delivered</text>
|
<text x="1008" y="188" text-anchor="middle" class="t">Delivered</text>
|
||||||
<text x="1008" y="206" text-anchor="middle" class="mute">Approve, merge,</text>
|
<text x="1008" y="206" text-anchor="middle" class="mute">Approve, merge,</text>
|
||||||
<text x="1008" y="220" text-anchor="middle" class="mute">delivery plan</text>
|
<text x="1008" y="220" text-anchor="middle" class="mute">wants and haves</text>
|
||||||
|
|
||||||
<rect x="766" y="160" width="150" height="74" rx="10" fill="var(--card)" stroke="var(--dec)" stroke-width="2" stroke-dasharray="5 4"/>
|
<rect x="766" y="160" width="150" height="74" rx="10" fill="var(--card)" stroke="var(--dec)" stroke-width="2" stroke-dasharray="5 4"/>
|
||||||
<text x="841" y="188" text-anchor="middle" class="t">As-is updated</text>
|
<text x="841" y="188" text-anchor="middle" class="t">As-is updated</text>
|
||||||
@@ -189,7 +189,7 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
|
|
||||||
<!-- ============ FEATURE SWIMLANE ============ -->
|
<!-- ============ FEATURE SWIMLANE ============ -->
|
||||||
<h2 id="feature">A feature, step by step (playbook 07)</h2>
|
<h2 id="feature">A feature, step by step (playbook 07)</h2>
|
||||||
<p class="lead">One milestone is one release: one branch name in every repository it touches, one worktree per repository, one fixing agent per repository kept for the whole milestone, one reviewer, and one pull request per repository, opened once. Since hq #433 the branches are <b>tried before the review</b>, so the reviewer reads real integration results.</p>
|
<p class="lead">One milestone is one release: one branch name in every repository it touches, one worktree per repository, one fixing agent per repository kept for the whole milestone, one reviewer, and one pull request per repository, opened once. Nothing is pushed or tried before the review (ADR 0548): the branches are pushed <b>once, after the review approves</b>, and the one check runs the integration tests.</p>
|
||||||
<div class="box scroll">
|
<div class="box scroll">
|
||||||
<svg viewBox="0 0 1080 430" role="img" aria-label="Playbook 07 in lanes: lead, fixing agents, reviewer, the mesh, the operator">
|
<svg viewBox="0 0 1080 430" role="img" aria-label="Playbook 07 in lanes: lead, fixing agents, reviewer, the mesh, the operator">
|
||||||
<defs>
|
<defs>
|
||||||
@@ -199,14 +199,14 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
<g class="mute">
|
<g class="mute">
|
||||||
<text x="190" y="20" text-anchor="middle" class="t" style="fill:var(--mute)">0 · Prepare</text>
|
<text x="190" y="20" text-anchor="middle" class="t" style="fill:var(--mute)">0 · Prepare</text>
|
||||||
<text x="190" y="34" text-anchor="middle" class="mute">15 min</text>
|
<text x="190" y="34" text-anchor="middle" class="mute">15 min</text>
|
||||||
<text x="410" y="20" text-anchor="middle" class="t" style="fill:var(--mute)">1 · Develop + try</text>
|
<text x="410" y="20" text-anchor="middle" class="t" style="fill:var(--mute)">1 · Develop</text>
|
||||||
<text x="410" y="34" text-anchor="middle" class="mute">30 min per issue · one try</text>
|
<text x="410" y="34" text-anchor="middle" class="mute">30 min per issue · local only</text>
|
||||||
<text x="630" y="20" text-anchor="middle" class="t" style="fill:var(--mute)">2 · Review</text>
|
<text x="630" y="20" text-anchor="middle" class="t" style="fill:var(--mute)">2 · Review</text>
|
||||||
<text x="630" y="34" text-anchor="middle" class="mute">≤ 3 rounds · 15 min</text>
|
<text x="630" y="34" text-anchor="middle" class="mute">≤ 3 rounds · 15 min</text>
|
||||||
<text x="830" y="20" text-anchor="middle" class="t" style="fill:var(--mute)">3 · Check</text>
|
<text x="830" y="20" text-anchor="middle" class="t" style="fill:var(--mute)">3 · Check</text>
|
||||||
<text x="830" y="34" text-anchor="middle" class="mute">≤ 1 more try · 1 check</text>
|
<text x="830" y="34" text-anchor="middle" class="mute">push once · 1 check</text>
|
||||||
<text x="1000" y="20" text-anchor="middle" class="t" style="fill:var(--mute)">4 · Deliver</text>
|
<text x="1000" y="20" text-anchor="middle" class="t" style="fill:var(--mute)">4 · Deliver</text>
|
||||||
<text x="1000" y="34" text-anchor="middle" class="mute">its delivery plan</text>
|
<text x="1000" y="34" text-anchor="middle" class="mute">until delivered</text>
|
||||||
</g>
|
</g>
|
||||||
<!-- lanes -->
|
<!-- lanes -->
|
||||||
<g>
|
<g>
|
||||||
@@ -216,7 +216,7 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
<text x="10" y="86" class="t">Lead</text><text x="10" y="102" class="mute">larger model</text>
|
<text x="10" y="86" class="t">Lead</text><text x="10" y="102" class="mute">larger model</text>
|
||||||
<text x="10" y="158" class="t">Fixing agents</text><text x="10" y="174" class="mute">smaller model</text>
|
<text x="10" y="158" class="t">Fixing agents</text><text x="10" y="174" class="mute">smaller model</text>
|
||||||
<text x="10" y="230" class="t">Reviewer</text><text x="10" y="246" class="mute">larger model</text>
|
<text x="10" y="230" class="t">Reviewer</text><text x="10" y="246" class="mute">larger model</text>
|
||||||
<text x="10" y="302" class="t">The mesh</text><text x="10" y="318" class="mute">try, checks, plan</text>
|
<text x="10" y="302" class="t">The mesh</text><text x="10" y="318" class="mute">the one check, wants</text>
|
||||||
<text x="10" y="374" class="t">Operator</text><text x="10" y="390" class="mute">Telegram</text>
|
<text x="10" y="374" class="t">Operator</text><text x="10" y="390" class="mute">Telegram</text>
|
||||||
</g>
|
</g>
|
||||||
<!-- lead -->
|
<!-- lead -->
|
||||||
@@ -224,11 +224,11 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
<text x="190" y="78" text-anchor="middle" class="t">Survey · criteria</text>
|
<text x="190" y="78" text-anchor="middle" class="t">Survey · criteria</text>
|
||||||
<text x="190" y="96" text-anchor="middle" class="mute">context file per repo</text>
|
<text x="190" y="96" text-anchor="middle" class="mute">context file per repo</text>
|
||||||
<rect x="340" y="56" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--dec)" stroke-width="2"/>
|
<rect x="340" y="56" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--dec)" stroke-width="2"/>
|
||||||
<text x="410" y="78" text-anchor="middle" class="t">Up to trunk · push</text>
|
<text x="410" y="78" text-anchor="middle" class="t">Up to trunk</text>
|
||||||
<text x="410" y="96" text-anchor="middle" class="mute">each branch</text>
|
<text x="410" y="96" text-anchor="middle" class="mute">each branch, local</text>
|
||||||
<rect x="760" y="56" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--dec)" stroke-width="2"/>
|
<rect x="760" y="56" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--dec)" stroke-width="2"/>
|
||||||
<text x="830" y="78" text-anchor="middle" class="t">Push reviewed heads</text>
|
<text x="830" y="78" text-anchor="middle" class="t">Push reviewed heads</text>
|
||||||
<text x="830" y="96" text-anchor="middle" class="mute">open the PRs together</text>
|
<text x="830" y="96" text-anchor="middle" class="mute">once, PRs together</text>
|
||||||
<rect x="930" y="56" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--dec)" stroke-width="2"/>
|
<rect x="930" y="56" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--dec)" stroke-width="2"/>
|
||||||
<text x="1000" y="78" text-anchor="middle" class="t">Follow to done</text>
|
<text x="1000" y="78" text-anchor="middle" class="t">Follow to done</text>
|
||||||
<text x="1000" y="96" text-anchor="middle" class="mute">resolve the issues</text>
|
<text x="1000" y="96" text-anchor="middle" class="mute">resolve the issues</text>
|
||||||
@@ -242,17 +242,17 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
<!-- reviewer -->
|
<!-- reviewer -->
|
||||||
<rect x="560" y="200" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--idea)" stroke-width="2"/>
|
<rect x="560" y="200" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--idea)" stroke-width="2"/>
|
||||||
<text x="630" y="222" text-anchor="middle" class="t">Read all repos</text>
|
<text x="630" y="222" text-anchor="middle" class="t">Read all repos</text>
|
||||||
<text x="630" y="240" text-anchor="middle" class="mute">+ tries · every criterion</text>
|
<text x="630" y="240" text-anchor="middle" class="mute">reads tests · every criterion</text>
|
||||||
<!-- mesh -->
|
<!-- mesh -->
|
||||||
<rect x="340" y="272" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--mesh)" stroke-width="2"/>
|
<rect x="340" y="272" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--mesh)" stroke-width="2"/>
|
||||||
<text x="410" y="294" text-anchor="middle" class="t">try</text>
|
<text x="410" y="294" text-anchor="middle" class="t">no try</text>
|
||||||
<text x="410" y="312" text-anchor="middle" class="mute">integration tests run</text>
|
<text x="410" y="312" text-anchor="middle" class="mute">nothing pushed yet</text>
|
||||||
<rect x="760" y="272" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--mesh)" stroke-width="2"/>
|
<rect x="760" y="272" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--mesh)" stroke-width="2"/>
|
||||||
<text x="830" y="294" text-anchor="middle" class="t">Forge checks</text>
|
<text x="830" y="294" text-anchor="middle" class="t">Forge checks</text>
|
||||||
<text x="830" y="312" text-anchor="middle" class="mute">gate · repo · group</text>
|
<text x="830" y="312" text-anchor="middle" class="mute">one check · mesh/check</text>
|
||||||
<rect x="930" y="272" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--mesh)" stroke-width="2"/>
|
<rect x="930" y="272" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--mesh)" stroke-width="2"/>
|
||||||
<text x="1000" y="294" text-anchor="middle" class="t">Merge · delivery plan</text>
|
<text x="1000" y="294" text-anchor="middle" class="t">Merge · wants</text>
|
||||||
<text x="1000" y="312" text-anchor="middle" class="mute">backups first, tier by tier</text>
|
<text x="1000" y="312" text-anchor="middle" class="mute">backups first, canary first</text>
|
||||||
<!-- operator -->
|
<!-- operator -->
|
||||||
<rect x="860" y="344" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--op)" stroke-width="2.5"/>
|
<rect x="860" y="344" width="140" height="52" rx="8" fill="var(--card)" stroke="var(--op)" stroke-width="2.5"/>
|
||||||
<text x="930" y="366" text-anchor="middle" class="t">Approve</text>
|
<text x="930" y="366" text-anchor="middle" class="t">Approve</text>
|
||||||
@@ -260,10 +260,7 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
<!-- edges -->
|
<!-- edges -->
|
||||||
<path class="edge" d="M190,108 C190,140 260,154 298,154" marker-end="url(#ar2)"/>
|
<path class="edge" d="M190,108 C190,140 260,154 298,154" marker-end="url(#ar2)"/>
|
||||||
<path class="edge" d="M410,128 V110" marker-end="url(#ar2)"/>
|
<path class="edge" d="M410,128 V110" marker-end="url(#ar2)"/>
|
||||||
<path class="edge" d="M480,90 C545,110 545,250 462,270" marker-end="url(#ar2)"/>
|
<path class="edge" d="M630,200 V182" marker-end="url(#ar2)"/>
|
||||||
<path class="edge" d="M480,298 C530,298 540,226 558,226" marker-end="url(#ar2)"/>
|
|
||||||
<text x="490" y="262" class="mute">results</text>
|
|
||||||
<path class="edge" d="M630,200 V182" marker-end="url(#ar2)"/>
|
|
||||||
<path class="edge dash" d="M610,182 V198" marker-end="url(#ar2)"/>
|
<path class="edge dash" d="M610,182 V198" marker-end="url(#ar2)"/>
|
||||||
<text x="514" y="196" class="mute">round n+1</text>
|
<text x="514" y="196" class="mute">round n+1</text>
|
||||||
<path class="edge" d="M700,226 C740,226 740,82 758,82" marker-end="url(#ar2)"/>
|
<path class="edge" d="M700,226 C740,226 740,82 758,82" marker-end="url(#ar2)"/>
|
||||||
@@ -282,7 +279,7 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
<li>Into each issue: every file and test it touches (file:line), how it is checked and delivered, a group's merge order.</li>
|
<li>Into each issue: every file and test it touches (file:line), how it is checked and delivered, a group's merge order.</li>
|
||||||
<li><span class="tag new">new</span>Every other reader and writer of each value the change touches, each with a criterion.</li>
|
<li><span class="tag new">new</span>Every other reader and writer of each value the change touches, each with a criterion.</li>
|
||||||
<li>Acceptance criteria: given / when / then, each naming its test level.</li>
|
<li>Acceptance criteria: given / when / then, each naming its test level.</li>
|
||||||
<li>Every part the change reaches is an issue of the milestone; their order is the delivery plan's, never a cut.</li>
|
<li>Every part the change reaches is an issue of the milestone; their order is the assigner's rules', never a cut.</li>
|
||||||
<li>Fixtures copied from what the other side really writes, never from memory.</li>
|
<li>Fixtures copied from what the other side really writes, never from memory.</li>
|
||||||
<li>An issue sized over an hour is split before work starts.</li>
|
<li>An issue sized over an hour is split before work starts.</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -302,7 +299,7 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
|
|
||||||
<!-- ============ TESTS ============ -->
|
<!-- ============ TESTS ============ -->
|
||||||
<h2 id="tests">When tests run</h2>
|
<h2 id="tests">When tests run</h2>
|
||||||
<p class="lead">Two levels. Unit tests run all the time on the machine; integration tests (a bus, a store or a process started) never run there: <code>mesh-controller.try</code> runs them on the pushed branch (a check ask on the language's stream), and the checker's merge check runs them again as the gate.</p>
|
<p class="lead">Two levels. Unit tests run all the time on the machine; integration tests (a bus, a store or a process started) are compiled there and never run: the checker's one merge check, asked by the one push after the review, runs them as the gate. There is no try (ADR 0548).</p>
|
||||||
<div class="box scroll">
|
<div class="box scroll">
|
||||||
<svg viewBox="0 0 1080 170" role="img" aria-label="Test levels over a feature's timeline">
|
<svg viewBox="0 0 1080 170" role="img" aria-label="Test levels over a feature's timeline">
|
||||||
<defs><marker id="ar3" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0L10,5L0,10z" fill="var(--mute)"/></marker></defs>
|
<defs><marker id="ar3" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0L10,5L0,10z" fill="var(--mute)"/></marker></defs>
|
||||||
@@ -318,8 +315,7 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
<g>
|
<g>
|
||||||
<rect x="120" y="96" width="340" height="16" rx="8" fill="var(--mute)" opacity=".18"/>
|
<rect x="120" y="96" width="340" height="16" rx="8" fill="var(--mute)" opacity=".18"/>
|
||||||
<text x="290" y="108" text-anchor="middle" class="mute">compiled only: go vet -tags integration</text>
|
<text x="290" y="108" text-anchor="middle" class="mute">compiled only: go vet -tags integration</text>
|
||||||
<rect x="470" y="90" width="110" height="28" rx="6" fill="var(--mesh)"/><text x="525" y="109" text-anchor="middle" style="fill:var(--bg)" class="t">try</text>
|
<rect x="770" y="90" width="120" height="28" rx="6" fill="none" stroke="var(--mesh)" stroke-width="2" stroke-dasharray="5 4"/><text x="830" y="109" text-anchor="middle" class="mute">push once</text>
|
||||||
<rect x="770" y="90" width="120" height="28" rx="6" fill="none" stroke="var(--mesh)" stroke-width="2" stroke-dasharray="5 4"/><text x="830" y="109" text-anchor="middle" class="mute">try again if changed</text>
|
|
||||||
<rect x="920" y="90" width="120" height="28" rx="6" fill="var(--mesh)"/><text x="980" y="109" text-anchor="middle" style="fill:var(--bg)" class="t">merge check</text>
|
<rect x="920" y="90" width="120" height="28" rx="6" fill="var(--mesh)"/><text x="980" y="109" text-anchor="middle" style="fill:var(--bg)" class="t">merge check</text>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
@@ -332,7 +328,7 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
<svg viewBox="0 0 520 300" role="img" aria-label="The review loop: at most three rounds">
|
<svg viewBox="0 0 520 300" role="img" aria-label="The review loop: at most three rounds">
|
||||||
<defs><marker id="ar4" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0L10,5L0,10z" fill="var(--mute)"/></marker></defs>
|
<defs><marker id="ar4" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0L10,5L0,10z" fill="var(--mute)"/></marker></defs>
|
||||||
<rect x="20" y="20" width="150" height="54" rx="8" fill="var(--card)" stroke="var(--idea)" stroke-width="2"/>
|
<rect x="20" y="20" width="150" height="54" rx="8" fill="var(--card)" stroke="var(--idea)" stroke-width="2"/>
|
||||||
<text x="95" y="44" text-anchor="middle" class="t">Round n of ≤ 3</text><text x="95" y="62" text-anchor="middle" class="mute">code + tries + criteria</text>
|
<text x="95" y="44" text-anchor="middle" class="t">Round n of ≤ 3</text><text x="95" y="62" text-anchor="middle" class="mute">code + criteria</text>
|
||||||
<polygon points="300,20 380,47 300,74 220,47" fill="var(--card)" stroke="var(--mute)"/>
|
<polygon points="300,20 380,47 300,74 220,47" fill="var(--card)" stroke="var(--mute)"/>
|
||||||
<text x="300" y="51" text-anchor="middle" class="t">Wrong?</text>
|
<text x="300" y="51" text-anchor="middle" class="t">Wrong?</text>
|
||||||
<rect x="400" y="20" width="110" height="54" rx="8" fill="var(--okbg)" stroke="var(--ok)" stroke-width="2"/>
|
<rect x="400" y="20" width="110" height="54" rx="8" fill="var(--okbg)" stroke="var(--ok)" stroke-width="2"/>
|
||||||
@@ -357,10 +353,10 @@ code{font:12.5px ui-monospace,monospace;background:var(--soft);padding:1px 5px;b
|
|||||||
<h3 style="margin-top:12px">What every round reads</h3>
|
<h3 style="margin-top:12px">What every round reads</h3>
|
||||||
<ul style="margin:6px 0;padding-left:20px;font-size:14px">
|
<ul style="margin:6px 0;padding-left:20px;font-size:14px">
|
||||||
<li>Every criterion against its test: a test at its level that would fail without the change.</li>
|
<li>Every criterion against its test: a test at its level that would fail without the change.</li>
|
||||||
<li>Every new integration test traced through the code, and its try's result.</li>
|
<li>Every new integration test traced through the code by reading it: no run exists before the check.</li>
|
||||||
<li>That each integration test enters by the path the live trigger takes.</li>
|
<li>That each integration test enters by the path the live trigger takes.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="note" style="margin-top:10px">Why reviews took more than one round (R3b, 2026-10-19): a test that "failed" only by not compiling, a reader of the changed record the survey missed, and bus tests judged by reasoning before they ran. hq #433 changes all three.</div>
|
<div class="note" style="margin-top:10px">Why reviews took more than one round (R3b, 2026-10-19): a test that "failed" only by not compiling, a reader of the changed record the survey missed, and bus tests judged by reasoning before they ran. ADR 0548 and playbook 07 step 2 item 4 change the last: bus tests are judged by reading them against the code, and the one check runs them after the review.</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -465,19 +461,19 @@ const P = [
|
|||||||
{n:"07",name:"Features",kind:"build",c:"--build",
|
{n:"07",name:"Features",kind:"build",c:"--build",
|
||||||
trig:"Work that changes code across issues or repositories, too large for a small fix.",
|
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).",
|
who:"A lead (larger model), one fixing agent per repository (smaller), one reviewer (larger).",
|
||||||
steps:["Prepare: name the branch, make the worktrees, settle every question.","Write one context file per repository.","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, how the integration level runs before the pull requests. 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 issue.","A test fails first on behaviour, not on compiling. (new)","Bring each branch up to the trunk, push, and try it. (new)","Review all of it with the tries' results; at most 3 rounds.","Push the reviewed heads; try again only what changed.","A merge by hand in a temporary mode first runs a try with tests \".\" and names it in the pull request. (new)","Open one pull request per repository, together, with Reviewed-by and Pushed-by.","The operator's Approve on Telegram; the group merges in one pass.","Follow the delivery plan to done; resolve the issues; clean up.","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. (new)"],
|
steps:["Prepare: name the branch, make the worktrees, settle every question.","Write one context file per repository.","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 issue.","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, reading the integration tests against the code; at most 3 rounds.","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 delivery plan, resolved issues, no branch or worktree left.",
|
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 · 30 min per issue · review 15 min, ≤ 3 rounds · one try and one check",
|
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","Review rounds spent on what a run would show"],
|
prev:["Pull requests as scratchpads","Context bought again and again","Review rounds spent on what a run would show","A node agent's bus reads, proven only by review"],
|
||||||
check:"The checker's one status, mesh/check; the review record; the tracker's move."},
|
check:"The checker's one status, mesh/check; the review record; the tracker's move."},
|
||||||
{n:"08",name:"Small fixes",kind:"build",c:"--build",
|
{n:"08",name:"Small fixes",kind:"build",c:"--build",
|
||||||
trig:"One issue in one repository, about an hour of work.",
|
trig:"One issue in one repository, about an hour of work.",
|
||||||
who:"The session, with one reviewer on the larger model.",
|
who:"The session, with one reviewer on the larger model.",
|
||||||
steps:["Read the issue and the code; settle any open question.","Write the acceptance criteria.","Move the issue to fixing.","Build on fix/<issue>-<slug> in its own worktree.","A test that fails today first, on behaviour. (new)","Push and try before the review. (new)","One review of the commit and its try.","Push the reviewed head; open the pull request.","The operator's Approve; the merge; the delivery plan.","Prove the fix live and resolve the same hour.","During a milestone: ride in its delivery group, unless broken for the operator now. (new)"],
|
steps:["Read the issue and the code; settle any open question.","Write the acceptance criteria.","Move the issue to fixing.","Build on fix/<issue>-<slug> in its own worktree.","A test that fails today first, on behaviour. (new)","Nothing is pushed and no try runs before the review. (new)","One review of the local commit.","Push the reviewed head once; only then open the pull request. (new)","The operator's Approve; the merge; the delivery, followed in the status view. (new)","Prove the fix live and resolve the same hour.","During a milestone: ride in its delivery group, unless broken for the operator now. (new)"],
|
||||||
prod:"One pull request, one delivery, a resolved issue.",
|
prod:"One pull request, one delivery, a resolved issue.",
|
||||||
next:"—",bounds:"About an hour · one try before the review, one review, one check",
|
next:"—",bounds:"About an hour · one review, one push, one check",
|
||||||
prev:["A fix reviewed after its pull request opened","A long part run twice","A fix waiting on someone else's delivery","Ten SDK merges and eight controller merges in a day, one per fix"],
|
prev:["A fix reviewed after its pull request opened","A long part run twice","A fix waiting on someone else's delivery","Ten SDK merges and eight controller merges in a day, one per fix"],
|
||||||
check:"The checker's status; the review record; the tracker's move; one delivery group and one delivery plan per milestone."},
|
check:"The checker's status; the review record; the tracker's move; one delivery group and one source revision per milestone."},
|
||||||
{n:"09",name:"Cleanup",kind:"side",c:"--side",
|
{n:"09",name:"Cleanup",kind:"side",c:"--side",
|
||||||
trig:"The operator asks, or merged branches, stale pull requests and old worktrees pile up.",
|
trig:"The operator asks, or merged branches, stale pull requests and old worktrees pile up.",
|
||||||
who:"A session on the operator's word; the operator decides every deletion.",
|
who:"A session on the operator's word; the operator decides every deletion.",
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
---
|
---
|
||||||
layer: as-is
|
layer: as-is
|
||||||
status: implemented
|
status: implemented
|
||||||
code: [mesh-controller, mesh-delivery, mesh-catalog modules/gitea, mesh-catalog modules/mesh-build-go]
|
code: [mesh-delivery, mesh-catalog modules/mesh-delivery-gate, mesh-catalog modules/gitea, mesh-catalog modules/mesh-build-go, mesh-catalog modules/messenger, mesh-catalog modules/mesh-issues, mesh-controller, mesh-host, mesh-sdk]
|
||||||
updated: 2026-10-24
|
updated: 2026-10-26
|
||||||
decisions:
|
decisions:
|
||||||
- "ADR 0239"
|
- "ADR 0239"
|
||||||
- "ADR 0267"
|
- "ADR 0267"
|
||||||
- "ADR 0276"
|
|
||||||
- "ADR 0282"
|
- "ADR 0282"
|
||||||
- "ADR 0289"
|
- "ADR 0289"
|
||||||
- "ADR 0304"
|
- "ADR 0304"
|
||||||
@@ -17,71 +16,120 @@ decisions:
|
|||||||
- "ADR 0382"
|
- "ADR 0382"
|
||||||
- "ADR 0395"
|
- "ADR 0395"
|
||||||
- "ADR 0398"
|
- "ADR 0398"
|
||||||
|
- "ADR 0429"
|
||||||
- "ADR 0524"
|
- "ADR 0524"
|
||||||
- "ADR 0525"
|
- "ADR 0525"
|
||||||
- "ADR 0527"
|
- "ADR 0527"
|
||||||
- "ADR 0528"
|
- "ADR 0528"
|
||||||
- "ADR 0529"
|
- "ADR 0529"
|
||||||
|
- "ADR 0539"
|
||||||
|
- "ADR 0546"
|
||||||
|
- "ADR 0547"
|
||||||
---
|
---
|
||||||
|
|
||||||
# Delivery — from a merge to the nodes, as it runs
|
# Delivery — from a merge to the nodes, as it runs
|
||||||
|
|
||||||
What runs on 2026-10-24, after the delivery of release 4 and release 5's first half (milestone R4g, design 47),
|
What runs on 2026-10-26, after the delivery of release 6 (milestone R6 of
|
||||||
read from the live controller (`mesh-controller.modules`, `.seats`, `.plans`), the delivery checker's `checker_status`
|
[to-be 47](../01-to-be/47-delivery-from-commit-to-delivered.md), ADR 0539), read from the code on each repository's
|
||||||
and the machines' module lists. It is what [to-be 47](../01-to-be/47-delivery-from-commit-to-delivered.md) has not yet
|
main (`mesh-delivery`, the gate in `mesh-catalog`, the node agent in `mesh-host`, `mesh-controller`) and from the live
|
||||||
finished: the node agent applying wants and the deletion of plans are release 6, and the controller still plans,
|
mesh: the controller's seat verbs, `mesh-controller.modules`, the gate's `table`, and the view's `assigner_wants` and
|
||||||
orders and sends a delivery's builds to the machines. Until 2026-10-23 this document described the pipeline with the
|
`node_haves`. Until 2026-10-26 this document described release 5, in which the controller still made a delivery plan
|
||||||
build agent, the build queue and the two statuses `mesh/merge-gate` and `mesh/repo-check`, which no longer run.
|
for each merge, ordered it in tiers and sent whole declarations to the machines; none of that runs any more.
|
||||||
|
|
||||||
## Who does what
|
## Who does what
|
||||||
|
|
||||||
- **The parts of `mesh-delivery`** are modules of one repository, each a process with its own bus credential that
|
- **The parts of `mesh-delivery`** are modules of one repository, each a process with its own bus credential that
|
||||||
watches keys and writes keys (design 47, ADR 0429). Running now: the forge bridge (`mesh-delivery-forge-bridge`),
|
watches keys and writes keys (ADR 0429). Running now: the forge bridge, the indexer, the checker, the teller and the
|
||||||
the indexer, the checker, the gate (`mesh-delivery-gate`, which holds the seat `mesh-delivery`), the teller and
|
watchman on the control-node; the builder and the status view (`mesh-delivery-view`) on the workstation; and the
|
||||||
the watchman on the control-node; the builder (`mesh-delivery-builder`) and the status view on the workstation;
|
assigner on the home server. The gate (`mesh-delivery-gate`, holding the seat `mesh-delivery`) is a module of
|
||||||
and the assigner (`mesh-delivery-assigner`) on the home server (ADR 0524, ADR 0528).
|
`mesh-catalog` and runs on the control-node.
|
||||||
- **The forge bridge** turns the forge's events into stream messages and is the only part that calls the forge. The
|
- **The forge bridge** turns the forge's events into stream messages and is the only part that calls the forge; the
|
||||||
forge module (`gitea`, on the control-node) still announces them through the forge's system webhook.
|
forge module (`gitea`) still announces them through the forge's system webhook.
|
||||||
- **The indexer** computes each module's fingerprint at the merge preview; **the builder** claims a build once per
|
- **The indexer** writes each module's fingerprint at the merge preview and at a trunk merge; **the builder** claims a
|
||||||
fingerprint and orders it as an ask on the stream of the artifact's language.
|
build once per fingerprint and orders it as an ask on the stream of the artifact's language.
|
||||||
- **The build modules** (`mesh-build-go` and `mesh-build-node` on three machines, `mesh-build-image` on one; ADR 0525) hold the
|
- **The build modules** (`mesh-build-go` on all four machines, `mesh-build-node` on three, `mesh-build-image` on one;
|
||||||
node seats `node-build-go`, `node-build-node` and `node-build-image`. Each pulls asks from the bus's work-queue
|
ADR 0525) hold the node seats `node-build-go`, `node-build-node` and `node-build-image` and pull asks from the bus's
|
||||||
streams (deliveries first, then checks, then re-checks) while its node has a free slot of build capacity; no part
|
work-queue streams (deliveries first, then checks, then re-checks) while their node has a free slot of build
|
||||||
chooses the node. The seat `node-build-agent` and the module `build-agent` have no holder any more, and the seat
|
capacity.
|
||||||
`mesh-build-machine` has none either.
|
- **The checker** runs the merge check and writes the one status `mesh/check`, and serves a **try** on a pushed
|
||||||
- **The checker** (`mesh-delivery-checker`) runs the merge check: a change's tests through the build module of each
|
branch. The forge requires no status on any repository (ADR 0534), and no repository holds a `merge-check.sh`
|
||||||
language, running only packages whose inputs changed, and writes the one status `mesh/check`. It also serves a
|
(ADR 0529).
|
||||||
**try** (`checker_try`, `checker_try_read`): the same check on a pushed branch, before a pull request. `checker_status`
|
- **The gate** keeps one key per pull request and the merge's states only: `proposed`, `ready`, `rejected`, `held`,
|
||||||
shows the steps in flight by node and the candidates still without a verdict.
|
`merged` and `closed`, read from its `table` verb. On the operator's Approve it merges a delivery group's pull
|
||||||
- **The gate** merges a delivery group's pull requests once the check, the review and the operator's Approve agree on
|
requests in one pass and writes their merged heads as one revision of `source.main`. It sends nothing to a
|
||||||
the same heads. The forge requires no status on any repository (ADR 0534). The scripts `merge-check.sh` are gone from every repository (ADR 0529).
|
machine and asks the controller nothing.
|
||||||
- **The assigner** composes the machines a change touches (the composition check the checker reads) and writes which
|
- **The controller** (`mesh-controller`, on the control-node) keeps registration, placement in its assignments
|
||||||
fingerprint each node should want, by its six rules; it only compares wants with what the controller sends.
|
bucket and every node's inputs, and composes: on events it writes each module's signed composition for each node at
|
||||||
- **The controller** (`mesh-controller`, on the control-node) plans, orders, sends and judges. It computes a delivery plan for the
|
each fingerprint into the node's bucket `composed-<node>`, with its digest and its judgement of the move in
|
||||||
files a merge changes, moves only modules whose build source changed with their build dependents, and writes the
|
`mesh-controller_composed`, and it issues a module's credential and grant when its build is done. It plans,
|
||||||
chain's links it owns. On 2026-10-24 the seat still lists 64 verbs, `queue` and `replay` among them; whether
|
orders and sends nothing: of its seat's 65 verbs, 20 are refused by name with their replacement, among them
|
||||||
those still do work was not read here, and the build agent they served has no holder.
|
`plans`, `plan`, `push`, `deliver`, `delivery-stop`, `delivery-order` and `delivery-walks` (read 2026-10-26 01:20).
|
||||||
|
- **The assigner** writes each node's want of each module, `want.<node>.<module>`, naming a fingerprint and the
|
||||||
|
digest of the one composition it allows, when its seven rules hold: the build is done, the fingerprint is not
|
||||||
|
held, the node is the module's canary or the canary runs it healthy, at most `step` others ahead, every provider
|
||||||
|
runs healthy, the grant exists and the composition exists. In the code the canary is the first of the module's
|
||||||
|
nodes by name that is online (one ring), and rule 4 always holds, because the mesh keeps no `step`. It also runs
|
||||||
|
the composition check the checker reads. Its differences bucket, from release 5's comparison with what the
|
||||||
|
controller sent, is no longer written.
|
||||||
|
- **Two ways around the rules, both by hand.** A **put** (ADR 0546), written by the assigner's tool `assigner_put`,
|
||||||
|
puts one version of a module on one node: while a put owns a node's want of a module, from its ask until it ends,
|
||||||
|
the rules pass over that want. And the operator's credential may write a want itself, with a composition the
|
||||||
|
operator signed and wrote through mesh-sdk's `mesh-hand-compose` (ADR 0539 §10).
|
||||||
|
- **The node agent**, a process of the node-engine (`mesh-host`) on every node, watches its node's wants and its
|
||||||
|
bucket of compositions, and applies a module only when the want's fingerprint or digest differs from what runs,
|
||||||
|
and only the composition whose digest the want names, after checking its signature. It asks its node's
|
||||||
|
`node-backup` seat to back up a data module first and waits for the backup's end. It writes the have,
|
||||||
|
`have.<node>.<module>` in `node-engine_have`, with the fingerprint, the composition's digest, the phase and the
|
||||||
|
health. A failed apply is retried by the next change of the want or the composition; an apply that failed only
|
||||||
|
because the bus did not answer for a moment is retried with a bounded backoff, and at once when the bus is back.
|
||||||
|
- **The watchman** mirrors every want as a pulse owed by that node's agent until its have names the want's
|
||||||
|
fingerprint, so a node that does not move shows as a stall.
|
||||||
|
- **The status view** derives from `source.main`, the wants and the haves whether the source revision is
|
||||||
|
delivered, and says the event `delivered` once per revision, and `moving`, `settled` and `stuck` once for a
|
||||||
|
module on a node at one composition. The messenger holds the operator's notices on those events, and the issue
|
||||||
|
tracker hears `delivered`.
|
||||||
|
- **The grants part** (`mesh-grants`, on the control-node; ADR 0547) publishes each assignment's membership on the
|
||||||
|
assignments stream when it differs from the one last published. The bus's user list, assertions and grants it
|
||||||
|
composes only in its own state, compared with what the bus holds, and they take no effect; the controller still
|
||||||
|
composes the user list the bus loads.
|
||||||
|
|
||||||
## From a merge to a delivery plan
|
## From a merge to the nodes
|
||||||
|
|
||||||
- A pull request's head is built and checked as it comes in. One status, `mesh/check`, carries the verdict; a delivery
|
- A pull request's head is built and checked as it comes in; one status, `mesh/check`, carries the verdict, and a
|
||||||
group has one verdict for every member. A move of the trunk asks the checks again, and a running check stops itself
|
delivery group has one verdict for every member. A move of the trunk asks the checks again, and a running check
|
||||||
when its head or trunk commit moves.
|
stops itself when its head or trunk commit moves.
|
||||||
- A merge is made by the gate on the operator's Approve; the controller then makes a delivery plan, tiered along the
|
- The gate merges on the operator's Approve and moves the source revision in one write. Nothing collects merges or
|
||||||
module graph, and sends it. `mesh-controller.plans` lists the plans and the delivery plans' tiers; a plan that
|
waits for others: the indexer writes the new fingerprints, the builder claims each new one once, the controller
|
||||||
fails on a node says so and is retried by hand.
|
composes and grants on the done build, and the assigner writes each want once its rules hold, the canary first.
|
||||||
|
- Each node applies its own wants one module at a time and writes its haves; the source revision is delivered when
|
||||||
|
every want equals its module's fingerprint and every have equals its want, running and healthy. Read on
|
||||||
|
2026-10-26 at 01:20: 303 wants, every one equal to its node's have in fingerprint and composition digest, and 12
|
||||||
|
fingerprints held.
|
||||||
- **hq** builds no module: the checker runs hq's Go tests (`go test ./...`) as its check (ADR 0527).
|
- **hq** builds no module: the checker runs hq's Go tests (`go test ./...`) as its check (ADR 0527).
|
||||||
|
|
||||||
## Where the record of what runs lives
|
## Where the record of what runs lives
|
||||||
|
|
||||||
Fingerprints, builds, verdicts and wants are keys in the bus's key-value buckets of the parts; builds' files are in
|
Fingerprints, builds, verdicts, wants and haves are keys in the parts' buckets on the bus; compositions are in each
|
||||||
the artifact store by digest; packages are versions in the package registry. Plans, rollouts with their tiers,
|
node's `composed-<node>` bucket, readable only by that node, with a file over 64 KiB in the object store; builds'
|
||||||
assignments and settings are still rows in the controller's store. An assignment names its module and node but not
|
files are in the artifact store by digest; packages are versions in the package registry. The controller
|
||||||
the build, artifact or plan that put it there.
|
still records every build it takes in, in its builds bucket (`RecordBuild` in `cmd/mesh-controller/key_takein.go`); its
|
||||||
|
assignments bucket keeps placement alone, and its rollouts bucket keeps the record of releases 1 to 5 read-only, and
|
||||||
|
nothing writes it now.
|
||||||
|
|
||||||
## What is not covered
|
## What is not covered
|
||||||
|
|
||||||
The node agent does not yet apply wants: a node runs what the controller sent. The checker's left-running keys of
|
Nothing checks the delivery budget: the over-budget condition and the gate's `times` went with release 6, and no
|
||||||
build modules that stopped (`checker_status`'s `left_running`) are listed and hold no place. The integration tests run
|
reader of the view's `settled` and `delivered` events measures it yet (issue 1945, note 10). The bus's own move stays
|
||||||
in each repository's check; there are no end-to-end tests of delivery yet, and the lab is not used (the operator,
|
a person's step through the controller's `bus` verb (ADR 0539 §15). The checker's left-running keys of build modules
|
||||||
2026-10-16).
|
that stopped (`checker_status`'s `left_running`) are listed and hold no place. There are no end-to-end tests of
|
||||||
|
delivery, and the lab is not used (the operator, 2026-10-16).
|
||||||
|
|
||||||
|
## How it is checked
|
||||||
|
|
||||||
|
- `mesh-delivery-view.assigner_wants` and `mesh-delivery-view.node_haves`: each want beside its have; `indexer_modules`
|
||||||
|
and `builder_builds` for the fingerprints and builds they name.
|
||||||
|
- `mesh-delivery.table`: the gate's states and transitions; `mesh-delivery.deliveries` and `show` for one delivery.
|
||||||
|
- `mesh-controller.seats` and `mesh_overview`: the controller's verbs, and which are refused by name.
|
||||||
|
- The code: `mesh-delivery` (`modules/mesh-delivery-assigner/internal/assign`, `modules/mesh-delivery-view/internal/view`,
|
||||||
|
`modules/mesh-delivery-watchman/internal/watch`, `modules/mesh-grants`), `mesh-host` (`internal/agent`,
|
||||||
|
`cmd/mesh-host/nodeagent.go`), and the gate in `mesh-catalog` (`modules/mesh-delivery-gate`).
|
||||||
|
|||||||
@@ -2,8 +2,10 @@
|
|||||||
layer: as-is
|
layer: as-is
|
||||||
status: implemented
|
status: implemented
|
||||||
code: [mesh-tools, mesh-host, mesh-controller]
|
code: [mesh-tools, mesh-host, mesh-controller]
|
||||||
updated: 2026-10-24
|
updated: 2026-10-26
|
||||||
decisions:
|
decisions:
|
||||||
|
- "ADR 0539"
|
||||||
|
- "ADR 0360"
|
||||||
- "ADR 0524"
|
- "ADR 0524"
|
||||||
- "ADR 0525"
|
- "ADR 0525"
|
||||||
- "ADR 0152"
|
- "ADR 0152"
|
||||||
@@ -21,17 +23,20 @@ decisions:
|
|||||||
through `mesh_overview`, `mesh_machine`, `mesh_runtimes` and `mesh_describe`. Checked: the
|
through `mesh_overview`, `mesh_machine`, `mesh_runtimes` and `mesh_describe`. Checked: the
|
||||||
catalogue (`mesh-catalog`) carries no module named `mesh-console` any more — the name survives only
|
catalogue (`mesh-catalog`) carries no module named `mesh-console` any more — the name survives only
|
||||||
in the glossary's retired-words list and in a test fixture — and none of the four nodes answers a
|
in the glossary's retired-words list and in a test fixture — and none of the four nodes answers a
|
||||||
module of that name.
|
module of that name. How the tool runner reaches a node, its count of modules and tools and the
|
||||||
|
controller's verbs were read again on 2026-10-26, after the delivery of release 6 (ADR 0539).
|
||||||
|
|
||||||
## What it is now
|
## What it is now
|
||||||
|
|
||||||
**The tool runner is one of the mesh's core components**, named `node-tools` beside
|
**The tool runner is one of the mesh's core components**, named `node-tools` beside
|
||||||
`mesh-controller`, `mesh-host` (the node-engine) and `nats` (the bus) — the mesh's own repositories'
|
`mesh-controller`, `mesh-host` (the node-engine) and `nats` (the bus) — the mesh's own repositories'
|
||||||
check treats the four the same way, as the core whose health the mesh itself defines rather than a
|
check treats the four the same way, as the core whose health the mesh itself defines rather than a
|
||||||
module's own. `mesh-host` and `mesh-controller` supervise, compose and account for it as a core
|
module's own. Since release 6 it reaches each node the way every module does: the controller composes
|
||||||
process rather than as an ordinary assignment (`ComponentNodeTools`/`BusNodeTools` in both, the
|
and signs its composition for that node, the assigner writes the node's want of it, and the
|
||||||
witness and lease code that restarts and rolls it back, the account named `<node>.node-tools` on
|
node-engine's node agent applies it and writes its have. What stays particular to it is the account
|
||||||
the bus).
|
named `<node>.node-tools` on the bus (`BusNodeTools` in `mesh-controller`) and the node-engine's
|
||||||
|
witness and lease code that puts back a tool runner that does not come up (`ComponentNodeTools` in
|
||||||
|
`mesh-host`, ADR 0360 §9).
|
||||||
|
|
||||||
**It still carries a manifest, `node-tools/module.json` in `mesh-tools`,** and that manifest is
|
**It still carries a manifest, `node-tools/module.json` in `mesh-tools`,** and that manifest is
|
||||||
where its grants live: `invokes` names `*`, so its account may call every tool on the mesh;
|
where its grants live: `invokes` names `*`, so its account may call every tool on the mesh;
|
||||||
@@ -60,7 +65,7 @@ body per request, no session and no event stream (`node-tools/internal/console/m
|
|||||||
`mesh_machine`, `mesh_search`, `mesh_describe`, `mesh_call`, `mesh_runtimes` and `mesh_wait`. The
|
`mesh_machine`, `mesh_search`, `mesh_describe`, `mesh_call`, `mesh_runtimes` and `mesh_wait`. The
|
||||||
handshake's `instructions` text names all seven and the four address forms. `mesh_overview` is
|
handshake's `instructions` text names all seven and the four address forms. `mesh_overview` is
|
||||||
where the mesh-wide count of modules and tools is read live — a number copied into this document
|
where the mesh-wide count of modules and tools is read live — a number copied into this document
|
||||||
would drift; asked on 2026-10-17 it answered 103 modules and 645 tools across the whole mesh, with
|
would drift; asked on 2026-10-26 it answered 115 modules and 714 tools across the whole mesh, with
|
||||||
two module instances (`route-proxy` on two of the nodes) named as not answering rather than silently
|
two module instances (`route-proxy` on two of the nodes) named as not answering rather than silently
|
||||||
absent.
|
absent.
|
||||||
|
|
||||||
@@ -94,8 +99,10 @@ command, not inline, because one call blocks until it answers or times out.
|
|||||||
|
|
||||||
**These already answer directly, not as a stated future.** Beside every assigned module's tools,
|
**These already answer directly, not as a stated future.** Beside every assigned module's tools,
|
||||||
the tool runner asks the `mesh-controller` seat for its own verbs the same way (ADR 0154): measured
|
the tool runner asks the `mesh-controller` seat for its own verbs the same way (ADR 0154): measured
|
||||||
live, the mesh-controller runtime is one instance, mesh-wide, and it answers 64 verbs for that one
|
live on 2026-10-26, the mesh-controller runtime is one instance, mesh-wide, and it answers 65 verbs for
|
||||||
seat (`status`, `push`, `assign`, `build`, `artifacts` and the rest), and the `mesh-controller`
|
that one seat (`status`, `assign`, `modules`, `artifacts` and the rest), of which 20 are refused by
|
||||||
|
name with what replaces them: the delivery verbs release 6 removed (`plans`, `plan`, `push`,
|
||||||
|
`deliver` among them) and the build verbs of release 4 (`build`, `queue` among them). The `mesh-controller`
|
||||||
*module* answers none of its own — it serves no module tools, only its seat's, exactly as design 33
|
*module* answers none of its own — it serves no module tools, only its seat's, exactly as design 33
|
||||||
described while it was still only designed. The 56-to-93 seat-verb counts each node's tool runner
|
described while it was still only designed. The 56-to-93 seat-verb counts each node's tool runner
|
||||||
answers (below) are a different thing: the tool runner serves the verbs of whichever node-scoped
|
answers (below) are a different thing: the tool runner serves the verbs of whichever node-scoped
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
layer: to-be
|
layer: to-be
|
||||||
status: implemented
|
status: in-progress
|
||||||
code: [mesh-catalog, mesh-controller, mesh-host, mesh-media-catalog]
|
code: [mesh-catalog, mesh-controller, mesh-host, mesh-media-catalog, mesh-vault]
|
||||||
updated: 2026-10-12
|
updated: 2026-10-26
|
||||||
decisions:
|
decisions:
|
||||||
|
- "ADR 0550"
|
||||||
- "ADR 0305"
|
- "ADR 0305"
|
||||||
- "ADR 0158"
|
- "ADR 0158"
|
||||||
- "ADR 0094"
|
- "ADR 0094"
|
||||||
@@ -31,9 +32,10 @@ wrong.
|
|||||||
- **A provisioned credential** is the login one module uses against another — a database password,
|
- **A provisioned credential** is the login one module uses against another — a database password,
|
||||||
a broker account. The mesh mints it per consumer↔provider pair and seals it to the machines that
|
a broker account. The mesh mints it per consumer↔provider pair and seals it to the machines that
|
||||||
must hold it (ADR 0048),
|
must hold it (ADR 0048),
|
||||||
and its provider makes it true. **This is not the vault's**, and the vault does not change it. It
|
and its provider makes it true. This design first left it out of the vault, since it already has an owner
|
||||||
already has an owner and a rotation
|
and a rotation ([13](13-credentials-and-their-rotation.md)). **It is the vault's now** (ADR 0550 §5, from
|
||||||
([13](13-credentials-and-their-rotation.md)); disturbing it would buy nothing.
|
ADR 0113): the vault keeps the value and hands it sealed; its provider still makes it true, and its
|
||||||
|
rotation is the same machinery.
|
||||||
- **A module's own secret** is a value a single module needs for itself — the password of a store
|
- **A module's own secret** is a value a single module needs for itself — the password of a store
|
||||||
it runs privately, an internal signing token. Today the mesh generates this as a value nothing
|
it runs privately, an internal signing token. Today the mesh generates this as a value nothing
|
||||||
owns, and so it cannot be rotated. **This is the vault's.**
|
owns, and so it cannot be rotated. **This is the vault's.**
|
||||||
@@ -45,6 +47,56 @@ The vault, then, is the provider a module turns to for a secret that is **not**
|
|||||||
some other provision. It is the answer to *"this module needs a password, and there is no provider
|
some other provision. It is the answer to *"this module needs a password, and there is no provider
|
||||||
whose job it is to give it one."*
|
whose job it is to give it one."*
|
||||||
|
|
||||||
|
## Every secret lives in the vault
|
||||||
|
|
||||||
|
*Decided 2026-10-26 (ADR 0550), on the operator's answers; built in the milestones of ADR 0547.*
|
||||||
|
|
||||||
|
**The seat `mesh-vault` holds every secret the mesh keeps.** That is every shared secret, the enrolment tokens
|
||||||
|
among them; the mesh's signing key; every licence's grants and tokens; every bus account's password or, where
|
||||||
|
the vault has no value, its hash; and every module's own secrets and credentials. A holder gets a value only
|
||||||
|
sealed to its own key, on request and reply, or asks the vault to act with it, as for a signature. No secret is
|
||||||
|
kept in a bucket, a store database or a module's own rows. The private keys a node or the operator makes for
|
||||||
|
itself stay where they are made (ADR 0550 §1).
|
||||||
|
|
||||||
|
- **The signing key.** The vault makes a new signing key for the mesh, with the mesh's authority beside it; the
|
||||||
|
controller's key is never copied out of its database. The vault signs enrolments, node certificates and the
|
||||||
|
authority's own on request, through its verb `sign`, for the callers its manifest names, and says `signed`
|
||||||
|
naming the caller, the kind and the digest, never the key. The public halves are in a state of the vault that
|
||||||
|
every node reads. The key and the authority leave the vault only as the one copy sealed to the operator key,
|
||||||
|
opened only in the break-glass recovery below, so losing the vault does not lose the key every signature
|
||||||
|
depends on. Each node trusts the vault's key beside the controller's, one node first, and the controller's no
|
||||||
|
more once it loses its lease (ADR 0550 §2).
|
||||||
|
- **Licence grants and tokens.** The refresh tokens, the API key and the access tokens of every licence are vault
|
||||||
|
secrets; the licence manager keeps which licence goes to which holder, and nothing secret
|
||||||
|
([39](39-the-anthropic-licence-manager.md), ADR 0550 §3).
|
||||||
|
- **Bus account passwords.** A bus account's value is the vault's: until ADR 0547's third milestone the controller
|
||||||
|
hands the vault the value of each account ADR 0374 §1 covers and keeps the others' values as today (ADR 0374
|
||||||
|
§4), whose hashes the vault adopts; from then the vault mints every one. The agent of the node holding `mesh-broker` hands the vault,
|
||||||
|
sealed to it, the bcrypt hash of every user of the list the bus loaded; the vault adopts the hash of each user
|
||||||
|
it holds no value for (the controller's own, the node and device accounts, the module and process accounts its
|
||||||
|
values do not cover), writes it under `bus-accounts.<user>` and says `account-hashed` with `adopted: true`. It
|
||||||
|
never touches a key that holds the hash of its own value, and writes an adopted key again when the loaded list
|
||||||
|
carries another hash for that user. Its tool `secret_own` lists the adopted users and each adoption, and
|
||||||
|
`account_adopt` adopts now (ADR 0550 §4).
|
||||||
|
- **Module secrets** stay as the sections below describe them: a module's own secrets, the credentials between a
|
||||||
|
consumer and its provider, and the values an operator or a backend delivers. A node composing its own modules
|
||||||
|
asks the vault for them sealed to its key, and no composition carries one in the clear (ADR 0550 §5).
|
||||||
|
- **Three exceptions until ADR 0547's third milestone, each ending there:** the controller's own signing key in
|
||||||
|
its identity database; the bus account values the controller mints, handed to the vault where the accounts are
|
||||||
|
covered and kept by the controller for the others; and the enrolment tokens and new node accounts the
|
||||||
|
controller makes and keeps in its store. So **no machine is enrolled before the third milestone** (ADR 0550 §1,
|
||||||
|
§6).
|
||||||
|
|
||||||
|
*How it is checked:* before the third milestone's lease write, the controller's licence and identity databases and
|
||||||
|
the licence manager hold no secret the vault does not hold, and no exception is left that the vault has not
|
||||||
|
replaced, read with the vault's `secret_holders` and the store's reader. A unit test that `sign` refuses a caller
|
||||||
|
its manifest does not name and that no answer or event carries the key; `secret_holders` showing the
|
||||||
|
operator-sealed copy of the key and no other holder; and live, a node certificate the vault signed that another
|
||||||
|
node verifies. After the delivery of the hash hand-over, `mesh-grants.grants_user_list` shows no user without a
|
||||||
|
hash and `secret_own` lists the adopted users; unit tests in the vault (adopt; never touch its own value or a
|
||||||
|
covered account; rewrite on a new loaded hash) and in the node agent (every loaded user handed, sealed). The
|
||||||
|
hand-act log shows no enrolment before the third milestone.
|
||||||
|
|
||||||
## A secret as a provision
|
## A secret as a provision
|
||||||
|
|
||||||
A module that needs a secret for its own use requires a `secret` provision, exactly as it requires
|
A module that needs a secret for its own use requires a `secret` provision, exactly as it requires
|
||||||
@@ -77,8 +129,10 @@ the foundation: installed at genesis, the way the store and broker are raised fi
|
|||||||
adopted as modules (ADR 0078). A
|
adopted as modules (ADR 0078). A
|
||||||
mesh has root secrets, so a mesh has a vault; it is not something a mesh opts into
|
mesh has root secrets, so a mesh has a vault; it is not something a mesh opts into
|
||||||
(ADR 0085, amended). It is provisioned the
|
(ADR 0085, amended). It is provisioned the
|
||||||
ordinary way, and it does **not** mint the mesh's delivery credentials — the controller does that,
|
ordinary way. It does not yet mint the mesh's bus accounts: until the third milestone of ADR 0547 the
|
||||||
because the controller must mint in order to deliver any provision, the vault's own included.
|
controller mints them, hands the vault each covered account's value (ADR 0374 §1) and keeps the others as
|
||||||
|
today, and from then the vault mints every one
|
||||||
|
(*Every secret lives in the vault*, above).
|
||||||
|
|
||||||
There is **one vault per mesh**, on the control-node, reached from any node the way identity is.
|
There is **one vault per mesh**, on the control-node, reached from any node the way identity is.
|
||||||
Node scoping (ADR 0084,
|
Node scoping (ADR 0084,
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
layer: to-be
|
layer: to-be
|
||||||
status: implemented
|
status: in-progress
|
||||||
code: [mesh-catalog modules/claude-licence-manager]
|
code: [mesh-catalog modules/claude-licence-manager, mesh-vault]
|
||||||
updated: 2026-10-04
|
updated: 2026-10-26
|
||||||
decisions:
|
decisions:
|
||||||
|
- "ADR 0550"
|
||||||
- "ADR 0209"
|
- "ADR 0209"
|
||||||
- "ADR 0206"
|
- "ADR 0206"
|
||||||
- "ADR 0183"
|
- "ADR 0183"
|
||||||
@@ -18,13 +19,35 @@ decisions:
|
|||||||
|
|
||||||
# 39 — The Anthropic licence manager
|
# 39 — The Anthropic licence manager
|
||||||
|
|
||||||
**One module knows every Anthropic licence the mesh has, keeps each alive, decides which consumer gets
|
**One module knows every Anthropic licence the mesh has, keeps each alive, and decides which consumer gets
|
||||||
which, and hands every node's agent its token over the bus.**
|
which; the vault keeps every grant and token and hands every node's agent its token over the bus**
|
||||||
|
(ADR 0550 §3, amending the first shape, in which the manager kept the grants and handed the tokens itself).
|
||||||
ADR 0183
|
ADR 0183
|
||||||
decides it; this is the shape. It is the successor of the predecessor's manager module, built from what
|
decides it; this is the shape. It is the successor of the predecessor's manager module, built from what
|
||||||
that module learned the hard way, and the counterpart of [36 — The operator's agent on a machine](36-the-operators-agent-on-a-machine.md),
|
that module learned the hard way, and the counterpart of [36 — The operator's agent on a machine](36-the-operators-agent-on-a-machine.md),
|
||||||
which is the consumer on every node.
|
which is the consumer on every node.
|
||||||
|
|
||||||
|
## Every grant in the vault
|
||||||
|
|
||||||
|
*Decided 2026-10-26 (ADR 0550 §3), on the operator's answer that every secret lives in the vault; built in
|
||||||
|
ADR 0547's second milestone (issue 1126). Until it is delivered, the sections below hold as first written.*
|
||||||
|
|
||||||
|
- **The vault keeps every licence's secrets**: the refresh tokens, the API key and the access tokens are vault
|
||||||
|
secrets ([24](24-the-secrets-vault.md)). The manager keeps its bindings, its licence records without a secret
|
||||||
|
(account, kind, health, usage, audit), and nothing at rest that is secret.
|
||||||
|
- **The manager stays the one rotation source.** It alone calls the vendor's token endpoint: to refresh or adopt,
|
||||||
|
it asks the vault for the grant sealed to itself and hands what it gets back to the vault. A grant offered at
|
||||||
|
login, sealed to the manager's key (its `public-key` verb is kept), is handed on to the vault the same way.
|
||||||
|
- **A holder's token comes from the vault.** The agent module on a node registers its public half with the vault,
|
||||||
|
not the seat, and asks the vault for its token sealed to it. The vault serves only the licence the manager's
|
||||||
|
binding names for that holder, and says `secret-changed`, never a value. The seat's `current` verb answers which
|
||||||
|
licence a consumer holds and its health, never the token.
|
||||||
|
- **It waits for accounts of their own.** The vault hands a value only to a module running under a bus account of
|
||||||
|
its own (issue 569), so the move waits until the manager and each agent module run under one.
|
||||||
|
|
||||||
|
*How it is checked:* a unit test that the vault refuses a token to a holder no binding names or to one without an
|
||||||
|
account of its own, and a scan after the move that the manager's tables hold no grant.
|
||||||
|
|
||||||
## 1. What it is
|
## 1. What it is
|
||||||
|
|
||||||
A module, `claude-licence-manager`, holding the mesh-scoped seat **`anthropic-licence-manager`**. One
|
A module, `claude-licence-manager`, holding the mesh-scoped seat **`anthropic-licence-manager`**. One
|
||||||
@@ -43,7 +66,8 @@ Its store holds four things:
|
|||||||
|
|
||||||
**The grants are encrypted with a key the vault made for the manager** — its one `secret` requirement.
|
**The grants are encrypted with a key the vault made for the manager** — its one `secret` requirement.
|
||||||
The vault keeps that key; the manager keeps the grants. That is ADR 0050's carve-out, one module, one
|
The vault keeps that key; the manager keeps the grants. That is ADR 0050's carve-out, one module, one
|
||||||
node, the long-lived grants only.
|
node, the long-lived grants only. ADR 0550 §3 ends the carve-out: the grants move into the vault, and the
|
||||||
|
`licences` table keeps no grant (*Every grant in the vault*, above).
|
||||||
|
|
||||||
## 2. The licences it manages today
|
## 2. The licences it manages today
|
||||||
|
|
||||||
@@ -77,7 +101,9 @@ Carried from the predecessor, where each rule was earned by an incident:
|
|||||||
## 4. Handing a token to a node
|
## 4. Handing a token to a node
|
||||||
|
|
||||||
*Amended 2026-10-04 by ADR 0206*, replacing the manager's visits: **what each consumer
|
*Amended 2026-10-04 by ADR 0206*, replacing the manager's visits: **what each consumer
|
||||||
should hold is the manager's state, and the token is fetched when it changes.**
|
should hold is the manager's state, and the token is fetched when it changes.** *Amended 2026-10-26 by
|
||||||
|
ADR 0550 §3:* the token is fetched from the vault, not the seat; the `bindings` state and its generation stay
|
||||||
|
the manager's, and the vault serves the licence a binding names.
|
||||||
|
|
||||||
- **The manager keeps a `bindings` state**, one key per consumer: the licence, its kind, and a
|
- **The manager keeps a `bindings` state**, one key per consumer: the licence, its kind, and a
|
||||||
**generation** that increases with every rotation and every switch. Nothing in it is secret.
|
**generation** that increases with every rotation and every switch. Nothing in it is secret.
|
||||||
@@ -162,7 +188,8 @@ gone; a rotation or a switch is a new generation in the `bindings` state.
|
|||||||
identity, expiry, failures, who is bound), `bindings`, `bind`, `switch`, `release`, `refresh` (now, one
|
identity, expiry, failures, who is bound), `bindings`, `bind`, `switch`, `release`, `refresh` (now, one
|
||||||
or all), `usage` (current and history), `adopt` (a file on the manager's node, or a key sealed to its
|
or all), `usage` (current and history), `adopt` (a file on the manager's node, or a key sealed to its
|
||||||
`public-key` — ADR 0209), `public-key`, and `current` (a consumer's token, sealed to the key the
|
`public-key` — ADR 0209), `public-key`, and `current` (a consumer's token, sealed to the key the
|
||||||
consumer sends — ADR 0206). The manager asks a node for a candidate grant by the agent module's own tool.
|
consumer sends — ADR 0206; from ADR 0550 §3, which licence a consumer holds and its health, never the
|
||||||
|
token, which the vault hands). The manager asks a node for a candidate grant by the agent module's own tool.
|
||||||
|
|
||||||
## 8. Settings
|
## 8. Settings
|
||||||
|
|
||||||
@@ -179,6 +206,8 @@ one definition serves and one mesh may differ.
|
|||||||
| a grant offered with a mismatching identity is refused and one notification emitted | ADR 0183, attribution |
|
| a grant offered with a mismatching identity is refused and one notification emitted | ADR 0183, attribution |
|
||||||
| a failing licence notifies once, and once a day after, not once per tick | §3 |
|
| a failing licence notifies once, and once a day after, not once per tick | §3 |
|
||||||
| the mesh MCP server lists the seat's verbs and `switch` changes a workstation's token end to end | ADR 0132, the exit of the build |
|
| the mesh MCP server lists the seat's verbs and `switch` changes a workstation's token end to end | ADR 0132, the exit of the build |
|
||||||
|
| the vault refuses a token to a holder no binding names, or to one without a bus account of its own | ADR 0550 §3 |
|
||||||
|
| after the move, the manager's tables hold no grant | ADR 0550 §3 |
|
||||||
|
|
||||||
## What this does not settle
|
## What this does not settle
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,7 @@
|
|||||||
layer: to-be
|
layer: to-be
|
||||||
status: in-progress
|
status: in-progress
|
||||||
code: [mesh-catalog modules/mesh-issues, mesh-catalog modules/claude-code, mesh-catalog modules/messenger, mesh-sdk]
|
code: [mesh-catalog modules/mesh-issues, mesh-catalog modules/claude-code, mesh-catalog modules/messenger, mesh-sdk]
|
||||||
updated: 2026-10-11
|
updated: 2026-10-26
|
||||||
decisions:
|
decisions:
|
||||||
- "ADR 0275"
|
- "ADR 0275"
|
||||||
- "ADR 0278"
|
- "ADR 0278"
|
||||||
@@ -13,6 +13,7 @@ decisions:
|
|||||||
- "ADR 0291"
|
- "ADR 0291"
|
||||||
- "ADR 0294"
|
- "ADR 0294"
|
||||||
- "ADR 0300"
|
- "ADR 0300"
|
||||||
|
- "ADR 0493"
|
||||||
---
|
---
|
||||||
|
|
||||||
# 53 — The issue tracker
|
# 53 — The issue tracker
|
||||||
@@ -81,7 +82,10 @@ agent finds them with `mesh_search` ("open an issue") and calls them as `issue-t
|
|||||||
| `set` | a number and any of `severity`, `needs`, `suggested-owner` | changes them as a person decides (§ 10) |
|
| `set` | a number and any of `severity`, `needs`, `suggested-owner` | changes them as a person decides (§ 10) |
|
||||||
| `tracking` | optionally condition keys | for every condition key an issue links, the issues that link it and where each stands: status, needs, worker, fix (§ 12) |
|
| `tracking` | optionally condition keys | for every condition key an issue links, the issues that link it and where each stands: status, needs, worker, fix (§ 12) |
|
||||||
| `groom` | optionally `confirm` and a pass's id | the duplicate check over the backlog (§ 9): without `confirm`, starts a dry run in the background and answers its id; with the id alone, its progress and findings; with `confirm` and the id, applies exactly that pass's findings, each checked again |
|
| `groom` | optionally `confirm` and a pass's id | the duplicate check over the backlog (§ 9): without `confirm`, starts a dry run in the background and answers its id; with the id alone, its progress and findings; with `confirm` and the id, applies exactly that pass's findings, each checked again |
|
||||||
| `import` (slice 3) | optionally `dry-run`, a commit | reads every issue folder of hq through the records module and writes each as an issue at its own number; creates what is absent, fills a status the tracker holds empty, never overwrites, never advances the counter; run again, changes nothing and says so |
|
| `import` (slice 3) | optionally `dry-run`, a commit, and `milestones` with a design's number | reads every issue folder of hq through the records module and writes each as an issue at its own number; creates what is absent, fills a status the tracker holds empty, never overwrites, never advances the counter; run again, changes nothing and says so. With `milestones`, it seeds that design's milestone records from its table instead (§ 13) |
|
||||||
|
| `milestones` | optionally a design, a status, or one milestone as design/id | the milestone records, each with its issues and their count by status; one milestone with its issues' rows and its history (§ 13) |
|
||||||
|
| `milestone-set` | a design, an id, an outcome, optionally an order, or `announce` | makes a milestone record, or changes its outcome or order; with `announce`, says the record again as its event (§ 13) |
|
||||||
|
| `milestone-move` | a milestone as design/id, a status and a reason | opens or closes a milestone; closing is refused while an issue linked to it is neither resolved nor wontfix (§ 13) |
|
||||||
|
|
||||||
Each verb's description says in plain words what it does and what it refuses, without the mesh's internal names, so
|
Each verb's description says in plain words what it does and what it refuses, without the mesh's internal names, so
|
||||||
an agent picks the right one from `mesh_search` alone. A refusal says what was wrong and what would be accepted.
|
an agent picks the right one from `mesh_search` alone. A refusal says what was wrong and what would be accepted.
|
||||||
@@ -100,8 +104,8 @@ the issue's worker, who works on it, as the worker states it
|
|||||||
- `located-in`: entries of the registered list of owners (repositories and modules), never free text;
|
- `located-in`: entries of the registered list of owners (repositories and modules), never free text;
|
||||||
- `fixed-by` (pull requests or commits), `amended-design`, `replay` or `replay-none`, and a reason for `wontfix`;
|
- `fixed-by` (pull requests or commits), `amended-design`, `replay` or `replay-none`, and a reason for `wontfix`;
|
||||||
- `notes`: appended, each with who wrote it, when, and the text;
|
- `notes`: appended, each with who wrote it, when, and the text;
|
||||||
- `links`, typed: to another issue (`duplicates`, `relates-to`), a pull request, a decision record, a design, a
|
- `links`, typed: to another issue (`duplicates`, `relates-to`), a pull request, a commit, a decision record, a design,
|
||||||
condition key (the issue **tracks** that condition, § 12) or a delivery;
|
a condition key (the issue **tracks** that condition, § 12), a delivery, or the one milestone it belongs to (§ 13);
|
||||||
- `documents`: the report, and a diagnosis and a resolution when written, each with its author and date, revised in
|
- `documents`: the report, and a diagnosis and a resolution when written, each with its author and date, revised in
|
||||||
place with its history kept (ADR 0291);
|
place with its history kept (ADR 0291);
|
||||||
- `record`: the path of the issue's folder in hq, while one exists; none is opened any more, and the folders are
|
- `record`: the path of the issue's folder in hq, while one exists; none is opened any more, and the folders are
|
||||||
@@ -203,6 +207,7 @@ worker; one that stops moves the issue on, or is stale a day later.
|
|||||||
| The triage fills only what is empty, links no cycle, and an issue is ready only when its dependencies' fixes are delivered | the rows of ADR 0279's "How it is checked" |
|
| The triage fills only what is empty, links no cycle, and an issue is ready only when its dependencies' fixes are delivered | the rows of ADR 0279's "How it is checked" |
|
||||||
| The duplicate check acts only on a clear duplicate, never on an older or a resolved issue, once per issue, loudly when it cannot judge | the rows of ADR 0278's "How it is checked" |
|
| The duplicate check acts only on a clear duplicate, never on an older or a resolved issue, once per issue, loudly when it cannot judge | the rows of ADR 0278's "How it is checked" |
|
||||||
| An issue's documents are kept whole, with author, date and history, and the import of hq's folders loses nothing (ADR 0291) | the module's tests of `documents` and of the import, one case per document kind; the comparison of every issue with its folder before the folders are removed, written on issue 427. Tracked by issue 427 |
|
| An issue's documents are kept whole, with author, date and history, and the import of hq's folders loses nothing (ADR 0291) | the module's tests of `documents` and of the import, one case per document kind; the comparison of every issue with its folder before the folders are removed, written on issue 427. Tracked by issue 427 |
|
||||||
|
| An issue belongs to at most one milestone, linked only by the verb, and only to an open one (ADR 0493 §2 to §4) | the module's table test of the `milestone` and `commit` link kinds, one case per refusal; the test that the triage and the duplicate check never add a `milestone`, `pull-request` or `commit` link; one integration test that starts the module whole on a real bus and makes, links and refuses |
|
||||||
| Live | on the mesh, an agent calls `issue-tracker.open` and gets the next number; two sessions on two nodes open at the same moment and get two different numbers; `list` shows both |
|
| Live | on the mesh, an agent calls `issue-tracker.open` and gets the next number; two sessions on two nodes open at the same moment and get two different numbers; `list` shows both |
|
||||||
|
|
||||||
## 8. The slices after the first
|
## 8. The slices after the first
|
||||||
@@ -312,6 +317,32 @@ with no pull request open is **abandoned**.
|
|||||||
**tracking line** in every condition's message; the words and the verdict it changes are its own (to-be 45 § 5).
|
**tracking line** in every condition's message; the words and the verdict it changes are its own (to-be 45 § 5).
|
||||||
The controller learns nothing of issues.
|
The controller learns nothing of issues.
|
||||||
|
|
||||||
|
## 13. Milestones
|
||||||
|
|
||||||
|
**A milestone is a record of the tracker, made from its design's table** (ADR 0493 §1). The state `milestones`, which the
|
||||||
|
manifest declares beside `issues`, keeps one value per milestone, keyed by its design's number and its id: the id as the
|
||||||
|
design's table writes it, the outcome, its order in the table, its status (`open` or `closed`, with a reason), who made
|
||||||
|
and who last moved it and when, and the hq commit and path it was seeded from. It is written by compare-and-set at the
|
||||||
|
revision read, and its history is the key's kept values with the events `milestone-set` and `milestone-moved`.
|
||||||
|
|
||||||
|
**An issue's milestone is the issue's own link, not a list on the milestone.** The link kind `milestone` (its target
|
||||||
|
design/id, such as 47/R6) is written in the issue's log like any link, so the rule that an issue belongs to at most one
|
||||||
|
milestone (ADR 0493 §2) is checked inside that issue's one write, refused naming the milestone it is in; a link to a
|
||||||
|
milestone that does not exist or is closed is refused (§3: a fix found on the way joins the open milestone). A milestone's
|
||||||
|
issues are read from the issues in memory. Pull requests and commits are linked to the issue they fix the same way, with
|
||||||
|
the kinds `pull-request` and `commit` (§4); nothing reads them from a description, and the triage never adds one.
|
||||||
|
|
||||||
|
**The seed** is `import` with `milestones` and a design's number: it reads the table through the records module, makes
|
||||||
|
each record that is absent in the table's order, links each issue it names that has no milestone, refuses (and names)
|
||||||
|
an issue another milestone holds or two rows name, closes a milestone whose issues are all done (wontfix, or resolved
|
||||||
|
with every live fix delivered, or resolved with no live fix) when it refused none of its row's issues, and run again
|
||||||
|
changes nothing. Once a design is seeded, the tracker is the only list of its milestones'
|
||||||
|
issues: the design's table keeps its rows without an Issues column, and the knowledge base's `progress` reads
|
||||||
|
`milestones` (issue 1781).
|
||||||
|
|
||||||
|
Readiness, the one ask per milestone and its release are the delivery seat's (ADR 0493 §7 to §11, issue 1783); the
|
||||||
|
tracker gives them the records and links they read.
|
||||||
|
|
||||||
## What it leaves out
|
## What it leaves out
|
||||||
|
|
||||||
Priorities beyond severity, notifications beyond the `ready` and `ready-to-verify` events and the stuck-fix warning, full-text or semantic search, the forge's own issue lists, and an index of any kind:
|
Priorities beyond severity, notifications beyond the `ready` and `ready-to-verify` events and the stuck-fix warning, full-text or semantic search, the forge's own issue lists, and an index of any kind:
|
||||||
|
|||||||
Reference in New Issue
Block a user