Wire the enforce guard into the daemon and assert it on the wire

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-01 12:46:59 -04:00
parent 47f1167247
commit 4cc1edfc60
2 changed files with 35 additions and 0 deletions
+4
View File
@@ -11,6 +11,7 @@ import (
"time"
"antidrift/internal/ai"
"antidrift/internal/enforce"
"antidrift/internal/evidence"
"antidrift/internal/knowledge"
"antidrift/internal/session"
@@ -72,6 +73,9 @@ func main() {
log.Printf("status: writing %s", statusPath)
}
ctrl.SetGuard(enforce.NewGuard())
log.Printf("enforce: window-minimize guard")
src := evidence.NewSource()
go src.Watch(context.Background(), ctrl.RecordWindow)