H-13: the node-engine's findings are written and said by mesh-sdk's finding writer
A finding is written in the node's state findings and followed by finding-written or finding-cleared on the engine's own stream mesh-host-findings; the engine states every finding it observes at its start (the seat list's finding only while the reader waits for the list, else not) and when the keeper asks, and answers an ask by a new statement. The node's grant in the golden file gains the stream's publish, the ask stream's consumer, and the whole of its state findings. Builds: design 47 G §383, §384, §390, §461, §485, §503 Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
@@ -593,15 +593,18 @@ 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).
|
||||
seats, err := startSeatList(run, session, node, say)
|
||||
findings := newFindingsOfTheNode(session, node)
|
||||
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.
|
||||
say(err.Error() + "; the node composes nothing new until it is started again and reads the list (novox/hq ADR 0636 §1)")
|
||||
}
|
||||
// The marks of the haves run off the composition pass, each bounded (see marker).
|
||||
marks := newMarker(run)
|
||||
findings := findingsOfTheNode{session}
|
||||
heldFindings := &seatwait.HeldKeeper{Node: node, Observer: "node-engine", Writer: findings,
|
||||
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}
|
||||
hooks := composerHooks{
|
||||
seatList: seats,
|
||||
|
||||
Reference in New Issue
Block a user