Anchorage API reference
    Preparing search index...
    interface ActorContext {
        actor: ApprovalActor;
        deploymentTag?: string;
        principal: ExecutionPrincipal;
        resourceOwner: ResourceOwner;
        canAccessResource(
            kind: "run" | "thread" | "resource" | "schedule",
            resourceId: string,
            access: ResourceAccess,
        ): Promise<boolean>;
        canSelfDecide(role: ApprovalRole): boolean;
        claimResource(
            kind: "run" | "thread" | "resource" | "schedule",
            resourceId: string,
        ): Promise<void>;
        newRunId(): string;
        newThreadId(): string;
        releaseResource(
            kind: "run" | "thread" | "resource" | "schedule",
            resourceId: string,
        ): Promise<void>;
        resourceIdFromKey(resourceKey: string): string;
        resourceOwnerFor(
            kind: "run" | "thread" | "resource" | "schedule",
            resourceId: string,
        ): Promise<ResourceOwner | undefined>;
        service(): ApprovalService;
    }
    Index

    Properties

    Already authenticated and validated.

    deploymentTag?: string

    Infrastructure-verified deployment tag for audit attribution.

    WHO is executing; authenticated HTTP requests always resolve to human.

    resourceOwner: ResourceOwner

    Immutable owner assigned to resources created through this context.

    Methods

    • Atomically bind a server-selected id to this principal.

      Parameters

      • kind: "run" | "thread" | "resource" | "schedule"
      • resourceId: string

      Returns Promise<void>

    • Release a claim after the authoritative domain record is gone.

      Parameters

      • kind: "run" | "thread" | "resource" | "schedule"
      • resourceId: string

      Returns Promise<void>