Skip to content

Thrash detector: interrupt same-error retry loops with rollback and a provider switch #391

Closed

Description

@currentbits

From the vibe-coder research: the signature wound is paying for an agent that retries the same failing fix forever. Detect 'same file / same error signature, Nth attempt' across a thread and auto-interrupt with: rollback to last green, a retry from a DIFFERENT provider, and a plain-language explanation of what happened. Meta-supervision of the agent's loop, distinct from #160 (automation circuit breaker) and #238 (goal blocked detection).

Activity

  1. added
    enhancement
    plan:todo
    on Aug 17, 2026
  2. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    From the opencode doc-mine: the doom_loop permission — a configurable rule that fires when the agent repeats an identical tool call 3x, defaulting to ask. Loop detection shaped like a permission rule (approve-and-continue vs reject) instead of a silent kill; neat UX for the thrash detector.

  3. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 23 intel, three retry-storm patterns from the field: (1) OpenCode capped automatic session retries and added jitter (Aug 12) explicitly "to reduce repeated retry storms". (2) Factory fixed a custom-model endpoint with broken credentials to fail fast and name the problem instead of retrying the same request (v0.194.0), and sessions now recover from empty model responses instead of erroring the turn (v0.190.0). (3) Droid's agent loop no longer runs unbounded when turns produce no output (v0.140.0). Classification before retry is the theme: credential/config errors are fatal (never retry), capacity/rate-limit errors back off with jitter, empty responses recover once then escalate to the thrash detector.

  4. added
    plan:doing
    and removed
    plan:todo
    on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:doing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions