G sessions: the runner answers mesh/capabilities and drops a bundle's sessions when its channel closes

Builds: design 47 G §576, §518, §622, A-49
Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
2026-11-11 22:41:24 +01:00
parent 99c36d8ddf
commit 4a614cae26
3 changed files with 89 additions and 0 deletions
+6
View File
@@ -299,3 +299,9 @@ func newCall() string {
_, _ = rand.Read(b[:])
return hex.EncodeToString(b[:])
}
// CapabilityWords are the capability words this runner states, answered to a bundle's `mesh/capabilities` (§576).
func (b *moduleBus) CapabilityWords() []string { return CallCapabilities() }
// DropSessions ends the sessions of the module whose bundle's channel closed (§518).
func (b *moduleBus) DropSessions() { b.all.dropModuleSessions(b.module) }