PASS  A01 schema migrates and re-runs idempotently                                                          mysql, crm_* tables: 11
PASS  A02 synthetic fixtures load                                                                           35 observations, 11 contacts
PASS  A03 conflicting sources retained side by side (con_1 email: Apollo vs Lead Carrot)                    {"apollo":"dana@sla.example.org","leadcarrot":"dreyes@sla.example.org"}
PASS  A04 one-click "correct" writes an independent accurate event                                          vev_b6c74be65544a64063e7
PASS  A05 repeat click (new key, same person, same verdict) is collapsed: no new event, not double counted  
PASS  A06 replayed idempotency key returns the original event and writes nothing                            
PASS  A07 same key reused for a different observation is rejected (409)                                     Idempotency key already used for a different write.
PASS  A08 viewer role cannot verify (403) and the denial is audited                                         
PASS  A09 "no answer" cannot be recorded as inaccurate (422)                                                No answer / no reply is inconclusive, not inaccurate.
PASS  A10 "no answer" recorded as inconclusive and excluded from accuracy                                   leadcarrot/phone accuracy = Unknown (n=0), inconclusive=1
PASS  A11 correction appends a new observation; the provider original is unchanged                          original "Treasurer" kept; correction obs_2ae820fabcd06f7f0def
PASS  A12 a correction must accompany "inaccurate" and must differ from the original                        
PASS  A13 another verifier cannot undo my verdict (403); admin can, as a new audit event                    
PASS  A14 withdrawn correction drops out of reports; undo of undo and double undo rejected                  
PASS  A15 re-correct after undo, then verifier undoes own verdict (allowed)                                 
PASS  A16 verifying a suppressed contact never unsuppresses it and never makes it usable                    
PASS  A17 "provider says verified" is a provider claim, not an independent check                            
PASS  A18 stale verdict overrides an earlier accurate and leaves accuracy                                   
PASS  A19 more independent checks for a realistic mix                                                       8 more verdicts
PASS  A20 usable unique leads: gates for duplicate, suppression, opt-out and provider-only support          independent: con_1, con_4, con_5, con_8, con_p1; claimed: con_7
PASS  A21 chart reconciliation: report totals equal an independent SQL recomputation                        21 provider/batch/field cells match; 37 active observations
PASS  A22 accuracy = accurate / conclusive with Wilson interval; repeat checks counted once                 apollo/email 4/4, 95% CI 0.51–1.00
PASS  A23 completeness and expected-missing fields                                                          
PASS  A24 cost per usable lead includes list, enrichment and human rework; unknown cost stays unknown       Lead Carrot: $212.50 + $0 + 16 min × $30/h = $220.50 per 1 usable lead
PASS  A25 pipeline: MRR, churn, renewals, failed payments, overdue and missing next actions                 
PASS  A26 production mode excludes every synthetic row                                                      contacts 2, orgs 2, MRR $5,500
PASS  A27 22-day scenario math                                                                              
PASS  A28 append-only: no UPDATE or DELETE path exists for observations or verification events              
PASS  A29 n8n stays off by default; HMAC signature is deterministic                                         
PASS  A30 Airtable Leads adapter maps field IDs and drops Test Record rows in production                    
PASS  A31 CRM-001 mapping: Airtable entity rows map to contract columns via config only                     
PASS  B01 status before sign-in: configured, not signed in; data returns 401                                
PASS  B02 GET login → 405; wrong password → 401                                                         
PASS  B03 session cookie is HttpOnly, SameSite=Strict, scoped to /command/crm/                              
PASS  B04 viewer can read every view but cannot write (403)                                                 Your role can view but not verify.
PASS  B05 POST without the CSRF header is refused (403)                                                     Session check failed. Reload the page.
PASS  B06 verifier write over HTTP; retry with same key is a replay (no duplicate)                          
PASS  B07 contact detail shows provenance, conflict flag and the event trail                                
PASS  B08 no-answer as inaccurate refused over HTTP with a clear message                                    No answer / no reply is inconclusive, not inaccurate.
PASS  B09 staging toggle: test=0 hides synthetic rows                                                       
PASS  B10 brute force: 10 failed logins for a username → 429                                              
PASS  B11 Inbound leads tab reports "not configured" instead of failing when no Airtable token              
PASS  B12 logout ends the session                                                                           
PASS  B13 production mode: synthetic excluded even if the client asks for test=1                            

44 tests, 44 passed, 0 failed  (PHP 8.3.6, 2026-11-30 08:24 UTC)
