SQLite State Machine (tools/prospect_pipeline.py)¶
IMPLEMENTED
SQLite (data/prospects/prospect_pipeline.sqlite3) is the authoritative store (prospects, runs, search_log, jobs, ui_notes).
- Deduplication Key: SHA-256 of normalized website domain (or normalized
name|countrywhen no domain exists). - Lifecycle States:
candidate->review->verified/rejected/blocked. - Master Merge:
python tools/merge_prospects_master.py --inputs file1.csv file2.csvdeduplicates multiple CSV snapshots into unified CSV +.xlsx.