Guide · Evaluation · Updated Nov 2026

Context Hygiene & Evaluation Checklists

Prompt quality rarely regresses all at once—it drifts as edge-case instructions pile up. A small, version-controlled evaluation set catches regressions in minutes.

Prefix Stability for Prompt Caching

Order your prompt from least-frequently changing to most-frequently changing: static system rules first, tool schemas second, repository/reference summaries third, and turn-by-turn user messages last. That layout maximizes cache hit rates and cuts time-to-first-token.

Minimal Golden Eval Structure

{
  "id": "sql-injection-check-01",
  "input": "SELECT * FROM users WHERE email = '" + user_input + "'",
  "must_mention": ["parameterized query", "SQL injection"],
  "max_latency_ms": 4000
}

Start with 20 real failure cases from your own logs rather than synthetic benchmarks. Re-run the suite whenever you edit system instructions or switch model snapshots.

Browse the Reusable Prompt Library →