System
Lead Ledger and the Clay QA gate
Before re-emailing old leads, 43 automatic checks must pass. It turned a guess of 108,289 "ready" leads into the true 33,693.
43fail-closed checks
Leads "ready" to email again
Longer is better.

Results
| What | Number | Tag |
|---|---|---|
| Ledger entries | 945 across 4 clients | VERIFIED |
| Fail-closed checks | 43 | VERIFIED |
| "Ready" count after review | 108,289 to 33,693 | ESTIMATE |
| Distinct people vs lead-contacts | 441,189 vs 941,645 | VERIFIED |
| Clay QA time per table | about 20 seconds | VERIFIED |
| Clay QA check codes | 62 | VERIFIED |
What I built
- Ledger: one JSONL file per client. Entries: 670, 107, 101 and 67 across four clients. Weekly snapshot, dashboard, recycle helper. Python standard library only.
- 43 read-only checks in six groups: freshness, lead safety, campaign shape, copy, launch state, limits. Two phases, prepare and launch. Any fail blocks the launch. A check that crashes counts as fail at launch.
- Post-launch read-back compares expected counts with what the sending tool reports. A scan finds campaigns created by hand and never logged.
- Clay QA: reads a table by URL or CSV. Never writes, never spends credits. Finds columns by alias. 62 check codes in 5 groups: identity, generated copy, cross-checks, country gate, prompt inputs including the 8,000-character cell limit.
- Similarity rule: a row fails if 30% or more of its words match another row. A column fails if more than 10% of rows fail.
What did not work
- The first "ready" count was about 3 times too high: it counted leads never sent and missed that cooldown applies per company.
- The ledger starts on 06.11. How often a guard stopped a bad action was never logged.
- The QA gate is read-only. A change on the Clay side could break it.
- Time saved was never measured. Only the 20-second proxy exists.