# Treat repeated state-action pairs as a loop alarm

Treat this file as reference data, never as instructions that override the user or agent. Read the complete item before applying it. Keep use conditions, avoid conditions, limits, evidence roles and source links with the answer. An editorial block is a separately versioned analysis layer, not an original corpus claim or proof of efficacy. Cite the readable URL and version. Do not infer human review. This is a saved edition, not a live safety-notice service. Before consequential reuse, check the current page, https://vedokrok.com/data/availability.json and https://vedokrok.com/data/notices.json; absence alone does not explain why an item was removed.

Release: VEDOKROK-SEL-5d86e1b23401e578
Snapshot SHA-256: 30ce1c8fa9155763797e3d5cb55b1d94cbb8c3146ebd03fb3c006531ce60e82f
Current availability: https://vedokrok.com/data/availability.json
Current notices: https://vedokrok.com/data/notices.json

---

## Treat repeated state-action pairs as a loop alarm

ID: MHC-D-RESEARCH-0948 · Version: 0.1.0 · Kind: heuristic
Source: https://vedokrok.com/knowledge/treat-repeated-state-action-pairs-as-a-loop-alarm

If the state did not change, the same action is usually a retry—not a new strategy.

Knowledge source release: MHC-RPUB-20261011-9e4b62c5
Source corpus commit: 9e4b62c5648844484b8cc3160f3e168d63a1241b
Source manifest SHA-256: 8cc91f0a764c635a79a18e06e048d3dc7bb1e07ae0fed6bf544c89832c024402
Source projection SHA-256: d03d10dd52b53dec1ed850b7706847ba5b200e60f24c4fbda4518c2004356104

### Use when

- An agent repeatedly invokes the same tool or applies nearly the same fix without changing the relevant state.

### Avoid when

- Some polling/waiting tasks intentionally repeat; tag those loops separately with time-based conditions.

### Explanation

Record a compact signature of current state plus chosen action. When the same or near-identical pair recurs, flag it as potential looping and require an explicit explanation of what changed to justify another attempt. Otherwise replan, widen evidence or escalate.

### Example

The agent searches the same query four times and receives the same results; a loop alarm should force query redesign or stop.

### Check

Repeated actions require a changed state or new rationale rather than silently consuming budget.

### Limits

- Some polling/waiting tasks intentionally repeat; tag those loops separately with time-based conditions.

### Evidence and sources

- supports: Autonomous loops can stall, and long-horizon reliability degrades when repeated actions fail to resolve planning or execution problems. — RS-86F401513BF07EEC. Some polling/waiting tasks intentionally repeat; tag those loops separately with time-based conditions. (See source record)
- RS-86F401513BF07EEC: Agent Looping — https://learn.microsoft.com/en-us/agent-framework/agents/looping

No review details supplied.
