Skip to main content

Module close

Module close 

Source

Structs§

AutoCommitResult
Result of an auto-commit attempt after close.
CircuitBreakerStatus
Result of a circuit breaker check.
CloseOpts
Options for the full close lifecycle.
CloseResult
Details of a successful close.
VerifyFailure
Metadata about a verify failure, used by record_failure.
VerifyFailureResult
Details of a verify failure during close.

Enums§

CloseOutcome
Outcome of attempting to close a single unit.
CloseWarning
Structured warnings emitted during close lifecycle steps.
OnCloseActionResult
Result of one on_close action execution.
OnFailActionTaken
What action was taken by process_on_fail.

Functions§

all_children_closed
Check if all children of a parent unit are closed.
archive_unit
Archive a closed unit to the dated archive directory.
auto_close_parents
Auto-close parent chain when all children are done.
check_circuit_breaker
Check circuit breaker for a unit.
close
Close a single unit — the full lifecycle.
close_failed
Mark a unit as explicitly failed. Stays open with claim released.
find_root_parent
Walk up the parent chain to find the root ancestor of a unit.
format_failure_note
Format a verify failure as a Markdown block to append to notes.
process_on_fail
Process on_fail actions (retry release, escalate).
record_failure
Record a failed verify attempt on a unit.
resolve_max_loops
Resolve the effective max_loops for a unit, considering root parent overrides.
truncate_output
Truncate output to first N + last N lines.
truncate_to_char_boundary
Find the largest byte index <= max_bytes that falls on a UTF-8 char boundary.