Repository navigation
test(chat): evals fail any "couldn't read" answer - #2450
Merged
Merged
Conversation
The writer was told to "say plainly when data is missing", and a read
that ran out of time told it to say the data "couldn't be read now".
Answers like "I couldn't read it", "I hit the read limit" or "38 actions
are missing" followed, about data Chat could have read.
- Rules: the reader looks an item up by what the person named, reads the
next page of a list that has more (next_offset), reads the rest of a
cut result or narrows it, and tries a failed or slow read once more,
narrower. The writer reads on first, says "not found" only after a
direct lookup, never offers substitutes, says what a partial answer
covers ("the newest 50 of 451 signals"), and keeps "no" for a true
refusal (plan, role, AI budget, an Admin setting, a feature that is
off) with why and what to do. Neither ever writes "couldn't read",
"couldn't reach", "read limit", "rows" or a count of missing items, in
any language, Turkish named (READ_ON_RULES, NEVER_GIVE_UP_RULES).
- Messages: a timeout asks for one narrower try, never the same input,
and a second timeout of the same read for none (a third call is refused
without reading). A failed read says to try the same data another way
once, and now reaches the writer's read log. Reads used up: answer for
what was read and say what it covers; never "a limit". explain_change's
partial line and the Why card's say causes come only from prompts whose
answers were all compared. Step labels: "Not available right now",
"Took too long this time".
- Budget: a next page of a list the run already read counts as a quarter
of a read (PAGES_PER_READ 4), up to 12 next pages a run
(MAX_NEXT_PAGES); the data budget still holds.
- Help: Use Chat gains "Long lists"; "When something goes wrong" and
"What explains the change" say the new behaviour.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
The owner's rule (2026-11-16): an answer never says it couldn't read,
reach or find data Chat could have read. Both test sets now fail one.
- A shared detector (testing/give-up.ts) finds "couldn't read / reach /
access", "read limit", "hit the limit", "rows", a count of missing
items, and in Turkish "okuyamadım", "ulaşamadım", "erişemedim",
"okuma sınırı / sınırına takıldım", "eksik" about the data and
"bulamadım". "Not found" passes only after a direct lookup (a read by
code, id, words or address); "can't access" or "hit the limit" only
after a true refusal (a denial, a missing connection, a spend cap).
- A `must` check on every scenario of the model eval and on every agent
and skill run of the agents' eval: "never gives up on data it could
read".
- Four model-eval scenarios from the Chat page-data audit, each with its
own data: an action past the list's first page, asked in Turkish
(AC-63, 53rd of 55: read the next page or by its code); a list of 451
signals (say the total); Signals' panel asked about prompts (read
another page's data); a page of citations cut for size (read on from
next_offset, or say the total). The runner gives a scenario's reads its
own results, sends its page context and keeps each read's input.
- Scripted harness tests run in CI: a run that reads the next page
passes, an answer that gives up fails in English and Turkish, and a
page cut for size reaches the model with next_offset and no
"{list}_more".
- A chip or "Ask about this" label over 200 characters (a prompt's text,
up to 500) refused the message with a 400. startRunInput now cuts a
page's label or value to 200 characters (no half emoji) and still
refuses one past 2,000. The fix is in the server's schema, so
chat-thread-view.tsx is unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
gkhngyk
previously approved these changes
Nov 16, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Note: give-up.ts ALWAYS patterns flag correct gap answers in the gated evals ("Your brand is missing from 12 AI answers", "3 sayfada FAQ şeması eksik", any "rows"), so real-model eval runs can report false failures; CI is unaffected.
Brings in upstream main through the updated fix/chat-list-paging. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk
dismissed
gkhngyk’s stale review
November 16, 2026 16:55
The merge-base changed after approval.
Brings in upstream main through the updated fix/chat-never-give-up. The give-up check runs in gradeAgentRun for every scenario; the tests now assert it for every agent and skill scenario, and for action-by-code (a page read then "bulamadım" fails; "not found" after a codes read passes). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk
dismissed
gkhngyk’s stale review
November 16, 2026 17:32
The merge-base changed after approval.
cihan-gyk
pushed a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Nov 16, 2026
Brings in ansvisor#2449, ansvisor#2450, ansvisor#2457, ansvisor#2460 and ansvisor#2461 (Chat and MCP lookups by code, id, words, domain or address; never give up on data it could read). Conflicts, resolved as the union of both sides: - agent-eval.ts: the scenario keeps askedSignals/askedDomains and checks; QUESTION_SCENARIOS holds action-by-code, signal-by-code, citation-by-domain and the three ai-revenue questions; every run gets "never gives up on data it could read" and then its scenario's checks. - agent-eval-data.ts: EvalWorkspace is default, action_backlog, long_lists and conversions_off; both sides' imports. - agent-eval.test.ts: both sides' imports. - brand-scope.test.ts: the AI-revenue reads and the lookups. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
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
Chat's two test sets now fail any answer that gives up on data Chat could have read, in English and Turkish. The model eval gains four scenarios from the Chat page-data audit.
A long chip or "Ask about this" label (a prompt's text, up to 500 characters) made the message fail to send. It now sends, with the label cut to 200 characters.
Changes
testing/give-up.ts). It finds:mustcheck, "never gives up on data it could read", on:testing/give-up.test.tsand in the scriptedaction-by-codetest).action-past-first-page(Turkish): AC-63 is 53rd of 55 open actions. Chat must read the next page, or the action by its code, and name it.long-list: 451 signals. The answer states the total.other-page-data(Turkish, asked from Signals' panel): which prompts lost most visibility. Chat must read another page's data.cut-by-size: a page of citations too big for one read. Chat reads on fromnext_offset, or states the total.model-eval.test.ts): a scenario's reads answer with its own results; its page context is sent; each read's input is kept for the checks.engine.tsstartRunInput):chat-thread-view.tsxis unchanged.How to test
cd web && yarn vitest run src/lib/chat/testing src/lib/chat/model-eval.test.ts src/lib/chat/long-labels.test.tsCHAT_MODEL_EVAL=… CHAT_MODEL_EVAL_ONLY=action-past-first-page,long-list,other-page-data,cut-by-size yarn vitest run src/lib/chat/model-eval.test.ts.Checks
npx tsc --noEmit -p .: clean.src/lib/chat,src/lib/mcp,src/components/chat,src/components/agentic,src/lib/action-center,src/lib/help,src/i18n,src/lib/agent,src/app/api/chat,use-server-exportsandsubscription-guard-coverage.git merge-treeis clean withmain(now with fix(chat): look up an action by its code, and never answer with "the closest" ones #2445 and fix(chat): every list read pages, with totals, so Chat reads all a page shows #2448).engine.tsandtesting/give-up.ts). The scenarios' data are test-only.🤖 Generated with Claude Code
https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9