Gate a release plan's first machine and roll a failed build back there (hq ADR 0236)

A build that reported applied was sent everywhere; one that then did nothing, served
no tools or broke its machine's word reached every machine. Now the first machine is
judged by the component's health (the core's definitions, as doctor probes H-*, or a
module's own) three times over two minutes within ten; a failing gate puts the previous
build back there once, marks the build, and says it as a condition and an event.
Upgrades roll out by default; the bus is a planned step; a module deleted at its
source is not built (the public-acme plan failure).
This commit is contained in:
jochen
2026-10-06 18:56:54 +02:00
parent 81f497e5dd
commit d9289ef6d4
41 changed files with 3297 additions and 61 deletions
+11
View File
@@ -11,6 +11,8 @@ import (
"strconv"
"strings"
"time"
"github.com/novox/mesh-controller/internal/lease"
)
// Exchange is where nodes publish everything they have to say.
@@ -251,6 +253,15 @@ type Report struct {
// and the mesh's up in its place, and where the found configuration's original was kept.
Tunnel *CarriedTunnel `json:"tunnel,omitempty"`
// Rollbacks is what this machine's witnesses decided about a core build that was not healthy in
// bound (novox/hq to-be 45 §8, ADR 0236; the contract is lease/witness.go and mesh-host's
// internal/witness): the node-engine's launcher about the engine, the engine about the controller and
// the node tools. Said on every report while it stands; absent from a host that witnesses nothing.
Rollbacks []lease.Rollback `json:"rollbacks,omitempty"`
// Witness is the witness contract version the host keeps (lease.WitnessContract): a process's
// `witness` and `not-reversible` are sent only to a machine whose report carries it.
Witness int `json:"witness,omitempty"`
// Rekey is a node taking a found tunnel's key as its overlay key after enrolment (novox/hq
// ADR 0105). A report carrying one is not an account of the machine: it moves the node's
// overlay key and tunnel and nothing else.