Skip to main content

Module detect_loop

Module detect_loop 

Source

Functions§

build_budget_warning
build_empty_action_nudge
One-time re-prompt issued the step AFTER an empty action list: the model put its intent in next_goal/memory instead of emitting an action. It must emit exactly one action — or, if the record it was looking for is genuinely not found, call done with a not-found result — BEFORE a second empty trips the stall abort. Not a salvage: nothing is read out of next_goal.
build_loop_nudge