# `webtest-ai heal`

Reviews and applies verified UI inventory proposals produced by healing-capable runs.

```bash
webtest-ai heal list --proposal artifacts/<runId>/<testId>/ui-inventory.proposed.json
webtest-ai heal queue --proposal artifacts/<runId>/<testId>/ui-inventory.proposed.json
webtest-ai heal pending
webtest-ai heal approve-pending --all
```

## Subcommands

- `list` / `show`: prints proposed inventory updates without changing files.
- `queue`: stores proposed updates in a pending review file.
- `pending`: lists queued updates.
- `approve`: merges a proposal into the configured inventory.
- `approve-pending`: promotes queued updates into inventory.
- `reject-pending`: removes queued updates without changing inventory.
- `publish-pr`: writes PR metadata only; it does not call a remote provider.

## Important Flags

- `--proposal <path>`: proposal JSON path.
- `--config <path>`: config used to resolve memory paths.
- `--memory <path>`: overrides the configured inventory path.
- `--app <name>`: fallback app name for older proposal files.
- `--index <n>`: selects one pending update.
- `--all`: selects all pending updates.
- `--patch <path>`: optional patch markdown path for `publish-pr`.
- `--title <title>`: optional PR stub title for `publish-pr`.
- `--dry-run`: previews approve operations without writing inventory.

Healing is intentionally review-first. Verified recovery can propose changes; approval remains explicit.
