Phase 4: Cognitive Lattice
The Context
The Cognitive Lattice replaces the v1 LLM Auditor by using deterministic math to measure the "sanity" of the agent. The #1 cause of silent agent failure is "Goal Drift"—the agent starts on one task and wanders off into unrelated codebases. We will detect this using embedding similarities.
Tasks
Part of Epic #651
Phase 4: Cognitive Lattice
The Context
The Cognitive Lattice replaces the v1 LLM Auditor by using deterministic math to measure the "sanity" of the agent. The #1 cause of silent agent failure is "Goal Drift"—the agent starts on one task and wanders off into unrelated codebases. We will detect this using embedding similarities.
Tasks
GoalDriftDetector.sentence-transformers(e.g.,all-MiniLM-L6-v2) to encode the initial user goal and the agent's recent steps into embeddings.< 0.4-> Healthy0.4 - 0.7-> Warning> 0.7-> Degraded (Hard block the action).Part of Epic #651