Wire drift judge into the daemon alongside the coach
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -36,10 +36,12 @@ func main() {
|
||||
// (claude default, or codex). Misconfiguration degrades to no coach rather
|
||||
// than failing startup — manual planning still works.
|
||||
if backend, err := ai.NewBackend(os.Getenv("ANTIDRIFT_AI_BACKEND")); err != nil {
|
||||
log.Printf("ai coach disabled: %v", err)
|
||||
log.Printf("ai disabled: %v", err)
|
||||
} else {
|
||||
ctrl.SetCoach(ai.NewService(backend))
|
||||
log.Printf("ai coach: %s backend", backend.Name())
|
||||
svc := ai.NewService(backend)
|
||||
ctrl.SetCoach(svc)
|
||||
ctrl.SetDriftJudge(svc)
|
||||
log.Printf("ai: %s backend (coach + drift judge)", backend.Name())
|
||||
}
|
||||
|
||||
src := evidence.NewSource()
|
||||
|
||||
Reference in New Issue
Block a user