@suluk/agents - v0.1.6
    Preparing search index...

    Function analyzeScopes

    • Walk the agent tree from root, computing each reachable node's effective (intersected) scope and every per-edge escalation. Cycle-guarded (lint rejects cycles independently); on a DAG/tree each node's effective is its first reaching path's intersection — sufficient for the shallow agent graphs C027 ships.

      Parameters

      • doc: OpenAPIv4Document
      • root: string

      Returns { effective: Record<string, Scope>; escalations: ScopeEscalation[] }