Google Cloud engineers propose stratified sampling to monitor agent safety
Google Cloud's Forward Deployed Engineering (FDE) team, based on experience launching consumer-facing agents with customers, published a guide to agent brand safety practices centered on multi-level stratified sampling. The method stratifies production traffic by automated risk signals: Tier 1, containing Model Armor flags and jailbreak attempts, undergoes full manual review; Tier 2, with sensitive flags from small classifiers or low sentiment scores, is sampled at 50%; Tier 3, with no triggers, is sampled at 1–5%. The guide also maps user queries into an embedding vector space, uses K-Means clustering to establish a baseline, routes interactions whose cosine distance and local outlier factor exceed 3σ directly to Tier 1, and provides a formula for estimating review volume based on a target failure rate, e.g., detecting a 0.1% failure rate at 95% confidence requires about 3000 items.