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
|
// (claude default, or codex). Misconfiguration degrades to no coach rather
|
||||||
// than failing startup — manual planning still works.
|
// than failing startup — manual planning still works.
|
||||||
if backend, err := ai.NewBackend(os.Getenv("ANTIDRIFT_AI_BACKEND")); err != nil {
|
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 {
|
} else {
|
||||||
ctrl.SetCoach(ai.NewService(backend))
|
svc := ai.NewService(backend)
|
||||||
log.Printf("ai coach: %s backend", backend.Name())
|
ctrl.SetCoach(svc)
|
||||||
|
ctrl.SetDriftJudge(svc)
|
||||||
|
log.Printf("ai: %s backend (coach + drift judge)", backend.Name())
|
||||||
}
|
}
|
||||||
|
|
||||||
src := evidence.NewSource()
|
src := evidence.NewSource()
|
||||||
|
|||||||
Reference in New Issue
Block a user