Skip to content

Loop detector: repeating-cycle guard (A→B→A→B evaded stop forever) - #59

Merged
ayman3000 merged 1 commit into
mainfrom
fix/loop-cycle-detection
Aug 25, 2026
Merged

Loop detector: repeating-cycle guard (A→B→A→B evaded stop forever)#59
ayman3000 merged 1 commit into
mainfrom
fix/loop-cycle-detection

Conversation

@ayman3000

Copy link
Copy Markdown
Owner

Per-signature counting peaks at windowSize/cycleLen — for any 2-tool
cycle in a window of 6 that's 3, below the stop threshold of 5, so an
alternating loop could NEVER be stopped (observed live: endless
sim_rotate → sim_screenshot the user had to interrupt). The detector now
also finds the trailing block of length 2-3 repeating verbatim and
nudges/stops on REPETITION count, with a names-only cycle label and a
cycle-specific nudge message. Uniform runs keep the original path.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Per-signature counting peaks at windowSize/cycleLen — for any 2-tool
cycle in a window of 6 that's 3, below the stop threshold of 5, so an
alternating loop could NEVER be stopped (observed live: endless
sim_rotate → sim_screenshot the user had to interrupt). The detector now
also finds the trailing block of length 2-3 repeating verbatim and
nudges/stops on REPETITION count, with a names-only cycle label and a
cycle-specific nudge message. Uniform runs keep the original path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ayman3000
ayman3000 merged commit d19e93d into main Aug 25, 2026
@ayman3000
ayman3000 deleted the fix/loop-cycle-detection branch August 25, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant