Certify Reversible Validation
- Confirm the target is an authorized test boundary; production requires explicit, specific approval.
- Capture the exact pre-state and its integrity hash before mutation.
- Define and test the restoration action before applying the temporary state.
- Install restoration in
finally, process-exit, and interruption paths appropriate to the platform. - Use generated test identities and values; never embed credentials or copy protected values into logs.
- Run the narrow validation and preserve its independent evidence.
- Restore state, read it back, compare hashes/semantic invariants, and fail certification if restoration is unproven.
- Record both test outcome and restoration outcome. A passing test with failed restoration is a failed campaign.
Prefer disposable snapshots or transactions over direct updates. A cleanup handler is not proof until the restored state is verified.