OASIS: Static and Dynamic OpenAPI Specification Inference
Source
arxiv.org
Author
Hamza Bin Mazhar, Yuqing Wang, Jesse Nyyss\"ol\"a, Mika V. M\"antyl\"a
Date
Why it matters
Shows a practical pattern of static drafting plus dynamic agent verification against a live service to produce accurate API specs cheaply, useful for testing and agent ToolAn operation that the software around a model makes available for the model to request, with a name, expected inputs and a kind of result.Full definition → definitions.
Key takeaways · AI-distilled
OASIS drafts an OpenAPI specification from a service's source code, then uses an Large language modelA model trained on large amounts of data to process and generate language.Full definition →AgentA system in which a model repeatedly chooses operations, a harness carries them out, and the results return to the model to inform its next choice.Full definition → to validate and repair it against the running service, adding the dynamic view that source- or docs-only generators lack.
To score specs without ground truth, the authors built a Scorer that treats a spec as a set of claims and confirms or contradicts each one with real requests. Human review found the Scorer correct on 94 percent of outcomes.
Across 30 services in seven frameworks and five languages, OASIS found 99 percent of routes, and 97 percent of its testable claims were true. It produced better specs than five prior baselines in 52 of 54 cases.
The authors put the cost at about one cent of APIApplication programming interface: the agreed set of operations, inputs and outputs through which one piece of software uses another.Full definition → spend per route. Where the Scorer disagreed with the existing ground-truth specs, a human sided with the Scorer in 107 of 117 cases.
Terms in this piece · Glossary
Large language model — A model trained on large amounts of data to process and generate language.
Agent — A system in which a model repeatedly chooses operations, a harness carries them out, and the results return to the model to inform its next choice.
API — Application programming interface: the agreed set of operations, inputs and outputs through which one piece of software uses another.
Tool — An operation that the software around a model makes available for the model to request, with a name, expected inputs and a kind of result.