The question is about how to do reuse correctly.
For example, a role has a set of permissions defined,
but is not connected to any resources until an instance is realized.
- they cannot exist in spicedb yet, recorded in traditional db?
- each time a user makes use of it within a scope, like a project or folder
- they have to be independent, because they can apply to different resources or subjects, depending on scope
- my backend logic would load the role definition and loop over the permissions, making many writes to spicedb
- my backend logic would need to track changes to the role definition and roll them out (potentially widely) to all the instances
- these updates would need something like a diff or reconciliation incase a permission was removed
does this sound about right?