Back to Blog

AI Agents Are Citing Your 2023 Patch Notes — A Cloudflare Search for Agents Runbook

Published on December 1, 2026
AI Agents Are Citing Your 2023 Patch Notes — A Cloudflare Search for Agents Runbook Generated with the help of AI

In a nutshell

Learn how Cloudflare Search for Agents indexes your game docs, what breaks in production, and how to detect and remediate stale or poisoned indexes.

A player asks an AI assistant why their ranked MMR got rolled back. The assistant answers confidently, citing a patch note from eight months ago. Your actual fix shipped last Tuesday. Nothing in your stack ever told the agent where the current truth lives — so it guessed, and it guessed wrong in front of a paying customer.

That is the failure mode Cloudflare is trying to close with Search for Agents, announced this week. It is also a failure mode most game studios have not runbooked for, because until roughly a year ago "AI agents reading our docs" was not a category of traffic you had to reason about.

This post is a runbook: what breaks, how to detect it, how to fix it, and how to stop it from coming back. If you run a live-service game with a docs site, a wiki, or an item database, this is now part of your infrastructure surface — and it deserves the same discipline you would apply to a server crash protocol.

What Cloudflare Actually Shipped

Strip the announcement down and there are three facts worth internalizing:

  1. It is a toggle, not a project. Search for Agents lives under Quick Actions on your zone dashboard, or you can enable it via API. Flip it on and Cloudflare creates an AI Search instance for your zone, crawls your content, and begins indexing it.
  2. Discovery is scoped to your own domain. The search APIs are exposed from your domain rather than a vendor subdomain. An agent that already knows your docs live at docs.yourgame.com can discover the search endpoint there too, without you hand-wiring an integration.
  3. It rides on Markdown for Agents. Cloudflare's network already converts HTML to Markdown in real time via content negotiation headers for enabled zones. Search for Agents reuses that pipeline, so the index holds something closer to what a model actually wants to read than raw HTML buried in navigation chrome.

What the announcement does not publish: reindex cadence, crawl budget, per-zone document caps, or how the crawler treats query-string URLs. Assume hours, not seconds, for freshness until you measure it yourself. That single assumption drives everything below.

Why This Hits Games Harder Than SaaS

A B2B SaaS company has maybe 300 documentation pages. A mid-size live-service game has:

  • 4,000+ wiki pages covering items, abilities, bosses, and drop tables
  • A patch-notes archive going back six years, with contradictory entries
  • A modding API reference that changes every minor version
  • Server configuration docs with per-platform differences
  • An error-code table that support links to constantly

Every one of those is a page an AI agent might quote back to a player. And unlike a SaaS doc page, a stale game doc page is actively wrong — drop rates get rebalanced, abilities get reworked, entire systems get deprecated. A stale pricing page is embarrassing. A stale loot table is a refund request.

Runbook: Five Failure Modes and How to Fix Them

Failure 1: Stale Index, Confident Answer

What breaks. You ship a balance patch at 10:00. The index still holds pre-patch numbers. An agent answers with the old values and cites your own domain as the source, which makes the wrong answer look authoritative.

How to detect it. Ship a canary token in every patch note — a unique string that exists only in the newest version. Then query the index for it as part of your deploy pipeline.

CANARY="canary-$(date +%Y%m%d)-bat-nerf"
# publish patch notes containing $CANARY, then:
HITS=0
for i in $(seq 1 6); do
  HITS=$(curl -s "https://docs.yourgame.com/api/search?q=${CANARY}" \
    -H "Accept: application/json" | jq '.results | length')
  echo "attempt $i: $HITS hits"
  [ "$HITS" -gt 0 ] && break
  sleep 600
done
[ "$HITS" -eq 0 ] && echo "INDEX STALE — escalate" && exit 1

How to remediate. Index staleness has three usual causes: the crawler has not revisited the URL, the URL changed and the old one is still canonical, or a cache is serving an old body. Check Last-Modified and ETag on the live page first. If your CDN is handing out a 12-hour-old cached body, no crawler on earth will index the new content.

