Versions in this module Expand all Collapse all v0 v0.3.0 May 26, 2026 v0.2.1 May 26, 2026 Changes in this version + const DoomLoopThreshold + type BacktrackEngine struct + func NewBacktrackEngine() *BacktrackEngine + func (be *BacktrackEngine) FindBacktrackPoint() *DecisionPoint + func (be *BacktrackEngine) GenerateRetryPrompt(dp *DecisionPoint) string + func (be *BacktrackEngine) MarkOutcome(turnIdx int, outcome string) + func (be *BacktrackEngine) RecordDecision(turnIdx int, desc string, alternatives []string, msgs []types.EyrieMessage) + func (be *BacktrackEngine) RestoreState(dp *DecisionPoint) []types.EyrieMessage + func (be *BacktrackEngine) Size() int + type DecisionPoint struct + Alternatives []string + Description string + Messages []types.EyrieMessage + Outcome string + TurnIndex int + type LoopDetector struct + func NewLoopDetector(windowSize, maxRepeats int) *LoopDetector + func (ld *LoopDetector) DoomLoopWarning() string + func (ld *LoopDetector) Escalated() bool + func (ld *LoopDetector) IsDoomLoop() bool + func (ld *LoopDetector) IsLooping() bool + func (ld *LoopDetector) LoopWarning() string + func (ld *LoopDetector) MarkEscalated() + func (ld *LoopDetector) RecordStep(toolNames []string, inputs []string, outputs []string) + func (ld *LoopDetector) Reset() + type StallDetector struct + HardThreshold int + SoftThreshold int + Window []StallEntry + WindowSize int + func NewStallDetector() *StallDetector + func (sd *StallDetector) BuildEscalation(result *StallResult) string + func (sd *StallDetector) Check() *StallResult + func (sd *StallDetector) DetectErrorLoop() bool + func (sd *StallDetector) DetectOscillation() bool + func (sd *StallDetector) DetectRepetition() (int, string) + func (sd *StallDetector) FormatWindow() string + func (sd *StallDetector) Record(toolName string, args map[string]interface{}, output string) + func (sd *StallDetector) Reset() + type StallEntry struct + ArgsHash string + OutputHash string + Timestamp time.Time + ToolName string + type StallResult struct + IsStalled bool + Level string + Pattern string + RepeatCount int + Suggestion string