A filing error
Memory is not one system but several: one registers a scene as new, another judges how familiar it feels. In déjà vu the familiarity signal fires a fraction too early or too strongly, so a brand-new moment arrives wearing the feeling of an old one.
Researchers can trigger mild déjà vu in laboratories with scenes that resemble earlier ones, which supports the filing-error idea: the brain recognises a pattern — a layout, a doorway — and mislabels the whole scene as remembered.
Common, brief, and a clue
Most people experience déjà vu occasionally, more often when tired or travelling, and it usually lasts seconds. Far from being mysterious, it is evidence of a healthy checking system: a part of the brain notices the mismatch and flags it, which is why the feeling is eerie rather than convincing.
If episodes are very frequent, long, or come with confusion or blackouts, that is a conversation for a doctor. Ordinary déjà vu, though, is just your memory showing its working for a moment.

