Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M4997

Higgs Bugson

Higgs Bugson
StructuremediumLogic
Included
account_tree

Updated 2026-08-08

Loading revision record…

Summary

A defect inferred from logs or crash reports but nearly impossible to reproduce, because the act of observing or debugging it changes the system and makes it vanish.

Definition

Named by analogy with the Higgs boson, which can only be detected indirectly, a Higgs bug is a defect whose existence is inferred from event logs or downstream failures but which cannot be reproduced in a development environment. The core claim is that the observer changes the system: adding logging, attaching a debugger, or slowing execution alters timing and memory, so the conditions that produced the failure no longer hold. Key qualifications are that such bugs usually live in concurrency, timing, or state-dependent code, and that they must be attacked by reasoning and defensive design rather than by reproduction.

How to use

- Reason from logs: reconstruct the causal chain from recorded events rather than from a live repro. - Defend broadly: harden the whole subsystem instead of patching the one suspected line. - Keep observation light: use sampling and metrics that do not alter timing or memory.

Mechanism

Concurrency and timing defects depend on an exact interleaving of events that occurs only under production load. Any observation mechanism, whether a print statement, a breakpoint, or an attached profiler, adds delay or memory that changes the interleaving, so the defect disappears precisely when you look for it. The evidence therefore stays indirect, and the practical response is to reason from logs and to design the subsystem so that the failure mode cannot occur.

Practice

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Adding a print statement can make a race condition disappear, and attaching a breakpoint can change execution speed enough to hide the bug.

Common pitfalls

  • Concluding that the bug is fixed because it stopped appearing, when observation merely changed the system.
  • Assuming a defect must be reproducible before it is real, which leaves timing and concurrency failures unfixed.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/HeisenbugZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS