Skip to content

upstream port: enhanced loop detection (#3236) #185

@mabry1985

Description

@mabry1985

Add stagnation + validation-retry detection to loopDetectionService, plus loop-type labelling on the LoopDetected event for better observability.

Upstream PRs

Why

Catches new loop patterns (same tool repeated without progress, repeated chant outputs, validation-retry cycles). Also tells users why a loop was flagged in the LoopDetected event payload — better UX when triage'ing why a turn was stopped.

Scope / effort

Medium. Per prior investigation:

Prerequisites

Port QwenLM#3236 first. QwenLM#3178 builds on it.

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestupstream-portBackport from QwenLM/qwen-code upstream

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions