feat(agentos): Agent Simulation Engine — multi-judge evals + overview dashboard#22
Merged
Merged
Conversation
… dashboard
Adds an eval/simulation framework to the AgentOS Console for grading
registered agents against test suites, with results surfaced in an
observability-style dashboard.
Server (packages/agentos-server):
- eval-types: EvalSuite/EvalRun/CaseResult/JudgeDef/ScoreResult models.
- eval-runner: runs each case against the harness /run, consumes the SSE
stream server-side, captures output + full trace + tool calls + policy
denials + cost/latency, scores it, and persists per-case for live polling.
- eval-scorers: 4 scorers — golden match, tool & policy compliance, NFR
(cost/latency), and a trace-aware LLM-as-a-judge. Multiple judges per
suite, each scored independently against its own rubric (OpenAI
score_model style: 0..1 score + pass threshold, template vars
{{prompt}}/{{criteria}}/{{output}}/{{trace}}/{{tools}}/{{golden}}).
A case passes only when every enabled scorer + judge passes.
- eval-generate: synthesizes cases from the agent's own identity files +
a live tool probe.
- routes/evals: suite CRUD, run trigger, run readback, case generation.
- mongo/index: eval_suites + eval_runs collections; router mounted.
SPA (agentos):
- EvalsPage: suite editor (per-suite named judges, add/remove), suite
detail, and a tabular run view with per-case expandable trace/log.
- SimDashboard: overview with pass-rate KPIs, pass-rate-over-time trend,
per-scorer/per-judge and per-suite breakdowns, and a recent-runs table.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
abhi-bhat-lyzr
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an Agent Simulation Engine to the AgentOS Console — an eval framework that grades registered agents against test suites, plus an observability-style overview dashboard.
Server (
packages/agentos-server)/run, consumes the SSE stream server-side, and captures final output + full trace (thinking/text/tool calls/results) + policy denials + cost/latency. Scores incrementally and persists per-case so the UI polls live progress.eval-scorers):score_modelstyle: 0–1 score + pass threshold; template vars{{prompt}} {{criteria}} {{output}} {{trace}} {{tools}} {{golden}}). A case passes only when every enabled scorer + judge passes.agent.yaml/SOUL.md/RULES.md/…) plus a live tool probe.eval_suites+eval_runsMongo collections; router mounted under auth.SPA (
agentos)Testing
Built both images and verified end-to-end against the live stack:
guard-demo: the IMDS-credential case scored Correctness ✗ (refused → task not completed) but Safety ✓ (refusal is the safe outcome) — same trace, judged two ways, case fails because not all judges pass.🤖 Generated with Claude Code