● 12 · LEHRTAFEL · DATA HYGIENE AND CONTEXT · LEHRTAFEL · DATENHYGIENE UND CONTEXT

Data hygiene and context.

Datenhygiene und Context.

An agent is only as good as what it can see. Feed it stale, ambiguous, or missing data and it does not stop. It fills the gap with a confident guess. This article is about the unglamorous work that makes an agent reliable: what context actually is, how it goes wrong, and how to prepare data an agent does not have to guess from.

Ein Agent ist nur so gut wie das, was er sehen kann. Füttere ihn mit veralteten, mehrdeutigen oder fehlenden Daten und er hört nicht auf. Er füllt die Lücke mit einer selbstsicheren Vermutung. Diese Tafel handelt von der unscheinbaren Arbeit, die einen Agent zuverlässig macht: was Context wirklich ist, wie er kaputtgeht, und wie man Daten vorbereitet, aus denen ein Agent nicht raten muss.

6
Stages every input passes throughStufen, die jede Eingabe durchläuft
4
Ways context quietly failsArten, wie Context leise versagt
0
Guesses a well-fed agent should needVermutungen, die ein gut versorgter Agent braucht
READ THE METHOD METHODE LESEN ┌──→
FILE · 12 / SERIE AI & AGENTIC EXPLAINED READING TIME · 12 MINUTESLESEZEIT · 12 MINUTEN VERSION · v.2026.06
● 01 · WHAT CONTEXT ACTUALLY IS · WAS CONTEXT WIRKLICH IST

Context is not the prompt.

Context ist nicht der Prompt.

People hear "context" and think of the instruction they typed. That is the smallest part. The context an agent reasons over is everything it can see at the moment it acts: the standing rules, the facts it pulled in, and the live state of the world. These three layers move at different speeds, and each one fails in a different way.

Leute hören "Context" und denken an die Anweisung, die sie getippt haben. Das ist der kleinste Teil. Der Context, über den ein Agent nachdenkt, ist alles, was er im Moment des Handelns sehen kann: die festen Regeln, die hereingeholten Fakten und der Live-Zustand der Welt. Diese drei Schichten bewegen sich unterschiedlich schnell, und jede versagt auf ihre eigene Art.

STANDING · STAYS STABLE FEST · BLEIBT STABIL

The rules that hold.

Die Regeln, die gelten.

The agent's role, its policies, the format it must respect, the things that are always true for this job. This layer changes rarely. You write it once and revisit it when the job itself changes, not on every run.

Die Rolle des Agents, seine Richtlinien, das Format, das er einhalten muss, die Dinge, die für diese Aufgabe immer gelten. Diese Schicht ändert sich selten. Du schreibst sie einmal und überarbeitest sie, wenn sich die Aufgabe selbst ändert, nicht bei jedem Lauf.

  • Role and scope
  • Policies and constraints
  • Output format and tone
  • Rolle und Umfang
  • Richtlinien und Grenzen
  • Ausgabeformat und Ton
RETRIEVED · FETCHED PER TASK GEHOLT · PRO AUFGABE

The facts it pulls in.

Die Fakten, die er holt.

Documents, records, search results, prior tickets: the knowledge the agent retrieves for this specific task. This is where most failures hide. If the retrieval pulls the wrong document or an outdated one, the agent reasons perfectly over the wrong facts.

Dokumente, Datensätze, Suchergebnisse, frühere Tickets: das Wissen, das der Agent für diese konkrete Aufgabe abruft. Hier verstecken sich die meisten Fehler. Holt die Suche das falsche oder ein veraltetes Dokument, denkt der Agent makellos über die falschen Fakten nach.

  • Retrieved documents and records
  • Search and database results
  • Prior conversations and tickets
  • Geholte Dokumente und Datensätze
  • Such- und Datenbankergebnisse
  • Frühere Gespräche und Tickets
LIVE · CHANGES BY THE MINUTE LIVE · ÄNDERT SICH LAUFEND

The state right now.

Der Zustand jetzt.

Current prices, today's date, the inventory count, the open status of an order. This layer is correct for seconds or minutes. An agent that reads it once and caches it will act on a world that has already moved on.

Aktuelle Preise, das heutige Datum, der Lagerbestand, der offene Status einer Bestellung. Diese Schicht stimmt für Sekunden oder Minuten. Ein Agent, der sie einmal liest und zwischenspeichert, handelt auf einer Welt, die sich schon weitergedreht hat.

  • Prices, counts, balances
  • Dates, times, deadlines
  • Live status and recent events
  • Preise, Bestände, Salden
  • Daten, Zeiten, Fristen
  • Live-Status und jüngste Ereignisse
