Skip to main content

Module counted_loop

Module counted_loop 

Source
Expand description

Live, bounded repetition inside an existing execution owner (#898).

This is an engine primitive, not a scheduler or a management API. Each iteration retains the same Session and provider context. Persisted live state is inspectable but is never automatically replayed by a new activation.

Structs§

CountedLoopConfig
Host-supplied bounds for one live generation. There is no implicit default. Clones share the stop signal. Stop drains an already admitted iteration’s current round/tool batch; it admits no subsequent round or iteration.
LoopState
Persisted through the existing Session checkpoint, with no separate store. Objective revision is fixed at one in this slice. Future edits must use the generation and revision instead of treating a free-text followup as an edit.

Enums§

LoopStatus

Constants§

LOOP_STATE_METADATA_KEY
MAX_LOOP_ITERATIONS
MAX_LOOP_PROMPT_BYTES
MAX_LOOP_ROUNDS

Functions§

read_loop_state
Fallible inspection: malformed state must never look like an absent loop.