Metal_failure.For_testingval with_reap_status : (what:string -> status option) -> f:(unit -> 'a) -> 'aScoped, domain-local command-buffer observation seam for Metal_backend.reap. The callback sees the tracked work's name. None reads the real driver status; Some Pending retains the buffer until a later observation; Some (Error error) substitutes status Error and its optional error text. Install before submission with Pending, then switch to Error at the explicit wait, so post-launch bookkeeping cannot reap the buffer first. Only finite, normally submitted work is needed. The runner's resulting failure stays latched after this scope ends. Restores the prior callback on return or exception; does not alter Metal's actual command buffers.
val status_for_reap : what:string -> status optionBackend-side read of the test seam; None outside a test scope.