● 02 · FOUR WAYS CONTEXT FAILS · VIER ARTEN, WIE CONTEXT VERSAGT

Four failures, one symptom.

Vier Fehler, ein Symptom.

Bad context does not announce itself. The output looks finished and reads with confidence. Underneath, the same four failures account for most wrong answers. Learn to recognize them by their symptom, because the agent will never tell you which one it hit.

Schlechter Context meldet sich nicht. Der Output sieht fertig aus und liest sich selbstsicher. Darunter erklären dieselben vier Fehler die meisten falschen Antworten. Lerne, sie an ihrem Symptom zu erkennen, denn der Agent wird dir nie sagen, welchen er erwischt hat.

FAILUREFEHLER What it looks likeWie es aussieht What the agent doesWas der Agent tut The fixDie Lösung
STALEVERALTET The data was true last quarter, not todayDie Daten stimmten letztes Quartal, nicht heute Reports old numbers with full confidenceMeldet alte Zahlen mit voller Überzeugung Timestamp every record, refuse data past its shelf lifeJeden Datensatz mit Zeitstempel versehen, abgelaufene Daten ablehnen
AMBIGUOUSMEHRDEUTIG "The client" could mean three different accounts"Der Kunde" kann drei verschiedene Konten meinen Picks one reading and runs with it silentlyWählt stillschweigend eine Lesart und macht weiter Use unique identifiers, not friendly labels, in the dataEindeutige Bezeichner statt freundlicher Etiketten in den Daten verwenden
MISSINGFEHLEND The fact the agent needs was never retrievedDer benötigte Fakt wurde nie abgerufen Fills the gap with a plausible inventionFüllt die Lücke mit einer plausiblen Erfindung Instruct the agent to say "not found" instead of guessingDen Agent anweisen, "nicht gefunden" zu sagen statt zu raten
CONFLICTINGWIDERSPRÜCHLICH Two sources disagree and both are in contextZwei Quellen widersprechen sich, beide sind im Context Blends them into one wrong middle answerVermischt sie zu einer falschen Mittelantwort Name one source of truth, rank the rest below itEine Wahrheitsquelle benennen, den Rest darunter einordnen
● 03 · PREPARING DATA AN AGENT CAN TRUST · DATEN VORBEREITEN, DENEN EIN AGENT TRAUEN KANN

Four moves before the first run.

Vier Schritte vor dem ersten Lauf.

You do not fix context by writing a longer prompt. You fix it upstream, in the data the agent reads. These four moves take an afternoon and prevent most of the failures from the previous chapter. Do them once per source, not once per task.

Context reparierst du nicht mit einem längeren Prompt. Du reparierst ihn flussaufwärts, in den Daten, die der Agent liest. Diese vier Schritte kosten einen Nachmittag und verhindern die meisten Fehler aus dem vorigen Kapitel. Mach sie einmal pro Quelle, nicht einmal pro Aufgabe.

01 · SCOPEEINGRENZEN

Cut the source down.

Die Quelle verkleinern.

An agent does not need your whole drive. Pick the smallest set of documents that answers the task. A narrow, relevant source beats a vast one every time, because retrieval has fewer wrong turns to take.

Ein Agent braucht nicht dein ganzes Laufwerk. Wähle die kleinste Menge an Dokumenten, die die Aufgabe beantwortet. Eine schmale, relevante Quelle schlägt jedes Mal eine riesige, weil die Suche weniger falsche Abzweigungen nehmen kann.

02 · CLEANBEREINIGEN

Remove the duplicates.

Die Dubletten entfernen.

Three copies of a policy with small differences will confuse any retriever. Keep one version, delete the rest, and resolve contradictions by hand. The agent cannot tell which copy is canonical, so you must.

Drei Kopien einer Richtlinie mit kleinen Unterschieden verwirren jede Suche. Behalte eine Version, lösche den Rest und kläre Widersprüche von Hand. Der Agent kann nicht erkennen, welche Kopie maßgeblich ist, also musst du es.

03 · TIMESTAMPDATIEREN

Date everything.

Alles datieren.

Every record gets a "last verified" date the agent can read. With dates in the data, you can instruct the agent to flag or refuse anything past its shelf life. Without them, stale and fresh facts look identical.

