Skip to main content

record_loop_step

Function record_loop_step 

Source
pub fn record_loop_step()
Expand description

One loop step executed (loop.step, RFC 0010 §3.3). Drives agent_loop_steps_total (RFC 0016 §4.3).

Process-local / unwired: loop.step is emitted inside the re-exec’d child agentic loop, a different process from the supervisor that /metrics scrapes, so calling this would only bump the child’s own registry (cross-process rollup is a v1 non-goal — module header). It is therefore intentionally NOT called from the loop; the series renders the supervisor’s own process only and agentctl derives step counts from loop.step log lines.