Cotal TypeScript packages
    Preparing search index...

    Interface AuthAuthorityPlaneHandle

    The standalone data-account plane's local connection custody, without a callout or HTTP face.

    interface AuthAuthorityPlaneHandle {
        activateManagedLifecycle: (
            args: { actor: string; lifecycleUid: string; owner: string },
        ) => Promise<void>;
        admitManagerRun: (
            args: ManagerAuthorityHolder & { request: unknown },
        ) => Promise<RemoteRunAdmissionResult>;
        authorizeConnect: (t: ValidatedUserToken) => Promise<void>;
        authorizeManagerAdmin: (
            args: ManagerAuthorityHolder & {
                request: RemoteManagerAdminAuthorizationRequest;
            },
        ) => Promise<RemoteManagerAdminAuthorizationResult>;
        authorizeManagerCaller: (
            owner: string,
            instanceId: string,
        ) => Promise<void>;
        authorizeManagerParticipation: (
            args: ManagerAuthorityHolder & {
                request: RemoteManagerParticipationAuthorizationRequest;
            },
        ) => Promise<RemoteManagerParticipationAuthorizationResult>;
        cancelManagerRun: (
            args: ManagerAuthorityHolder & { request: unknown },
        ) => Promise<RemoteRunCancelResult>;
        chatSessionBearer: (
            args: {
                actor: string;
                holderProof: string;
                idpExp: number;
                issuer: UserTokenIssuer;
                owner: string;
            },
        ) => Promise<{ exp: number; token: string }>;
        closed: Promise<AuthServiceClosed>;
        deregisterEndpoint: (
            request: unknown,
            granter: EndpointDeregisterGranter,
        ) => Promise<RemoteEndpointDeregisterResult>;
        endPlatformSupervisor: (
            args: { instanceId: string; lifecycleUid: string; owner: string },
        ) => Promise<void>;
        enrollManagedAgent: (
            args: {
                agentBearerExchangeUrl: string;
                owner: string;
                request: RemoteManagedAgentEnrollmentRequest;
                scope: string[];
                sentinelCreds: string;
            },
        ) => Promise<RemoteManagedAgentEnrollmentResult>;
        fenced: Promise<string>;
        issueListing: ListingIssuer;
        issueManagerRunAttempt: (
            args: ManagerAuthorityHolder & { request: unknown },
        ) => Promise<RemoteRunAttemptResult>;
        issueManagerServiceAuthority: (
            args: ManagerAuthorityHolder & {
                request: RemoteManagerAuthorityRequest;
                supervisorExpiresAt?: number;
            },
        ) => Promise<RemoteManagerAuthorityMaterial>;
        issueUserCaller: UserCallerIssuer;
        listManagerInstances: (owner: string) => Promise<ManagerInstanceCatalog>;
        maintainRemoteManager: (
            args: ManagerAuthorityHolder & {
                request: RemoteManagerMaintenanceRequest;
            },
        ) => Promise<RemoteManagerMaintenanceResult>;
        mintConnectCredential: (
            args: { actor: string; lifecycleUid: string; owner: string },
        ) => Promise<string>;
        observeEndpointGate: (
            endpoint: string,
            instanceId: string,
        ) => Promise<EpGateState | null>;
        observeManagerInstance: (
            instanceId: string,
        ) => Promise<{ gate: EpGateState | null; registered: boolean }>;
        openChatSession: (
            args: ChatAdmissionRequest,
        ) => Promise<ChatSessionAdmitted>;
        prepareManagedAgentRetirement: (
            args: {
                owner: string;
                request: RemoteManagedAgentPrepareRetirementRequest;
                scope: string[];
            },
        ) => Promise<RemoteManagedAgentPrepareRetirementResult>;
        recordIssuance: NativeIssuanceRecorder;
        recordToolResultConsent: ToolResultConsentRecorder;
        registerHostInstance: (
            host: { artifacts: unknown[]; clusterDigest: string; endpoint: string },
            instanceId: string,
        ) => Promise<number>;
        resolveEndpointCaller: EndpointCallerResolver;
        resolvePluginChannelState: (space: string) => Promise<{ enabled: boolean }>;
        retireChatSession: (args: ChatRetireRequest) => Promise<ChatRetireResult>;
        retireInteractiveLifecycle: (
            args: { actor: string; lifecycleUid: string; owner: string },
        ) => Promise<
            {
                alreadyRetired?: boolean;
                lifecycleUid: string;
                notStarted?: boolean;
                retired: boolean;
            },
        >;
        retireManagedLifecycle: (
            args: { actor: string; lifecycleUid: string; owner: string },
        ) => Promise<
            {
                alreadyRetired?: boolean;
                lifecycleUid: string;
                notStarted?: boolean;
                retired: boolean;
            },
        >;
        revokeManagerRun: (
            args: ManagerAuthorityHolder & { request: unknown },
        ) => Promise<RemoteRunRevokeResult>;
        scanManagerGoalIndex: (
            args: ManagerAuthorityHolder & {
                request: RemoteManagerGoalIndexScanRequest;
            },
        ) => Promise<RemoteManagerGoalIndexScanResult>;
        selectManagerInstance: (
            owner: string,
            requested?: string,
            caller?: ManagerCaller,
        ) => Promise<string>;
        serviceEndpointHost?: ServiceEndpointHost;
        submitManagerRun: (
            args: ManagerAuthorityHolder & { request: unknown },
        ) => Promise<RemoteRunSubmissionResult>;
        validateRetainedAgent: (
            args: ManagerAuthorityHolder & {
                request: RemoteRetainedAgentValidationRequest;
            },
        ) => Promise<RemoteRetainedAgentValidationRequest>;
        verifyManagedAgentEnrollment: (
            args: {
                owner: string;
                request: RemoteManagedAgentEnrollmentRequest;
                scope: string[];
            },
        ) => Promise<
            { parent: string; request: RemoteManagedAgentEnrollmentRequest },
        >;
        verifyManagedAgentPrepareRetirement: (
            args: {
                owner: string;
                request: RemoteManagedAgentPrepareRetirementRequest;
                scope: string[];
            },
        ) => Promise<RemoteManagedAgentPrepareRetirementRequest>;
        verifyManagedAgentRuntime: (
            args: { owner: string; request: RemoteManagedAgentRuntimeRequest },
        ) => Promise<RemoteManagedAgentRuntimeDecision>;
        verifySession: (
            principal: { actor: string; lifecycleUid?: string; owner: string },
            claim: {
                endpoint: string;
                epoch: number;
                grantSig?: string;
                sessionId: string;
            },
        ) => Promise<UserTokenSession>;
        close(): Promise<void>;
        nativeConnections(): AuthNativeConnection[];
    }

    Hierarchy (View Summary)

    Index
    activateManagedLifecycle: (
        args: { actor: string; lifecycleUid: string; owner: string },
    ) => Promise<void>

    Activate a managed agent's lifecycle at the uid its grant carries, under the same minting authority its first bearer exchange names, and mint nothing (SPEC 13.16).

    admitManagerRun: (
        args: ManagerAuthorityHolder & { request: unknown },
    ) => Promise<RemoteRunAdmissionResult>

    First-run admission for one hosted run-start, asked by a registered signerless manager. The plane authenticates the registration, resolves the caller's issued generation on its own issuer connection with live sources, and creates the admission through a run-admitter credential pinned to that one run. No ceiling, caller or profile is taken from the request.

    authorizeConnect: (t: ValidatedUserToken) => Promise<void>
    authorizeManagerAdmin: (
        args: ManagerAuthorityHolder & {
            request: RemoteManagerAdminAuthorizationRequest;
        },
    ) => Promise<RemoteManagerAdminAuthorizationResult>
    authorizeManagerCaller: (owner: string, instanceId: string) => Promise<void>
    authorizeManagerParticipation: (
        args: ManagerAuthorityHolder & {
            request: RemoteManagerParticipationAuthorizationRequest;
        },
    ) => Promise<RemoteManagerParticipationAuthorizationResult>
    cancelManagerRun: (
        args: ManagerAuthorityHolder & { request: unknown },
    ) => Promise<RemoteRunCancelResult>
    chatSessionBearer: (
        args: {
            actor: string;
            holderProof: string;
            idpExp: number;
            issuer: UserTokenIssuer;
            owner: string;
        },
    ) => Promise<{ exp: number; token: string }>

    Exchange a holder proof for one short bearer of an ACTIVE chat session; the parent pin and the holder index are re-checked before and after signing, and a mismatch discards the bytes.

    closed: Promise<AuthServiceClosed>

    Resolves only after successful plane-close ordering and all tracked connections have ended.

    deregisterEndpoint: (
        request: unknown,
        granter: EndpointDeregisterGranter,
    ) => Promise<RemoteEndpointDeregisterResult>
    endPlatformSupervisor: (
        args: { instanceId: string; lifecycleUid: string; owner: string },
    ) => Promise<void>

    End one platform supervisor lifecycle at the authority plane: retire its manager gate and its issued supervisor and executor generations. Both are terminal; nothing reopens them.

    enrollManagedAgent: (
        args: {
            agentBearerExchangeUrl: string;
            owner: string;
            request: RemoteManagedAgentEnrollmentRequest;
            scope: string[];
            sentinelCreds: string;
        },
    ) => Promise<RemoteManagedAgentEnrollmentResult>

    Host-owned managed-agent enrollment (#1972): the enrollment decision, then the ledger grant at a host-chosen uid and that uid's durables. A failed provision revokes the grant it wrote.

    fenced: Promise<string>

    Resolves with the state-3 copy when a mid-life scanner death FENCES the plane (SPEC 13.13): the plane is no longer whole, authorizeConnect/mintConnectCredential refuse from that moment, and the composition root must take the whole service DOWN loud (a fenced plane that kept minting would look healthy while a successor reclaims its scanners). Never resolves on a clean close.

    issueListing: ListingIssuer

    The callout's listing issuance (SPEC 13.15, "Listing issuance") for an agent connection or an unissued manager-caller view, on the same held issuer session: a fresh listing generation bound to the actor-ledger row, or the one the connection's listing token already names when the ceiling is identical. Any other row leaves the connection without the listing rows.

    issueManagerRunAttempt: (
        args: ManagerAuthorityHolder & { request: unknown },
    ) => Promise<RemoteRunAttemptResult>

    First-attempt/resume or operator issuance for one hosted run, asked by a registered signerless manager. The plane authenticates the registration, derives coordinates from native admission/records/checkpoints, and signs ONLY the returned fixed grant args. JWT responses contain no seeds.

    issueManagerServiceAuthority: (
        args: ManagerAuthorityHolder & {
            request: RemoteManagerAuthorityRequest;
            supervisorExpiresAt?: number;
        },
    ) => Promise<RemoteManagerAuthorityMaterial>
    issueUserCaller: UserCallerIssuer

    The callout's issuance of an interactive user's manager-caller view (SPEC 13.15): on the process's held issuer session, it stages and releases evidence bound to the actor-ledger row and writes the connection's accepted row, or renews the generation that row already names.

    listManagerInstances: (owner: string) => Promise<ManagerInstanceCatalog>

    The owner's Manager instances with the verdict selection reads; selection is built on it.

    maintainRemoteManager: (
        args: ManagerAuthorityHolder & {
            request: RemoteManagerMaintenanceRequest;
        },
    ) => Promise<RemoteManagerMaintenanceResult>
    mintConnectCredential: (
        args: { actor: string; lifecycleUid: string; owner: string },
    ) => Promise<string>
    observeEndpointGate: (
        endpoint: string,
        instanceId: string,
    ) => Promise<EpGateState | null>

    The issuance gate of one instance of endpoint. It probes, freezes and writes nothing.

    observeManagerInstance: (
        instanceId: string,
    ) => Promise<{ gate: EpGateState | null; registered: boolean }>

    Read-only view of one manager instance for the platform control door: whether its svc.manager record is current, and its gate. It probes, freezes and writes nothing.

    openChatSession: (args: ChatAdmissionRequest) => Promise<ChatSessionAdmitted>

    Admit one user-mode chat session for an owner the route derived from a verified IdP proof (the chat-only minting authority, SPEC 13.1). Same-holder retries converge on one session.

    prepareManagedAgentRetirement: (
        args: {
            owner: string;
            request: RemoteManagedAgentPrepareRetirementRequest;
            scope: string[];
        },
    ) => Promise<RemoteManagedAgentPrepareRetirementResult>

    Host-owned retirement preparation (#1972): the prepare decision, then the target uid's broker footprint and grant are released, so the participant's terminal rail finds the grant gone.

    recordIssuance: NativeIssuanceRecorder

    The callout's required native-key issuance recorder (SPEC 13.1 natkey.): create-only, then the same connect authority re-read before the minted JWT may leave.

    recordToolResultConsent: ToolResultConsentRecorder
    registerHostInstance: (
        host: { artifacts: unknown[]; clusterDigest: string; endpoint: string },
        instanceId: string,
    ) => Promise<number>

    Register one instance of the platform host's endpoint through the §13.7 ceremony this plane runs for auth, and return the process epoch that registration committed (SPEC 13.16).

    resolveEndpointCaller: EndpointCallerResolver

    Fresh generic endpoint caller rights for the authenticated exact actor lifecycle.

    resolvePluginChannelState: (space: string) => Promise<{ enabled: boolean }>
    retireChatSession: (args: ChatRetireRequest) => Promise<ChatRetireResult>

    Retire a chat session through the retirement barrier; a blocked barrier is failed with its pending reason, never success.

    retireInteractiveLifecycle: (
        args: { actor: string; lifecycleUid: string; owner: string },
    ) => Promise<
        {
            alreadyRetired?: boolean;
            lifecycleUid: string;
            notStarted?: boolean;
            retired: boolean;
        },
    >

    Retire one interactive lifecycle through the retirement barrier. A refusal raised before the barrier starts carries outcome: "not-executed" (SPEC 13.3); a failure inside the barrier carries none, because the retirement may have begun.

    retireManagedLifecycle: (
        args: { actor: string; lifecycleUid: string; owner: string },
    ) => Promise<
        {
            alreadyRetired?: boolean;
            lifecycleUid: string;
            notStarted?: boolean;
            retired: boolean;
        },
    >
    revokeManagerRun: (
        args: ManagerAuthorityHolder & { request: unknown },
    ) => Promise<RemoteRunRevokeResult>

    Revoke under the authenticated holder and the recorded admission owner.

    scanManagerGoalIndex: (
        args: ManagerAuthorityHolder & {
            request: RemoteManagerGoalIndexScanRequest;
        },
    ) => Promise<RemoteManagerGoalIndexScanResult>
    selectManagerInstance: (
        owner: string,
        requested?: string,
        caller?: ManagerCaller,
    ) => Promise<string>

    caller picks the remedy an ambiguity refusal names: --on for the human (CLI) arm, cotal agent-bearer's --manager-instance for the agent arm, the wire field otherwise.

    serviceEndpointHost?: ServiceEndpointHost

    Present only with serviceEndpoints: the in-process service endpoint host (decide, revoke, the create-only name binding and the operation and proposal reads). Trusted embedder only: the caller must authenticate the granter it passes.

    submitManagerRun: (
        args: ManagerAuthorityHolder & { request: unknown },
    ) => Promise<RemoteRunSubmissionResult>
    validateRetainedAgent: (
        args: ManagerAuthorityHolder & {
            request: RemoteRetainedAgentValidationRequest;
        },
    ) => Promise<RemoteRetainedAgentValidationRequest>
    verifyManagedAgentEnrollment: (
        args: {
            owner: string;
            request: RemoteManagedAgentEnrollmentRequest;
            scope: string[];
        },
    ) => Promise<
        { parent: string; request: RemoteManagedAgentEnrollmentRequest },
    >

    Authorize one host-owned managed-agent enrollment (#1972). The plane reads the manager gate on its own connection and verifies the proof against the data-account signing seed, so no secret and no gate read ever crosses to the host platform that called the loopback door.

    verifyManagedAgentPrepareRetirement: (
        args: {
            owner: string;
            request: RemoteManagedAgentPrepareRetirementRequest;
            scope: string[];
        },
    ) => Promise<RemoteManagedAgentPrepareRetirementRequest>

    Authorize one host-owned managed-agent terminal release preparation (#1972 phase P0/P1).

    verifyManagedAgentRuntime: (
        args: { owner: string; request: RemoteManagedAgentRuntimeRequest },
    ) => Promise<RemoteManagedAgentRuntimeDecision>

    Decide one hosted runtime create or status read. The plane reads the manager actor's ledger row, the gate, and the proof itself; it touches no provider and writes nothing.

    verifySession: (
        principal: { actor: string; lifecycleUid?: string; owner: string },
        claim: {
            endpoint: string;
            epoch: number;
            grantSig?: string;
            sessionId: string;
        },
    ) => Promise<UserTokenSession>

    #2312: may this principal hold this one session? Leader-reads the redeemed session.<id> row and the serving manager gate; returns the session claim (expiry from the row) or throws.