Skip to content
AnalysisAI

OpenAI Is Training Agents Inside Contract Software

An Ironclad partnership gives AI models legal and procurement tasks to practice. Building these exercises requires working software, expert judgment and a reliable way to check the answer.

Microsoft Research lettering on a glass wall inside its Beijing office.
Microsoft Research Asia in Beijing, photographed in 2011. Microsoft Research described Agent Lightning in an October 7, 2026 post.harrysummer / Wikimedia Commons · CC BY-SA 4.0
Key takeaways
  • OpenAI announced on October 6 that it is training models on 11 legal and procurement exercises inside Ironclad contract software, built with Ironclad specialists.
  • GPT-6 Astra earned an average of 55 percent of available points, against 41.6 percent for GPT-5.6 Sol; scores count requirements met, not whole assignments.
  • Microsoft’s Agent Lightning 1.0 records model calls from an agent’s usual software so developers can train it without rewriting its tool and memory code.
  • Microsoft reported Qwen3.5-9B rising from 41.8 to 56.4 percent on SWE-bench Verified after training on about 6,000 samples.
  • OpenAI excluded 68.3 percent of 1,699 reviewed SWE-bench tasks because descriptions or tests were flawed, then released a 500-task verified subset.

OpenAI is training its models on 11 legal and procurement exercises inside Ironclad, software used by legal teams to manage agreements. In a partnership announced October 6, Ironclad specialists helped create tasks that included setting up approval procedures and building reusable legal clauses.

Ironclad supplied hosted software for practice, expert review and scoring instructions with eight to 50 criteria per exercise. Researchers built synthetic tasks using contracts from public securities filings, filtered to remove personal information. Private customer agreements were excluded. The exercises were designed to take an experienced user about 30 to 40 minutes each.

GPT-6 Astra earned an average of 55 percent of the available points, compared with 41.6 percent for GPT-5.6 Sol, OpenAI reported. The models used different levels of computational effort, selected for their best scores. Scores measured requirements satisfied rather than entire assignments completed.

Researchers have been building practice websites for several years. WebArena, introduced in 2023, supplied self-hosted versions of shopping, discussion and code-collaboration sites alongside maps, a calculator and a reference encyclopedia. One example required an agent to find Pittsburgh art museums, plan a route and add that itinerary to a software project’s documentation.

WebArena evaluated whether an agent had produced the requested outcome in those applications. Developers could reset websites and repeat an exercise, allowing competing models to attempt it under the same conditions.

Microsoft is trying to reduce another mismatch: agents often practice with tools or surrounding code that differ from what they use later. Agent Lightning version 1.0, released October 7, records model calls while an agent runs in its usual software. Developers can use those records to train it without replacing the code that manages tools, memory and execution.

Using about 6,000 training samples, Microsoft’s researchers trained Qwen3.5-9B, a relatively small open model, and reported an increase from 41.8 percent to 56.4 percent on SWE-bench Verified, a test of real software issues. Those figures measure success on a first attempt.

Recording whole attempts introduces practical complications. Some agents make far more model calls than others before finishing a task. Microsoft’s framework accounts for those differences when preparing training updates, so an unusually long attempt does not acquire disproportionate influence simply because it generated more calls.

Creating thousands of repair jobs

Microsoft drew its exercises from SWE-smith, a project by John Yang and colleagues that generated 50,000 tasks from 128 collections of Python code published on GitHub. Its starting point was working software with tests. The researchers deliberately altered code until a test failed, producing a repair job whose solution could be checked by running that test again.

Building a runnable environment was part of generating each task. A project needs compatible versions of supporting software, installation instructions and enough computing resources to execute its tests. A model can then inspect files, change code and run commands inside that environment. SWE-smith released the tasks together with records of attempted solutions and tools for generating more.

Real bug reports have their own defects as exam questions. When OpenAI prepared SWE-bench Verified in 2024, it found a scikit-learn issue about a function that ignored a user’s choice of whether to copy data. Later discussion added a requirement for a deprecation warning. Tests demanded its exact wording, although the initial issue supplied to an agent did not specify that wording.

An agent could therefore make a reasonable repair and fail an undisclosed requirement. OpenAI enlisted 93 Python developers to review 1,699 tasks, with three reviews per task. Reviewers assessed whether descriptions were sufficient and whether tests would reject valid solutions. OpenAI excluded 68.3 percent under its combined criteria, acknowledging that conservative screening could remove some usable problems, and released a 500-task verified subset.

The evaluation also ran tests for functions unrelated to a repair, to check that a model had not broken code that previously worked.

As these collections multiply, Hugging Face has begun cataloging training environments with details about their supported software frameworks. Its September 28 guide advises developers to run a known solution before sending in a model. If that solution fails, installation, task files or scoring code may need attention before an AI result can be interpreted.

The guide also explains why a missing score needs investigation. An empty reward can indicate an execution error; treating it as an ordinary failed attempt would mix broken infrastructure with poor model performance. Likewise, an exercise checking whether an answer follows a required data format needs a separate check if factual accuracy matters.

Hugging Face’s catalog includes collections filtered by running a reference repair against each task. In Multi-SWE-RL, 2,232 of 4,703 tasks survived that validation. Scale-SWE retained 17,202 of 20,181.

Common questions

What did OpenAI train models to do inside Ironclad?

OpenAI used 11 legal and procurement exercises involving tasks such as approval procedures and reusable contract clauses.

Did the Ironclad exercises use private customer agreements?

No. The researchers built synthetic tasks using public securities filings, removed personal information, and excluded private customer contracts.

How long were the Ironclad tasks intended to take?

The exercises were designed for experienced Ironclad users to complete in about 30 to 40 minutes each.

What were the scores for Astra and Sol?

OpenAI reported that GPT-6 Astra earned 55% of available points and GPT-5.6 Sol earned 41.6%, using different effort settings.

Did the scores measure complete assignments?

No. The Ironclad results measure how many scored requirements the models satisfied rather than the share of assignments completed.

Why does WebArena let researchers reset test sites?

Resetting WebArena sites lets competing models attempt the same tasks under the same conditions and makes results easier to compare.

What does Microsoft’s Agent Lightning record?

Agent Lightning records model calls as an agent runs in its usual software so developers can use the records for training.

How much did Microsoft’s Qwen score improve?

Microsoft reported first-attempt SWE-bench Verified success rising from 41.8% to 56.4% after training Qwen3.5-9B on about 6,000 training samples.

What problem did OpenAI find with some coding test descriptions?

OpenAI found tasks where tests demanded requirements absent from the prompt, so a reasonable repair could still fail.

Why try a known solution before testing a model?

Hugging Face recommends checking a known solution to catch problems with installation, task files or scoring before interpreting model performance.

Sources

All news
Sam Altman seated with a microphone at Village Global’s Grove event in 2022.
AI

OpenAI’s Coding Agents Disabled Alerts and Rewrote a Monitoring Test

Greg Brockman and Sam Altman speaking with Frederic Lardinois at TechCrunch Disrupt
Governance

How AI Agents Use Tools to Complete a Task

Rows of storage and computing equipment in a NOIRLab server room.
Research

Nanbeige Releases a 33B Agent Ahead of a Smaller Model

Have data to license or need a source?

Tell us what your company has or what your team needs.

Talk to SnowRock