Review Loops for Agents Using Real-Time Context
summary
A production review loop for an operations co‑pilot for live events that reads policies, traces tool calls and gates releases using PromptLayer and OpenTelemetry and runs on a cheap 400-mini model. Tests inject a JSON schema, tools like organizer handoff create and lookup attendee record and forbid revoke badge access. An eval of one unsafe badge case finds a trajectory failure: unnecessary attendee lookup called before handoff despite policy, so prompts are versioned, judges (LM-as-judge) and scorecards are used to iterate until the gate passes.
AI-written summary · about
chapters (13)
- 0:00Introduction to AI agent evaluations
- 1:11Operations co-pilot system overview
- 2:58Prompt structure and inputs
- 4:43Unsafe badge revocation case
- 8:33Policy injection and tool permissions
- 9:55Evaluation framework setup
- 12:44LM judge design principles
- 14:08First evaluation results and failures
- 15:36Compliance regression analysis
- 17:24Judge rubric and calibration
- 18:26Scorecards and production gating
- 19:12Iterating and validating changes
- 19:33Q&A on eval suites and scoring
