openvibers/openvibe.network Commits

Network: OpenVibe.Quest may grant inventory items (inventory.item.grant on openvibe.inventory) — the six of Live's items Live names it a grantor of, as quest rewards (#103)

OP OpenVibers committed 9 Oct 2026 · ac9d16c2ae · 1 file, +3 −0

Changes

ddiff --git a/server/identity/principals.js b/server/identity/principals.js
iindex d011225f..50cb1244 100644
---- a/server/identity/principals.js
++++ b/server/identity/principals.js
@@@ -39,6 +39,9 @@ const DEFAULT_GRANTS = [
['inventory', 'events.subscription.manage', 'openvibe.events', []],
...['inventory.item.read', 'inventory.item.list', 'inventory.equip.manage', 'inventory.item.grant', 'inventory.item.consume', 'inventory.definition.manage']
.map((cap) => ['live', cap, 'openvibe.inventory', []]),
++ // OpenVibe.Quest gives six of Live's items as quest rewards: Live names Quest a grantor of them (ADR-054 §3), so
++ // Quest grants them itself (origin earned, the completion id as the key) and nothing else.
++ ['quest', 'inventory.item.grant', 'openvibe.inventory', []],
['live', 'network.coins.debit', SELF_AUDIENCE, ['live']],
['live', 'network.notifications.push', SELF_AUDIENCE, ['live']],
// User modules: each service reads and writes the namespaces it owns (openvibe-contracts manifests/namespaces).