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 ¶
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.