Building an Evaluation-First Development Strategy for AI Service Agents

monday · Tech · 2026 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Enterprise service-management AI agents

monday needed to build AI service agents whose quality could be developed, deployed, and monitored with evaluation as a Day 0 engineering requirement rather than a final manual check.

Constraints:

Architecture

monday built a LangGraph-based ReAct service agent with an evaluation-first workflow. Offline evaluations run as code through LangSmith/Vitest-style CI experiments, online multi-turn evaluators monitor production traces, and evaluation deployment is handled through version-controlled GitOps-style commands.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  developer[Developer] --> git-repository[Git Repository]
  git-repository --> ci-evaluation-runner[CI Evaluation Runner]
  ci-evaluation-runner --> langgraph-react-agent[LangGraph ReAct Agent]
  ci-evaluation-runner --> langsmith-experiments[LangSmith Experiments]
  langgraph-react-agent --> production-traces[Production Traces]
  production-traces --> multi-turn-evaluator[Multi-Turn Evaluator]
  git-repository --> evaluation-deployment[Evaluation Deployment]
  langgraph-react-agent --> knowledge-base[Knowledge Base]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Developer Builds service agents and evaluation logic. Git Repository
Git Repository Source of truth for agent and evaluation code. CI Evaluation Runner, Evaluation Deployment
LangGraph ReAct Agent Role-based service-management agent. Production Traces, Knowledge Base
Knowledge Base Grounding content used by the service agent. LangGraph ReAct Agent
CI Evaluation Runner Runs offline evaluations and logs experiments. LangSmith Experiments, LangGraph ReAct Agent
LangSmith Experiments Stores distinct CI evaluation experiments and results. CI Evaluation Runner
Production Traces Runtime traces for online quality monitoring. Multi-Turn Evaluator
Multi-Turn Evaluator LLM-as-judge quality monitor over production conversations. Production Traces
Evaluation Deployment GitOps-style deployment path for evaluation code. Git Repository

Data flow

Developers author agent and evaluation logic in code. CI runs offline evaluation experiments, production traces flow into online multi-turn evaluators, and version-controlled evaluation deployments keep repository code as the source of truth.

“Evals as code: Evaluation logic managed as version-controlled production code with GitOps-style CI/CD deployment.”article, stated
“Agent observability: Real-time, end-to-end quality monitoring on production traces, using Multi-Turn Evaluators.”article, stated

Why this architecture

monday moved evaluation to Day 0 because agent reliability could not be managed through last-mile checks. Treating evals as code gave fast local/CI feedback, production trace monitoring, and deployable evaluation logic with the repository as source of truth.

“Many teams treat evaluation as a last-mile check, but we made it a Day 0 requirement.”article, stated
“To close the loop, we built a custom CLI command, yarn eval deploy, that runs in our CI/CD pipeline. This ensures our repository remains the absolute Source of Truth for our evaluation infrastructure.”article, stated

Models used: LangGraph ReAct agent · Multi-Turn Evaluator · LLM-as-a-judge

Scale

Alternatives considered (roads not taken)

Treat evaluation as a final QA check.

Rejected because: monday made evaluation a Day 0 requirement for agent development.

“Many teams treat evaluation as a last-mile check, but we made it a Day 0 requirement.”article, stated

Run offline evaluations serially.

Rejected because: Serial evaluation was too slow for tight feedback loops.

“#### The Hard Lesson: Don’t Compromise on DevEx At first, our offline evaluations ran serially. The standard development loop—eval (fail) → fix → re-eval (pass)—became a major bottleneck.”article, stated

Manage evals outside the production codebase.

Rejected because: The team wanted version-controlled eval logic and GitOps deployment.

“* Agent observability: Real-time, end-to-end quality monitoring on production traces, using Multi-Turn Evaluators. * Evals as code: Evaluation logic managed as version-controlled production code with GitOps-style CI/CD deployment.”article, stated

Patterns

eval-driven-development (quality)

Evaluation is required from Day 0 and runs in CI and production monitoring.

“made it a Day 0 requirement.”article, stated

llm-as-judge (evaluation)

Multi-turn evaluators judge production traces.

“Multi-Turn Evaluator”article, stated

observability-tracing (operations)

Production traces are monitored end-to-end for agent quality.

“Real-time, end-to-end quality monitoring on production traces”article, stated

prompt-versioning (release)

Evaluation logic is versioned and deployed like production code.

“Evaluation logic managed as version-controlled production code”article, stated

Tradeoffs

Evaluation timing

Chose Day 0 evaluation over Last-mile evaluation.

Rationale: Agent quality had to shape development from the beginning.

“Many teams treat evaluation as a last-mile check, but we made it a Day 0 requirement.”article, stated

Evaluation execution

Chose Distributed workers and remote API calls over Serial offline evaluation.

Rationale: The distributed approach reduced feedback-loop time by 8.7x.

“Speed: 8.7x faster evaluation feedback loops (from 162 seconds to 18 seconds).”article, stated

Eval operations

Chose GitOps-style eval deployment over Ad hoc evaluator configuration.

Rationale: Versioned code kept evaluation behavior auditable and deployable.

“yarn eval deploy”article, stated

Gotchas (what bit them)

Slow evals break development velocity.

Root cause: Serial offline evaluation made feedback loops too long.

Resolution: Distribute evaluation load across local workers and remote API calls.

“we achieved a massive speed increase by distributing the load across local workers and remote API calls.”article, stated

Offline checks alone miss production conversation quality.

Root cause: Service agents operate across real multi-turn production interactions.

Resolution: Add online multi-turn evaluation over production traces.

“Online Evaluations — "The Monitor"”article, stated

Evaluation

The system is itself evaluation-centric: offline CI experiments, LangSmith experiment logging, production trace monitoring, multi-turn evaluators, and KB grounding/citation checks form the release discipline.

Metrics: Feedback-loop time · Coverage examples · Production trace quality · KB grounding · Citation correctness

“every CI run is automatically logged as a distinct experiment”article, stated

Outcomes

The article reports feedback-loop time dropping from 162 seconds to 18 seconds and comprehensive testing across hundreds of examples in minutes.

“Coverage: Comprehensive testing across hundreds of examples in minutes instead of hours.”article, stated