// seed.tsx — initial conversation list + audit log

const SEED_CONVOS: JCConversation[] = [
  {
    id: 'c-croissants',
    title: 'Discussion about croissants',
    createdAt: Date.now() - 1000 * 60 * 60 * 22,
    status: 'awaiting_consent',
    messages: [
      { id: 'm1', role: 'user', content: 'Are croissants better with butter or margarine?', timestamp: Date.now() - 1000 * 60 * 60 * 22 },
      { id: 'm2', role: 'assistant', content: 'Bonjour. Pursuant to Directive (EO) 2023/0451 on Harmonized Croissant Curvature Standards, this question requires moderation by the Comité d\'éthique numérique. Your prompt has been forwarded.', timestamp: Date.now() - 1000 * 60 * 60 * 22 + 9000, refused: true, refusalReason: 'Directive (EO) 2023/0451' },
    ],
  },
  {
    id: 'c-tax',
    title: 'Tax question',
    createdAt: Date.now() - 1000 * 60 * 60 * 26,
    status: 'awaiting_assessment',
    messages: [
      { id: 'm1', role: 'user', content: 'How do I file my Form 27-bis for the conversational subsidy?', timestamp: Date.now() - 1000 * 60 * 60 * 26 },
    ],
  },
  {
    id: 'c-translate',
    title: 'Translate document',
    createdAt: Date.now() - 1000 * 60 * 60 * 50,
    status: 'pending_dpo',
    messages: [
      { id: 'm1', role: 'user', content: 'Can you translate this contract from German to French?', timestamp: Date.now() - 1000 * 60 * 60 * 50 },
      { id: 'm2', role: 'assistant', content: 'Acknowledged. The document has been classified as High Risk under AI Act Annex III. Pre-clearance from your Data Protection Officer is required before I may proceed.', timestamp: Date.now() - 1000 * 60 * 60 * 50 + 12000, refused: true, refusalReason: 'AI Act Annex III' },
    ],
  },
  {
    id: 'c-marketing',
    title: 'Marketing strategy',
    createdAt: Date.now() - 1000 * 60 * 60 * 74,
    status: 'under_consultation',
    messages: [
      { id: 'm1', role: 'user', content: 'Draft a marketing email for our new product launch.', timestamp: Date.now() - 1000 * 60 * 60 * 74 },
      { id: 'm2', role: 'assistant', content: 'Regrettably, marketing communications fall under the consultation procedure with the European Data Protection Supervisor (EDPS). Estimated wait: 6–10 working days. The four-eyes principle applies: kindly furnish co-signatures.', timestamp: Date.now() - 1000 * 60 * 60 * 74 + 8000, refused: true },
    ],
  },
  {
    id: 'c-pdf',
    title: 'Summarize PDF',
    createdAt: Date.now() - 1000 * 60 * 60 * 100,
    status: 'compliant',
    messages: [
      { id: 'm1', role: 'user', content: 'Summarize this annual report.', timestamp: Date.now() - 1000 * 60 * 60 * 100 },
      { id: 'm2', role: 'assistant', content: 'Bonjour. Subject to GDPR Art. 6(1)(a) and AI Act Art. 50 transparency obligations: the report covers FY2024 with revenue growth of 8.2%. Compliance review: completed. Carbon footprint of this response: 2.31μg CO₂eq.', timestamp: Date.now() - 1000 * 60 * 60 * 100 + 6000, citations: ['GDPR Art. 6(1)(a)', 'AI Act Art. 50'], carbonGrams: 2.31, inclusivityScore: 0.91 },
    ],
  },
];

const SEED_AUDIT_FLAGS = [
  'Use of singular pronoun (lacks European plural) — Art. 19(3)',
  'Insufficient enthusiasm for the internal market — Art. 14(1)',
  'Reference to a non-EO baked good — Art. 09(1)',
  'Failed Inclusivity Audit (score 0.79; threshold 0.82) — Art. 50(2)',
  'Carbon footprint exceeds quarterly allowance by 0.003μg — Art. 12(9)',
  'Suspected ironic intent toward harmonized standards — Art. 66(4)',
  'Inadequate pause before pressing Submit — Art. 31(7)',
  'Failure to greet in two official languages — Art. 47(2)',
  'Joy quotient below regulated threshold — Art. 99(9)',
  'Pending review by Comité d\'éthique numérique — Art. 27(1)',
  'Use of imperative mood without escalation pathway — Art. 07(2)',
  'Four-eyes principle not satisfied: spousal signature missing — Art. 04(4)',
];

(window as any).Seed = { SEED_CONVOS, SEED_AUDIT_FLAGS };
