Schrödinbug
Updated 2026-07-30
Summary
In computer programming jargon, a heisenbug is a software bug that seems to disappear or alter its behavior when one attempts to study it. The term is a pun on the name of Werner Heisenberg, the physicist who first introduced the uncertainty principle, and it is a reference to the observer effect, w…
Definition
A bug that does not exist when you read the code, but suddenly appears when you try to explain why the code should work. It seems that your act of observation itself 'collapses' its state. Scaffold use: Reveals that observation changes the system. Sometimes the problem does not exist until you start 'observing' it (e.g., explaining to your boss why the project is fine). Your act of explanation itself may create new assumptions and loopholes.
Introduction
How to use
Reveals that observation changes the system. Sometimes the problem does not exist until you start 'observing' it (e.g., explaining to your boss why the project is fine). Your act of explanation itself may create new assumptions and loopholes.
Mechanism
Borrowing the quantum superposition metaphor for intermittent defects (flakes) in software: they behave differently in testing vs. production, appearing to exist in a superposition of existence/non-existence until reproduced (observed) to determine their state.
Practice
In progress 0/1Practice this model in one real situation:
Cases
- Flaky tests that pass in test but occasionally crash in production. Concurrency races only manifest under specific timing.
Common pitfalls
- Treating intermittent issues as irrelevant; or merely rerunning to mask the problem. Without observation, they remain in superposition forever.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Heisenbugverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS