Session Objective

Focused implementation-reviewer pass on the current Salesforce and Litify Agentforce work, with no file edits.

What Was Reviewed

Live Checks

Findings

  1. High: The insurance action only queries the latest 700 candidate insurance rows before applying carrier, adjuster, status, coverage, missing-coverage, and matter-status filters in Apex. This can return false zero-result answers on real questions because the org has far more matching candidate rows than the pre-filter cap.
  2. High: Org-wide insurance search is exposed through the LWC checkbox and generated Agentforce instructions without a separate leadership/custom-permission gate.
  3. Medium: The Apex class uses with sharing, but it does not enforce object-level or field-level read security before returning insurance, claim, policy, limits, adjuster, and matter context.
  4. Medium: The tests validate deployment and helpers, but they do not create representative insurance rows or assert filter correctness through the real query path.

Handoff