Member Junction
    Preparing search index...
    • Loads everything an agent run caused, as one tree.

      🔒 RLS caveat — flagged for review, deliberately not decided here. Stored queries do not inherit entity row-level security, and agent runs are user-scoped. This loader therefore returns whatever the query returns for the run id it is given. Callers on a user-facing surface must establish that the caller may see the ROOT run before calling — which they already do, because every current caller reached the run through a record the user opened. That is a real constraint, not an oversight, and it is written here so the next caller does not assume otherwise.

      Parameters

      • agentRunID: string

        the run at the top of the tree

      • Optionalprovider: IRunQueryProvider

        the run-query provider to use — never the global default, so this works unchanged under a non-default provider in a multi-provider client

      • OptionalcontextUser: UserInfo

        required server-side; omit in the browser where the session supplies it

      • maxDepth: number = MAX_AGENT_RUN_TREE_DEPTH

        depth cap; defaults to MAX_AGENT_RUN_TREE_DEPTH

      Returns Promise<AgentRunTreeResult>