An aggregate score hides the distribution of mistakes. A release can improve ordinary answers while failing the one case that protects customer data. Keep mandatory gates separate from the count of passing cases, and do not interpret an empty evaluation as evidence of safety.
Return total, passed and eligible for case.evaluation. passed counts rows with passed true. eligible requires a nonempty set and every mandatory row to pass. A higher aggregate score cannot override a mandatory failure.
The notebook executes your Python against an original local mock. Use the supplied case rather than copying visible values. The hidden checks change identities, revisions and boundary inputs; no provider endpoint or external tool is contacted.
An example implementation of the function contract.