Releases file scope locks held by a task. Normally called by the daemon after committing a completed task's changes, not by the agent directly.
Removes scope locks from the lock table. Without file arguments, releases all locks held by the specified task. With file arguments, releases only those specific files. Releasing a lock not held by the task is a silent no-op.
If the lock table becomes empty after release, the scope-locks.json file is deleted.
wolfcastle task scope release --node <address> --task <task-id> [<file>...]
| Flag | Description |
|---|---|
--node <address> |
(Required) Node address for the task. |
--task <task-id> |
(Required) Task ID whose locks to release. |
--json |
Output as structured JSON. |
| Argument | Description |
|---|---|
file |
(Optional) Specific files to release. If omitted, all locks for the task are released. |
| Code | Meaning |
|---|---|
| 0 | Success. |
- Mutates
scope-locks.jsonin the namespace directory. - Acquires the namespace file lock during mutation.
- Deletes
scope-locks.jsonentirely when the last lock is released.
wolfcastle task scope addto acquire locks.wolfcastle task scope listto inspect current locks.