import snapshot from '../../_docs/00_problem/input_data/enum_spec_snapshot.json'

// Re-export the committed enum spec snapshot so test files can import it
// without crossing the docs path. AC-04 / AC-29 contract checks resolve
// against this object — never against `src/types/index.ts` directly.
export const enumSpec = snapshot as EnumSpecSnapshot

export interface EnumSpecSnapshot {
  $schema_note: string
  source_of_truth: Array<{ file: string; note: string; extracted_at?: string }>
  ui_drift_summary: Record<string, unknown>
  enums: Record<
    string,
    {
      source: string
      values: Record<string, number>
      verification_pending: boolean
      notes?: string
      case_note?: string
      stale_example_note?: string
      verification_note?: string
    }
  >
  downstream_actions: Record<string, unknown>
}

export function loadEnumSnapshot(): EnumSpecSnapshot {
  return enumSpec
}
