Introduction
Xander Song from Arize AI presents Harbor, a framework for evaluating AI agents in isolated sandbox environments. The tool enables an objective assessment of agent effectiveness by verifying intended side effects in real-world tasks.
Key takeaways 5
The gist of the content in a few sentences
- The agent is launched in a fresh Docker container, and specialized verifiers check for environmental side effects rather than analyzing the specific path taken to reach the goal.
- Using scripts with pre-defined solutions allows for the elimination of pipeline errors in the testing process before spending costly LLM tokens.
- Due to the stochastic nature of LLM models, the system calculates the probability of success over a specific number of attempts for each task.
- Combining these tools enables experiment mapping and the conversion of action trajectories into the OpenInference open standard.
- Trajectory analysis in Harbor helped reduce the number of turns by replacing API pagination with direct SQL queries.
Video chapters 34Click and the video will play from the selected moment
- 1:32Harbor framework: concept and operation
- 3:50Task and environment architecture
- 4:05Architecture and testing process in Harbor
- 7:17The role of the oracle in agent testing
- 10:24Verifier independence in the Harbor system
- 10:24Universality of verification primitives
- 13:33Decoupling tests from implementation
- 14:41Scalability and testing infrastructure
- 15:49Result analysis and aggregated metrics
- 16:40Agent isolation and testing in Harbor
- 18:09Harbor integration with Phoenix and the OpenInference standard
- 20:19Harbor features and availability
- 21:29Phoenix system architecture and agent integration
- 25:50The role and operation of the Harbor tool
- 26:13Testing agents in a Docker environment
- 28:31Flexibility in agent environment configuration
- 28:55Harbor as an orchestrator and scripting system
- 30:09Testing agents in distributed systems
- 31:29Data scale vs. the evaluation process
- 32:36Synergy between Phoenix and Harbor in agent testing
- 33:34Solving problems with aggregated queries
- 35:16Verifying agent tool selection
- 36:48Test automation in the Harbor platform
- 40:19Agent optimization in Phoenix
- 40:58Reward calculation mechanism
- 41:25Reward definition and task verification
- 41:40Harbor applications in agent optimization
- 43:39Data management capabilities in Phoenix
- 45:17Comparative analysis of tasks and metrics
- 47:35Trace analysis and query verification
- 49:16Regression tests and skill definition
- 50:09Testing agent skill invocation
- 52:28Evaluation mechanism in the Harbor tool
- 53:25Optimizing hybrid agent systems
Summary
First 3 of 34 partsHarbor framework: concept and operation
Xander Song, an engineer at Arize AI, describes Harbor as a tool for evaluating agents on real-world tasks using actual data in isolated sandbox environments. The main goal of this solution is to make decisions based on evidence rather than subjective feelings, allowing for faster and more confident iteration of prompts, tools, and agent skills.
The framework operates by defining realistic tasks as natural language instructions. The agent is launched in a fresh sandbox environment with data relevant to the specific task, and specialized verifiers then check whether the agent produced the intended side effects within that environment. The result of the verifiers' operation is a reward, which can take a binary form, such as a 0-1 result or a pass/fail status.
According to the speaker, the strength of this approach lies in the ability to maintain constant tasks and verifiers while changing the agent's implementation. This allows for a quick signal on whether a change caused an improvement or regression in a specific task. The ability to combine many such tasks allows for broad coverage of the agent's capabilities and closes the iteration loop with a high degree of certainty.
Task and environment architecture
Regarding architectural details, each task in the framework specifies a set of instructions passed to the agent as a markdown file. This is simply a piece of natural language text that serves as guidelines for the agent.
Another element of the task is the description of the environment in which the agent is to operate, which usually takes the form of a Dockerfile. This file contains the data relevant to the execution of the given task.
Architecture and testing process in Harbor
Each task in the Harbor system consists of instructions in a markdown file and a description of the runtime environment, usually in the form of a Docker file. This environment contains data relevant to the specific task, while the tool remains agnostic to the type of data provided—examples include SQLite files or git repositories at a specific commit. To assess correctness, verifiers are defined in the test directory; these are scripts that check whether the intended side effect occurred after the agent finished its work.
Tasks are grouped into datasets, and a specific number of attempts can be configured for each. This is necessary because agents based on LLM models are stochastic, meaning they do not behave identically every time they are run. Each attempt involves building a fresh Docker container with the appropriate data, into which the selected agent is introduced. After the instructions are executed and side effects are triggered in the environment (e.g., changes to source files or the database), the verifiers are run, and their results, in the form of rewards, are saved in a reward.ext file.
Optionally, agents can generate so-called trajectories in ATIF (Agent Trajectory Interchange Format). This is Harbor's specification for a JSON-based tracking format, which provides insight into the internal steps taken by the agent to achieve the effect. This is primarily used for debugging and logging. The entire process—from launching tasks from a dataset, through multiple attempts and verification, to collecting trajectories—is called a job.
Read the full summary – for free
31 parts of text left, key takeaways, facts, questions and answers, action items – with the source minute for every passage. Plus search, collections and the AI assistant.
Keep reading for freeFree, in a minute. Have an account? Log in
