Anchorage API reference
    Preparing search index...

    The cron-only cross-tenant view (SLA sweep). Deliberately NOT an ApprovalStore (no create/get) and NOT brandable ([TENANT_BOUND]?: never), so it is unassignable wherever a TenantBoundApprovalStore is required — "system stores never reach a request handler" is a compile error, not a convention.

    interface SystemApprovalStore {
        "[TENANT_BOUND]"?: undefined;
        list(filter?: ApprovalListFilter): Promise<ApprovalRecord[]>;
        purgeExpired(cutoffIso: string, limit: number): Promise<number>;
        transition(
            id: string,
            from: readonly ApprovalStatus[],
            patch: ApprovalPatch,
        ): Promise<ApprovalRecord | null>;
    }
    Index

    Properties

    "[TENANT_BOUND]"?: undefined

    Methods

    • Deletes TERMINAL (approved/rejected) records whose terminal timestamp — decidedAt, or updatedAt when a decided record was persisted without one — is strictly before cutoffIso, bounded to at most limit deletions. The retention-purge primitive behind purgeExpiredApprovals (retention.ts) — cron-only by type, exactly like list/transition: a tenant-bound store never gains this method.

      Parameters

      • cutoffIso: string
      • limit: number

      Returns Promise<number>