Repository navigation
test(agents): catch a tool name the answer's mask leaves, in what the run makes - #2108
Merged
Merged
Conversation
… run makes ansvisor#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 ansvisor#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: Claude Opus 5.5 <[email protected]>
This was referenced Nov 3, 2026
gkhngyk
approved these changes
Nov 3, 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
Fixes main's red CI after #2072. Since #2061, the engine masks a tool's name in Chat's answer. The agents' test set (#2072) had a scripted test that expected its "no tool names or ids shown" check to fail on a tool name in the answer, so it failed on main.
The test keeps its purpose: a tool name that gets past the answer's mask is still caught.
Related issue
None. Main's CI after #2072 and #2061.
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: 9 tests pass, 1 skipped (the real-model group).Checklist
yarn lintpasses (eslint clean on the changed file)yarn typecheckpasses (in the fork's CI)yarn format:checkpasseshelp/(or no user-visible change)CI passed on this branch (39b5c27), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/41725152325): 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