Cotal TypeScript packages
    Preparing search index...

    Function admitRemoteRun

    • Host-side first-run admission for a registered signerless manager. The manager is trusted only to forward the ep.v1 request subject it served, and only once for a request this host observed its caller publish. Everything else is derived here: the caller and generation come from the subject, the evidence and live sources from the issued store, the ceiling from that evidence. Every refusal happens before the create; an observed forward whose run is already admitted for the same caller and instance returns the admission already written.

      Parameters

      • args: {
            accountPublicKey: string;
            admissions: KV;
            delegationOf: (owner: string, actor: string) => RunDelegation | undefined;
            endpoint: string;
            issued: IssuedStore;
            now?: () => number;
            observeManagerGate: ObserveManagerGate;
            owner: string;
            proofSecret: string | Uint8Array<ArrayBufferLike>;
            request: unknown;
            sourceIsLive: (source: IssuedSourceRef) => Promise<boolean>;
            space: string;
            takeObserved: (subject: string) => Promise<ObservedRunRequest | undefined>;
        }
        • accountPublicKey: string
        • admissions: KV
        • delegationOf: (owner: string, actor: string) => RunDelegation | undefined

          What the ledger grants a principal now. The admission freezes it as what the run's spawns may hand on, so a grant the starter gains later never reaches a helper (SPEC 14.8).

        • endpoint: string
        • issued: IssuedStore
        • Optionalnow?: () => number
        • observeManagerGate: ObserveManagerGate
        • owner: string
        • proofSecret: string | Uint8Array<ArrayBufferLike>
        • request: unknown
        • sourceIsLive: (source: IssuedSourceRef) => Promise<boolean>
        • space: string
        • takeObserved: (subject: string) => Promise<ObservedRunRequest | undefined>

          Consumes the one observation of a served request subject.

      Returns Promise<RemoteRunAdmissionResult>