# LoopState

**Kind:** Interface

**Source:** [`atloria-monorepo/libs/agent-core/src/autonomous/autonomous-loop.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/autonomous/autonomous-loop.ts#L389)

Tracks which "phases" the agent has entered based on tool calls.
Used to decide when to nudge. Exported so runners can inspect/display it.

## Properties

| Property | Type |
|---|---|
| `hasInvestigated` | `boolean` |
| `hasPlanned` | `boolean` |
| `hasActed` | `boolean` |
| `hasVerified` | `boolean` |
| `lastInvestigationTurn` | `number` |
| `lastActionTurn` | `number` |
| `consecutiveErrors` | `number` |
| `totalErrors` | `number` |
| `circuitBreakerBlocks` | `Record<string, number>` |
