Expand description
File lock operations (advisory and exclusive) and claim tracking.
Two lock modes are supported:
- Advisory marks (default):
mark_file("src/main.rs")- warns if another agent holds the mark, but allows it. - Exclusive locks (
lock:prefix):mark_file("lock:git-commit")- rejects with an error if another agent holds the lock. Used for mutual exclusion on shared resources.
Enumsยง
- Exclusive
Lock Result - Result of an exclusive lock attempt.