Latest Findings · ASI Lab

Testing Insurance Software the Hard Way: LLM Agents Lift Black Box Test Reliability from 39 Percent to 84 Percent

Insurance software is one of the hardest things in the world to test: the rules are buried in legacy systems, the logic changes with each jurisdiction, and there is no single right answer to compare against. The ASI Lab's ACAT framework puts LLM agents inside a strict black box loop of planning, running, diagnosing and repairing browser tests. Across 50 real broker workflows it lifted how often generated tests could be re run, without ever touching the code behind the screen.

Hi Kuen Yu, Jacky W. Keung, Man On Wong, Yicheng Sun, Rachel Samantha Chandra, Yihan Liao, Xiaoxue Ma
Agentic Software Intelligence Research Lab · Department of Computer Science, City University of Hong Kong
COMPSAC · 2026

Insurance software is one of the hardest things in the world to test: the rules are buried in legacy systems, the logic changes with each jurisdiction, and there is no single right answer to compare against. The ASI Lab's ACAT framework puts LLM agents inside a strict black box loop of planning, running, diagnosing and repairing browser tests. Across 50 real broker workflows it lifted how often generated tests could be re run, without ever touching the code behind the screen.

![ACAT multi agent workflow showing planning, coding, test runner, and repair agents looping around a shared artifact store and code book](agentic-constrained-testing.JPG)
Fig. 2 from the paper: the ACAT multi agent workflow. A Planning Agent turns inputs into a test plan, a Coding Agent generates Playwright scripts, a Test Runner executes them and stores artifacts, and a Repair Agent checks whether a failure is a system under test error or a test script fault, looping repaired scripts back through the runner and updating the code book along the way.

Why it matters

Regulated domains break the classic assumptions of software testing. In a payments system you can predict the output and compare it. In an insurance platform, correctness depends on whether a quotation satisfies an actuarial rule, whether a claim workflow respects a jurisdictional regulation, and whether five separate components agree with each other. That is the insurance oracle problem, and no amount of script automation solves it. Black box testing teams still interpret requirements by hand, design test data by hand, and judge correctness by hand. This paper names that difficulty formally and then attacks it head on.

The team's insight is that an LLM agent should not be given a blank cheque to click around a system. Instead it should be fenced in by artifacts: the test plan it wrote, a set of generation rules, and a growing code book of previously validated repair patterns. Every click must flow through a tool server, never direct browser access, so the black box stays black. The result is a testing pipeline that is not just smarter, but auditable and reproducible, which is exactly what regulators and quality assurance auditors ask for. On 50 production derived use cases with eight human testers as the baseline, code book supported ACAT raised executability from 0.39 to 0.84 and found a genuinely different family of bugs.

Key findings

39 percent to 84 percent, with zero access to source code

What it means for practitioners

For QA leads in banking and insurance, the practical message is that agentic testing belongs next to your exploratory testers, not instead of them. ACAT+ is a reproducible execution and repair layer: it keeps brittle Playwright scripts alive through interface churn, localises breakage quickly, and files structured bug reports. Human testers stay free to do what they do best, reading the domain, spotting the missing access control check, noticing when an error message is unhelpful.

Two design rules carry most of the weight. First, keep the agent bounded: let it reason, but route all execution through mediated tools so nothing happens off the record. Second, invest in the code book. The jump from 0.58 to 0.84 executability came entirely from reusing validated implementation patterns such as locator scoping, prerequisite navigation and synchronisation fixes. That artifact is small, auditable, and grows with every fix, and it is the piece most teams are missing today.

Related reading

Get the paper & cite it

Download full PDF ↓ View at DOI

Official citation: Hi Kuen Yu, Jacky W. Keung, Man On Wong, Yicheng Sun, Rachel Samantha Chandra, Yihan Liao, Xiaoxue Ma (2026). Artifact-Constrained Agentic Testing for Black-Box System Testing under Actuarial and Regulatory Constraints.. COMPSAC. DOI: 10.1109/COMPSAC69091.2026.00147.

agentic testing black box regulatory compliance LLM system testing