/** * Preserve a completed product observation when later receiving teardown * fails. A failure before completion remains primary through withOracleCleanup; * a completed mismatch stays available to the model's comparison, with every * subsequent cleanup error recorded separately. */ import { retainOracleCleanupObservation } from '../../db/tests/oracle-cleanup' export type ReceivingCleanup = { cleanupErrors?: ReadonlyArray } export async function retainNativeObservation( run: () => Promise, cleanups: ReadonlyArray<() => unknown>, ): Promise { return retainOracleCleanupObservation(run, cleanups) }