Agent Behaviour โ Cache Policy
๐ง Agent Behaviour: Cache Policy
This module defines how long agents should cache .llmfeed.json
feeds, when to revalidate signatures, and how to handle offline scenarios.
๐ Default Cache Duration (TTL)
Agents SHOULD respect a reasonable cache duration depending on the feed type and its use case:
Feed Type | Recommended TTL |
---|---|
mcp |
1 hour |
export |
24 hours |
prompt |
1 hour |
session |
no caching (session state is volatile) |
credential |
as indicated by the credential issuer |
pricing |
15 minutes |
- If a feed declares a specific TTL (future extension), agents MUST respect it.
๐ Signature Revalidation
Agents MUST revalidate signatures in the following cases:
- When the cache TTL expires.
- When the agent session restarts.
- When a critical action is requested (such as invoking a capability based on the feed).
- When an updated version of the feed is detected.
Partial or incremental revalidation may be supported in the future (e.g., via trust hints).
๐ก Offline Mode
- Agents MAY use cached, signed feeds in offline mode, provided the TTL is still valid.
- If the TTL has expired and the feed cannot be revalidated, agents SHOULD:
- Warn the user (if applicable).
- Mark the feed as "stale".
- Refrain from performing irreversible actions based on the stale feed.
This ensures that agents maintain proper context integrity and do not rely on outdated information.
๐ฆ Summary
The goal of this module is to ensure that .llmfeed.json
feeds:
โ
Are used within their intended validity window.
โ
Are revalidated when needed to preserve trust.
โ
Are not blindly cached or reused without signature awareness.
This contributes to building a trustworthy, verifiable Agentic Web.