Vana SDK - v4.1.0
    Preparing search index...

    Function isDerivativeStatusSettled

    • Is this a state the reader can act on?

      Parameters

      • status: {
            derivedScope: string;
            status: "pending" | "failed" | "ready" | "stale";
            lastComputedAt: string | null;
            derivedVersion: number | null;
            derivedCollectedAt: string | null;
            errorCode:
                | NonNullable<
                    | "internal"
                    | "inference_unavailable"
                    | "source_missing"
                    | "grant_invalid",
                >
                | null;
            retryAfterSeconds: number
            | null;
        }
        • derivedScope: string
        • status: "pending" | "failed" | "ready" | "stale"
        • lastComputedAt: string | null

          When the last compute finished, or null if none ever has.

        • derivedVersion: number | null

          Local version of the derived record the last compute wrote.

        • derivedCollectedAt: string | null
        • errorCode:
              | NonNullable<
                  | "internal"
                  | "inference_unavailable"
                  | "source_missing"
                  | "grant_invalid",
              >
              | null

          The failure class; null unless status is failed.

        • retryAfterSeconds: number | null

          Seconds until the Personal Server's next automatic retry, or null when none is pending or running — the terminal signature. Poll on this cadence rather than guessing one.

      Returns boolean

      ready means the derived scope has an answer to read. A failed status is settled only when no retry is pending: with retryAfterSeconds set the Personal Server will compute again on its own, so the answer may still arrive. pending and stale are always in flight.