S
Study LibraryPractice Lab

Lab 03 - Evaluation and Security Regression Gate

labSection: Labs & PracticeUpdated 2026-11-15

Goal: demonstrate promotion of an agent change only after measurable quality, safety and operational evidence.

Deliverables

  • Dataset: representative normal requests, ambiguous inputs, tool failure, prompt injection, long-context history and unauthorized write attempt.
  • Rule-based validators for required JSON fields and business invariants; LLM/human rubric for nuanced responses.
  • Golden trace per test with prompt version, model ID, tool calls, stop reason, cost and final disposition.
  • Change one prompt/tool/model variable; compare paired results with baseline and decide pass/fail thresholds.
  • Document rollback criteria and exercise at least one induced security regression.

Acceptance tests

  • ☐ Invalid values can fail even if schema is valid.
  • ☐ Security test enforces no write under prompt injection.
  • ☐ Reviewer can inspect a failing trace and identify first failing boundary.
  • ☐ CI blocks promotion when a critical test regresses.

Related: Evaluation Criteria and Grader Design · Tracing and Failure Isolation · Regression Testing and Release Gates · Prompt Injection and Data Trust Boundaries.