Member Junction
    Preparing search index...

    Variable RESERVED_AGENT_RUN_DATA_KEYSConst

    RESERVED_AGENT_RUN_DATA_KEYS: readonly string[] = ...

    The ExecuteAgentParams.data keys that change what an agent run IS, not just what its prompt says.

    BaseAgent and AgentRunner read these data keys as fallbacks for the run's own parameters:

    • PrimaryScopeEntityName, PrimaryScopeRecordID, SecondaryScopes decide the run's scope — the notes and examples memory injects, the pre-execution RAG search context, the scope columns on the MJ: AI Agent Runs row, the scope handed to every action (RunActionParams.RunScope) and what sub-agents inherit.
    • __agentTypePromptParams is the highest-precedence agent-type parameter layer (a per-run switch for the Loop type's enableTaskGraphs, and for decisions).

    A run reads them only when its caller set ExecuteAgentParams.TrustReservedRunData, which documents who may: BaseAgent.Execute removes them from every other run's data (WithAgentRunDataTrustApplied), whatever entry point started it. BaseAgent's sub-agent build also removes them — with the rest of the host-only keys, HOST_ONLY_AGENT_RUN_DATA_KEYS — from the model-authored templateParameters it merges into a child's data, trusted parent or not.

    PrimaryScopeEntityID has no data reader today; it is reserved with the rest of the scope family so a future fallback for it cannot reopen this.