Let module issue mint and deliver a bus process's account (issue 1181)

This commit is contained in:
jochen
2026-10-19 02:55:29 +02:00
parent 93a82cb032
commit f6a48ac5ef
9 changed files with 397 additions and 8 deletions
+3 -3
View File
@@ -192,7 +192,7 @@ func declaredFor(m catalogue.Manifest, seats map[string]catalogue.SeatDeclaratio
Queues: queueOwnersOf(m),
// And every process of its own that declares bus, each granted a bus account of its own (novox/hq
// ADR 0436 §1, §2).
Processes: processesOf(m),
Processes: ProcessesOf(m),
// And the tools its health asks (novox/hq ADR 0240): the machine's node-engine is granted them.
Checks: catalogue.HealthChecks(m),
// And whether it runs as an account of its own (novox/hq ADR 0259 §8).
@@ -465,11 +465,11 @@ func queueOwnersOf(m catalogue.Manifest) []broker.QueueOwner {
return out
}
// processesOf is every process of a module that declares bus, as the broker composes its own account from
// ProcessesOf is every process of a module that declares bus, as the broker composes its own account from
// (novox/hq ADR 0436 §1, §2): its own emits, its own work-queue consumers (queueOwnersOf, filtered to each
// process's own), its own state, whether it reads its module's own asks, and the tools and seat verbs it
// calls.
func processesOf(m catalogue.Manifest) []broker.ProcessPrincipal {
func ProcessesOf(m catalogue.Manifest) []broker.ProcessPrincipal {
buses := m.ProcessBuses()
if len(buses) == 0 {
return nil