H-13: the node-engine's seat-list and held-module findings go through mesh-sdk's held writer

The seat list's five-minute finding and the finding of a held module are raised as they happen, so they use the held
writer (seeded at Start, Held() answers what stands) over the contract of the seat mesh-conditions; the keepers keep no
set or sweep of their own, and the writer is started before the seat list reader writes or clears any. The engine's own
finding stream stays its foundation stream mesh-host-findings.

Builds: design 47 G §529, A-29, A-30, A-37, A-38, A-40
Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
2026-11-11 22:37:21 +01:00
parent 189ed10c36
commit 38e13ef030
8 changed files with 167 additions and 285 deletions
+12 -7
View File
@@ -20,7 +20,6 @@ import (
"git.novox.be/novox/mesh-networking/modules/mesh-wireguard/go/overlay"
"git.novox.be/novox/mesh-sdk/go/declaration"
"git.novox.be/novox/mesh-sdk/go/views"
"github.com/novox/mesh-host/internal/agent"
"github.com/novox/mesh-host/internal/apply"
"github.com/novox/mesh-host/internal/compose/frombus"
@@ -593,7 +592,17 @@ func nodeAgent(ctx context.Context, opts options, signer ed25519.PublicKey, trus
own := &agentNow{}
// And the seat list it reads through the seat mesh-catalog, from its bootstrapped definitions until it has: the
// composer hands nothing new meanwhile, and the node says it has waited five minutes (novox/hq ADR 0636 §1).
findings := newFindingsOfTheNode(session, node)
// The finding writer is started first, so it holds what an earlier run left before the reader writes or clears any.
findings, ferr := newFindingsOfTheNode(session, node, say)
if ferr != nil { // a writer that cannot be made is a fault of its configuration: loud, never a node without findings
say("the node-engine cannot make its finding writer, so its node agent stops: " + ferr.Error())
stopRun()
cancel()
return
}
if werr := findings.Start(run); werr != nil {
say("the node-engine's findings are kept in its state and not said as events until it is started again: " + werr.Error())
}
seats, err := startSeatList(run, session, node, findings, say)
if err != nil {
// No reader is no gate that lets everything through: the node acts on nothing new, as one that waits does.
@@ -601,11 +610,7 @@ func nodeAgent(ctx context.Context, opts options, signer ed25519.PublicKey, trus
}
// The marks of the haves run off the composition pass, each bounded (see marker).
marks := newMarker(run)
if werr := findings.Start(run, say); werr != nil {
say("the node-engine's findings are kept in its state and not said as events until it is started again: " + werr.Error())
}
heldFindings := &seatwait.HeldKeeper{Node: node, Observer: findingsModule, Writer: findings,
Left: func() ([]views.Finding, error) { return findings.left(node) }, Say: say}
heldFindings := &seatwait.HeldKeeper{Node: node, Observer: findingsModule, Writer: findings, Ctx: run, Say: say}
hooks := composerHooks{
seatList: seats,
seatListFailed: err != nil,