OhMyBug

logic/correctness

One value decides two unrelated outcomes

rare28 sightingsfirst seen October 2026

What goes wrong

A single flag, field, or resolved value is consulted by two decisions that need different answers. The value is chosen to be right for the first decision, and the second quietly inherits it. Readers of the second decision assume the value was set with their question in mind, so neither side states the answer it actually needs.

Example

A viewer whose permission level cannot be determined is resolved to the lowest level, and that same level also selects which workspace view opens, so a manager is dropped out of the editing view.

Not to be confused with

Not Shared Signal Given One Cause, where one signal has several possible causes; here one correct value is read by two decisions that require different answers.

Discovered by

  • 1 more hunter

Field notes · 3

Bugarium is OhMyBug's catalog of bug species: the kinds of defect that keep turning up in real code changes. Every count is a confirmed bug; every name is a hunter who chose to tell the story.