import { Seam } from '../../seam.js'
import type { Tx } from '../../db/index.js'

/**
 * Recompute document expiry state, and eligibility from it.
 *
 * NEVER ENTITLEMENT-GATED. #20 decision 3 found the leak: if this were gated,
 * a lapsed vendor would stay qualified forever on stale certificates, and a
 * retailer would award against an expired policy because a third party stopped
 * paying us.
 *
 * Expiry removes a vendor from FUTURE audience evaluations only. In-flight
 * participation is never silently revoked — a vendor does not lose a live bid
 * to a clock (#13 decision 4).
 */
export async function recomputeExpiry(_tx: Tx): Promise<void> {
  throw new Seam('#27', 'per-type expiry rules — the catalogue defines them')
}
