# Blank-Injection A/B for Measuring Context Usefulness
<!--
ref: @knowledge/frameworks/blank-injection-ab
type: framework
tags: [A/B testing, context injection, knowledge management, data-driven decision making]
triggers: [context injection detected, evaluate knowledge effectiveness, stale context concerns]
trigger_prompt: When the system auto-injects context and you need to determine its actual impact on project success.
version: 2
updated_at: 2026-07-18T22:55:58.938Z
-->

To learn whether an injected piece of context actually helps, sometimes detect-then-inject-nothing, and compare outcomes where it was injected vs where it could have been but wasn't.

*Synthesized from Benjamin Verbeek, How Lovable self-improves every hour (AI Engineer World's Fair 2026).*

The problem: once a system auto-injects retrieved knowledge/context into an agent, you have no clean read on whether any given entry is helping, hurting, or dead weight — and stale context actively causes rot.

The technique: on a small random sample of cases where the system *detects* it should inject an entry, inject a blank instead. This creates two comparable groups — projects where the entry was injected, and projects where it could have been but wasn't. Compare overall success across the two groups: promote the entry (show it more) if the injected group did measurably better, demote it (show it less) if worse.

When to apply: any RAG/context-injection or memory system that auto-selects what to feed the model. It turns "we retrieved something relevant" into a measured lift signal, and gives you a principled, data-driven basis for pruning a knowledge bank that would otherwise accumulate stale entries. Cleaner than offline eval because it measures effect in real production traffic on the exact cases where the entry fires.

---

*Related: `@content/youtube/yifan-bth/chatgpt-s-hidden-memory-how-openai-actually-tracks-you` · `@content/youtube/tiago-forte/i-trained-ai-to-write-like-me-and-it-actually-worked` · `@protocol/getting-started` · `@knowledge/frameworks/three-ingredients-of-an-agent` · `@knowledge/protocols/stuck-to-unstuck-knowledge-harvest`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*