td-5886ad

MKB Phase 3 morning spot-check: first widened cron run

in_review task P1 Parent: td-35a62e
Created Apr 17, 2026 8:40 PM Updated Apr 18, 2026 2:21 PM
Description
Phase 3 shipped 2026-04-17 evening (commits e79878c + 083f450 on merchant-knowledge master). Tonight's rc-mkb-intercom-sync cron is the first production use of the widened fetch (email source.type + KAM tags) + redaction gate + non-RC identity picker. Spot check steps: 1. Cron status: '~/Claude/cron/status.sh --today | grep mkb' — verify rc-mkb-intercom-sync ran to completion, exit 0. 2. Log: 'tail -200 ~/Claude/cron/logs/$(date +%Y-%m-%d)/rc-mkb-intercom-sync.log' — look for 'WARN', 'ERROR', 'aborting', unexpected tag-cache refreshes. 3. Volume delta: 'cd ~/Claude/merchant-knowledge && git log --oneline --since=yesterday pipeline/ merchants/' — how many new conversations landed; expected 1.5-2x prior daily count given widened scope. 4. Migration audit: 'tail -50 ~/Claude/merchant-knowledge/merchants/migration-audit.jsonl | jq -r ".rule"|sort|uniq -c' — distribution of resolver rules in tonight's batch. Flag if 'rc-staff-only' spike (>15%) or new 'multi-merchant-flag' entries. 5. Spot-check 3 new email profiles: 'git diff HEAD~1 merchants/profiles/ | head -200' — verify merchant_contact is NOT a referralcandy.com email, merchant_name is not 'Cris' or 'Jaime', transcript labels RC authors as '(RC)' not 'Merchant'. 6. Platform-sender rejections: 'grep -c "platform notification" ~/Claude/cron/logs/$(date +%Y-%m-%d)/rc-mkb-intercom-sync.log' — sanity-check the gate fired. 7. Thread 3 style (untagged KAM emails): expected 0 in profiles, filed as td-297c86 follow-up. Rollback lever if anything is wrong: 'git revert 083f450 e79878c' on merchant-knowledge. Tag cache self-heals on next cron. Phase 2 resolver stays intact. Confirm clean → close this td and td-40d390. Flag issues to Zach if anything looks off.
Handoff
Done
Session Log (3 entries)
Apr 18, 1:39 PM
lg-285d508d ses_e64305
progress
Started work
Apr 18, 2:21 PM
lg-029df23c ses_e64305
progress
Hotfix shipped (0172570). Three-prong fix: automated-sender local-part gate + SaaS-platform sender rejection + is_saas_host suffix-match. 101 tests pass. Codex-gated — 2 P1s (SaaS subdomain gap + unused import) addressed before commit. Pre-existing 'shopify' profile with no-reply+shairah contacts is residual data; cleanup during Phase 4 migration.
Apr 18, 2:21 PM
lg-b2d9dcd6 ses_e64305
progress
Submitted for review
Git State
Started 7c24b78 (master) Current 7c24b78 (master)
Sessions Involved