A tool's grant covers the machine-addressed subject, and a credential names the seats its module claims (ADR 0159) #185

Merged
mesh-admin merged 2 commits from feat/a-tool-call-names-the-machine into main 2026-10-01 12:01:29 +00:00
2 Commits
Author SHA1 Message Date
jschoubben ccae1ec303 gofmt 2026-10-01 13:58:41 +02:00
jschoubben 9fd5971212 A tool's grant covers the machine-addressed subject, and a credential names the seats its module claims (hq ADR 0159)
`invokes: [<module>.<tool>]` now grants `mesh.mod.<module>.tool.<tool>` and the same with the
machine as its last token, which is how a call reaches one machine's instance. The broker
credential the mesh writes carries `claims`: each seat the module claims, its scope, and the verbs
the seat promises, so the runtime serves them on the seat's subjects; the holder's grant, composed
from the holding, is what admits the subscription.
2026-10-01 13:58:23 +02:00