Skip to main content

Module context_reset

Module context_reset 

Source
Expand description

Context reset logic for long-running harness sessions.

Structs§

ContextResetManifest
TransitionManifest
Private durable handoff for compaction/reset recovery. This is deliberately separate from the frozen public ThreadEvent schema.

Enums§

ContextResetDecision
TransitionKind

Constants§

CONTEXT_RESET_FILE

Functions§

consume_manifest
consume_manifest_async
Consume a pending transition manifest without blocking the async executor.
maybe_write_reset_after_compaction
The stall_count is 0 because compaction-triggered resets are not stall-driven; the threshold check is enforced only for on_stall mode in should_reset.
maybe_write_reset_after_compaction_async
Write the compaction-triggered reset manifest without blocking the runtime.
maybe_write_reset_after_compaction_with_context_async
maybe_write_reset_on_stall
maybe_write_reset_on_stall_async
Write the stall-triggered reset manifest without blocking the runtime.
maybe_write_reset_on_stall_with_context_async
read_manifest
read_manifest_orientation
read_transition_manifest
read_transition_manifest_async
Read a pending transition manifest without blocking the async executor.
should_reset
write_manifest
write_manifest_async
Write a context-reset manifest without blocking the async executor.
write_transition_manifest_async