waitForHumanResponse synchronously stores pending challenge before returning, ensuring SSE emit happens after storage. Tests verify ordering, choice consistency, promise resolution, and cleanup. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>