Expand description
Intent log for long-running admin operations.
Records a JSONL trail of every admin operation from begin → checkpoints →
complete/abort. At startup, scan_and_report finds any intents that never
reached a terminal phase and emits [OperatorEvent::DanglingAdminIntent]
for each one so operators can investigate interrupted operations.
§Durability contract
- File opened with
O_APPEND; POSIX guarantees atomic writes up toPIPE_BUF(4096 bytes on Linux) for regular files. Records are capped at 3 KiB so multi-writer atomicity holds on supported kernels. fsynconbeginonly. Checkpoint / complete / abort writes are buffered — a crash betweenbeginandcompleteis exactly the “dangling intent” conditionscan_and_reportis designed to surface.
Structs§
- Admin
Intent Log - Intent
Args - Caller-supplied arguments for an intent. Sensitive keys are redacted before writing to the log.
- Intent
Handle - Intent
Progress - Progress snapshot attached to a checkpoint record.
- Intent
Summary - Summary attached to a completed intent record.
- Unfinished
Intent