Repository navigation
fix(chat): read on or look up before saying anything is missing - #2449
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
This was referenced Nov 16, 2026
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
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
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
The writer was told to "say plainly when data is missing". A read that ran out of time told it to say the data "couldn't be read now". So Chat answered "I couldn't read it", "I hit the read limit" or "38 actions are missing" about data it could have read.
Now the rules and the engine's messages say what to do next:
A "no" is kept for true refusals, with why and what the person can do.
Changes
READ_ON_RULES):next_offsethas more: read the next page when the question needs all of it. Prefer a narrower read for a long list.NEVER_GIVE_UP_RULES). These replace "say plainly when data is missing".total,next_offset,note).explain_changepartial: the rule and the Why card no longer say "Not every answer could be read". They now say causes come only from prompts whose answers were all compared.run-limits.ts):PAGES_PER_READ= 4).MAX_NEXT_PAGES).dataChars) still applies.approved-articles.jsonregenerated.How to test
offset: 50).pages, notreads.cd web && yarn vitest run src/lib/chat/read-on-rules.test.ts src/lib/chat/run-limits.test.ts src/lib/chat/engine.test.ts -t "runs out of time|read-on".Checks
npx tsc --noEmit -p .: clean.src/lib/chat,src/lib/mcp(brand-scope included),src/components/chat,src/components/agentic,src/lib/action-center,src/lib/help,src/i18n,src/lib/agent,use-server-exportsandsubscription-guard-coverage.engine.test.tsare not from this change.yarn vitest run -u src/lib/help; every section is at most 150 words.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).🤖 Generated with Claude Code
https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9