Why coding agents answer support and version questions from a dated snapshot, and which grounding sources (Baseline data, the lockfile, types, skills) actually correct it.
Contents · 11 sections
Ask a coding agent whether you can ship @scope without a fallback and you'll get a confident answer. The trouble is that the answer has a date on it, and the agent doesn't tell you what the date is. It's the date the model's training data stopped, give or take a few months of thin coverage before that. The question you asked has a date on it too: today. Those two dates can be well over a year apart.
The obvious fix is "give it web search", and that's incomplete in two directions. Search pulls in whatever ranks, and for browser support that can be a blog post that was right the year it was written. And some of the facts an agent needs aren't on the web at all in any useful sense: which version of TypeScript this repository has installed, or whether the DOM types it compiles against even encode browser support (they don't). Grounding an agent is not one mechanism. It's matching each kind of fact to the source that can actually answer it, on the day the agent works.
This piece settles four things. What a knowledge cutoff is and how long a model stays in service past it. How stale knowledge shows up in generated code, using the one peer-reviewed rate study I could find. Which grounding sources correct which errors, with three fast-moving CSS features and two package releases as worked examples. And what I'd wire into a harness so the agent's support and version claims come with a source and a check date. It builds on the coding agent as a system and context rot; for what Baseline promises in detail, read what Baseline actually guarantees. Every status below was checked on October 18, 2026.
A knowledge cutoff is a date, and a model is served for a year or more past it
Anthropic publishes two cutoff dates per model. The models overview defines the reliable knowledge cutoff as "the date through which the model's knowledge is most extensive and reliable", and the training data cutoff as "the broader range of data used". For the current lineup (Fable 5.1, Opus 5.5, Sonnet 5.5 and Haiku 5.5) both are June 2026. Older models separate them: the Claude Opus 4.6 page lists a reliable cutoff of May 2025 and a training data cutoff of August 2025.
What matters for engineering is the gap between those dates and the day the model writes your code. Opus 4.6 was released on February 5, 2026, about nine months after its reliable cutoff, and its page commits to retirement "not sooner than February 5, 2027". So a team on Opus 4.6 could be getting answers grounded in May 2025 knowledge for at least 20 months. Claude Opus 5.5 was released on September 22, 2026, three months after its June 2026 cutoff, with retirement not sooner than September 22, 2027. That's at least 15 months of service past the cutoff. As I write this, the cutoff is nearly four months old and the model is less than a month into its release.
Coverage thins before the cutoff, not at it
A cutoff isn't a cliff. My working explanation, which I couldn't find measured anywhere, is that the months just before it are covered by less text than older months, because the web hasn't finished writing about them yet: release notes exist, but the tutorials, issue threads and answers that teach a model how something is used come later. Anthropic's engineering team ran into the effect, whatever its cause. Harness design for long-running application development (March 24, 2026) describes needing extra prompting to get the generator to build in-app agents that drive an app through tools, because "the relevant knowledge is recent enough that Claude's training data covers it thinly".
That's the observation to hold on to. A feature that shipped three months before the cutoff is technically inside the model's knowledge and practically at the edge of it. For a front-end team, that's exactly where the interesting CSS lives.
The harness knows the date; the model doesn't
The model has no clock. The harness has to supply today's date, and the better ones do. Anthropic's published claude.ai system prompt for Opus 5.5 (dated September 22, 2026) tells the model its reliable cutoff is "the end of Jun 2026" and inserts a {{currentDateTime}} placeholder, so the model can reason about the gap. It then instructs the model to say so wherever its knowledge "could be superseded" and to point the person to web search.
That same prompt shows how fast hard-coded facts go stale, even ones a vendor writes about itself. It lists the most recent public models as Fable 5.1, Opus 5.5, Sonnet 5 and Haiku 4.5. Six days after that date, Anthropic's model pages show Sonnet 5.5 released on September 28, and Haiku 5.5 followed on October 7. As of October 18 the published prompt page still has only the September 22 entry. I can't tell from the page whether the deployed prompt was updated without the page being updated, but the lesson doesn't depend on it: a fact typed into a prompt is a second training cutoff, and it expires on the same schedule as the first.
Fig. 1 puts both models' cutoffs on one axis with the support events this piece uses as examples.
data
Even a perfect memory of the data would be wrong about @scope
Here's the experiment that convinced me "the model knows Baseline" is the wrong frame. The web-features package, which web.dev's Baseline page points to for building Baseline tools, is published to npm every week or so, and every release ships a complete data.json. Old releases stay on the registry. So you can ask what the best available dataset said on any given day, which is an upper bound on what a model trained up to that day could have known from it.
This script reads one release from unpkg and prints the headline status for a few features. It needs Node 18 or later for the global fetch; I ran it on Node 24.
// Usage: node as-of.mjs 3.32.0 scope view-transitions has
const [version, ...ids] = process.argv.slice(2);
const url = `https://unpkg.com/web-features@${version}/data.json`;
const { features } = await (await fetch(url)).json();
for (const id of ids) {
const s = features[id]?.status;
if (!s) {
console.log(`${id}: not in web-features@${version}`);
continue;
}
const since = s.baseline_high_date ?? s.baseline_low_date ?? '-';
console.log(`${id}: ${s.baseline} (${since}) safari ${s.support.safari}`);
}I picked three releases from the npm registry's publish times: 2.36.1 (published May 31, 2025, the month of Opus 4.6's reliable cutoff), 3.32.0 (June 25, 2026, the month of Opus 5.5's cutoff) and 3.43.0 (October 15, 2026, the current release). The package says false, low and high where webstatus.dev says limited, newly and widely.
web-features@2.36.1
scope: false (-) safari 17.4
view-transitions: false (-) safari 18
has: low (2023-12-19) safari 15.4
web-features@3.32.0
scope: low (2025-12-12) safari 26.2
view-transitions: low (2025-10-14) safari 18
has: high (2026-06-19) safari 15.4
web-features@3.43.0
scope: low (2026-03-24) safari 26.4
view-transitions: low (2025-10-14) safari 18
has: high (2026-06-19) safari 15.4Read it row by row, because each feature fails differently.
View transitions: the data moved after the old cutoff
In 2.36.1, view transitions are limited: Chrome 111 and Safari 18, no Firefox. Today webstatus.dev lists the feature as newly available since October 14, 2025, the day Firefox 144 shipped it. A model whose knowledge ends in May 2025, with training data through August, can only tell you "not in Firefox". That was true when it learned it and has been false for a year.
There's a second trap in the same name. The web-features entry for "View transitions" computes its status from one key, api.ViewTransition, per its source file, so it describes same-document transitions. Cross-document view transitions are a separate feature, still limited: Chrome 126 and Safari 18.2, no Firefox. "Are view transitions supported?" has two correct answers on the same day, and an agent that doesn't say which feature id it's answering for will give you one of them at random.
:has(): a status change in the cutoff month
:has() has been newly available since December 19, 2023, when Firefox 121 shipped it. It became widely available on June 19, 2026, per webstatus.dev, which is 30 months later, as the Baseline rule requires. That's in the same month as the current models' cutoff. Anything written about the change had at most eleven days to land before the end of June, against two and a half years of text saying "newly available, check your audience". Neither answer is dangerous here: the worst a stale model does is add a fallback you no longer need. But it's a clean example of a fact flipping exactly where coverage is thinnest.
@scope: the dataset itself was corrected after the cutoff
This is the row that matters. In 3.32.0, published in June 2026, @scope was newly available since December 12, 2025, with Safari 26.2. In 3.43.0 it's newly available since March 24, 2026, with Safari 26.4, and webstatus.dev agrees. No browser shipped anything in between. The data changed.
The cause is in MDN's browser-compat-data. PR #30203, "mark Safari 26 scope support as partial", merged on August 11, 2026, records that Safari 26.0 to 26.3 "did not apply CSS rules inside @scope to elements such as <input> and <textarea>", based on a WebKit bug and the Safari 26.4 release notes. The current scope.json now has three Safari ranges: supported from 17.4 until 26, partial from 26 until 26.4, and supported again from 26.4. The PR calls it a regression. For Baseline, the result is that the at-rule's Safari version jumped from 17.4 to 26.4, because a partial range doesn't count as support. Going by the registry's release dates and the data in each package, BCD 8.0.10 (August 6) still had plain Safari 17.4 and 8.0.11 (August 13) had the partial range; web-features picked it up in 3.35.0 on August 17.
So the best answer available on Opus 5.5's cutoff day was "Baseline since December 2025". Today's answer is "Baseline since March 2026, and in Safari 26.0 to 26.3 your scoped rules don't reach <input> and <textarea> elements". A model can't know about a correction published two months after its training data ends. Neither can a grounding skill that copied the date into its Markdown in July. Only a lookup made on the day can, and Fig. 1 shows the marker moving.
The headline version is computed from a bundle of keys
One more detail before leaving @scope, because it decides what a grounding tool should print. webstatus.dev shows Chrome 143 for @scope, while BCD records the at-rule itself in Chrome 118. Both are right. The web-features source for @scope maps five compat keys, and the generated .yml.dist shows the per-key support in comments. api.CSSScopeRule and its start and end properties arrived in Chrome 118, Firefox 146 and Safari 17.4. css.at-rules.scope arrived in Chrome 118, Firefox 146 and Safari 26.4 (after the correction). And css.selectors.nesting.at-scope, which BCD's nesting.json describes as "& treated as :where(:scope) in @scope blocks", arrived in Chrome 143, Firefox 142 and Safari 26.2. The headline takes the latest version per browser across those keys: Chrome 143 from the nesting key, Firefox 146 and Safari 26.4 from the at-rule.
If your code never uses & inside @scope, Chrome 118 is the version you care about. If it does, 143 is. A grounding tool that prints "Chrome 143" without the key is accurate and still misleading, which is the same point what Baseline actually guarantees makes about grouped features in general.
Stale knowledge has a measured shape, and the surrounding code drives it
I looked for a study that measures how often coding agents use outdated APIs or wrong support claims in practice. I didn't find one for agents. I did find one peer-reviewed rate study for the step underneath them, code completion, and it's more useful than I expected.
LLMs Meet Library Evolution (Wang et al., published at ICSE 2025) built 145 mappings from deprecated APIs to their replacements across eight popular Python libraries, then extracted 28,125 completion prompts from functions in open-source Python repositories that used either the deprecated or the replacing API. They asked seven models to complete the line where the API call goes, with greedy decoding, and labelled each completion as using the deprecated API, the replacement or neither. The models were mostly small code models (CodeGen 350M to 6B, DeepSeek-Coder 1.3B, StarCoder2-3B, CodeLlama-7B) plus the January 2024 GPT-3.5 Turbo.
Old code around the cursor pulls completions toward old APIs
First, a denominator. Most completions named neither API: the share the authors count as plausible (deprecated or replacement) was only 9% to 23% per model. Within that plausible share, between 25% and 38% used the deprecated API, depending on the model. The split is the interesting part. When the prompt came from a function that already used deprecated APIs ("outdated" context), 70% to 90% of plausible completions continued with the deprecated API. When it came from an up-to-date function, 9% to 18% still did. The authors attribute the deprecated usages to two causes: deprecated usages are common in training corpora, and the model has no knowledge of the deprecation at inference time.
Two things follow, and only one of them is the obvious one. Yes, training data drags generation toward the past. But the bigger effect in their data is the code around the cursor. A model completing inside a file full of old patterns writes more old patterns. For an agent, the repository is context, so a legacy codebase is a grounding source that points backwards. "Read the repo first" is good advice for API shape and bad advice for currency, unless something in the context says which patterns are deprecated.
The paper also tried two fixes. REPLACEAPI, which swaps the deprecated call for its replacement during decoding and regenerates the rest of the line, fixed more than 85% of the deprecated usages for the open-source models. INSERTPROMPT, which adds a hint about the replacement to the prompt, "does not achieve sufficient effectiveness and accuracy", in the authors' words, though they note the prompt was zero-shot and not tuned per model. Read that as a small point in favor of deterministic substitution over advisory text, with the caveat that it's line completion on small models, not an agent in a loop.
A version-conditioned benchmark points the same way
GitChameleon (preprint, November 2024) takes the other angle: 116 Python problems, each pinned to a specific library version, each with executable tests. Its abstract reports a pass@10 of 39.9% for GPT-4o, or 43.7% with error feedback. GitChameleon 2.0 (preprint, v2, July 2025) grows that to 328 problems and, unlike most of this literature, tests agents and coding assistants, not only bare models. The abstract puts enterprise models at 48-51% baseline success.
The agent table is the part I'd read. In its multi-step agent runs, adding a sandbox the agent could execute code in raised the success rate in eight of the nine model and search-tool combinations; Claude 3.5 Sonnet with DuckDuckGo search went from 41.7% to 55.3%. The models are a generation or two old and it's a preprint, so treat it as direction, not a rate: knowing which version you're writing for is hard even when the prompt says so, and letting the agent run its code helped in almost every configuration the authors tried.
The security frameworks now name stale context directly
OWASP's 2025 list put this under LLM09:2025 Misinformation, which lists "unsafe code generation" with "insecure or non-existent code libraries" and recommends retrieval from "trusted external databases". The 2026 edition of the OWASP Top 10 for LLM Applications (the resource page dates it August 3, 2026; the PDF's title page says August 4) renumbers it as LLM07:2026 Misinformation and is blunter. Its description lists "incomplete or stale context, weak grounding" among the causes, and its first mitigation is "Ground Claims Before Action: Require outputs to be grounded in authoritative and current sources."
There's a small irony in how I had to check that. The per-risk page at llm092025-misinformation still carries the 2025 number, and the site's menu lists "LLM Top 10 for 2025" with no 2026 entry next to it. An agent that searched the site and stopped at the first matching page would cite a superseded edition. That's the whole problem in miniature.
Grounding means loading dated facts just in time
Anthropic's context engineering write-up (September 29, 2025) gives the mechanism a name. Instead of pre-loading everything relevant, agents built with a "just in time" approach "maintain lightweight identifiers (file paths, stored queries, web links, etc.) and use these references to dynamically load data into context at runtime using tools." It describes Claude Code as a hybrid: CLAUDE.md files go into context up front, while glob and grep let it retrieve files just in time, "effectively bypassing the issues of stale indexing".
The post means a stale code index, but the same logic covers knowledge currency. A stored identifier doesn't go stale; the thing it points to can change, and the agent reads the current version when it follows the pointer. A copied fact goes stale the moment it's copied. So the design rule is to put references to facts in the agent's standing context (which feature ids to check, which command reads the installed version), and let tools resolve them when the question comes up. Fig. 2 shows the two paths side by side.
The cost is real, and context rot covers it: every tool result spends window, and long noisy results degrade attention to everything else. That argues for tools that return small, dated, structured answers, which is exactly what the support APIs below do and what a search results page doesn't.
Web search is a fallback, and its default trigger files this under stable knowledge
General web search looks like the universal answer, until you read when it actually runs. Anthropic's web search tool documentation says Claude searches when a request depends on information that is "current, changing, or outside its training data", and answers directly without searching when the request draws on stable knowledge, which it lists as including "coding concepts". Whether @scope works in Safari sounds like a coding concept and behaves like a changing fact. The docs say triggering "is steerable through your system prompt", so the fix is to steer it, explicitly, for support and version questions.
If you do use search for this, the same page documents allowed_domains, which restricts results to the domains you list. For browser support I'd allow webstatus.dev, developer.mozilla.org and the browser vendors' release notes and nothing else. That turns "search the web" into "search primary sources", which is the version of retrieval OWASP's mitigation actually asks for.
Baseline data answers support questions, if the tool says which key it read
For "can I use this in browsers?", there's a primary, dated, machine-readable source, and it's the one to wire in. web.dev defines the two Baseline stages: newly available when a feature "is supported by all of the core browsers", and widely available once "30 months have passed since the newly interoperable date". The core set is Chrome (desktop and Android), Edge, Firefox (desktop and Android) and Safari (macOS and iOS). Why CSS has no version explains why a dated status like this is the closest thing CSS has to a version number.
webstatus.dev serves that status per feature as JSON at api.webstatus.dev/v1/features/<id>, with the per-browser version and date. Here's the lookup I'd give an agent. It returns small, structured results and stamps each one with the source and the day it was checked, so the claim can be carried into a PR description or a code comment with its provenance.
// Usage: node baseline.mjs scope view-transitions has
const API = 'https://api.webstatus.dev/v1/features/';
const checkedOn = new Date().toISOString().slice(0, 10);
async function lookup(id) {
const res = await fetch(API + encodeURIComponent(id));
if (!res.ok) return { id, error: `HTTP ${res.status}` };
const feature = await res.json();
const versions = Object.entries(feature.browser_implementations ?? {})
.map(([browser, impl]) => `${browser} ${impl.version}`);
return {
id,
name: feature.name,
status: feature.baseline?.status ?? 'unknown',
newlySince: feature.baseline?.low_date ?? null,
widelySince: feature.baseline?.high_date ?? null,
versions,
source: `https://webstatus.dev/features/${id}`,
checkedOn,
};
}
const ids = process.argv.slice(2);
const results = await Promise.all(ids.map(lookup));
console.log(JSON.stringify(results, null, 2));Run on October 18, 2026, it returns newly since 2026-03-24 for scope, newly since 2025-10-14 for view-transitions and widely since 2026-06-19 for has, matching the webstatus.dev pages. An unknown id comes back as HTTP 404 rather than a guess, which matters: an agent that invents a feature id should get an error, not a plausible status.
The API also accepts a search query. While checking ids, I ran q=name:scope and got five matches, including scope-pseudo (the :scope pseudo-class, widely available since 2022) and view-transitions-element-scoped (element-scoped view transitions, limited: Chrome and Edge 147 only). An agent asked about "scope" needs to resolve the name to an id before it looks anything up, and it should say which id it picked.
The lookup can't see corrections, keys or your audience
Three limits, each from the sources above. First, the headline status is per feature, not per key, so the tool should say so; the @scope key bundle is the example. Second, Baseline is a statement about BCD data, and BCD is corrected after the fact; the Safari 26 correction landed about four and a half months after Safari 26.4 shipped. A check made in July was a correct reading of wrong data. Third, the core browser set is not your audience. The use-baseline rule docs in ESLint's CSS plugin say it well: testing your site "is still required", and Baseline "does not track how assistive technologies support web platform features".
Some of this belongs in a check, not a lookup
For CSS that's already written, the lookup is the wrong tool. A lint rule is better, because it runs every time, without the agent deciding to call it. ESLint's @eslint/css plugin ships a use-baseline rule that warns on properties, values, at-rules, selectors, functions, units and media conditions that aren't at the Baseline level you choose. Properties, values and units inside a matching @supports block pass, and so do at-rules guarded by a matching @supports at-rule() query. The default level is "widely".
import { defineConfig } from 'eslint/config';
import css from '@eslint/css';
export default defineConfig([
{
files: ['**/*.css'],
language: 'css/css',
plugins: { css },
rules: {
'css/use-baseline': ['error', { available: 'widely' }],
},
},
]);With ESLint 10.13.0 and @eslint/css 2.0.1, a file containing an unguarded @scope block and a :has() selector produces exactly one error: "At-rule '@scope' is not a widely available baseline feature". :has() passes. That's the right answer as of today, and it'll stay right only as long as the plugin's data does. The rule doesn't read web-features at run time; web-features is a dev dependency, and a generated src/data/baseline-data.js ships in the package. The commit history of that file shows "update baseline data" commits on September 27, October 4 and October 11, so the snapshot refreshes about weekly and reaches you when you update the plugin. A weekly snapshot pinned in your lockfile is still far fresher than a model's, and unlike a model, you can read its date.
Browserslist offers the same data for build targets, with queries like baseline widely available and baseline widely available on YYYY-MM-DD. The dated form is worth knowing: it makes the target an explicit, reviewable value instead of whatever "now" was when the build ran.
The repository is the ground truth for library APIs
Browser support has one shared public dataset behind most tools. Library APIs have a source per project: whatever is installed. npm's documentation says package-lock.json "describes the exact tree that was generated, such that subsequent installs are able to generate identical trees". That's the version the code will run against, and it can differ both from the newest release and from whatever the model remembers.
Two concrete cases from the registry. ESLint 10.0.0 was published on February 6, 2026, after Opus 4.6's training data cutoff of August 2025, so that model can't have seen ESLint 10's release. TypeScript 7.0.2 was published on July 8, 2026 and is the latest tag today; the 7.0 release candidate was published on June 18. The current models' knowledge ends in June 2026, so the newest Claude models could at most have seen twelve days of the release candidate (7.0.1-rc) of the TypeScript version that's now the default install.
And the default install isn't what your project uses. This site's own repository pins typescript to ~5.9.3. On October 18, npm ls typescript in it reports 5.9.3, while npm view typescript version reports 7.0.2, two majors apart:
# What this project runs against (from node_modules)
npm ls typescript
# What "latest" means on the registry today
npm view typescript version
npm view typescript dist-tagsnpm ls prints "all the versions of packages that are installed"; npm view shows registry data, and uses the latest tag when you don't name a version. The agent needs both, for different questions. Write code against the installed version; propose upgrades against the registry's.
"Prefer the latest stable" needs a tool to mean anything
OpenSSF's Security-Focused Guide for AI Code Assistant Instructions (August 1, 2025) warns that assistants can introduce "outdated cryptography or outdated dependencies", and suggests instruction text like "When suggesting dependency versions, prefer the latest stable release". That's sound advice for a human. For a model, "latest" resolves to the latest version in its training data unless something tells it otherwise, which for TypeScript today means a major version behind. The instruction works only if the agent can run npm view, and it works better if the harness tells it to.
The same guide suggests telling the assistant to "run or simulate the use of tools like CodeQL, Bandit, Semgrep, or OWASP Dependency-Check". I'd delete "or simulate". A simulated dependency scan is the model recalling which versions were vulnerable as of its cutoff, which is the exact failure the instruction is trying to prevent. Package hallucination and its supply-chain consequences get their own treatment later in this track (AIE-48).
Types catch drift in API shape
TypeScript resolves an import by walking up to the nearest node_modules and reading the package's types; the modules reference spells out the lookup order. So the type checker is an always-current oracle for the API shape of whatever is installed. If the model remembers a method that was renamed in the version you have, the build fails.
The agent only benefits if it sees those errors while it works. Claude Code's code intelligence plugins connect it to a language server, so it "catches type errors and missing imports that its own edits introduce before you run your build". The cost guide adds that installed language servers "report type errors automatically after edits". The plugins page also states the limit: in cloud sessions, Claude Code doesn't start plugin language servers, so there are no diagnostics there, and the type check has to happen in a hook or CI instead.
There's also research evidence that typing pressure helps generation itself. Type-Constrained Code Generation with Language Models (Mündler et al., PLDI 2025, published in PACMPL vol. 9) constrains decoding so the model can only emit well-typed TypeScript. On HumanEval and MBPP it "reduces compilation errors by more than half" and improves functional correctness. That's constrained decoding, which you can't bolt onto a hosted model, but it supports the weaker claim this section needs: type information in the loop removes a class of errors that recall alone produces. Whether a type checker in an agent's feedback loop does the same for generated code in general is a question this track comes back to in AIE-20.
Types don't encode browser support
Here's the limit, and it catches people who think "it compiles" means "it ships". TypeScript's DOM types come from the TypeScript-DOM-lib-generator, whose README says "a feature needs to be supported by two or more major browser engines to be included". Two, not three. A limited-availability API can be fully typed.
The Scheduler API is the example. webstatus.dev lists it as limited: Chrome 129 and Firefox 142, no Safari. It's in TypeScript 6.0.3's lib.dom.d.ts as declare var scheduler: Scheduler, with postTask() and yield(). TypeScript 5.9.3's DOM lib doesn't declare it at all, so the same file fails with "Cannot find name 'scheduler'" there: the type checker's idea of the platform moves with the TypeScript version, not with the browsers. With 6.0.3, this compiles cleanly with "lib": ["es2022", "dom"] and strict on, and throws a ReferenceError in Safari:
// Broken: type-checks, but `scheduler` doesn't exist in Safari.
export function saveDraftInBackground(save: () => Promise<void>) {
return scheduler.postTask(save, { priority: 'background' });
}The fix is a runtime check, with the support status written next to it so the next reader (or agent) knows when to revisit it:
export function saveDraftInBackground(save: () => Promise<void>) {
// Scheduler API: limited availability (no Safari), webstatus.dev,
// checked 2026-10-18.
if ('scheduler' in globalThis) {
return scheduler.postTask(save, { priority: 'background' });
}
return new Promise<void>((resolve, reject) => {
setTimeout(() => save().then(resolve, reject), 0);
});
}Both versions compile with TypeScript 6.0.3. Only the second one runs in every core browser. The type checker grounded the API shape and had nothing to say about support, which is why the support lookup and the type check are different tools in the matrix later on.
Packaged docs trade freshness for upkeep
The third grounding source is documentation the agent loads on demand: a skill, or a docs server. Both put current information in front of the model. Both can go stale in a new place, so the question is who keeps them current.
Agent Skills package "procedural knowledge and company-, team-, and user-specific context into portable, version-controlled folders that agents load on demand". Loading is progressive: at startup the agent sees only each skill's name and description; it reads the full SKILL.md when a task matches; and it runs bundled scripts or reads referenced files only as needed. The specification requires name (lowercase letters, numbers and hyphens, matching the folder name) and description, and allows scripts/ and references/ folders.
That structure suggests the right split. Put the procedure in Markdown, because procedures change slowly. Put the facts behind a script, because facts don't. Here's a skill that wraps the lookup above; the script is scripts/baseline.mjs from the previous section.
---
name: browser-support
description: Look up current Baseline status for web platform features
from webstatus.dev. Use before claiming a CSS, HTML or JS feature is
supported, adding or removing a fallback, or answering "can I use X".
---
Never answer a browser-support question from memory.
1. Map the feature to a webstatus.dev id. If unsure, query
https://api.webstatus.dev/v1/features?q=name:<term> and pick the id
whose name matches; say which id you chose.
2. Run `node scripts/baseline.mjs <id> [<id> ...]`.
3. Report status, the newly/widely dates, and `checkedOn` exactly as
returned. If the result is an error, say so; do not guess.
4. Our target is Baseline widely available. For anything newly or
limited, add a fallback or an `@supports` guard, and put the status
and `checkedOn` date in a comment next to it.
5. For grouped features (e.g. `@scope`), note that the headline version
is the latest across all compat keys.Nothing in that file has a date in it, and that's deliberate. A skill that says "@scope is Baseline since December 2025" would have been accurate in July and wrong by mid-August. A skill that says "run this to find out" stays right as long as the API does.
Docs servers move the upkeep to someone else
The alternative is a Model Context Protocol server that serves documentation as tools. The MCP tools specification describes tools as the way servers let models interact with external systems, "such as querying databases, calling APIs". A docs server is that, pointed at documentation. Its freshness is whatever its operator's ingestion pipeline gives it, which you can't see from the client side unless the server returns a date with each result. Ask for that, or prefer servers that do. The context cost of many tools versus one script is its own trade-off, which this track covers in AIE-11.
Whichever you pick, the test is the same: can the agent tell you when the information it's using was true, and where it came from? If the answer is no, you've built a cache with no expiry header.
A ten-run demo shows whether grounding works in your setup
The catalog entry for this piece called for a small controlled demo, and I want to be straight about its status: the protocol and scorer below are what I'd run, and this piece doesn't report results from them. Ten runs per condition is enough to see a large effect and not enough to publish a rate, and the result would be specific to one model, one harness version and one day. It's still the most useful experiment a front-end team can run on its own setup, because it measures the thing you actually care about.
Method: two conditions, three features, one scoring date
- Pick three fast-moving features with different statuses on the run date. As of today,
@scope(newly), cross-document view transitions (limited) and:has()(widely) cover all three states. - Write one task prompt: implement a small card component that uses all three, targeting Baseline widely available, and state in a comment whether each feature needs a fallback. Don't mention support data.
- Condition A: a fresh session with no tools beyond the repository. Condition B: the same, plus the
browser-supportskill above. Same model, same harness version, same effort setting, recorded. - Ten fresh sessions per condition. For each, extract one claim per feature: the support status the agent stated, and whether it shipped a fallback or guard.
- Score every claim against webstatus.dev on the same day, and report three counts separately: wrong support claims, missing fallbacks (a non-widely feature used unguarded) and unnecessary fallbacks (a widely feature guarded anyway).
The three counts matter because they fail in different directions. A stale model will tend to over-guard features that have since become widely available, which costs bytes and complexity, and under-guard features whose data was corrected after its cutoff, which costs users. A single "accuracy" number hides which one you have.
Score every claim against the same day's data
// Usage: node score-claims.mjs claims.json
// Each claim: { run, condition, feature, claimed, fallback }
import { readFile } from 'node:fs/promises';
const claims = JSON.parse(await readFile(process.argv[2], 'utf8'));
const truth = new Map();
for (const id of new Set(claims.map((c) => c.feature))) {
const res = await fetch(`https://api.webstatus.dev/v1/features/${id}`);
if (!res.ok) throw new Error(`${id}: HTTP ${res.status}`);
truth.set(id, (await res.json()).baseline?.status ?? 'unknown');
}
// Policy for this demo: anything short of widely needs a fallback.
const tally = {};
for (const c of claims) {
const actual = truth.get(c.feature);
const needsFallback = actual !== 'widely';
const t = (tally[c.condition] ??= { claims: 0, wrongSupport: 0,
missingFallback: 0, unnecessaryFallback: 0 });
t.claims += 1;
if (c.claimed !== actual) t.wrongSupport += 1;
if (needsFallback && !c.fallback) t.missingFallback += 1;
if (!needsFallback && c.fallback) t.unnecessaryFallback += 1;
}
console.log({ checkedOn: new Date().toISOString().slice(0, 10), truth });
console.table(tally);The claimed field uses webstatus.dev's vocabulary (limited, newly, widely), so normalize what the agent wrote before scoring. Keep the transcripts. If condition B is wrong, the transcript tells you whether the skill didn't trigger, the agent picked the wrong id, or it read the result and ignored it, and those need different fixes. With ten runs per condition, report the counts and an interval, not a percentage with a decimal point; the coding agent as a system walks through why.
Match each kind of fact to the source that can answer it
There are four kinds of fact a stale agent gets wrong, and no single source corrects all four. Fig. 3 and the table below lay out which source covers which.
| Source | Browser support | API shape | Run-time behavior | Package versions |
|---|---|---|---|---|
| Baseline data (webstatus.dev, web-features, lint) | Yes, per feature, dated | No | Partly, via BCD partial-support notes | No |
| Lockfile and installed types | No (DOM types need only two engines) | Yes, for what's installed | No | Yes, installed |
| Docs skill | As fresh as its last edit, unless it calls a live source | Partly | Partly | Partly |
| MCP docs server | As fresh as its operator's pipeline | Partly | Partly | Partly |
| Web search | Partly; depends on ranking and domains | Partly | Partly | Partly |
| A test the agent can run | Only in the engines you test | Yes | Yes | Yes, installed |
The last row isn't in the catalog's list of grounding mechanisms, and I added it on purpose. Documentation tells you what should happen. Only execution tells you what does, which is why tests as the agent's reward signal is a pillar of this track and why the @scope correction came from a WebKit bug report rather than a spec.
What I'd put in the harness
For platform claims, require dated data. Give the agent a support lookup (the skill above, or your own) and an instruction that support claims cite a feature id and a check date. Add css/use-baseline or a Browserslist Baseline target so CSS that slips through gets caught without anyone deciding to check. If you're on a hosted search tool, steer it to search for support questions and restrict it to primary domains.
For library APIs, require reading the installed version. Tell the agent to run npm ls <package> (or your package manager's equivalent) before writing against a library it didn't just read, and npm view before proposing an upgrade. Turn on the language server plugin where your harness supports it, and run the type checker in a hook or CI where it doesn't. Don't read "it compiles" as "it's supported": DOM types require only two engines.
For anything security-relevant, add a check the agent can run. A dependency audit or an SCA scan in CI, not an instruction to "simulate" one. OWASP's claim-check-act pattern is the right shape: the agent proposes, a deterministic check verifies, and only then does anything ship.
Keep dates out of standing instructions. Put identifiers and commands in CLAUDE.md and skills, and let tools resolve them. Every hard-coded fact in a prompt is a cutoff you now own. If you must write one down, write the date next to it, the way the saveDraftInBackground comment does, so someone can tell when it expires.
Watch the repository's own gravity. The ICSE study's strongest effect was the surrounding code. In a legacy codebase, tell the agent which patterns are deprecated and what replaces them, or better, add a lint rule that flags the old pattern. Advisory text did poorly in that paper; substitution did well.
What we don't know
How often coding agents, as opposed to completion models, use outdated APIs. The best rate study I found (Wang et al., ICSE 2025) measured line-level completion on mostly small models and GPT-3.5, with greedy decoding and no tools. Agents read files, run commands and see errors, which should lower the rate, and work in larger legacy contexts, which the same study suggests should raise it. GitChameleon 2.0 scores agents on version-pinned tasks, but by pass rate, not by how often they reach for a deprecated API. A study of agent transcripts against a pinned dependency set would settle it. I didn't find one.
Whether grounding mechanisms differ measurably from each other. I found no controlled comparison of a docs skill, an MCP docs server and web search on the same tasks. The demo protocol above is a small version of that experiment for one domain; a published version would need many more runs, several models and a pre-registered scoring rule.
How fast support data gets corrected, in general. The @scope correction landed about four and a half months after Safari 26.4 shipped the fix. That's one case. A survey of BCD changes that add partial_implementation to versions already counted as supported would show how often a Baseline date moves backwards or forwards after the fact, and therefore how long a support check stays trustworthy.
What thin coverage means quantitatively. Anthropic's harness post describes recent knowledge as covered "thinly", and the reliable-versus-training cutoff split implies the same thing, but neither says how thin, or how far back from the cutoff it starts. Without that, "three months before the cutoff" is a rule of thumb, not a measurement.
Whether deployed system prompts match the published ones. The published claude.ai prompt for Opus 5.5 lists models that were superseded within weeks. I can't tell from the page whether the deployed prompt was updated separately. It doesn't change the recommendation, but it's an example of how hard it is to know, from outside, what an agent was told was true.
References
- Models overview. Anthropic>. Accessed .
- Claude Opus 5.5. Anthropic>. Accessed .
- Claude Opus 4.6. Anthropic>. Accessed .
- Claude Sonnet 5.5. Anthropic>. Accessed .
- Claude Haiku 5.5. Anthropic>. Accessed .
- Claude Opus 5.5 system prompts. Anthropic>. Accessed .
- Harness design for long-running application development. Anthropic>. Accessed .
- Effective context engineering for AI agents. Anthropic>. Accessed .
- Web search tool. Anthropic>. Accessed .
- Manage costs effectively (Claude Code). Anthropic>. Accessed .
- Code intelligence plugins (Claude Code). Anthropic>. Accessed .
- Type-Constrained Code Generation with Language Models (arXiv v2). Mündler, He, Wang, Sen, Song, Vechev>. Accessed .
- Crossref metadata for DOI 10.1145/3729274 (PACMPL vol. 9, PLDI). Crossref>. Accessed .
- LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completion. Wang et al., ICSE 2025 (arXiv v3)>. Accessed .
- Crossref metadata for DOI 10.1109/ICSE55347.2025.00245. Crossref>. Accessed .
- GitChameleon: Unmasking the Version-Switching Capabilities of Code Generation Models (preprint). Islah et al., arXiv v1>. Accessed .
- GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities (preprint). Misra, Islah et al., arXiv v2>. Accessed .
- LLM09:2025 Misinformation. OWASP GenAI Security Project>. Accessed .
- OWASP GenAI LLM Top 10 2026. OWASP GenAI Security Project>. Accessed .
- Security-Focused Guide for AI Code Assistant Instructions. OpenSSF Best Practices and AI/ML Working Groups>. Accessed .
- Baseline. web.dev>. Accessed .
- @scope - Web Platform Status. WebDX Community Group>. Accessed .
- View transitions - Web Platform Status. WebDX Community Group>. Accessed .
- Cross-document view transitions - Web Platform Status. WebDX Community Group>. Accessed .
- :has() - Web Platform Status. WebDX Community Group>. Accessed .
- Scheduler API - Web Platform Status. WebDX Community Group>. Accessed .
- browser-compat-data: css/at-rules/scope.json. MDN>. Accessed .
- browser-compat-data: css/selectors/nesting.json. MDN>. Accessed .
- fix(css): mark Safari 26 scope support as partial (PR #30203). MDN browser-compat-data>. Accessed .
- @mdn/browser-compat-data on the npm registry. npm>. Accessed .
- web-features: features/scope.yml. WebDX Community Group>. Accessed .
- web-features: features/scope.yml.dist (generated). WebDX Community Group>. Accessed .
- web-features: features/view-transitions.yml. WebDX Community Group>. Accessed .
- web-features on the npm registry. npm>. Accessed .
- web-features 2.36.1 data.json. unpkg>. Accessed .
- web-features 3.32.0 data.json. unpkg>. Accessed .
- web-features 3.43.0 data.json. unpkg>. Accessed .
- package-lock.json. npm Docs>. Accessed .
- npm ls. npm Docs>. Accessed .
- npm view. npm Docs>. Accessed .
- Modules - Reference (node_modules lookups). TypeScript>. Accessed .
- typescript on the npm registry. npm>. Accessed .
- eslint on the npm registry. npm>. Accessed .
- TypeScript-DOM-lib-generator README. Microsoft>. Accessed .
- typescript 6.0.3 lib/lib.dom.d.ts. unpkg>. Accessed .
- @eslint/css: use-baseline rule. ESLint>. Accessed .
- @eslint/css README. ESLint>. Accessed .
- @eslint/css commit history for src/data/baseline-data.js. ESLint>. Accessed .
- Browserslist README (Baseline queries). Browserslist>. Accessed .
- Agent Skills overview. Agent Skills>. Accessed .
- Agent Skills specification. Agent Skills>. Accessed .
- Tools - Model Context Protocol specification 2026-07-28. Model Context Protocol>. Accessed .