Files
hq/02-DECISIONS/0063-delivery-is-reconciliation-not-a-pipeline.md
T
jschoubben 10365f2eae Consolidate the design layer: one place per topic
Jochen: a jungle of specs that slightly contradict or patch each other, and
what matters is a working state rather than history. Both are fair and both are
mine.

Measured rather than assumed. 05-the-node-host and 09-the-node-lifecycle both
covered enrolment, the install commands, the unit file, the launcher and
reconcile -- I wrote 09 without taking anything out of 05, so the same things
were said twice and could drift apart.

Split by what each document IS. 05 is the component: what the host is, its
parts, the declaration vocabulary, the build order, how it is verified. 09 is
what happens to it: install, enrol, run, upgrade, retire. The whole "The
process" section left 05, and the unit file moved to 09 where installing is
described. 05 goes from 338 lines to 245 and now points at 09 rather than
restating it.

09 also carried a 105-line "Resolved" section -- six mechanisms framed as
"these were open and here is the answer". The content is needed; the framing is
history, and history is what makes a document read as a changelog rather than a
description. Renamed to what it actually is and the was-open phrasing removed.

Also added 10-delivery.md, which did not exist: four accepted decisions --
0054, 0063, 0064, 0065 -- had no design document at all, which is the specific
reason the delivery picture felt scattered. It is now one document covering
modules, the three edges, the core library, and how a change becomes a running
thing, with a table of what each property is designed against and what must
exist before it can be built.
2026-08-28 18:40:46 +02:00

7.1 KiB

status, date, deciders, reconstructed, extends
status date deciders reconstructed extends
accepted 2026-08-28 jochen false 0058-delivery-ends-in-a-declaration.md

63. Delivery is reconciliation, not a pipeline

Context

ADR 0058 stopped deploy being a stage that pushes to nodes: the control plane says what should be true, the host reconciles, and the thing that reports is the thing that did the work. It fixed the third silo and left the first two as they were — and it said plainly what it did not fix:

Detection stays the fragile input, and this does not fix it. A merge that created no pipeline, and nothing said so is upstream of everything here and is untouched.

That is not a defect in the detector. It is what happens when a system's correctness depends on an event arriving. The as-is records the ways it has failed — a webhook truncating its commit list on a large merge, a forge address whose port broke module-path matching — and the shape is always the same: nothing happened, and nothing said so.

The same move that fixed deploy fixes this, applied one level up. This record is not a better detector. It is the removal of detection as a load-bearing mechanism.

And this is not the current coordinator repaired. The existing pipeline is a state machine over stages; what follows is not that with better inputs. The old system's value here is as a catalogue of the ways this can fail, and it has been used for exactly that.

Decision

The control plane holds what source exists and what has been built from it, and builds the difference.

A change becomes a build because source is ahead of artifacts — a comparison, answerable at any moment — rather than because a message arrived.

An event makes it fast. Nothing makes it necessary. A push notification is an optimisation that lowers latency; a missed one costs latency and cannot cost correctness. That is the same property the host's drift timer has, and it is the whole point of both.

So the mesh is one idea at two layers:

reconciles against
the control plane artifacts source
the host machine state declarations

What disappears: the pipeline as a state machine. There is no stage list something can be omitted from — which is how a verify stage was built and never scheduled — and no run to lose.

What this answers

Research 008 asked six questions. Two were answered by ADR 0058; this answers the rest.

What is a deployed state? Not an event — two comparisons, both answerable on demand: does every node's reported state match what is declared, and is what is declared built from current source? A milestone can be claimed by something that did not check. A comparison cannot.

What produces a verdict, and what is it about? An artifact, and it gates eligibility. The mesh must not converge onto something broken, so an artifact may be declared only once something has judged it fit. The lab is what judges. This is sharper than the question expected: a verdict is not a report about a run, it is a property an artifact does or does not have.

How does delivery work before self-hosting? It mostly stops being a question. A reconciler needs to read source and write artifacts; where those live is a binding, external at first and internal later. A pipeline has stages that name their targets, which is why the transition looked hard.

What survives from ADR 0014

ADR 0014 is a decision about cardinality, and the cardinality observation is right and unchanged: building is per module, publishing is per module, and what happens on nodes is per node. What changes is that those are no longer three silos of a job. They are steps of reconciling one artifact, and the third is not a step at all any more (ADR 0058).

What this costs

Named because each is a way this can go wrong, and a decision that lists none has not been examined.

  • "Is this artifact current?" must be answerable without building it. A commit recorded against each artifact does it, and that record becomes load-bearing: wrong, and the mesh either rebuilds forever or never rebuilds at all.
  • Rebuild storms are real and mostly behaviourally empty. One shared-library commit invalidates nearly everything, and most of those rebuilds produce artifacts that do the same thing they did before — so the fleet is redeployed for no change in behaviour. Reproducible builds would stop the cascade at the first module whose output did not move; without them, the storm is in the declarations rather than the builds (ADR 0064).
  • The run identity people actually use is lost. Did my change go out? is answerable today by opening a pipeline. With convergence there is no run to open, and something has to replace that — a query over the two comparisons above — or this will be worse to live with than what it replaces, whatever its properties.
  • A loop that will not converge is harder to debug than a job that failed. A failed job stops and names its step. A reconciler that cannot reach its target retries forever, and without something that notices this has been trying for an hour, the failure is silence — which is the fault this record is removing, reintroduced in a new place. This is the real risk and it is not solved here.

What must exist first

Stated as a list because this record cannot be implemented without them, and saying so is better than discovering it:

  1. The module graph, including build edges (ADR 0064). Designed, not built. Without it there is no rebuild set and no ordering.
  2. A recorded input closure per artifact — its commit and the identity of everything it was built against — so is this current? is answerable without building.
  3. Something that notices a reconciler is not converging. Below, and the one that is a risk rather than a cost.

Consequences

  • Detection stops being correctness and becomes latency. The specific faults the as-is records — a truncated commit list, a broken path match — become slow rather than silent.
  • The coordinator is not ported. What replaces it is a comparison and a build, and the existing implementation informs it only as a list of things that went wrong.
  • Two things must be cheap that are not yet designed: reading what source exists, and reading what has been built. Both are queries against providers the mesh will host, and both are on the path of everything above.
  • Research 008 can close, which it could not before this.

References

  • ADR 0058 — the same move, one level down.
  • ADR 0014 — the cardinality that survives.
  • ADR 0035 — why a comparison beats a claim.
  • 00-as-is/04 — the pitfalls this is designed against.