The commitment is on capacity retention and the retention is established by a test, so the test procedure decides the result more than the battery does. It is also, in many contracts, the most underspecified part.
The parameters that determine the answer: the rate at which the test is conducted, the temperature and how it is controlled, the state of charge window, the rest periods before and between steps, how many repetitions are averaged, who witnesses it, and how the result is corrected if conditions departed from the specification.
A test run at a different rate or temperature from the one the warranty assumed produces a different number from the same pack, and both parties can be arguing in good faith about a result neither procedure fully defines.
The preparation worth doing is to run the test procedure once, early, while nothing is in dispute. It establishes that the procedure is executable at this site, produces a reference result, and surfaces the ambiguities while they can still be clarified cheaply.