aiworkhub_storage_recover_stranded_worktrees
Reports retained worktrees stranded outside reclamation paths, then re-registers provably owned ones when confirmed with a reason and logs the action.
Instructions
Recover retained worktrees stranded outside every reclamation path.
NF-2026-00279: the storage observability surface recommends this recovery, but it had no tool/MCP/CLI entry point, so an operator was told to run something they could not. This exposes it as a real action.
READ-ONLY first: confirm=False (the default) returns a report of the
worktrees that would be re-registered and those that are orphaned-but-
reclaimable, mutating nothing. confirm=True requires a non-empty
reason, reinstates the provably-owned registrations, and records the
reason in the audit log.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "aiworkhub_storage_recover_stranded_worktrees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why the recovery is being run; required and non-empty when confirm is true, recorded in the audit log. Leave empty for the report. | |
| confirm | No | false (default) only reports what would be recovered and changes nothing; true performs the recovery and requires a non-empty reason. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||