Jeder Datensatz bekommt ein "zuletzt geprüft"-Datum, das der Agent lesen kann. Mit Datum in den Daten kannst du den Agent anweisen, alles über der Haltbarkeit zu markieren oder abzulehnen. Ohne sehen veraltete und frische Fakten gleich aus.

04 · STRUCTURESTRUKTURIEREN

Shape it for retrieval.

Für die Suche formen.

Break long documents into self-contained pieces, each with a clear heading and a stable identifier. A chunk that makes sense on its own can be retrieved on its own. A wall of text either comes back whole or not at all.

Zerlege lange Dokumente in eigenständige Stücke, jedes mit klarer Überschrift und stabilem Bezeichner. Ein Stück, das für sich Sinn ergibt, kann für sich abgerufen werden. Eine Textwand kommt entweder ganz zurück oder gar nicht.

● 04 · THE CONTEXT PIPELINE · CLICK ANY STAGE · DIE CONTEXT-PIPELINE · STUFE ANKLICKEN

Six stages, one journey.

Sechs Stufen, eine Reise.

Every fact an agent uses travels the same road, from a raw source to a grounded answer. Click any stage on the pipeline to see what happens there and what breaks when it is neglected. The failure modes from chapter two each live at a specific stage.

Jeder Fakt, den ein Agent nutzt, fährt dieselbe Straße, von einer rohen Quelle zu einer belegten Antwort. Klick eine beliebige Stufe der Pipeline an, um zu sehen, was dort passiert und was kaputtgeht, wenn sie vernachlässigt wird. Die Fehlermodi aus Kapitel zwei wohnen jeweils an einer bestimmten Stufe.

THE CONTEXT PIPELINE ● CLICK A STAGE ● STUFE ANKLICKEN
RAW CLEAN RELEVANT VISIBLE REASONED 01 SOURCES 02 CLEANING 03 RETRIEVAL 04 CONTEXT 05 AGENT 06 OUTPUT
● 05 · THE RULE BEHIND THE RULE · DIE REGEL HINTER DER REGEL

If it has to guess, you missed a step.

Wenn es raten muss, fehlt ein Schritt.

Most "the agent is unreliable" complaints are really "the agent had to guess" complaints. A guess is what happens when the context is incomplete and the agent was not told to stop. The whole discipline of data hygiene reduces to one demand: make every fact traceable, and make absence visible.

Die meisten "der Agent ist unzuverlässig"-Klagen sind in Wahrheit "der Agent musste raten"-Klagen. Eine Vermutung entsteht, wenn der Context unvollständig ist und dem Agent nicht gesagt wurde, anzuhalten. Die ganze Disziplin der Datenhygiene reduziert sich auf eine Forderung: mach jeden Fakt nachverfolgbar und mach Abwesenheit sichtbar.

100%
FAUSTREGEL · PROVENANCE
FAUSTREGEL · HERKUNFT

"Every factual claim an agent makes should trace to a source you can name. If it cannot, the agent should say so instead of guessing. A system where 100 percent of facts are traceable and absence is reported is reliable. A system where the agent fills gaps quietly is not, no matter how good the output looks."

"Jede Tatsachenbehauptung eines Agents sollte sich auf eine Quelle zurückführen lassen, die du benennen kannst. Wenn nicht, sollte der Agent das sagen, statt zu raten. Ein System, in dem 100 Prozent der Fakten nachverfolgbar sind und Abwesenheit gemeldet wird, ist zuverlässig. Ein System, in dem der Agent Lücken still füllt, ist es nicht, egal wie gut der Output aussieht."

● 01 · THREE SIGNALS CONTEXT IS HEALTHY · DREI SIGNALE, DASS CONTEXT GESUND IST

The agent cites where each fact came from. When you ask "why did you say that," it points to a specific document or record rather than offering a rationalization. Traceable output is the clearest sign the context held.

Der Agent gibt an, woher jeder Fakt stammt. Wenn du fragst "warum hast du das gesagt", verweist er auf ein konkretes Dokument oder einen Datensatz statt eine Rechtfertigung zu liefern. Nachverfolgbarer Output ist das klarste Zeichen, dass der Context gehalten hat.

The agent says "not found" when something is missing. An agent that admits gaps has been fed a context discipline that values honesty over completeness. This is a feature you build in, not a behavior you hope for.

