Verbatim Recall

Status: ✅ shipped (2026-10-24, 435287eed; the history-window dedupe 6a6b90ae8, 2026-10-25), behind the Verbatim Recall setting — account default and per story, default off. The acceptance pass below is still partial: unchecked boxes are not yet verified live. Two shapes, both behind settings so writers can test which one helps their stories; the default is off. On an existing database the lines summarized before this ships become quotable gradually: the backfill that indexes them is bounded to about a minute per Database boot and continues on the next one, and a line it has not reached yet is simply not found. Until that backfill is recorded done, quote search runs without its full-text index: the boot that finishes the backfill builds it. Grows out of Memories and the research in docs-internal/architecture/chat-engine/MEMORY_AND_SUMMARIES_RESEARCH.md (§5 M8).

Overview

A memory is a summary of a scene. It is the right unit to find a past moment by, and the wrong unit to quote it from: "what exactly did she say when we parted" wants the line, not the paragraph that mentions a parting. Verbatim recall pulls the stored message in. A quote never travels alone. Every quote is injected with the summary of the scene it comes from, because a raw line out of context is noise the model has to guess a frame for — and the frame is already one join away: every summarized message carries the id of the summary that covers it.

The messages worth quoting are the ones that have slid out of the verbatim history window, and by the summarizer's "no gap" rule a summary covers every one of them. So verbatim recall only ever searches summarized messages, live and selected versions only. The converse does not hold on web: the history read keeps the newest messages whether or not a summary covers them, so a summarized line can still be inside the window. A quote never repeats a line the model already sees: both shapes leave out exactly the rows this turn's history read returns (Max Context Messages of them), before they pick, so a line inside the window takes no slot from one outside it. One caveat: with Dynamic Context on and a tight model window, the fit can send fewer rows than the read returned. A summarized line it drops that way is not quoted on that turn either; it becomes quotable once newer messages push it out of the read.

The two shapes

Shape Setting value How it ranks What it adds
Drill-down drilldown Today's memory recall ranks the scenes (few candidates, scene-coherent, already scored). For each recalled memory, the best-matching message inside that scene is fetched. Up to Quotes per memory lines under each recalled memory.
Message-first messages Full-text search over the conversation's summarized messages. Each hit brings its scene summary. Up to Max verbatim messages lines. A hit whose scene is already a recalled memory attaches to it (under Quotes per memory) instead of repeating the summary. The rest group one item per scene, carrying that scene's matching lines: the summary + lines when the scene is a memory the ranking did not surface; the lines alone, marked, when the scene is still active (its summary sits in the summaries block).
Both both Both of the above. Both; a line is never injected twice.

Drill-down is the conservative one: it cannot surface a scene the memory ranking did not. Message-first can, at the price of more false hits (ten times the candidates, surface-word matches), each dragging a summary in with it. That trade-off is the reason both ship: the owner wants writers to try them.

What the model sees

[Sep 1 - Sep 2, 2026]
Elara and the party parted at the harbour; she left her locket.
Quoted lines are single moments picked for this turn, not the only times these words came up.
  > them: "Then remember this," Elara said, pressing the locket into your hand. "When the bells ring, I am already gone."
    ("bells ring" also comes up in a few other scenes.)

Verbatim, from a scene in the summaries above:
Quoted lines are single moments picked for this turn, not the only times these words came up.
  > them: Grimjaw slammed the map down. "The drowned city is a grave, not a treasury."

