That's a bad example: it did not hallucinate about the codebase (which it had access to), but about a rule outside the codebase (which is not in the context, I assume). Yeah, missing requirements can cause it to rely on things it thinks are true. Same as humans do all the time when they lack context.