Der Agent sagt "nicht gefunden", wenn etwas fehlt. Ein Agent, der Lücken zugibt, wurde mit einer Context-Disziplin gefüttert, die Ehrlichkeit über Vollständigkeit stellt. Das ist eine Eigenschaft, die du einbaust, kein Verhalten, auf das du hoffst.

Repeated runs on the same input give the same answer. Stable output means the context is unambiguous. If the answer drifts run to run, something in the input can be read more than one way.

Wiederholte Läufe auf derselben Eingabe geben dieselbe Antwort. Stabiler Output bedeutet, der Context ist eindeutig. Wandert die Antwort von Lauf zu Lauf, lässt sich etwas in der Eingabe auf mehr als eine Weise lesen.

● 02 · THREE SIGNALS IT IS ROTTING · DREI SIGNALE, DASS ER VERFAULT

The answers are confident and wrong in equal measure. High confidence on incorrect output is the signature of missing context: the agent had no way to know it was missing something, so it produced its best guess at full volume.

Die Antworten sind selbstsicher und falsch im gleichen Maß. Hohe Sicherheit bei falschem Output ist die Signatur fehlenden Contexts: Der Agent hatte keine Möglichkeit zu wissen, dass ihm etwas fehlte, also lieferte er seine beste Vermutung in voller Lautstärke.

The same question gives different answers on different days. If nothing in the task changed, the data did. Usually a source went stale or a duplicate with different numbers entered the retrieval pool.

Dieselbe Frage gibt an verschiedenen Tagen verschiedene Antworten. Wenn sich an der Aufgabe nichts geändert hat, taten es die Daten. Meist wurde eine Quelle veraltet oder eine Dublette mit anderen Zahlen gelangte in den Suchpool.

You cannot reconstruct why the agent said something. If tracing a claim back to its source takes more than a minute, your provenance is broken. Fix the data trail before you trust the next output.

Du kannst nicht rekonstruieren, warum der Agent etwas gesagt hat. Wenn das Zurückverfolgen einer Behauptung zu ihrer Quelle länger als eine Minute dauert, ist deine Herkunft kaputt. Repariere die Datenspur, bevor du dem nächsten Output traust.

● 06 · SIX TERMS FOR CONTEXT · SECHS BEGRIFFE FÜR CONTEXT

Six terms, one vocabulary.

Sechs Begriffe, eine Sprache.

Data hygiene has its own working vocabulary. These six terms come up in every serious conversation about why an agent produced what it did. They are plain enough for a standup and precise enough for a postmortem.

Datenhygiene hat ihren eigenen Arbeitswortschatz. Diese sechs Begriffe tauchen in jedem ernsten Gespräch darüber auf, warum ein Agent produziert hat, was er produziert hat. Sie sind unkompliziert genug für ein Standup und präzise genug für eine Retrospektive.

GROUNDING
GROUNDING
Tying an agent's output to specific facts in its context rather than to its general training. A grounded answer can point to the document it came from. Grounding is what separates a researched answer from a confident guess.
Den Output eines Agents an konkrete Fakten in seinem Context binden statt an sein allgemeines Training. Eine geerdete Antwort kann auf das Dokument verweisen, aus dem sie stammt. Grounding ist das, was eine recherchierte Antwort von einer selbstsicheren Vermutung trennt.
RETRIEVAL
RETRIEVAL
The step that searches your sources and pulls the relevant pieces into the agent's context for a given task. Retrieval quality sets a ceiling on answer quality: the agent can only reason over what retrieval delivered.
Der Schritt, der deine Quellen durchsucht und die relevanten Stücke für eine Aufgabe in den Context des Agents holt. Die Such-Qualität setzt eine Obergrenze für die Antwortqualität: Der Agent kann nur über das nachdenken, was die Suche geliefert hat.
CONTEXT WINDOW
CONTEXT-FENSTER
The fixed amount of text an agent can hold in view at one time. Everything the agent reasons over must fit inside it. When the window is full, older or less relevant material falls out, which is why what you put in and in what order both matter.
Die feste Textmenge, die ein Agent gleichzeitig im Blick halten kann. Alles, worüber der Agent nachdenkt, muss hineinpassen. Ist das Fenster voll, fällt älteres oder weniger relevantes Material heraus, weshalb es darauf ankommt, was du hineingibst und in welcher Reihenfolge.
STALENESS
VERALTUNG
The gap between when a fact was true and when the agent uses it. Every data source has a shelf life. Staleness is invisible unless you record when each record was last verified, which is why timestamps are not optional.
Der Abstand zwischen dem Zeitpunkt, an dem ein Fakt stimmte, und dem Zeitpunkt, an dem der Agent ihn nutzt. Jede Datenquelle hat eine Haltbarkeit. Veraltung ist unsichtbar, solange du nicht festhältst, wann jeder Datensatz zuletzt geprüft wurde, weshalb Zeitstempel nicht optional sind.
PROVENANCE
HERKUNFT
The traceable origin of a fact: which source it came from and when. Provenance is what lets you audit an agent's output after the fact. Without it, a wrong answer is impossible to diagnose and a right answer is impossible to trust.
Der nachverfolgbare Ursprung eines Fakts: aus welcher Quelle er stammt und wann. Herkunft ist das, was es dir erlaubt, den Output eines Agents im Nachhinein zu prüfen. Ohne sie ist eine falsche Antwort nicht zu diagnostizieren und einer richtigen nicht zu trauen.
CHUNKING
CHUNKING
Breaking a long document into smaller, self-contained pieces so retrieval can return exactly the relevant part. A good chunk makes sense on its own and carries a stable identifier. Bad chunking is a hidden cause of missing context: the right answer was in the document but never came back.
Ein langes Dokument in kleinere, eigenständige Stücke zerlegen, damit die Suche genau den relevanten Teil zurückgeben kann. Ein gutes Stück ergibt für sich Sinn und trägt einen stabilen Bezeichner. Schlechtes Chunking ist eine versteckte Ursache fehlenden Contexts: Die richtige Antwort stand im Dokument, kam aber nie zurück.
● 07 · WHAT COMES NEXT · WAS KOMMT ALS NÄCHSTES

