i wonder if always having a design doc of some substance discussing the intended behavior of the whole app would help reduce instances of hallucination. The human developer should create it and let it be accessed by the AI

Conceptually a good idea but this feels extremely non-scalable

100% agree with that