Member Junction
    Preparing search index...

    Shared context passed to RuntimeActionBridgeBuilder.BuildHandlers at the point ActionEngine decides to run a Type='Runtime' action. Everything the builder needs to produce a per-execution handler map lives here.

    config has already been Zod-validated by ActionEngine before the builder is asked to build handlers — implementations can trust the shape.

    interface BridgeContext {
        abortSignal?: AbortSignal;
        action: MJActionEntity;
        audience?: ActionRunAudience;
        config: MJActionEntity_IRuntimeActionConfiguration;
        contextUser: UserInfo;
        provider?: IMetadataProvider;
        runScope?: ActionRunScope;
    }
    Index

    Properties

    abortSignal?: AbortSignal

    Optional cancellation signal propagated from the caller.

    The MJ Action record being executed.

    The calling run's audience (RunActionParams.Audience). The engine refuses a Runtime action under an audience today (it does not declare SupportsAudience), so this is normally absent; handlers pass it on or refuse.

    Validated runtime configuration parsed from Action.RuntimeActionConfiguration.

    contextUser: UserInfo

    The invoking user context — used for permission checks inside handlers.

    Optional metadata provider to use for any data access performed inside bridge handlers. When supplied, handlers must honor it (e.g. const md = ctx.provider ?? new Metadata()) so that handler-side reads/writes participate in the caller's transaction. Falls back to the default global provider when not supplied.

    runScope?: ActionRunScope

    The calling agent run's scope (RunActionParams.RunScope). Handlers that dispatch further actions or agents must pass it on, so a nested Scoped Search searches the run's tenant instead of trusting the sandboxed code's parameters. Absent outside an agent run.