/** * Federal Preemption Tracker - Constants & Configuration * * @author Jason Pellerin AI Solutionist */ // ═══════════════════════════════════════════════════════════════════════════ // API Endpoints // ═══════════════════════════════════════════════════════════════════════════ export const FEDERAL_REGISTER_API = 'https://www.federalregister.gov/api/v1'; export const COURTLISTENER_API = 'https://www.courtlistener.com/api/rest/v4'; export const REGULATIONS_GOV_API = 'https://api.regulations.gov/v4'; // Web scraping targets export const DOJ_PRESS_URL = 'https://www.justice.gov/news'; export const WHITEHOUSE_BRIEFINGS_URL = 'https://www.whitehouse.gov/briefing-room'; export const WHITEHOUSE_EO_URL = 'https://www.whitehouse.gov/presidential-actions/executive-orders'; // ═══════════════════════════════════════════════════════════════════════════ // Search Keywords for AI Preemption // ═══════════════════════════════════════════════════════════════════════════ export const DEFAULT_KEYWORDS = [ // Core AI regulation terms 'artificial intelligence', 'AI regulation', 'algorithmic', 'automated decision', 'machine learning', // Preemption-specific 'preemption', 'preempt', 'state regulation', 'federal preemption', 'supremacy clause', 'commerce clause', // Discrimination/bias terms 'algorithmic discrimination', 'disparate impact', 'automated bias', 'AI fairness', // Specific state laws 'Colorado AI Act', 'SB 24-205', 'SB 1047', 'frontier AI', // Federal policy 'Executive Order 14281', 'AI leadership', 'AI safety', 'AI governance', ]; export const EXECUTIVE_ORDER_KEYWORDS = [ // Broad AI terms - more likely to match 'artificial intelligence', 'technology', 'innovation', 'digital', 'data', 'automation', 'computing', // Regulatory terms 'regulation', 'deregulation', 'regulatory reform', 'state', 'federal', ]; export const COURT_CASE_KEYWORDS = [ // Broader preemption terms 'preemption', 'preempt', 'federal state', 'supremacy', // Technology terms 'algorithm', 'software', 'technology', 'automated', 'computer', // Discrimination terms 'discrimination', 'disparate impact', 'civil rights', // Regulatory terms 'regulation', 'compliance', ]; // ═══════════════════════════════════════════════════════════════════════════ // Risk Scoring Weights // ═══════════════════════════════════════════════════════════════════════════ export const RISK_WEIGHTS = { // Event type weights eventType: { executive_order: 0.9, court_opinion: 0.95, court_case: 0.7, doj_action: 0.85, doj_guidance: 0.6, federal_rule_final: 0.8, federal_rule_proposed: 0.5, agency_guidance: 0.4, congressional_action: 0.75, preemption_challenge: 0.95, enforcement_action: 0.9, }, // Federal authority weights authority: { executive_branch: 0.9, doj: 0.85, federal_courts: 0.95, congress: 0.9, ftc: 0.7, eeoc: 0.65, sec: 0.6, cfpb: 0.6, hhs: 0.55, commerce: 0.7, multiple: 0.8, }, // Preemption basis weights basis: { express_preemption: 1.0, supremacy_clause: 0.95, field_preemption: 0.85, conflict_preemption: 0.8, commerce_clause: 0.75, agency_exclusive: 0.7, federal_funding_threat: 0.65, }, // Timeline urgency weights timeline: { immediate: 1.0, near_term: 0.8, medium_term: 0.5, long_term: 0.3, speculative: 0.1, }, }; // ═══════════════════════════════════════════════════════════════════════════ // Court Codes // ═══════════════════════════════════════════════════════════════════════════ export const FEDERAL_COURTS = { scotus: { name: 'Supreme Court of the United States', weight: 1.0 }, cadc: { name: 'D.C. Circuit Court of Appeals', weight: 0.9 }, ca1: { name: 'First Circuit Court of Appeals', weight: 0.8 }, ca2: { name: 'Second Circuit Court of Appeals', weight: 0.8 }, ca3: { name: 'Third Circuit Court of Appeals', weight: 0.8 }, ca4: { name: 'Fourth Circuit Court of Appeals', weight: 0.8 }, ca5: { name: 'Fifth Circuit Court of Appeals', weight: 0.85 }, ca6: { name: 'Sixth Circuit Court of Appeals', weight: 0.8 }, ca7: { name: 'Seventh Circuit Court of Appeals', weight: 0.8 }, ca8: { name: 'Eighth Circuit Court of Appeals', weight: 0.8 }, ca9: { name: 'Ninth Circuit Court of Appeals', weight: 0.85 }, ca10: { name: 'Tenth Circuit Court of Appeals', weight: 0.8 }, ca11: { name: 'Eleventh Circuit Court of Appeals', weight: 0.8 }, cafc: { name: 'Federal Circuit Court of Appeals', weight: 0.75 }, }; // ═══════════════════════════════════════════════════════════════════════════ // Key Federal Agencies for AI Regulation // ═══════════════════════════════════════════════════════════════════════════ export const AI_REGULATORY_AGENCIES = [ { code: 'DOJ', name: 'Department of Justice', relevance: 'high' }, { code: 'FTC', name: 'Federal Trade Commission', relevance: 'high' }, { code: 'EEOC', name: 'Equal Employment Opportunity Commission', relevance: 'high' }, { code: 'CFPB', name: 'Consumer Financial Protection Bureau', relevance: 'medium' }, { code: 'SEC', name: 'Securities and Exchange Commission', relevance: 'medium' }, { code: 'HHS', name: 'Department of Health and Human Services', relevance: 'medium' }, { code: 'DOC', name: 'Department of Commerce', relevance: 'high' }, { code: 'NIST', name: 'National Institute of Standards and Technology', relevance: 'high' }, { code: 'OMB', name: 'Office of Management and Budget', relevance: 'medium' }, { code: 'OSTP', name: 'Office of Science and Technology Policy', relevance: 'high' }, ]; // ═══════════════════════════════════════════════════════════════════════════ // Known Preemption Precedents // ═══════════════════════════════════════════════════════════════════════════ export const PREEMPTION_PRECEDENTS = [ { case: 'Geier v. American Honda Motor Co.', citation: '529 U.S. 861 (2000)', holding: 'Federal safety standards can preempt state tort law through conflict preemption', relevance: 'Establishes that federal agency rules pursuing specific objectives can preempt state laws that would frustrate those objectives' }, { case: 'Wyeth v. Levine', citation: '555 U.S. 555 (2009)', holding: 'FDA approval does not automatically preempt state failure-to-warn claims', relevance: 'Shows that federal agency action does not always preempt - depends on congressional intent' }, { case: 'Arizona v. United States', citation: '567 U.S. 387 (2012)', holding: 'Federal government has broad preemptive authority in areas of national policy', relevance: 'Supports federal preemption where uniform national policy is important' }, { case: 'Murphy v. NCAA', citation: '584 U.S. ___ (2018)', holding: 'Congress cannot commandeer state legislatures to implement federal programs', relevance: 'Limits federal ability to force states to act, but does not prevent preemption of conflicting state laws' }, ];