The quote is labelled you (the writer's message) or them (the reply), cut to Quote max characters around the first matching word (with an ellipsis on each side that was cut, so the line that matched is always in it), and sits under its scene. Ordering is the memory ranking as today; message-first pairs follow the recalled memories.

A quote is a sample, and the model is told so. The search picks the few lines that best match this turn: up to Quotes per memory (at most 3) under each recalled memory in Drill-down, and up to Max verbatim messages in Message-first, which can all come from one scene. So a phrase the story uses again and again reaches the model only a few times, often once. Read bare, the model took that one line as the only time the words were said (a reply once insisted a character had said a phrase only once, when the story had used it many times). So the quoted lines of each recalled scene come under one plain sentence: "Quoted lines are single moments picked for this turn, not the only times these words came up." Every scene that brings a quote carries it, directly above its lines, so the sentence always travels with the quotes it is about, and a scene reads the same whatever else the turn recalls. A scene with no quote carries none, and with verbatim recall off the memory section is unchanged, byte for byte. Each copy costs about 27 tokens, charged in the budget with the scene it sits in, so a section that quotes from five scenes spends about 135 tokens on it. The sentence gives no count on purpose: the search matches any word of the recent messages, so how many lines matched says nothing about how often a phrase was used. The Hybrid director's looked-up quotes carry the same sentence above each run of them. Those lookups don't depend on the Verbatim recall setting, so they carry it with verbatim recall off too: a looked-up quote is a sample all the same.

A quote whose wording recurs says how often (owner, 2026-12-04: "It's already searching the conversation when I have 'both' set. So how about just giving a summary of the findings"). Where the turn searches messages (Message-first or Both), each quoted line can carry one more line directly under it: ("bells ring" also comes up in a few other scenes.) The phrase is two words the search matched, standing side by side in the quoted line (a word shorter than three letters, like the "ll" of a contraction, never makes one). Another scene counts when one of its lines has the same two words side by side, punctuation between them ignored and English word endings folded ("bells rang" also finds "bell. Rang"): it is not an exact-phrase match. Of a line's phrases it names the one used in the most other scenes, counting scenes, not lines. The count is said in steps, so the text only changes when the story really moves: "1 other scene", "a few other scenes" (2 to 4), "several other scenes" (5 to 9), "10 or more other scenes". A line says nothing when its words come up nowhere else, when the count could not be made in time (the quotes still go), or when the phrase is in more than half of the story's scenes (a name or a stock phrase is everywhere, and saying so tells the model nothing). Drill-down alone is unchanged and makes no count. The line is charged in the budget with the scene it sits in, at most about 26 tokens a line. The Hybrid director's looked-up quotes carry no such line. The same count also helps choose the lines: Message-first looks at twice Max verbatim messages lines, lifts each one's match score by how widely its wording recurs (by half again at most, growing slowly with the number of other scenes), and keeps Max verbatim messages of them, so a line whose words run through the story can edge out a slightly better match that comes up once. Without a count the best matches are kept as before; lines under a recalled memory (Drill-down) keep their order. The count is one more search over the story, and its cost grows with the story and with how many phrases the turn's lines bring: on a 30,000-message story about 0.1 s for a handful of phrases, and up to half a second when many lines with common wording are counted. A turn already waits seconds for the model, and a count that takes longer than 2 seconds is dropped (the quotes still go). F424 is the index that would cut it.

Settings

All in the Memory group, account default under Settings → Context, per-conversation override under the chat's Context settings. Web chat only.

Setting Default Range What it does
Verbatim recall Off Off / Drill-down / Message-first / Both Which shape runs. Off changes nothing about today's recall.
Quotes per memory 1 1–3 Drill-down: lines fetched inside each recalled scene.
Max verbatim messages 3 1–10 Message-first: how many matching lines to look for.
Quote max characters 1000 200–3000 A longer message is cut to a window around the match, with ellipses.

Budget

A quote is charged with the summary it travels with: a recalled memory and its lines are sized and admitted as one item, before the cut, so the cut falls exactly as it does today with the top-ranked item always admitted. A candidate the cut dropped never comes back through message-first ("truncate, never repack").

The Context Budget bar. The bar's memory figure prices the lines the story's own settings can quote (ContextBudgetEstimates.RecalledMemory, shipped 2026-11-09 after the owner's report: a story quoting three 3,000-character lines per memory sent 56k against a 38k estimate). It is an upper bound by the section's own caps: Quotes per memory under each of the first twenty memories Max memories admits (drill-down), plus Max verbatim messages (message-first), each line at most Quote max characters and never longer than the longest summarized message, never more lines than the story has summarized messages, and a scene label's allowance per message-first line. In By count mode the corpus of memories already holds every scene a message-first line brings, so the lines are added to it; under a token bound the lines share the allowance, and the figure is max(budget, the largest memory with its lines), capped by the corpus plus the lines. The drawer draws the lines as their own faded segment, Verbatim lines (up to N), out of the memory figure (memoryVerbatimTokens, a share of memoryTokens, never added on top). Off, the figure is what it was.

Mechanics

Non-Goals

Acceptance Criteria

The feature is not done until every box below is verified ✅ against the running product.

User use cases — satisfiable + accessible (verify by driving the UI, not the code):

Behavior:

Invariants that must stay true (carve-outs):

Edges: