:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(data-catalog): correct the judge rollout rates in the monitoring doc (#82869)
Thiago Salvatore853b34f8989e
diff --git a/products/data_catalog/docs/production-monitoring.md b/products/data_catalog/docs/production-monitoring.mdindex 26c4d2dcf29d..0b39b65329f7 100644--- a/products/data_catalog/docs/production-monitoring.md+++ b/products/data_catalog/docs/production-monitoring.md@@ -34,7 +34,8 @@ Every rubric follows the same shape, and new judges should too: **classify appli### Reading the rates honestly-- **Compliance rates are conditional.** A judged trace only produces a pass/fail when the premise applied; the rest are N/A. At 2% rollout (~1,750 judged traces/month) with roughly a tenth of sessions being metric questions, expect on the order of 175 applicable verdicts/month, which puts about ±7 points on the monthly compliance rate. Report monthly, not weekly. Raising rollout to 5% (~$175/month) tightens this if needed.+- **Compliance rates are conditional.** A judged trace only produces a pass/fail when the premise applied; the rest are N/A. Sizing scales off the observed ~1,750 judged traces/month per 2% of traffic: the bypass judge at 25% sees on the order of 22,000 judged traces/month, the other two about 8,700 each. With roughly a tenth of sessions being metric questions, that is ~2,200 applicable verdicts/month on the bypass judge and ~870 on the others, putting about ±2 and ±3 points on the monthly compliance rate. Read the 10% judges monthly, not weekly; the bypass judge holds up weekly (~±4 points) while the gate rollout lasts. Raising rollout tightens this at proportional cost.+- **Attribute a failure by MCP consumer and client, not by distinct id.** One distinct id covers several internal agent workloads at once (Signals scout sandboxes, Desktop, tasks), so a prefix match reads as one cohort when it is many. `$mcp_consumer` plus `$mcp_client_name` on the trace's generations separates them. Dashboard tile: "7 · Bypass fails by cohort (internal fleet vs rest)".- **The applicability share is itself a result.** It is the semantic answer to "what fraction of sessions are metric questions", and dividing the tile's keyword-matched share by it gives the keyword gate's measured miss rate.- **Calibration gates publication.** Hand-read a few dozen verdicts per judge (verdict plus reasoning) before putting any pass-rate on the dashboard, and check specifically whether Haiku's reasoning is deep enough on proposal appropriateness - that judge has the subtlest call and is the candidate for moving to `claude-sonnet-4-6`.- **There is no pre-enable test path for trace-target evaluations.** `evaluation_runs` rejects trace-target re-runs against a single generation, and the Hog test endpoint does not cover LLM judges, so validation happens by enabling at a small rollout and reading verdicts. Judge failures (parse errors, provider hiccups) do not auto-disable the evaluation the way Hog errors do.@@ -161,7 +162,7 @@ There is deliberately no alert on `concurrency_limited`. That condition already## Known limits-- The evaluation scheduler triggers only on `$ai_generation`, so sessions with no `execute-sql` call are never evaluated; they remain visible in the dashboard tiles via `$mcp_tool_call`.+- The evaluation scheduler triggers only on `$ai_generation`, so sessions with no `execute-sql` call are never evaluated; they remain visible in the dashboard tiles via `$mcp_tool_call`. A session that answers its question through a `query-*` tool instead of writing SQL is the common shape here, so the judged population is narrower than "catalog-enabled sessions".- A judged trace is one MCP transport session, which is a complete run for scheduled scouts but can be a single turn for interactive clients that open a session per request. `$ai_session_id` is never stamped on MCP events and no conversation id exists server-side, so a catalog check on an earlier turn is invisible to the judged trace; the stated-context line on each data-bearing query is the mitigation, and the residual undercount concentrates in interactive traffic.- `posthog.ai_events` retention (~30 days) bounds every SQL-text-based measure.- Judge input is capped at 150k characters with uniform sampling beyond it, so verdicts on very long sessions lean on the N/A-on-missing-evidence rule; the compliance rate has a known blind spot on the fat tail.