Skip to content

August 2026 - R&D Journal: Retrieval Query Resolution, Measurement Substrate Consolidation, and Prompt-Cache Latency

Context

This entry covers August 2026. The main research line asked how a conversational message should be turned into a retrieval query. Alongside it, the event stream that feeds every experiment moved to a first-party ingestion path, and the answer-generation prompt was restructured around provider-side prefix caching.

Three randomized holdout experiments, launched in mid-July and withholding the agent from a fixed share of each site's visitors, ran through August and were read in September. The display experiment created in April remained in draft. The measured results below therefore come from an offline evaluation apparatus, not from live traffic. Synthesized Knowledge Publishing for Generative-Engine Discoverability has no section this month.


Compounding Context Engine for Company, Industry, and Buyer Intelligence

Project and lock

The agent answers by retrieving from a per-client knowledge base. Retrieval consumes a single query string; the conversation history is not forwarded to the retriever. A visitor turn with no standalone meaning (a one-word sector name, an unresolved pronoun, a bare "yes" answering the agent's question) therefore reaches the index with no context.

The platform has always rewritten the visitor's message into a self-contained question before retrieval. The lock was whether that premise holds: does a language model rewriting a conversational message into standalone prose improve the knowledge retrieved, and if not, what mechanism would? Query rewriting and hypothetical-document expansion are known techniques, but nothing says which helps a short, multilingual, mid-conversation B2B message against a small per-tenant knowledge base, and no instrument here measured retrieval itself.

A second lock came from the intake side. Clients are served under two knowledge tiers, one building a knowledge graph over the corpus and one not. Whether a retrieval strategy transfers across that boundary was unmeasured.

This month's work

The starting hypothesis was that the rewriter's prompt is poor and fixing it would improve retrieval. An audit of 500 production rewrite operations measured the defects (Table 1).

Table 1. Production rewriter audit, 500 rewrite operations.

Defect Share
Turns that never reached the language model (fell back to a pattern rule for English possessive pronouns, inert on French, Spanish and Italian) 70% of turns
Rewrites truncated mid-word or mid-number by an output ceiling sized for English 24% of generated rewrites
Rewrites carrying emphasis markup copied from the assistant's messages 57% of generated rewrites
Rewrites more than four times longer than the visitor's input 74% of generated rewrites
Added latency on the retrieval critical path, blended per turn about 150 ms

A later fourteen-day production replay corrected the audit's share of first turns from 70% to about 44%; the 70% figure should not be relied on.

The defects did not propagate. Joining each rewrite to its retrieval and to the answer that followed showed no correlation between rewrite quality and either the volume retrieved or the rate at which the answer disclaimed knowledge. In the worst cases the answers were correct: truncation cuts the tail of an over-expansion the rewriter invented, and the answer writer, which receives the conversation itself, repairs the rest. The question became "does the rewriter earn its cost", and final-answer quality proved too damped and lagging to measure it.

That required a new instrument scoring retrieval rather than the answer. It runs each strategy through real retrieval against real per-client knowledge bases; a judge sees the conversation, the visitor's information need and the returned passages, and scores only whether the passages allow an answer. Three labelled datasets were built from real production turns: a 50-item general set across ten client sites, tagged by turn type; a 123-item set of elliptical turns across 22 sites; and a 110-item held-out set from the same harvest, never used to choose a threshold or a prompt rule.

The first negative result concerned the instrument. The initial rubric let a message that "needs no knowledge lookup" score full marks, and the judge applied it to elliptical replies, the turns where expansion is mandatory, awarding the do-nothing control a perfect score for retrieving nothing useful. Stating that an elliptical message still carries an information need from the conversation dropped the control's score on those items from 0.62 to 0.34; only then did the instrument discriminate in the required direction.

Strategies were compared paired per item across repeated runs, because per-item variance is as large as the effects measured. Seven strategies were tested across two model sizes and both tiers: the production rewriter; a hygiene-corrected prompt; a telegraphic rewrite; hypothetical-answer expansion; resolution into retrieval keywords; the same keywords appended to the visitor's text; and a two-call variant producing both.

Results, proof, and next step

Prose rewriting and the two retrieval channels

No prose rewrite of any shape beat sending the visitor's raw message. The hygiene-corrected prompt cut markup failures and truncations to zero and moved retrieval quality by nothing. Hypothetical-answer expansion lost, and running it through a model roughly forty times larger made it worse: a stronger model writes more fluent invented specifics, and on an embedding channel a fluent wrong passage does more damage than a crude one. That falsified the second of two mechanistic theories; the first, that verbose rewrites inflate the retriever's own keyword extraction, had been discarded when the correlation between rewrite length and extracted keyword count measured +0.17.

The explanation was structural. The retrieval library has two channels: the query text drives vector matching over passages, and a separate pair of keyword lists drives graph matching over entities and relations. When keywords are not supplied, the library derives them with its own model call from whatever text it receives. The rewriter was writing prose for a consumer that re-extracts keywords from it, a lossy round trip the platform never controlled, so every prompt improvement landed on the wrong side of that conversion.

Supplying resolved keywords directly, with the visitor's words driving the vector side, first measured +0.050 against the control, 16 items improved against 3 degraded. A review of the harness then found the judge was shown the resolved keywords appended to the query text for the keyword strategies only, a difference not present in the retrieved passages. With every strategy shown identical text, resolving each turn was indistinguishable from the raw message.

The gain had come entirely from elliptical turns; the loss entirely from turns whose raw message was already a well-formed query, including a group whose only pronoun is a possessive naming the company, which retrieval already supplies. On those the resolver cannot decline and invents an interpretation: asked how many offices the company has, it resolved the question to office space and capacity, and the passage stating the office count dropped out. The short-reply gate developed for the graph-less tier (below), applied to the keyword channel, recovered most of that loss and kept the elliptical gain.

On graph-capable clients, resolving into graph keywords and resolving the passage query text measured within a thousandth of each other, wins and losses evenly split. The gate is the intervention; the channel decides only what a resolution costs (supplied keywords spare the library its extraction call).

The losses arise after retrieval. Passage candidates are identical between the control and the keyword strategy, since the raw message drives that channel in both; the graph candidates differ, and the platform reranks entities, relations and passages in one pool against one query before truncating to a fixed budget. A well-ranked graph result therefore evicts a passage. On a turn where a visitor said they were importing a spreadsheet of contacts, both arms returned the same thirty documents, but the step-by-step import guide was displaced by accurate, unhelpful entities about the surrounding product area; the score fell from 0.80 to 0.30. Retrieved-document count, which looked reassuring in the opening audit, is therefore no quality signal.

The intuitive account of that harm, dilution by terms the visitor did not ask about, failed: grouping resolved turns by how many resolved terms were absent from the visitor's message showed the most heavily augmented turns scoring best. The harm depends on how well the raw message already worked: net negative where the unresolved query already scored well, positive where the turn had no searchable content, because anything added competes for a fixed budget.

The graph-less tier and the short-reply gate

On the tier without a knowledge graph, retrieval is passage matching alone and supplied keywords are ignored. Forced into that mode, the evaluation showed the production rewriter actively harmful there. A strategy that emits a byte-identical query on every item still drifted by +0.012, first read as the judge's noise floor; the drift was the display annotation above and vanished with it. The floor now comes from turns the gate declines, whose retrieval input is identical to the control's by construction: they move by +0.003. The earlier figure had been used to argue that a competing result was several times the noise.

Elliptical turns on this tier score 0.28 to 0.37 against a general-set baseline above 0.50, a separate, harder regime. Every strategy tested had resolved the subject of the reply and dropped the request: when the agent offers a customer example and the visitor answers "yes", the rewrites asked about the topic, not for an example. Resolving the request helped substantially on that dominant sub-mode and badly harmed a second one, where the visitor ignored the question and raised something new in an already well-formed query.

Reply length predicts the split: one-word replies gain most, five-word replies lose, and a five-word elliptical reply is usually a real question. Gating resolution on a short reply not ending in a question mark (two lines, no classifier, no extra model call) tripled the measured effect and closed the harmful sub-mode by construction. Rewriting the resolver's prompt against the measured failure features, with its constraints enforced in code, halved the variance and cut mean output length from 7.6 to 3.7 words.

Held-out read and sample size

Before the held-out read, four methodology corrections were made: the display annotation was removed so every strategy is judged on identical text; bootstrap confidence intervals and an exact sign test replaced standard-error reporting; the noise floor is measured by re-running the whole retrieval and judging path on identical input, not by re-scoring the same passages (which prices only the judge and understates the floor); and turns the gate declines serve as a control built into each run.

On the first held-out set the gated resolver scored +0.046 on 83 judged items, with an interval excluding zero. A power calculation showed 83 items resolve only an effect of about 0.05, against an effect under test near 0.03, so the estimate sat at its own detection threshold, where effects are systematically overstated. Variance decomposition put run-to-run noise at 4% and item-to-item difference at 96%, so more runs change the standard error only in the third decimal; only more items help. A second held-out set was harvested and de-duplicated against every earlier set.

Harvesting real conversations makes the corpus a personal-data surface. The first three sets held sixteen visitor email addresses verbatim, one from a visitor who had said they were ten years old. The addresses were replaced with synthetic ones on reserved domains that keep the original shape (dotted, run-together, digit-laden), so each item exercises the same path; the minor's message was rewritten to a neutral request with the same label; and a mechanical check now fails a future harvest instead of letting it leak. The larger harvest applied substitutions consistently (a repeated correspondent stays one person), dropped turns disclosing an age or a telephone number, and removed turns with a visitor-typed personal name by reading them, since no pattern detects those reliably. From roughly three thousand production resolution operations it found a thousand distinct elliptical turns; 262 were selected across 27 client sites, capped per site, and 242 were judged.

Both estimates fell on the larger sample, as the power analysis predicted (Table 2).

Table 2. Gated resolver against the raw-message control, held-out sets.

Measurement Items Result
Graph-less tier, first held-out set 83 judged +0.046, interval excluding zero
Graph-less tier, second held-out set 242 judged +0.025
Graph-less tier, pooled 325 +0.030 [+0.014, +0.047]; 73 improved / 36 degraded; exact sign test p = 0.001
Graph-less tier, turns where the gate fires — +0.054
Control: turns the gate declines (byte-identical input) — −0.001
Control: sub-mode previously costing −0.23 40 0
Graph tier, three sets before the powered read — one positive, two null; one null set of 105 judged turns at +0.004, its built-in control drifting further than the effect
Graph tier, second held-out set (powered read) 242 judged effect halved, unresolved

The graph-less effect now exceeds its detection threshold. For graph-capable clients the estimate is close to zero, and the powered measurement did not overturn it.

Four hypotheses were falsified in sequence, each by its own measurement: that the prompt was the problem; that verbose rewrites fan out the graph budget; that resolver precision was the ceiling; and that the enrichment format was the ceiling. What survives is that additive strategies beat substitutive ones: the visitor's own words are the highest-precision signal, and a rewrite trades them for context, which never pays on the passage channel. A companion claim, that a wrong keyword on the graph channel merely fails to match and is harmless, was falsified: graph search spends a fixed budget of entities and relations, so a wrong keyword matches something else and displaces what the raw message was retrieving. On both channels resolution pays only where the message cannot be searched as written, which is what the gate encodes.

The ranking stage

The merge stage suggested one last mechanism. Final selection is decided by a cross-encoder scoring every candidate against the raw message; on a two-word turn it has almost nothing to discriminate with. Probed on real turns, its scores on the most contentless messages spread by less than 0.05 across a fixed document set; given the resolved context, the spread roughly tripled and eight of the twenty selected documents changed. The prediction was to enrich the ranking query and leave the embedded text untouched.

It did not pay. Enriching the ranking query alone measured +0.019 against the control; adding it on top of keyword resolution moved the result by a thousandth, wins and losses exactly tied. Three unrelated interventions (graph keywords, resolved query text, enriched ranking query) all land between +0.01 and +0.03 with intervals crossing zero, and they do not compose: once the conversation's context is injected anywhere in the retrieval path, injecting it elsewhere buys nothing. The ceiling is how much a two-word turn can carry, not which channel carries it. This was the fifth mechanistic account falsified, and it ended the search. The plumbing was kept, defaulting to existing behaviour, so the negative result stays reproducible.

Disabling reranking altogether (falling back to a fixed allocation across document types) moved the score by −0.011 to −0.022 across two sets, every interval crossing zero. By turn type, ranking helped most on the elliptical turns where it had been shown nearly blind, and was mildly negative on well-formed questions. The metric cannot settle this: context sufficiency asks whether the needed material is among the roughly thirty documents returned, and a passage moved from last to first scores the same while mattering to an answer writer reading top-down under a token budget. A rank-aware measurement (position of the first relevant passage, or precision in the first few) does not exist; until it does, the ranking stage stays in place.

Blind spots, tail risk and the eligible population

Turns needing no retrieval (an address typed into a capture step, a farewell, a nonsense string) have no information need to score and are excluded from every judged mean, so the apparatus never measured them. Read directly, they showed the resolver inventing plausible topical keywords for roughly two-thirds, drawn from the conversation rather than the message, and the retrieval task starts on every turn, so they pay for the call. The retrieval library's own extraction prompt tells the model to return nothing for a greeting or nonsense; the resolver does not, and its fallback triggers only on an unparsable response. Closing the gap changes every resolution and needs its own measurement; it is recorded as an open defect.

Since enabling the path turns on the tail, not the mean, 360 real gated resolutions were scanned for content that must never reach a retrieval query (addresses, links, instruction text, fragments of the resolver's reasoning); none appeared. Short adversarial inputs (instruction overrides, a database statement, a script fragment) pass the gate by shape, reach the model, and returned ordinary topical keywords. A bad resolution costs one turn of worse retrieval, and the output is never shown to the visitor. One defect surfaced: emphasis markers around a single word survived a cleaning rule written for the doubled form, so about 3% of resolutions carried punctuation into the graph query; it was fixed with a test.

A replay of the gate over production retrieval turns sized its population. Slightly under half are a visitor's first message, with no conversation to resolve from (closer to 44% over a fourteen-day window, against the opening audit's 70%). A third are later turns already searchable as written, where the existing rewriter runs and measures harmful, and where the gate stops the call. About one in five is gate-eligible. Weighting the held-out win and loss rates by that population gives roughly seven turns in a hundred retrieving better material and two worse, with a third of all retrieval turns no longer paying for a call measured to hurt them. The largest block is subtraction, not addition.

Deployment constraints and limits

Work on an internal preview surface showing which knowledge fed an answer exposed a defect: the map from commercial tier to retrieval mode sent the higher tier to a graph-only mode with no document passages, so a client with an explicit tier retrieved strictly less than one with none (which falls back to the environment default). Correcting it restored passages, one site going from none to eighteen on the same question, and graph-fact provenance, which the library strips while truncating, was re-attached from the untruncated originals the same call returns. The fix landed after most graph-tier measurements were taken at each client's default, a further reason that tier's estimate is treated as unresolved.

The switch governing this work is read from a per-environment configuration file, not the per-client store, with no environment-variable override. There is no per-client canary and no runtime rollback: enabling it is a deployment that applies to every client in that environment, and the staged rollout assumed in earlier plans needs the switch moved into the per-client store. The switch was turned on in every environment, production included, and the path exercised end to end in a live local session before release, with no visitor traffic. That session confirmed the mechanism, not the benefit: four turns in five were declined by the gate and reached retrieval byte-identical to what the visitor typed, and the turn that fired produced two keyword lists driving the graph queries while the visitor's two words drove the passage query. A handful of conversations says nothing about quality at this effect size.

Both instrument defects (the rubric escape clause and the strategy-specific annotation) were found by reviewing the harness, not by running it, and both had inflated the result toward the hypothesis under test. The team's standing evaluation guidance now requires re-measuring any result that supports the thing being built after any harness change.

The metric is self-consistent, not ground truth: no human labelled these items, so pairing protects comparisons between strategies but not the absolute score. The work was merged on August 28 and released to production on August 31; there is no post-deployment window in the period and no production effect is claimed.

Alongside, the knowledge-intake work made migration between the two tiers safe, retired the staged rollout gates on ingestion, extended access to migrated sources for domain-scoped users, and added website source rescans with propagating deletions. The tier decides which retrieval channels exist, but not the intervention: the winning strategy, first thought tier-specific, is a single rule on both, the tier affecting only which channel carries it and its cost.

Next step: read the first post-deployment window, environment-wide until the switch moves into the per-client store; build the rank-aware retrieval measurement; close the no-retrieval gap and re-measure; and hand-label a subset of held-out items to check judge agreement before any sufficiency figure becomes an operating target.


Closed-Loop Agent Evaluation and Optimization

Project and lock

Every experimental conclusion rests on the event stream recording what visitors did. June built precomputed experiment marts on that stream; the stream itself remained the lock. Product events arrived through a third-party webhook path that was lossy in hard-to-characterise ways and expensive in storage, and a shadow copy kept in parallel gave two representations of the same events that could disagree. A substrate that can silently disagree with itself cannot support causal claims.

A narrower uncertainty concerned conversion. Attributing a conversion to the interaction that caused it is not mechanical when several signals can follow one session, and a definition that drifts between surfaces reproduces the metric drift the marts were built to remove.

This month's work

The hypothesis was that a first-party ingestion path with canonical projections would be more faithful and cheaper than the webhook-plus-shadow arrangement, and that the two could be compared before retiring the old path. First-party ingestion of page events ran in parallel; canonical projections put both representations on identical ground; only once those were trusted were the webhook path and the shadow system removed, reclaiming roughly eighteen gigabytes on the session event store.

Client-side capture was found to poison its own rate-limit state under some conditions, silently dropping events; a recovery path was added. Conversion attribution now credits the interaction responsible, and client-specific conversion filters apply on every surface. Metric export was made cheaper, histogram resolution corrected, and export blocked on local runs so development traffic cannot contaminate experiment series.

Two defects in the evaluation harness behind the retrieval work could silently manufacture agreement. A run whose items raised exceptions still reported its mean as a pass; runs now carry their expected item count and fail unless every item completed. A single pass threshold across datasets was uncalibrated and unreachable, because the judged score reflects dataset difficulty: the hardest held-out set's do-nothing control sits far below the general set's. Thresholds are now set per dataset, about one standard error below that dataset's measured control, answering only whether a strategy retrieved worse than not intervening; ranking two strategies still requires paired per-item comparison across runs. Runs and scores are now persisted, so each claimed measurement leaves a record.

Results, proof, and next step

A shadow representation kept for safety becomes a liability once trusted: two copies of the same events invite disagreement. Running the first-party path in parallel and comparing canonical projections is what made retirement defensible.

Client-side capture can fail silently through its own protective mechanism, so an absent metric is not evidence of absent behaviour; no dashboard on the stream showed it.

No randomized measurement ran through the new substrate in August; its value remains prospective. The attribution correction changes a metric definition, so figures before and after it are not comparable.

Next step: read the holdout experiments through the single-sourced substrate and confirm that the marts reproduce their result independently.


Adaptive Multi-Tenant Conversation Orchestration

Project and lock

The answer-generation call dominates perceived latency and cost, and the provider's inference speed is outside the platform's control; the lever left is the prompt's structure. Providers cache a prompt prefix and charge less for a hit, but the cache keys on an exact prefix, so anything variable placed early (a per-visitor detail, a timestamp, a per-turn state field) invalidates it for every request after. Which parts of a multi-tenant conversational prompt are stable across turns and visitors, and how much reordering recovers compared with shortening, was not established.

A multi-tenant isolation lock ran alongside: several clients can share a root domain, so any access decision normalised to the root grants one client's data to another.

This month's work

The prompt was restructured so stable content precedes variable content, with cache-hit telemetry added, since a hit is otherwise indistinguishable from a fast response. Conversation history moved from an inlined transcript to a replayed message array ahead of the variable segment, for the same prefix stability. Model capability checks were re-keyed on provider family rather than model identifier, so routing survives version changes instead of silently falling back on an unrecognised identifier.

On isolation: configuration writes now fail rather than overwrite when the record has changed, closing a path for a stale editor to write one tenant's values over another's; team management in the administrative interface is scoped to the selected client; migrated knowledge sources are granted on exact domain, not normalised root; and at the storage layer, anonymous read access to client configuration and a set of stored procedures reachable across tenants were closed, so application scoping cannot be bypassed underneath.

A change to the ordering of content cards relative to questions also shipped, with no randomized comparison.

Results, proof, and next step

Prefix caching makes prompt layout a cost and latency variable independent of length: the same tokens, reordered, price differently. The change shipped late in the period, so the cache-hit rate that will settle it is not yet reportable.

Tenant scoping must resolve the exact identifier that owns the data; root-domain normalisation becomes a cross-tenant leak once two clients share a root, a case present in the current client base.

The content-card ordering change is a pending null, a candidate for a randomized comparison on the new substrate.

Next step: read the cache-hit telemetry over a full post-deployment window and quantify what share of the answer prompt is stable across turns.


Non-R&D / Productization Context

Product releases: per-language qualification answer options, widget placeholder translations, regional-locale and alias-specific call-to-action configuration, one-time email codes replacing magic links for administrative sign-in, bot protection on self-serve signup, a staff insights page with a weekly report, per-developer activity charts, a consolidated knowledge-source menu, simpler brand and competitor screens, automatic free-plan activation after onboarding, and a single switch for which environment tests and evaluations resolve against. Routine work covered client-specific skill and configuration edits, single-client chatbot fixes, dependency and documentation maintenance, interface polish, and a marketing-site deployment fix. The internal preview panel listing the knowledge behind each answer is a product surface; the two retrieval defects it exposed are recorded above.


Prior-Month Results Review (July shipped work)

The three holdout experiments launched in July ran through August and were read in September; that entry reports the reads and the measurement defects found while preparing them. No other July change was read after deployment in August.


Research Outcome

The query-resolution work under Compounding Context Engine for Company, Industry, and Buyer Intelligence produced a retrieval-scoring instrument, four labelled datasets including two held-out sets, five falsified mechanistic hypotheses, a reproducible noise floor, and a replicated out-of-sample effect on the hardest class of turn (+0.030 pooled over 325 held-out items on the graph-less tier). Two general findings: additive query strategies beat substitutive ones on embedding-based retrieval, and context injected once anywhere in the retrieval path gains nothing from being injected elsewhere too. Two bounded negatives: the graph tier's effect is indistinguishable from zero, and whether reranking earns its cost cannot be decided without a rank-aware measurement. The work reached production on August 31, too late to read in the period; because its switch is per-environment, the September read is environment-wide, not a canary.

The event-stream consolidation under Closed-Loop Agent Evaluation and Optimization is complete in engineering and not yet exercised by a randomized measurement. Prompt-cache layout under Adaptive Multi-Tenant Conversation Orchestration is instrumented and shipped too late to read.