Repository navigation
test(agents): run the ready agents, the skills and the Content Editor on real models, with shared safety checks - #2072
Merged
Conversation
… on real models, with shared safety checks - agent-eval.test.ts: every ready agent of Agent Center runs through the real runner (openAgentRun) and engine on its own trigger, skills and default mode, two in Full auto, and every skill by its /name, on a fixed Brewline Coffee workspace. Reads answer from fixtures, every write is a stand-in that only records, and the only network call allowed is the model's: Auto (Haiku 5.5 reads, Sonnet 5.5 writes) through OpenRouter's Anthropic API, on Anthropic's own servers. Cards are approved as the person would. Checks: finished, run and month limits, mode rule, promised output, no invented numbers (exceptions listed), no tool names or ids, no emoji, brand scope, safety; time and steps for review. JSON and a Turkish Markdown report; AGENT_EVAL_MAX_USD / SKILL_EVAL_MAX_USD stop new scenarios at the cap; AGENT_EVAL_REGRADE grades kept runs again for free. It reads the engine's taint rule and each tool's session-free flag, so it holds as they change. - editor-eval.test.js: Fix open rules and Write from brief on three fixed drafts (one a supplement brand), graded for language, brand, placeholders, rules, invented numbers, health claims and safety; EDITOR_EVAL_MAX_USD. - safety-patterns.json: one list of the safety rules (life-endangering advice, profanity, guaranteed outcomes) for every test set, web and server. Only the scripted parts run in CI; real runs need AGENT_EVAL, SKILL_EVAL or EDITOR_EVAL and OPENROUTER_API_KEY. Co-Authored-By: Claude Opus 5.5 <[email protected]>
gkhngyk
approved these changes
Nov 3, 2026
Contributor
|
Main's CI fails on this one since it merged: |
8 of 13 tasks
gkhngyk
pushed a commit
that referenced
this pull request
Nov 3, 2026
… run makes (#2108) #2061 masks a tool's name in Chat's answer, so the harness test that expected the leak check to fail on the answer went red on main after #2072. The test now writes the name into a draft's page, which the engine doesn't mask, and checks the answer is masked and the leak check still fails there. Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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
Quality test sets that run Agent Center's ready agents, the 21 Ansvisor skills and the Content Editor's AI jobs on real models, with a cost cap for each. Tests only: no product code changes. Built the way W4-35's model test set (#2038) is, but standalone on main: it defines its own check types, and #2038 can read the shared safety list (
safety-patterns.json) once both are in.Agents and skills (
web/src/lib/chat/agent-eval.test.ts,testing/agent-eval.ts,testing/agent-eval-data.ts)readypreset inagents/catalog.jsonruns through the real runner (openAgentRun) and engine (driveRun). It uses its own trigger, skills and default mode, with no session behind the run, the same way the minute tick drives it. Citation Win-back and Task Finisher also run in Full auto./namein a person's own chat, in Auto.Checks (
mustfails a scenario,reviewis a note)must:review:Content Editor (
server/src/lib/editor-eval.test.js,__fixtures__/editor-eval/cases.js)buildFixPrompt+keepSuggestions);buildWritePrompt+sourcedPage).{{ask:}}counts);review);Safety rules (
testing/safety-patterns.json,testing/safety-checks.ts)taintsRunonce it exists) and each tool's session-free flag, so it holds as fix/agent-full-auto-trust lands.Running it
AGENT_EVAL,SKILL_EVALandEDITOR_EVALtakeallor ids.*_MAX_USDstops new scenarios once the group has spent that much.AGENT_EVAL_OUT_DIRsets where the reports go, andAGENT_EVAL_APPEND=1adds to them.AGENT_EVAL_EFFORT=highis for finding out whether the read budget is what held a run back.AGENT_EVAL_REGRADEandEDITOR_EVAL_REGRADEgrade kept runs again with today's checks, without calling a model.Real runs (2026-11-03): agents $2.26 of $10, skills $1.25 of $10, editor $0.16 of $3. Its findings are fixed in their own PRs: fix/agent-run-writes, fix/agent-full-auto-trust, feature/chat-brand-facts-read, fix/chat-figure-periods, fix/content-health-claims and #2040. With them applied, a second agents run ($1.90) passed every agent that had failed except Task Finisher in Auto, which asks for more than 12 approvals in one run. This PR changes no behavior.
Related issue
None. Owner request 2026-11-03 (quality check of the ready agents, skills and Content Editor within $10 / $10 / $3).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
cd web && yarn vitest run src/lib/chat/agent-eval.test.ts src/lib/chat/testing/agent-eval.test.ts: 35 tests;cd server && npx vitest run src/lib/editor-eval.test.js: 4 tests./name;Checklist
yarn lintpasses (eslint clean on the changed files; server eslint clean on its two files)yarn typecheckpassesyarn format:checkpasses (web and server)help/(or no user-visible change)CI passed on this branch (1394322), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/41600530549): schema is up to date; web
format:check, lint, typecheck, all tests andyarn buildpass; server lint,format:checkand all tests pass.🤖 Generated with Claude Code