Team Coherence
Keep your AI teams aligned and prevent drift.
MeetLoyd's Team Coherence system monitors your AI agent teams to ensure they stay aligned with their intended objectives. Detect and prevent common failure modes like agents undoing each other's work or getting stuck in correction loops.
Agent failure isn't about intelligence -- it's about drift from original intent. Coherence monitoring catches these issues early.
Coherence scores are calculated automatically every 5 minutes for all running teams. No manual setup required -- scores update in real-time as your teams operate.
Understanding Coherence Score
Each team has a coherence score from 0-100:
| Score | Status | Meaning |
|---|---|---|
| 80-100 | Healthy | Team is well-aligned and productive |
| 60-79 | Warning | Some drift detected, monitor closely |
| Below 60 | Critical | Significant drift, intervention recommended |
Drift Patterns Detected
Oscillation
Agents repeatedly undoing each other's work. Agent A makes a change, Agent B reverts it, Agent A re-does it. Symptom: High oscillation score, low productivity.
Feedback Loops
Circular correction chains where Agent A corrects Agent B, Agent B corrects Agent C, and Agent C corrects Agent A. Symptom: High correction rate, no forward progress.
Correction Spikes
Sudden increase in agents correcting each other's work. Symptom: Elevated corrections per hour.
Intent State
A team's intent state says what it should accomplish right now. It is set by the team lead agent and reviewed by people; to change it, ask Loyd or the team lead (for example "make resolving tickets within SLA this team's top priority this week"). Agents can also signal that their objectives look out of date, which creates a review task for the team lead.
An intent state holds:
- Primary Objective -- The main goal (e.g., "Process customer support tickets and resolve issues within SLA")
- Secondary Objectives -- Supporting goals (e.g., "Maintain customer satisfaction above 4.5/5")
- Constraints -- Boundaries the team must respect
| Constraint Type | Description | Example |
|---|---|---|
| Hard | Never violate | "Never share customer data externally" |
| Soft | Minimize violations | "Prefer email over phone contact" |
Coherence Budget
Each team runs within limits that prevent runaway behaviour:
| Limit | Default | Description |
|---|---|---|
| Max Concurrent Agents | 5 | Agents active simultaneously |
| Max Actions/Minute | 30 | Rate limit on operations |
| Max Corrections/Hour | 10 | Correction threshold |
| Max Feedback Loop Depth | 3 | Circular correction limit |
Enforcement Modes
| Mode | Behavior |
|---|---|
| Warn | Alert but continue operations |
| Pause | Auto-pause team for cooldown period |
| Block | Require human intervention to resume |
Drift Events
When issues are detected, drift events are created:
| Event Type | Severity | Description |
|---|---|---|
| Oscillation Detected | Warning/Critical | Agents undoing each other |
| Feedback Loop Detected | Warning/Critical | Circular corrections |
| Correction Spike | Warning/Critical | High correction rate |
| Budget Exceeded | Critical | Rate limits hit |
Resolving Events
Open an event to see what happened and the automatic response taken, then resolve it with notes describing what you did — the note stays with the event for the audit trail.
Using the Drift Page
Open Control → Evidence → Drift (/app/admin/evidence/drift):
- The summary lists every monitored team with its coherence score and unresolved events
- Select a team to see its Drift Events and its Coherence Limits — current usage against each limit
- Pause a drifting team from here, and Resume it once the cause is fixed
- Resolve each event with a note
Initial Setup: Nothing to configure — coherence scores are calculated automatically. Let the team run for a day before reading too much into its score.
Ongoing Monitoring: Check coherence scores daily. Investigate warnings promptly -- don't let drift accumulate. Review feedback loops, as they often indicate unclear responsibilities.
When Drift is Detected: Pause the team if critical. Review recent actions to understand the pattern. Clarify objectives or constraints if needed. Resume with monitoring.