Logical fallacy

Self-sealing argument

Insulates a claim against testing by counting outcomes that could expose it to error as compatible with it or as further confirmation under the speaker’s rules.

Also called Self-sealing argument, Unfalsifiable reasoning, Thatcher’s blame

Two opposite test results funneled into the same locked box

Examples

A good result proves the program works. A bad result proves the program is so effective that opponents are hiding its success.
The explanation treats success and failure alike as confirmation. It supplies no observation that could count against it.
Agreement confirms my theory. Every disagreement also confirms it because only people affected by it would object.
A missing card proves an invisible editor removed it. A full deck proves the editor replaced it. Either result confirms the editor.

A similar case that can be sound

The theorist explains a failed prediction using an independently observed interference and states a repeatable test that could overturn the theory.