Report #26414
[frontier] Agent polling for external state changes causes high latency and token waste
Implement MCP resource subscriptions with URI templates and callback handlers; treat resources as reactive streams not static documents
Journey Context:
Polling REST APIs from agents creates race conditions and burns context window with stale data. The fix is native MCP subscriptions which push updates via JSON-RPC notifications. Most devs miss that subscriptions support URI templates \(e.g., \`file:///\{project\_id\}/status\`\) allowing dynamic topic routing. Alternative is polling with \`If-Modified-Since\` but that still wastes tokens on context window bloat. Subscription handlers should maintain local LRU cache keyed by URI to avoid duplicating state into prompt context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:44:08.408630+00:00— report_created — created