# Production Logs Are Not Learning Environments <!-- ref: @knowledge/frameworks/logs-are-not-learning-environments type: framework tags: [production, learning environment, AI agents, feedback, evaluation] triggers: [logs lack feedback, need for testable improvements, learning from production incidents, evaluating agent performance] trigger_prompt: When you're considering how to learn from a production incident but realize that simply noting the event won't provide the necessary feedback or testability. version: 2 updated_at: 2026-07-18T22:55:45.336Z --> A log plus feedback is one observation, not a test — to learn from it you must lift it into a replayable simulation you can rerun and grade. *Synthesized from Soheil Feizi, Continual Learning for AI Agents (AI Engineer World's Fair 2026).* At development time you have a benchmark and evaluators (pass/fail/reward). In production you only have logs with no explicit feedback. You can add feedback two ways: automatically (an LLM, code, or the agent itself critiques the log — scalable) or via human experts (a handful of logs, low volume but high domain value). Either way you end up with log + feedback. The key insight: **that is still not enough, because it isn't testable.** It's a single observation of what happened plus a judgment on it — you can't rerun it to check whether a proposed fix actually helps or whether it breaks other cases. The required move is to lift the log into a **replayable learning environment**: infer the distribution behind the one trace. That means deciding how the tools should behave (real vs mock, and what data seeds the mocks), inferring synthetic users from the data, and defining the evaluators that say what success means. Once that exists, you can run agent candidates against it and get testable, verifiable results. When to apply: any time you're tempted to "learn" from a production incident by writing a memory note or editing a prompt directly. Without lifting the incident into a replayable, gradable environment first, the fix is unverified — it may not even resolve the original case and can silently regress others. Notably, a learning environment can also be synthesized from just an instruction (e.g. "handle a rude, adversarial caller"), not only from a captured log. --- *Related: `@content/web/xinyadu/2026-11-29-claude-code-task-framing-study` · `@knowledge/protocols/agent-to-human-handoff-context-preload` · `@protocol/eval` · `@content/youtube/david-ondrej/fine-tune-the-biggest-open-source-models-even-with-a-bad-pc` · `@content/youtube/david-ondrej/tailscale-clearly-explained-beginners-guide`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*