Partial Contracts Suffice: Sound, LLM-Inferred Regression Verification

See how partial contracts from LLMs enable sound regression verification without full specs, reducing costs while maintaining safety.

martes, 28 de julio de 2026 • 3 min read • Q2BSTUDIO Team

Verificación de regresión eficiente con contratos parciales inferidos

In modern software development, the constant evolution of applications demands techniques that ensure each patch does not introduce errors without needing to re-verify the entire system. Traditionally, regression verification relied on complete specifications that are rarely available or too costly to maintain. However, an emerging approach shows that partial contracts —those covering only what the caller needs— are sufficient for robust and practical verification. This finding, based on automated contract inference via counterexamples, has profound implications for the software industry, especially when combined with technologies like artificial intelligence and large language models (LLMs).

The core idea is that a partial contract, sufficient for the caller's context, captures almost all the achievable rigor without requiring complete specifications. This translates into regression verification that does not generate false equivalences and discovers discrepancies that other tools overlook. Instead of requiring weeks of manual analysis, contracts are automatically inferred from the verifier's own counterexamples, speeding up the development cycle and reducing costs.

For a company like Q2BSTUDIO, specialized in custom software development, this approach fits perfectly. When working with clients requiring personalized software solutions, the ability to quickly and reliably verify changes without relying on exhaustive specifications is a key differentiator. Our teams combine this methodology with robust cloud infrastructures —both AWS and Azure— to ensure updates are secure and efficient. For example, when deploying new features in cloud environments, a verified partial contract ensures the system's behavior remains unaffected, minimizing the risk of regressions in production.

Moreover, cybersecurity is a priority. A contract that verifies only what the caller needs can integrate with security analysis to detect vulnerabilities introduced by code changes. At Q2BSTUDIO we offer cybersecurity and pentesting services that leverage these techniques to validate that modifications do not compromise system integrity. Regression verification with partial contracts acts as a first line of defense before deeper testing.

Artificial intelligence plays a crucial role in inferring these contracts. LLMs can analyze code context and generate precise partial contracts, further reducing human intervention. At Q2BSTUDIO, we develop AI solutions and intelligent agents that benefit from this capability. For example, an AI agent that automates workflows in a business application can be verified with partial contracts, ensuring each new rule does not break existing functionalities. This synergy between LLMs and formal verification is transforming how reliable software is built.

In the Business Intelligence domain, partial contracts are also applicable. When integrating BI and Power BI into evolving systems, it is critical that changes in business logic do not alter reports and dashboards. A partial contract capturing the caller's dependencies —in this case, the BI queries— guarantees that data transformations remain correct after each update. This allows companies to maintain trust in their dashboards without manually revalidating every process.

The regression verification technique based on partial contracts has been validated on third-party test suites, demonstrating no false equivalences and even uncovering errors in previous labels. The property it guarantees, called safety-preserving conditional equivalence, combines contract soundness with caller sufficiency. This means that for most targets, stopping at a partial contract costs almost nothing in terms of lost rigor.

In summary, regression verification does not need complete specifications to be effective. Partial contracts, automatically inferred via LLMs, offer a practical, sound, and scalable solution. At Q2BSTUDIO, we integrate these concepts into our custom software development, cloud, cybersecurity, BI, and AI agents, providing our clients with software that evolves with confidence. Next time your team faces a critical update, remember that a partial contract may be all you need.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.