feat(harness): add information gain stop and audit

This commit is contained in:
aruo
2026-07-27 01:03:34 +08:00
parent de5a5b09d9
commit d0452184ee
92 changed files with 5019 additions and 122 deletions
@@ -0,0 +1,26 @@
package com.superbiz.agent.harness.progress;
import com.superbiz.agent.harness.contract.SafeFallback;
import java.util.List;
public record DiagnosisProgressSnapshot(
List<SafeFallback.VerifiedSource> verifiedSources,
List<SafeFallback.ObservedFact> observedFacts,
List<String> limitations,
DiagnosisStopReason stopReason) {
public DiagnosisProgressSnapshot {
verifiedSources = verifiedSources == null ? List.of() : List.copyOf(verifiedSources);
observedFacts = observedFacts == null ? List.of() : List.copyOf(observedFacts);
limitations = limitations == null ? List.of() : List.copyOf(limitations);
}
public static DiagnosisProgressSnapshot empty() {
return new DiagnosisProgressSnapshot(List.of(), List.of(), List.of(), null);
}
public boolean hasObservedFacts() {
return !observedFacts.isEmpty();
}
}