Files
whetstone_DSL/editor/tests/step868_test.cpp
Bill 00a9c4d976 Sprint 63: Learned Adapter Hints (Non-Authoritative) — Steps 859-868
Implements the learned adapter hints layer with governance guardrails:
- HintFeatureExtractor: extract features from decision ledgers (step 859)
- HintModelInterface: pair-specific hint query interface (step 860)
- DeterministicFallback: safe fallback when hints unavailable (step 861)
- HintConfidencePacket: confidence bands and escalation logic (step 862)
- HintABHarness: A/B harness to measure hint effectiveness (step 863)
- HintRollbackControl: suppress and lift hint suppression per pair (step 864)
- whetstone_get_adapter_hints MCP tool (step 865)
- whetstone_set_hint_policy MCP tool (step 866)
- HintSafetyGuardrails: non-authoritative enforcement + audit (step 867)
- Sprint63IntegrationSummary (step 868)

All 10 steps passing (94 tests). Governance rule: learned hints may
suggest; deterministic policy decides.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 18:40:31 -07:00

25 lines
1.3 KiB
C++

// Step 868: Sprint63IntegrationSummary tests (8 tests)
#include "Sprint63IntegrationSummary.h"
#include <iostream>
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: " << m << "\n"; ++f; }
#define C(c,m) if(!(c)){F(m);return;}
void t1(){T(sprintNumber);C(Sprint63IntegrationSummary::sprintNumber==63,"63");P();}
void t2(){T(stepsCompleted);C(Sprint63IntegrationSummary::stepsCompleted==10,"10");P();}
void t3(){T(theme_not_empty);C(std::string(Sprint63IntegrationSummary::theme).size()>0,"theme");P();}
void t4(){T(verify_true);C(Sprint63IntegrationSummary::verify(),"verify");P();}
void t5(){T(json_has_sprint_key);auto j=Sprint63IntegrationSummary::toJson();C(j.contains("sprint"),"sprint");P();}
void t6(){T(json_sprint_63);auto j=Sprint63IntegrationSummary::toJson();C(j["sprint"]==63,"sprint=63");P();}
void t7(){T(json_steps_10);auto j=Sprint63IntegrationSummary::toJson();C(j["steps"]==10,"steps=10");P();}
void t8(){T(json_status_complete);auto j=Sprint63IntegrationSummary::toJson();C(j["status"]=="complete","complete");P();}
int main(){
std::cout<<"Step 868: Sprint63IntegrationSummary\n";
t1();t2();t3();t4();t5();t6();t7();t8();
std::cout<<"\nResults: "<<p<<"/"<<(p+f)<<" passed\n";
return f?1:0;
}