<@U04UQ68083H> what would happen if there was a cy...
# ory-copilot
b
@chilly-king-10285 what would happen if there was a cycle in the relation graph in ory permissions?
b
A message from kapa.ai
The knowledge sources do not explicitly describe what happens if there is a cycle in the relation graph in Ory Permissions. However, the documentation does explain that the relationships in Ory Permissions form a directed graph, where objects, subject sets, and subject IDs are nodes, and edges represent relations between them. Permission checks involve searching for a path from an object to a subject, and this search is described as "local," meaning only successors of the object are traversed during a check. There is no mention of cycle detection, prevention, or specific handling of cycles in the documentation provided. Therefore, based on the available information, it is unclear how Ory Permissions handles cycles in the relation graph, or whether cycles are allowed or could cause issues such as infinite loops during permission checks. For a definitive answer, further investigation in the official Ory Keto documentation or source code would be necessary [Graph of relations](https://www.ory.sh/docs/keto/concepts/graph-of-relations).