Adversarial review NIT: the #[cfg(test)] InMemoryTriggerRepo's email_inbound_target `.expect()`s app_id, which would panic if a future unit test fetched a group-owned email TEMPLATE. Filter `app_id.is_some()` like the production query's `AND t.app_id IS NOT NULL` so the mock stays faithful. Test-only; no production change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>