How sanjayrk2007/ai_exposure_radar works
AI Exposure Radar is a private vendor-evidence analysis project. The user workflow begins with read-only workbook profile inspection, then bounded webpage collection and local document capture; M4 can extract terminology-matched spans, assess specificity, validate exact quotes, and produce a coverage-aware vendor verdict. A separate training/evaluation branch compares specificity models using manually reviewed labels, while synthetic-data experiments remain explicitly separate from real evidence. The excerpts show integration-runner calls and module references, but not every downstream workflow; uncertain connections are omitted.
Main entry points: specificity.py Rule specificity · run_synthetic_experiment.py Synthetic experiment · collector.py Page collection · train_specificity.py Specificity training
Components 17
Inputs and collection
- Profile inspection
radar/input_inspection.py - Page collection
radar/collector.py
Evidence analysis
- Candidate extraction
m4_intel/candidates.py - Rule specificity
m4_intel/specificity.py - Quote verification
m4_intel/verify.py - Integration runner
m4_intel/run_pipeline.py - Vendor verdict
m4_intel/verdict.py - Review queues
m4_intel/build_real_label_review_queue.py - Candidate expansion
m4_intel/expand_candidates.py
Model evaluation
- Specificity training
m4_intel/train_specificity.py - Scoring helper
m4_intel/scoring.py - Synthetic data
m4_intel/generate_synthetic_data.py - Synthetic experiment
m4_intel/run_synthetic_experiment.py
Shared contracts
- Evidence contracts
radar/contracts/models.py
Other components
- Analyst
- Vendor workbook
- Local evidence
Connections 17
- Analyst → Vendor workbook: provides
README.md - Vendor workbook → Profile inspection: reads profiles
README.md - Analyst → Page collection: starts collection
radar/collector.py - Page collection → Profile inspection: reads profiles
radar/collector.py - Page collection → Local evidence: stores pages
radar/collector.py - Candidate expansion → Candidate extraction: uses candidates
m4_intel/expand_candidates.py - Candidate extraction → Rule specificity: supports scoring
m4_intel/specificity.py - Rule specificity → Evidence contracts: uses contracts
m4_intel/specificity.py - Integration runner → Quote verification: verifies quotes
m4_intel/run_pipeline.py - Integration runner → Rule specificity: scores candidates
m4_intel/run_pipeline.py - Quote verification → Evidence contracts: creates signals
m4_intel/verify.py - Vendor verdict → Evidence contracts: returns verdict
m4_intel/verdict.py - Specificity training → Rule specificity: evaluates rules
m4_intel/train_specificity.py - Scoring helper → Specificity training: loads model
m4_intel/scoring.py - Synthetic experiment → Synthetic data: generates examples
m4_intel/run_synthetic_experiment.py - Synthetic experiment → Specificity training: reuses training
m4_intel/run_synthetic_experiment.py - Synthetic experiment → Rule specificity: compares rules
m4_intel/run_synthetic_experiment.py