Structs§
- Auto
Commit Result - Result of an auto-commit attempt after close.
- Circuit
Breaker Status - Result of a circuit breaker check.
- Close
Opts - Options for the full
closelifecycle. - Close
Result - Details of a successful close.
- Verify
Failure - Metadata about a verify failure, used by
record_failure. - Verify
Failure Result - Details of a verify failure during close.
Enums§
- Close
Outcome - Outcome of attempting to close a single unit.
- Close
Warning - Structured warnings emitted during close lifecycle steps.
- OnClose
Action Result - Result of one on_close action execution.
- OnFail
Action Taken - 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_bytesthat falls on a UTF-8 char boundary.