// CRIMINAL BRADY PLATFORM — Extended Data Layer
(function () {
  const d = window.CRIMINAL_DATA;

  d.bradyExt = {
    // Richer Brady/Giglio/Jencks request registry
    requests: [
      { id: 'BR-001', defendant: 'Marcus Harrell Jr.', defendantId: 'D-2026-0142', doctrine: 'Brady', category: 'Exculpatory', subtype: 'FBI 302s', description: 'All FBI 302s from co-conspirator interviews identifying third parties as primary actors', filed: '2026-01-18', deadline: '2026-04-30', status: 'Partial', govtPosition: 'Produced 8 of 14 — withholding 6 as work product', compelFiled: true, compelId: 'MOT-001', inCamera: false, materialityRisk: 'High', ausa: 'AUSA Thompson', notes: 'Kyles v. Whitley — materiality threshold almost certainly met. Missing 302s may identify CW-2 prior false statements.' },
      { id: 'BR-002', defendant: 'Marcus Harrell Jr.', defendantId: 'D-2026-0142', doctrine: 'Giglio', category: 'Impeachment', subtype: 'Cooperation agreements', description: 'Cooperation agreements for all CWs; plea benefits; prior inconsistent statements of CW-2 and CW-3', filed: '2026-01-18', deadline: '2026-04-30', status: 'Produced', govtPosition: '3 cooperation agreements produced; full Jencks at trial-30', compelFiled: false, compelId: null, inCamera: false, materialityRisk: 'Medium', ausa: 'AUSA Thompson', notes: 'Giglio package complete. Jencks statement for CW-2 expected on rolling trial-30 schedule.' },
      { id: 'BR-003', defendant: 'Chen Wei-Long', defendantId: 'D-2026-0140', doctrine: 'Brady', category: 'Exculpatory', subtype: 'DOJ communications', description: 'All communications between Sterling compliance officers and DOJ pre-charge re voluntary disclosure', filed: '2026-03-10', deadline: '2026-04-24', status: 'In Camera', govtPosition: 'Contends not material; agreed to in camera review before Judge Bates', compelFiled: true, compelId: 'MOT-001', inCamera: true, inCameraDate: '2026-04-24', materialityRisk: 'Critical', ausa: 'AUSA Walters', notes: 'Pre-charge voluntary disclosure communications likely exculpatory as to intent. In-camera ordered — ruling critical.' },
      { id: 'BR-004', defendant: 'Chen Wei-Long', defendantId: 'D-2026-0140', doctrine: 'Giglio', category: 'Impeachment', subtype: 'CW-1 package', description: 'FCPA cooperator (CW-1/Ramirez): full compensation, cooperation agreement, deportation leverage memos', filed: '2026-03-15', deadline: '2026-04-24', status: 'Produced', govtPosition: 'Full production including deportation-consequences memo signed by AUSA Walters', compelFiled: false, compelId: null, inCamera: false, materialityRisk: 'High', ausa: 'AUSA Walters', notes: 'Deportation memo is powerful Giglio — CW-1 testimony at risk if jury hears visa leverage.' },
      { id: 'BR-005', defendant: 'Olivia Barnwell', defendantId: 'D-2026-0137', doctrine: 'Brady', category: 'Exculpatory', subtype: 'SEC parallel investigation', description: 'SEC parallel-investigation materials showing 2022 counter-narrative undermining materiality element', filed: '2025-11-20', deadline: '2026-05-01', status: 'Produced', govtPosition: 'Voluntary production from SEC files; no privilege asserted', compelFiled: false, compelId: null, inCamera: false, materialityRisk: 'Medium', ausa: 'AUSA Morales', notes: 'Post-verdict Rule 33 motion pending — newly discovered SEC materials form independent basis.' },
      { id: 'BR-006', defendant: 'Dr. Priya Venkataraman', defendantId: 'D-2026-0141', doctrine: 'Brady', category: 'Exculpatory', subtype: 'HHS-OIG audit letters', description: 'HHS-OIG prior audit letters (2020-2022) finding no material non-compliance in same billing codes at issue', filed: '2026-01-28', deadline: '2026-04-28', status: 'Partial', govtPosition: '2 of 5 letters produced; 3 withheld as deliberative-process privileged', compelFiled: true, compelId: 'MOT-002', inCamera: true, inCameraDate: '2026-04-28', materialityRisk: 'High', ausa: 'AUSA Reyes', notes: '3 withheld letters are central — if HHS found same codes compliant in 2021, the 2023 prosecution intent argument collapses.' },
      { id: 'BR-007', defendant: 'Deshawn Miller', defendantId: 'D-2026-0136', doctrine: 'Brady', category: 'Exculpatory', subtype: 'Officer misconduct', description: 'Franks material — complete disciplinary file and internal affairs history of affiant officer T. Reeves', filed: '2026-02-10', deadline: '2026-04-30', status: 'Pending', govtPosition: 'DOJ internal investigation of officer ongoing; production paused', compelFiled: true, compelId: 'MOT-003', inCamera: false, materialityRisk: 'Critical', ausa: 'AUSA Gibson', notes: 'Franks hearing granted (MOT-007). Officer IA records are the heart of the Franks motion — suppression of 500g cocaine and firearm at stake.' },
      { id: 'BR-008', defendant: 'Deshawn Miller', defendantId: 'D-2026-0136', doctrine: 'Giglio', category: 'Impeachment', subtype: 'CI-2 background', description: 'CI-2 (Marcus Hudson): all prior false-report allegations, IA records, fee records, and case history', filed: '2026-02-10', deadline: '2026-04-28', status: 'Produced', govtPosition: 'Full production; 2018 IA letter and prior-case testimony disclosed', compelFiled: false, compelId: null, inCamera: false, materialityRisk: 'High', ausa: 'AUSA Gibson', notes: '3 prior false-report allegations produced. CI-2 is the lynchpin witness — impeachment package is devastating if executed.' },
      { id: 'BR-009', defendant: 'Samuel Okonkwo', defendantId: 'D-2026-0139', doctrine: 'Giglio', category: 'Impeachment', subtype: 'Expert methodology', description: 'All materials underlying government forensic-accounting expert (Dr. Howard Chen) — Daubert disclosures + prior testimony', filed: '2026-03-18', deadline: '2026-05-01', status: 'Produced', govtPosition: 'Full Rule 16 expert disclosure + prior transcripts; no Brady issue', compelFiled: false, compelId: null, inCamera: false, materialityRisk: 'Low', ausa: 'AUSA Flynn', notes: 'Daubert partially granted on ultimate-issue. Expert now limited in scope — favorable ruling.' },
      { id: 'BR-010', defendant: 'Olivia Barnwell', defendantId: 'D-2026-0137', doctrine: 'Brady', category: 'Exculpatory', subtype: 'Post-verdict (Rule 33)', description: 'Newly discovered SEC investigation files — CW-2 prior statements to SEC inconsistent with trial testimony', filed: '2026-03-30', deadline: '2026-04-28', status: 'Pending', govtPosition: 'SEC materials under interagency review; no position taken', compelFiled: false, compelId: null, inCamera: false, materialityRisk: 'Critical', ausa: 'AUSA Morales', notes: 'Rule 33 motion basis — if produced, CW-2 impeachment at trial is reversible Brady error.' },
    ],

    // Jencks § 3500 tracker — one entry per testifying witness
    jencks: [
      { witnessId: 'WIT-001', name: 'CW-1 (Javier Ramirez)', matter: 'Chen Wei-Long', defendantId: 'D-2026-0140', trialDate: '2026-07-14', jencksDeadline: '2026-07-07', status: 'Scheduled', materialTypes: ['Grand jury transcript (2025-06)', '3 proffer-session notes', 'Cooperation agreement', 'Deportation memo'], pagesEst: 420, pagesProduced: 0, notes: 'Grand jury transcript expected under § 3500. Proffer notes contested — government may seek in camera review.' },
      { witnessId: 'WIT-002', name: 'CW-2 (Kyle Jensen)', matter: 'Marcus Harrell Jr.', defendantId: 'D-2026-0142', trialDate: '2026-06-17', jencksDeadline: '2026-06-10', status: 'Partial', materialTypes: ['SEC deposition (2024)', 'Grand jury transcript', 'Immunity letter', 'Proffer notes (4 sessions)'], pagesEst: 680, pagesProduced: 320, notes: 'SEC deposition (320pp) produced. GJ transcript and proffer notes outstanding — expected at 30-day mark.' },
      { witnessId: 'WIT-003', name: 'CW-3 (John Doe 1)', matter: 'Marcus Harrell Jr.', defendantId: 'D-2026-0142', trialDate: '2026-06-17', jencksDeadline: '2026-06-10', status: 'Pending', materialTypes: ['Proffer session notes (6 sessions)', 'Cooperation agreement', '5K1.1 letter'], pagesEst: 280, pagesProduced: 0, notes: 'All 6 proffer sessions must be produced. Government rolling production expected T-30.' },
      { witnessId: 'WIT-004', name: 'CI-2 (Marcus Hudson)', matter: 'Deshawn Miller', defendantId: 'D-2026-0136', trialDate: null, jencksDeadline: null, status: 'Produced', materialTypes: ['Fee records (14 months)', 'Prior case testimony (2)', 'IA letter (2018)', 'Handler reports'], pagesEst: 180, pagesProduced: 180, notes: 'Full Giglio + Jencks package produced. Franks hearing (2026-05-08) may render trial moot.' },
      { witnessId: 'WIT-005', name: 'SA Angela Portillo', matter: 'Marcus Harrell Jr.', defendantId: 'D-2026-0142', trialDate: '2026-06-17', jencksDeadline: '2026-06-10', status: 'Pending', materialTypes: ['Case agent notes (48 exhibits)', 'Wiretap affidavits', 'Interview memoranda'], pagesEst: 840, pagesProduced: 0, notes: 'Largest Jencks tranche — 48 exhibits + affidavits. Will request early production at T-45.' },
      { witnessId: 'WIT-010', name: 'Agent T. Reeves', matter: 'Deshawn Miller', defendantId: 'D-2026-0136', trialDate: null, jencksDeadline: null, status: 'Produced', materialTypes: ['Search-warrant affidavit', 'IA disciplinary records', 'Prior testimony (2)'], pagesEst: 120, pagesProduced: 120, notes: 'Franks motion basis — affidavit material misstatements identified in produced records.' },
    ],

    // In-camera docket
    inCamera: [
      { id: 'IC-001', bradyId: 'BR-003', defendant: 'Chen Wei-Long', judge: 'Judge Bates', court: 'D.D.C.', scheduledDate: '2026-04-24', material: 'Pre-charge DOJ ↔ Sterling compliance communications', govtClaim: 'Work product / law-enforcement privilege', ourArgument: 'Functional waiver — Sterling counsel shared with DOJ; Brady overrides privilege post-Strickler', status: 'Scheduled', outcome: null },
      { id: 'IC-002', bradyId: 'BR-006', defendant: 'Dr. Priya Venkataraman', judge: 'Judge Pappert', court: 'E.D. Pa.', scheduledDate: '2026-04-28', material: 'HHS-OIG audit letters 3 of 5 (2020-2022)', govtClaim: 'Deliberative-process privilege', ourArgument: 'Agency fact-finding not deliberative; Brady requires production; privilege yields to constitutional obligation', status: 'Scheduled', outcome: null },
    ],

    // Compel motions detail
    compelMotions: [
      { id: 'CM-001', bradyId: 'BR-001', defendant: 'Marcus Harrell Jr.', filed: '2026-02-24', argued: '2026-04-10', judge: 'Judge Hellerstein', status: 'Under Submission', material: '6 withheld FBI 302s (co-conspirator interviews)', ourArg: 'Kyles v. Whitley — material; government burden to show non-materiality', govtArg: 'Work product; Jencks delayed production permissible', ruling: null, urgency: 'High', notes: 'Under submission since April 10. Trial set June 17 — ruling needed by May 15.' },
      { id: 'CM-002', bradyId: 'BR-006', defendant: 'Dr. Priya Venkataraman', filed: '2026-02-28', argued: '2026-04-28', judge: 'Judge Pappert', status: 'In Camera', material: '3 withheld HHS-OIG audit letters', ourArg: 'Privilege yields to Brady; United States v. Triumph Capital — fact-finding not deliberative', govtArg: 'Deliberative-process privilege; not material to intent element', ruling: null, urgency: 'High', notes: 'Argued simultaneously with in-camera review on April 28.' },
      { id: 'CM-003', bradyId: 'BR-007', defendant: 'Deshawn Miller', filed: '2026-03-02', argued: null, judge: 'Judge Matsumoto', status: 'Pending Argument', material: 'Officer Reeves complete IA and disciplinary file', ourArg: 'Giglio / Franks — misconduct history directly material to suppression motion and trial', govtArg: 'IA investigation not concluded; premature; law-enforcement privilege', ruling: null, urgency: 'Critical', notes: 'Franks hearing set May 8 — officer IA records must be in hand before then.' },
      { id: 'CM-004', bradyId: 'BR-010', defendant: 'Olivia Barnwell', filed: '2026-04-02', argued: '2026-04-28', judge: 'Judge Engelmayer', status: 'Under Submission', material: 'SEC investigation files — CW-2 prior inconsistent statements', ourArg: 'Rule 33 — newly discovered evidence; Brady violation at trial; government knew or should have known', govtArg: 'SEC files not in government control; inter-agency coordination not imputable', ruling: null, urgency: 'Critical', notes: 'Sentencing June 4 — if Rule 33 motion granted, sentencing adjourned. Ruling critical.' },
    ],
  };
})();
