Awesome Reviewers

Ensure your code treats null, undefined, “omitted”, and “empty” as distinct meanings—especially across serialization boundaries—and encode those meanings explicitly.

Apply these rules:

Example (flag precedence + null normalization):

export function isFrontmatterDisabled(data: Record<string, unknown>): boolean {
  return data.disabled === true || (data.disabled === undefined && data.enabled === false)
}

// Normalize model-sent null to omission
function normalizeOptionalString(v: unknown): string | undefined {
  return typeof v === "string" ? v : undefined // treat null/undefined/other as omitted
}