Package com.tnsai.evaluation.autoharness
Class AutoHarnessLoop
java.lang.Object
com.tnsai.evaluation.autoharness.AutoHarnessLoop
Orchestrates the self-improving evaluation loop:
mine → cluster → generate → gate.
"Program the loop, not the agent." Each iteration mines new failures, clusters them by root cause, generates regression eval cases, and gates changes against the accumulated eval suite.
Usage
AutoHarnessLoop loop = AutoHarnessLoop.builder()
.miner(failureMiner)
.clusterer(new SimpleFailureClusterer())
.generator(new DefaultEvalCaseGenerator())
.runner(benchmarkRunner)
.passRateThreshold(0.8)
.build();
AutoHarnessLoop.LoopResult result = loop.run();
if (result.gateResult().passed()) { // safe to proceed }
- Since:
- 0.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final recordResult of a single auto-harness loop iteration. -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoHarnessLoop.Builderbuilder()run()Executes one full loop iteration: mine, cluster, generate, gate.Runs the loop up tomaxIterationstimes, accumulating results.
-
Method Details
-
run
Executes one full loop iteration: mine, cluster, generate, gate.- Returns:
- result of the loop iteration
-
runUntilPass
Runs the loop up tomaxIterationstimes, accumulating results. Stops early if the gate passes.- Returns:
- list of results from each iteration
-
builder
-