Expand description
Durable primitives extracted from route_search and route_archive (3ef2673).
Structs§
- Envelope
- Route archive v2 framing, kept byte compatible.
Functions§
- append_
checked - append_
jsonl - digest
- lock
- Stable inode lock. Never unlink it; atomic replacement is for data only.
- lock_
is_ free - Liveness probe for a lock that a process holds for its whole lifetime.
- read_
checked - read_
jsonl_ resilient - Reads JSONL while ignoring only an incomplete final record.
- repair_
tail - Repair only after verified replay, under exclusive job ownership. A valid unterminated record is retained and receives its newline.
- write_
atomic_ json - Writes a JSON snapshot to a sibling temporary file and atomically renames it over the target.