Detect a cycle in the agent graph reachable from root, following by-name sub-agent refs. Returns the cycle
path (keys) if one exists, else null. JSON-Schema cannot express acyclicity — this is the author/install lint
the C027 gate requires. (Same shape as the shipped builder/compose cycle detection, C021.)
Detect a cycle in the agent graph reachable from
root, following by-name sub-agent refs. Returns the cycle path (keys) if one exists, else null. JSON-Schema cannot express acyclicity — this is the author/install lint the C027 gate requires. (Same shape as the shipped builder/compose cycle detection, C021.)