H-3: the node-engine says composed, running and capabilities-changed on the seat's subjects

Builds: design 47 G §260, §227, §226, §177, §309, §404

Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
2026-11-11 12:05:18 +01:00
parent 730860b274
commit 26581d87ed
8 changed files with 214 additions and 3 deletions
+15
View File
@@ -118,11 +118,26 @@ type Env struct {
// SeatList is the node's reader of the seat list (novox/hq ADR 0636 §1): until the list was read, the composer hands
// nothing new of a module whose seats are not all bootstrapped, and keeps what runs of it. Nil gates nothing.
SeatList SeatGate
// SayComposed says the seat's event composed for a composition of a module written into the composition state at a
// fingerprint (design 47, *What each step says*): the module, the fingerprint and the digest of the composition. Nil says
// nothing.
SayComposed func(module, fingerprint, digest string)
// SeatListChanged says the reader's held set changed: the node composes again, so what waited for the list is
// handed at the read and not on a timer. Nil hears nothing.
SeatListChanged <-chan struct{}
}
// ManifestOf is the digest of the manifest of the build a module runs at fp, from the composer's picture of the catalog half;
// "" when the picture holds no such build (the event running names it, so one not known is not said).
func (c *Composer) ManifestOf(module, fp string) string {
c.mu.Lock()
defer c.mu.Unlock()
if m, ok := c.modules[module]; ok && m.Fp2 == fp {
return m.Manifest
}
return ""
}
// SeatGate is what the composer asks of the reader of the seat list: whether it may compose a module that claims,
// invokes or provides these seats (seatlist.Reader.MayAct).
type SeatGate interface {