We completely overhauled the question generation system to fix critical issues with bank usage, mark mismatches, and question duplication. The new question-generation-plan module ensures strict adherence to exam patterns, properly apportions demand between AI and bank sources, and enforces global deduplication. The UI now includes a unified generator with better visibility into mark availability, while the backend logic ensures that questions match requested marks exactly. Fixed the bug, but at what cost?