How to prevent recurrence. Give every patch note a stable slug and a dateModified in structured data. Never reuse a URL for a new patch. If you rewrite history at the same URL, you have made freshness undetectable — and that is exactly how an agent ends up quoting a policy you retired. If your live-ops fallback behaviour changed — the kind of thing that got very public during the Stop Killing Games campaign — an agent citing the old policy is a support ticket you cannot close.

Failure 2: Staging Content Leaks Into the Index

What breaks. Your docs build pipeline publishes to docs.yourgame.com and staging.docs.yourgame.com from the same source. The sitemap generator does not care which one it is running against. Now the index contains unreleased item names, internal balance notes, and a "DO NOT SHIP" banner.

How to detect it. Plant a token that exists only in the staging build and query for it.

curl -s "https://docs.yourgame.com/api/search?q=STAGING-ONLY-TOKEN-9f3a" \
  -H "Accept: application/json" | jq '.results | length'
# anything above 0 is an incident

How to remediate. Serve X-Robots-Tag: noindex on every staging response, not just a <meta name="robots"> tag — headers survive Markdown conversion and meta tags sometimes do not. Then reindex and verify the token is gone.

How to prevent recurrence. Separate zones for staging and production, and a CI gate that greps the built output for staging. hostnames before deploy. This is a five-line check that has saved more studios than any WAF rule.

Failure 3: Crawler Traffic Melts Your Origin

What breaks. A 4,000-page wiki at roughly 60KB of HTML plus a 200KB JS bundle is about 1GB of transfer per full crawl. If your docs origin is a $12/month VPS with one vCPU, three concurrent crawlers will push p95 response time from ~180ms to ~2.4s. Your actual human readers notice immediately.

How to detect it. Watch 429 rate and p95 latency on the docs host, segmented by user agent. If crawler traffic is more than ~15% of your request volume and your p95 has doubled, you have a problem.

How to remediate. Three moves, in order of impact: pre-render docs to static HTML so no request touches a database, cache aggressively at the edge with a long s-maxage and stale-while-revalidate, and rate-limit by user agent at the edge rather than at the origin.

How to prevent recurrence. Treat documentation as static infrastructure, not as an application. If your docs need a database to render a page, that page is a liability the moment anything automated discovers it.

Failure 4: The Agent Cannot Discover the Endpoint

What breaks. You enabled the feature, but agents still cannot find it — usually because your docs are behind a JS-only shell, your robots.txt disallows everything except Googlebot, or your discovery files were never regenerated after a domain migration.

How to detect it. Walk the discovery path yourself, from a clean machine, with no cookies.

curl -sI https://docs.yourgame.com/robots.txt | head -20
curl -s  https://docs.yourgame.com/llms.txt | head -40
curl -sI https://docs.yourgame.com/ | grep -i '^link:'

If robots.txt blocks * or your llms.txt 404s, agents have nothing to work with.

How to remediate. Publish an llms.txt that names your canonical doc sections and the search endpoint, allow AI crawlers explicitly in robots.txt, and make sure your sitemap lists canonical URLs only — no ?utm_source= variants, no paginated duplicates.

How to prevent recurrence. Add discovery files to the same build that generates your sitemap, so they can never drift out of sync with the site.

Failure 5: Conflicting Docs Produce Conflicting Answers

What breaks. Two pages describe the pity system. One was written for the 1.4 rework, one for 2.0. Retrieval returns both, the model averages them, and the answer is wrong in a way that is very hard to debug because each individual page is correct.

How to detect it. Maintain a golden question set — 40 to 60 questions with known correct answers, covering the systems players ask about most. Run it nightly and track accuracy as a number, not a vibe.

golden_set = load("evals/player_questions.yaml")   # 50 Q/A pairs
correct = 0
for item in golden_set:
    hits = search(item.question, top_k=5)
    answer = synthesize(hits, item.question)
    correct += grade(answer, item.expected)         # exact or rubric match
report(accuracy = correct / len(golden_set))
# alert if accuracy drops more than 5 points week over week

How to remediate. Pick one canonical page per system. Redirect or noindex the duplicates. Add a visible "superseded by" banner on archived pages so both humans and retrieval rankers can tell which one wins.

