OhMyBug

documentation/contracts

Documented guarantee not kept by code

#1common1696 sightingsfirst seen August 2026

What goes wrong

A comment, doc or runbook promises how the code behaves — 'retries three times', 'called exactly once', 'always runs on the main thread' — and the code does not do that. A caller or operator relies on the promise.

Example

The doc comment on a loader says 'idempotent, safe to retry', but a retry after a half-finished run inserts every row a second time.

Not to be confused with

Not a stale list of participants (Stale consumer list in comment), not a stale file:line link, and not two instruction files that contradict each other for an AI agent (Two AI-agent rule files disagree).

Discovered by

Field notes · 236