import type { Character } from '@/lib/schemas/character';

/**
 * The result of an enforcement action. Pure functions return a `Partial<Character>`
 * patch the caller persists (mirroring `applyRest`), plus log lines for the combat
 * feed — or a failure with a human-readable reason the UI surfaces.
 */
export type EnforceResult =
  | { ok: true; patch: Partial<Character>; log: string[] }
  | { ok: false; reason: string };
