H-A-480 b: the composer's watch ends with the agent's stop

The composer's loop and its hearers outlived the node agent's run and logged after
it ended; the node agent now waits for them (Composer.Wait) once its run stops.

Builds: design 47 H2 H-A-480
This commit is contained in:
2026-11-22 16:12:10 +01:00
parent cb5eddeba8
commit a22769bbc6
4 changed files with 46 additions and 6 deletions
+1
View File
@@ -796,6 +796,7 @@ func nodeAgent(ctx context.Context, opts options, signer ed25519.PublicKey, trus
err = ag.Run(run)
stopRun()
cancel()
composer.Wait() // its watch ends with the agent's stop, and says nothing after it (H-A-480)
current.set(nil)
composerNow.Store(nil)
ownFindingsNow.Store(nil)