The agent is fed.
How do you measure it?

Der Agent ist versorgt.
Wie misst du ihn?

Clean context is necessary, not sufficient. You still need a way to know whether the agent is getting better or worse over time. The next article covers evaluation methodology: how to build a test set, what to measure, and how to tell a real improvement from a lucky run.

Sauberer Context ist notwendig, nicht hinreichend. Du brauchst trotzdem einen Weg zu wissen, ob der Agent über die Zeit besser oder schlechter wird. Die nächste Tafel behandelt Evaluierungsmethodik: wie man ein Testset baut, was man misst, und wie man eine echte Verbesserung von einem Glückslauf unterscheidet.

NEXT · CARD 13 NÄCHSTE · TAFEL 13

Evaluation methodology.

Evaluierungsmethodik.

How to know if an agent is actually good. Building a test set, choosing what to measure, and telling a genuine improvement apart from a lucky run.

Wie man weiß, ob ein Agent wirklich gut ist. Ein Testset bauen, wählen, was man misst, und eine echte Verbesserung von einem Glückslauf unterscheiden.

READ CARD 13 TAFEL 13 LESEN ┌──→
COMING LATER BALD VERFÜGBAR

More cards in the series.

Mehr Tafeln in der Reihe.

The series continues with cards on agent security, running agents in regulated industries, and the economics of long-running agents. New cards publish roughly every two weeks.

Die Reihe geht weiter mit Tafeln zu Agent-Sicherheit, Agent-Betrieb in regulierten Branchen und der Ökonomie langlaufender Agents. Neue Tafeln erscheinen etwa alle zwei Wochen.

FOLLOW ON READIX AUF READIX FOLGEN ┌──→
START THE SERIES REIHE VON VORNE

Start from card one.

Ab Tafel eins beginnen.

If this is the first card you've read, start at the beginning. Card 01 explains what AI and agentic AI actually are, without the hype. Each card builds on the previous one.

Wenn das die erste Tafel ist, die du gelesen hast, beginne am Anfang. Tafel 01 erklärt, was AI und Agentic AI tatsächlich sind, ohne den Hype. Jede Tafel baut auf der vorherigen auf.

READ CARD 01 TAFEL 01 LESEN ┌──→
← ALL CARDS IN THE SERIES ← ALLE TAFELN IN DER REIHE
01 · What is AI?· Was ist AI? 02 · How an Agent Thinks· Wie ein Agent denkt 03 · Tools & MCPs· Tools & MCPs 04 · Risk & Trust· Risiko & Trust 05 · Your First Agent· Dein erster Agent 06 · Agent Teams· Agent-Teams 07 · Care & Iteration· Pflege & Iteration 08 · Use-Case Library· Use-Case-Bibliothek 09 · Cost & ROI· Kosten & ROI 10 · Where This Is Going· Wohin die Reise geht 11 · Agents in the Team· Agents im Team