InfoQ Homepage News Microsoft Foundry Adds an Optimization Loop for Production Agents.

Nov 30, 2026 3 min read.

Agents built on Microsoft Foundry can now learn from their own production traffic. At Ignite, Microsoft added continuous improvement to the platform, routing traces, expert annotations, and evaluation scores into an agent optimizer that proposes changes for a developer to approve.

Tina Schuchman, corporate vice president for Microsoft Foundry, announced the capabilities at Ignite as a four-stage loop: establish what good looks like, identify where the agent falls short, optimize, and validate before release. The availability differs per capability. Production insights, which group recurring failures and rank possible fixes, are generally available, as is multi-turn evaluation and tracing for agents built outside Foundry with LangGraph, LangChain, and CrewAI. The agent optimizer, the option to send an insight straight to the optimizer, annotations on traces, golden datasets, rubric evaluators with safety coverage, and Programmed Training are in preview.

Sources indicate that the optimizer first appeared in private preview at Build in June. It evaluates a hosted agent against criteria the team defines, generates candidate configurations covering system instructions, skills, tool descriptions, and model choice, and ranks them so a developer can deploy the best one. According to Microsoft Learn, it supports hosted agents that use the Responses protocol, runs in every region that offers hosted agents except Norway East, and needs two models deployed in the Foundry project for each run. Microsoft also claims that its model router, which the optimizer can use for model selection, saves up to 65% compared with sending every request to a frontier model, based on its own testing.

In a separate engineering post, the team behind the optimizer described how they built the loop. They found that the reflector, a separate model that reads failing traces and diagnoses why the agent scored poorly, influenced results more than the agent's own model, and that a stronger reflector helped more than switching the agent between gpt-4o and gpt-4.1-mini. Developers run the loop from the Azure Developer CLI:.

When a fix needs more than new instructions, teams can turn to Managed Training, which Microsoft previously called managed fine-tuning, or to Programmed Training, both of which change model weights. Programmed Training divides the work, with the customer writing a Python driver that runs supervised fine-tuning or reinforcement learning on an open-weight model while Foundry executes the GPU steps underneath. In his walkthrough, security architect and Microsoft MVP Harri Jaakkonen pointed out that access requires explicit approval and that Foundry won't run arbitrary uploaded training code. He advises exhausting cheaper changes to instructions, tools, and skills first.

According to recent reports, gulf Air is one of the first customers to describe the workflow in production. In a joint post with Microsoft, the airline explained how it prepared a voice agent and a chat agent for its Falcon Eye operational analysis application, which went live on November 9 and queries operational data through APIs and a Postgres MCP server. The team generated about 10,000 candidate evaluation questions, ran selected questions in batches of 100, and completed a 400-question run shortly before launch, using insights to send eligible instruction and tool-description issues to the optimizer. The post does not publish accuracy, latency, or cost improvements.

Practitioners responding to the announcement focused on where the human sits in the loop. Writing on DEV Community, Hector Flores advised treating the 65% router savings as a ceiling rather than a forecast and welcomed the approval step before an optimized agent ships:.

Self-modifying agents with no review gate are an incident waiting to happen.

Jaakkonen made the same point about separating evaluation from release, advising teams to review the diff, inspect which examples improved and regressed, and deploy in stages with a rollback path:.

A trace can inform a candidate, but only a human-approved release should change production.

He also suggested keeping a small golden dataset for high-risk actions, a broader regression set for ordinary requests, and separate safety tests for prompt injection and unauthorized tool use.

Microsoft documents insights, the agent optimizer, and rubric evaluators on Microsoft Learn, and the optimizer quickstart walks through optimizing a sample hosted agent.

Equal Experts helps organizations harness AI, modernize technology, and build better software through expert engineering, collaboration, and innovative delivery practices. Learn more.

Industry observers note that A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example.

📌 Read also:

→ Read original article