How to prevent recurrence. Make deprecation part of the patch process, not an afterthought. When a system is reworked, the same PR that changes the code should archive the old doc page.

Wiring Search Into a Game Client

The same endpoint agents use is usable from your own game — an in-game help panel, a support overlay, a tutorial hint system. Here is a minimal Unity client that queries your zone's search endpoint and hands results to a UI layer.

using System;
using System.Collections;
using UnityEngine;
using UnityEngine.Networking;

[Serializable]
public class SearchRequest
{
    public string query;
    public int max_results = 5;
}

[Serializable]
public class SearchHit
{
    public string title;
    public string url;
    public string snippet;
}

[Serializable]
public class SearchResponse
{
    public SearchHit[] results;
}

public class GameHelpClient : MonoBehaviour
{
    // Agent-discoverable search endpoint exposed from your own zone.
    private const string Endpoint = "https://docs.yourgame.com/api/search";

    public IEnumerator AskHelp(string playerQuestion, Action<SearchHit[]> onDone)
    {
        var payload = new SearchRequest { query = playerQuestion, max_results = 5 };
        byte[] body = System.Text.Encoding.UTF8.GetBytes(JsonUtility.ToJson(payload));

        using var req = new UnityWebRequest(Endpoint, "POST");
        req.uploadHandler   = new UploadHandlerRaw(body);
        req.downloadHandler = new DownloadHandlerBuffer();
        req.SetRequestHeader("Content-Type", "application/json");
        req.timeout = 5; // never block a help panel longer than this

        yield return req.SendWebRequest();

        if (req.result != UnityWebRequest.Result.Success)
        {
            Debug.LogWarning($"Help search failed: {req.responseCode} {req.error}");
            onDone?.Invoke(Array.Empty<SearchHit>());
            yield break;
        }

        var parsed = JsonUtility.FromJson<SearchResponse>(req.downloadHandler.text);
        onDone?.Invoke(parsed?.results ?? Array.Empty<SearchHit>());
    }
}

Two things to note. First, the 5-second timeout is not arbitrary — a help panel that hangs is worse than one that says "check the wiki." Second, always degrade to an empty array rather than throwing; a failed doc search should never break gameplay.

Best Practices

  1. Ship a canary token with every patch. One unique string per release, checked by CI. It converts "is the index fresh?" from a guess into a boolean.
  2. Never reuse a URL for new content. Stable slugs plus dateModified make freshness machine-detectable. Rewriting at the same URL makes it invisible.
  3. Pre-render docs to static HTML. A docs page that needs a database query is a page that will fall over the first time an automated crawler finds it.
  4. Maintain a golden question set. Fifty Q/A pairs, run nightly, tracked as a percentage. This is the only way to catch conflicting-doc regressions before players do.
  5. Treat deprecation as part of the patch. The PR that reworks a system should archive the old doc page in the same commit. Otherwise the index accumulates contradictory truth.

The Part Search Doesn't Solve

Documentation search answers the generic half of a player question: how does the pity system work, what are the drop rates, when does the season end. It cannot answer the specific half: am I 12 pulls from pity, what did I loot last week, what is my current rank.

That split matters architecturally. If you route the specific half through a doc index, you will get confident, plausible, completely fabricated answers about a player's own account — which is worse than no answer at all.

The account-state half needs account-bound data: authenticated sessions, revision-aware cloud saves the client can reconcile, leaderboards, and remote configuration to gate which patch version a client is even allowed to see. horizOn covers that half — account-bound sessions, Cloud Save with revision-aware reads and writes, leaderboards, and remote config — so a help panel can answer both halves without you standing up a second backend for it.

What to Do Next

Enable the toggle on a staging zone first, not production. Point it at a docs subset, run the canary check, plant the staging token, and watch your origin's p95 for a week. You will learn more about your own docs infrastructure in that week than in the last year of writing them.

If you are building the account-state side of that help panel — the part that knows which player is asking — start with horizOn and wire up account-bound sessions and Cloud Save before you touch the search layer. The docs can always be reindexed. A player who got a fabricated answer about their own save file does not come back.


Source: Introducing Search for Agents