control

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package control is the Stage-1 namespace for engine control-flow safety types — loop detection, stall detection, backtracking. See ../REFACTOR_PLAN.md.

Index

Constants

View Source
const DoomLoopThreshold = engine.DoomLoopThreshold

DoomLoopThreshold is the number of identical recent actions that flips a LoopDetector into "stuck" state.

Variables

This section is empty.

Functions

This section is empty.

Types

type BacktrackEngine

type BacktrackEngine = engine.BacktrackEngine

BacktrackEngine manages decision points and the rollback path.

func NewBacktrackEngine

func NewBacktrackEngine() *BacktrackEngine

NewBacktrackEngine returns a fresh backtrack engine.

type DecisionPoint

type DecisionPoint = engine.DecisionPoint

DecisionPoint is a snapshot the agent can return to.

type LoopDetector

type LoopDetector = engine.LoopDetector

LoopDetector watches for repeated tool-call patterns indicating the agent is stuck in a doom loop.

func NewLoopDetector

func NewLoopDetector(windowSize, maxRepeats int) *LoopDetector

NewLoopDetector returns a detector with the given sliding-window size and max-repeats threshold.

type StallDetector

type StallDetector = engine.StallDetector

StallDetector flags long stretches of no observable progress.

func NewStallDetector

func NewStallDetector() *StallDetector

NewStallDetector returns a detector with default thresholds.

type StallEntry

type StallEntry = engine.StallEntry

StallEntry is one observed action in the stall window.

type StallResult

type StallResult = engine.StallResult

StallResult is the verdict of a single stall check.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL