- Initialize asyncio_decoupling_refactor_20260306 track - Initialize mock_provider_hardening_20260305 track - Initialize simulation_fidelity_enhancement_20260305 track - Update TASKS.md and tracks.md to reflect new strict execution queue - Archive completed tracks and remove deprecated test performance track
1.0 KiB
1.0 KiB
Specification: Simulation Fidelity Enhancement
Background
The simulation/user_agent.py currently relies on fixed random delays to simulate human typing. As identified in the architecture audit, this provides a low-fidelity simulation of actual user interactions, which may hide UI rendering glitches that only appear when ImGui is forced to render intermediate, hesitating states.
Objective
Enhance the UserSimAgent to behave more like a human, introducing realistic jitter, hesitation, and reading delays.
Requirements
- Variable Reading Latency: Calculate artificial delays based on the length of the AI's response to simulate the user reading the text before clicking next.
- Typing Jitter: Instead of just injecting text instantly, simulate keystrokes with slight random delays if testing input fields (optional, but good for stress testing the render loop).
- Hesitation Vectors: Introduce a random chance for a longer "hesitation" delay (e.g., 2-5 seconds) before critical actions like "Approve Script".