Coordinates per-workspace mutating tool leases by {env_id, canonical_cwd}
so concurrent coding runs do not clobber the same working tree while keeping
separate execution environments isolated.
Summary
Functions
Acquires immediately or queues a monitored waiter for a reserved, signalled handoff.
Returns a specification to start this module under a supervisor.
Requests cancellation by the current owner; never forcibly clears a live lease.
Types
Functions
@spec acquire(server(), workspace_key(), holder_key(), pid()) :: :ok | {:error, {:workspace_busy, holder_key()}}
@spec acquire_or_wait(server(), workspace_key(), holder_key(), pid(), reference()) :: :ok | {:waiting, holder_key(), String.t()}
Acquires immediately or queues a monitored waiter for a reserved, signalled handoff.
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec release(server(), workspace_key(), holder_key()) :: :ok
@spec start_link(keyword()) :: GenServer.on_start()
Requests cancellation by the current owner; never forcibly clears a live lease.