Report #30945
[architecture] Agent returns cached result from previous execution context that doesn't match current workflow parameters due to insufficient cache key granularity
Use content-addressed storage \(hash of input parameters \+ agent version \+ deterministic seed\) as cache keys, with explicit TTL and cache-bust headers on agent boundaries
Journey Context:
Simple memoization by function name fails when agents have non-deterministic outputs or version changes. The alternative is no caching, which is expensive for LLM calls. IPFS-style content addressing ensures that if the inputs change \(including the prompt version\), the cache key changes automatically. The critical detail is including the agent version/hash in the key to prevent stale code from returning cached wrong answers after updates, and using deterministic seeds for reproducibility checks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:19:51.332648+00:00— report_created — created