// Step 1879 TDD: GR-010 — SemanticCompletionGate enforces meaningful semantic threshold // // ImprovementPromotionGate had a threshold of 0.02 (nearly anything passes) and no // depth tracking. SemanticCompletionGate requires score >= 0.70 and depth <= 5. // // t1: score=0.95, depth=0, humanApproved=false → passed (score >= 0.90 auto-pass) // t2: score=0.75, depth=0, humanApproved=true → passed (human approved) // t3: score=0.50, depth=0, humanApproved=false → NOT passed (below threshold) // t4: score=0.95, depth=6 → NOT passed (depth exceeded) // t5: score=0.75, depth=3, humanApproved=false → NOT passed (needs human approval) #include "SemanticCompletionGate.h" #include #include static int p=0,f=0; #define T(n) { std::cout<<" "<<#n<<"... "; } #define P() { std::cout<<"PASS\n"; ++p; } #define F(m) { std::cout<<"FAIL: "<