Microsoft Foundry has been extended with an agent optimizer loop that ingests live production traces, expert annotations, and evaluation results, then generates and ranks recommendations for modifying an agent's prompts, skill set, and underlying model. The loop is intended to provide a feedback‑driven path to improve agents in production, with insights publicly available and the optimizer itself still in preview.
How the optimizer loop works
The loop ties three data sources together: (1) telemetry from agents running in production, (2) annotations supplied by domain experts, and (3) quantitative evaluations of agent performance. An internal optimizer consumes this combined view and produces a ranked list of possible adjustments to the agent's instruction set, skill definitions, or model version. The ranking reflects the optimizer's assessment of potential impact based on the supplied data.
Operational considerations
Because the optimizer and associated training pathways are preview‑only, teams should treat them as experimental features. Integration will likely require adding or extending tracing pipelines to capture the necessary production data, and updating CI/CD processes to ingest optimizer recommendations before applying them. Monitoring the effect of any accepted change is essential to verify that the suggested improvement translates into real‑world performance gains.
Security and data handling implications
Feeding production traces into the optimizer introduces a new data flow that may contain sensitive information. Practitioners should review data retention and access policies for the trace store, and consider whether additional controls are needed while the feature is in preview. The preview status also means that security hardening and compliance certifications may not yet be finalized.
Related CloudNinjas coverage: AI engineering.
What This Means For Practitioners
Teams should start by enabling trace collection for their agents and establishing a process for expert annotation. Evaluate the optimizer preview in a non‑critical environment, monitor recommendation outcomes, and define governance rules for accepting changes. Keeping an eye on the preview roadmap will be important as Microsoft expands the optimizer’s capabilities and moves it toward general availability.

