Interface CompositeMeetingEntitlementOptions

Host checks authority and capacity, while this class owns branch selection and ledger mechanics.

interface CompositeMeetingEntitlementOptions {
    runs: IRunStore;
    credit: ICompoundCreditStore;
    now(): number;
    supplierDailyCapMicro(): number;
    blocks(snapshot): MeetingBlockEntitlement;
    check(run, phase): Promise<DispatchAllowance>;
    close(run): Promise<{
        connectedMs: number;
        fence: CallFence;
    }>;
}

Methods

  • Resolves the original block policy, not the current subscription's preferred source.

    Parameters

    • snapshot: {
          accountRef: string;
          policyVersion: string;
          reservationRef: string;
          maxSeconds: number;
          expiresAt: number;
          fundingMode: "bot_blocks";
          blockSeconds: number;
          maxLiability: {
              blocks: number;
          };
      }
      • accountRef: string
      • policyVersion: string
      • reservationRef: string
      • maxSeconds: number
      • expiresAt: number
      • fundingMode: "bot_blocks"
      • blockSeconds: number
      • maxLiability: {
            blocks: number;
        }
        • blocks: number

    Returns MeetingBlockEntitlement

  • Idempotently prevents dispatch/re-dispatch, closes media and inference, and supplies final metered media duration. A never-dispatched run still needs a positive dispatch fence under the owner lock. A kill request, terminal state, elapsed lease or missing worker is not positive evidence. Return false fence flags while termination or final usage remains unknown. Handed a copy of the run as check is.

    Parameters

    Returns Promise<{
        connectedMs: number;
        fence: CallFence;
    }>

Properties

runs: IRunStore

The manager's run store, where each run's snapshot, reservation link and settlement intent are persisted.

The compound credit store a cash-funded run's hold is reserved and settled in.