Design or refactor AI harnesses, agent workflows, eval-fix loops, and self-improving coding systems using the EMD feedback pattern -- a symbolic generalization of PID control: Error (current failure), Memory (leaky history of recurring failures), Delta (change since last iteration). Use when adding structured iteration feedback, recurring-failure memory, trend/regression signals, stagnation handling, anti-windup guardrails, or architecture-aware decision routing to an iterative AI workflow. Ships a standalone Python reference implementation (scripts/emd_state.py).
2026-06-21