Bounded version of conflicted subgraph computation.
max_auth_depth: If set, limits backwards traversal depth to prevent
history-flooding DoS attacks where a rogue admin generates millions of
spoofed events on a dead-end fork.
Kahn’s Topological Sort with full diagnostic output.
Returns a KahnSortResult that distinguishes between successful sorts
and cycle detection, providing the stuck set for debugging.