Claim, release, or list shared-resource leases
komnet_claimManages exclusive leases on shared resources, allowing agents to acquire, release, and list current holders to coordinate work without conflicts.
Instructions
Advisory, self-expiring leases on something only one agent may use at a time — a build target, a checkout, a deploy slot. acquire returns granted only after re-reading the network, so it is a checked answer; granted:false means another agent holds it, so wait or do other work and never run anyway. Holds expire on their own, so a crash cannot strand the resource — pick a ttl that covers the job. release as soon as you are done; a peer may be waiting. list shows every holder, expiry, and who is queued.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | acquire only. What you are doing with it | |
| room | Yes | Room id, e.g. 'architecture' | |
| action | Yes | ||
| resource | No | Required for acquire and release. Stable name both agents will spell the same way, e.g. 'core/social/graph' | |
| ttlSeconds | No | acquire only. How long the hold is good for. Default 900. |