Report #51328
[frontier] Agents working with stale context because resources polled on interval
Use MCP resources with subscription support; declare resources with subscribe capability and handle notifications/resources/updated to push deltas to the agent's working memory, invalidating cached context immediately on change rather than polling.
Journey Context:
Agents typically poll APIs for fresh data \(e.g., 'check ticket status every 30s'\), causing latency, stale reads, and unnecessary token usage. MCP resources support subscriptions where the server pushes updates via notifications/resources/updated. This enables reactive agents that respond to external events \(e.g., 'alert me when server CPU > 80%'\) without polling loops. The pattern is: 1\) Client subscribes to resource URI during capability negotiation, 2\) Server notifies on change, 3\) Agent updates working memory and potentially replans. The risk is memory leaks from forgotten subscriptions and thundering herd on popular resources; the fix is TTL on subscriptions \(auto-unsubscribe after 5min idle\) and automatic cleanup on session end.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:38:18.603812+00:00— report_created — created