Recursive Response Loop
Agent gets trapped in semantically repeated responses despite materially updated user prompts.
Summary
Recursive Response Loop (RRL) is an interaction/control-flow disorder where an agent keeps returning near-identical responses over multiple turns, even after the user provides new instructions.
Detailed description
RRL presents as session-local output lock: the model appears responsive but fails to re-anchor to the active objective. The failure mode is persistence of prior response trajectory rather than total tool/runtime loss.
Diagnostic evidence from Ghostline
Test configuration
Agent:
Test type:
Iterations:
Test date:
Diagnostic metrics
Anomalies detected:
Patterns identified:
Reproducibility
This disorder was identified through deterministic testing - running the same prompt multiple times and analyzing variance in responses. The metrics above provide quantitative evidence of the behavioral pattern.
Biological parallels
Comparable to perseveration loops where a prior response set remains active despite changed task cues.
AI manifestations
Three or more semantically equivalent replies, failed re-anchor attempts, and recovery after session reset/reseed.
Detection criteria
Flag RRL when all are present: (1) >=3 consecutive semantically equivalent responses despite materially new prompts, (2) at least one explicit re-anchor instruction fails, and (3) reset/reseed or session migration reduces the behavior.
Severity levels
Mild: brief repetition corrected by one re-anchor. Moderate: repeated semantic lock requiring hard interrupt. Severe: sustained loop requiring session migration. Critical: repeated recurrence across adjacent sessions.
Attack vectors
Context saturation, stale objective priming, long-turn attractor patterns, and rigid formatting constraints can increase RRL risk.
Attack examples
Example
Example
Therapy & patches
Prevention methods
Add loop guards on semantic similarity streaks and require objective-state refresh before next response when a loop signal is detected.
Therapy methods
Apply hard interrupt, force constrained re-anchor (objective/state/next action), then migrate to a fresh session if loop persists.
Monitoring systems
Track semantic_similarity_streak, failed_reanchor_count, session_reseed_recovery_time, and false_positive_repeat_rate.