assign_open_loop
Claim an unassigned loop for an owner. First claim wins, so concurrent agents avoid conflicts by locking the loop before work.
Instructions
Claim an open loop for an owner — FIRST CLAIM WINS.
The foreman and every agent must claim a loop BEFORE touching files. A loop is claimable while owner is unset; the first claim wins. Re-claiming by the same owner is a no-op. Claiming someone else's loop raises an error and returns the current owner in the message.
Returns
dict with keys: id, status, owner, lane.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lane | No | ||
| owner | Yes | ||
| loop_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||