# Issue #149: [COORD-009] Test rejection loop ## Objective Validate quality gates prevent premature completion through simulated rejection scenarios. ## Approach 1. Create comprehensive integration tests for rejection loop scenarios 2. Test each gate failure type triggers proper rejection 3. Verify forced continuation prompts are generated correctly 4. Ensure agents cannot bypass gates 5. Validate loop continues until all gates pass ## Test Scenarios - [ ] Agent claims done with failing tests - [ ] Agent claims done with linting errors - [ ] Agent claims done with low coverage - [ ] Agent claims done with build errors - [ ] All gates passing allows completion - [ ] Multiple simultaneous gate failures handled correctly - [ ] Forced continuation prompts are non-negotiable and actionable ## Progress - [x] Read existing QualityOrchestrator and ForcedContinuationService code - [x] Write comprehensive integration tests (TDD) - [x] Run tests - all 9 tests pass - [x] Fix linting issues - [x] Run type checking - passes - [x] All quality gates pass - [ ] Commit changes ## Testing Test file: `apps/coordinator/tests/test_rejection_loop.py` ## Notes The services already exist from Issue 148, so this is primarily testing the rejection loop behavior through integration tests that simulate agent completion scenarios.