























@@ -194,14 +194,14 @@ openclaw tasks audit [--json]
194194195195Surfaces operational issues. Findings also appear in `openclaw status` when issues are detected.
196196197-| Finding | Severity | Trigger |
198-| ------------------------- | -------- | ----------------------------------------------------- |
199-| `stale_queued` | warn | Queued for more than 10 minutes |
200-| `stale_running` | error | Running for more than 30 minutes |
201-| `lost` | error | Runtime-backed task ownership disappeared |
202-| `delivery_failed` | warn | Delivery failed and notify policy is not `silent` |
203-| `missing_cleanup` | warn | Terminal task with no cleanup timestamp |
204-| `inconsistent_timestamps` | warn | Timeline violation (for example ended before started) |
197+| Finding | Severity | Trigger |
198+| ------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------ |
199+| `stale_queued` | warn | Queued for more than 10 minutes |
200+| `stale_running` | error | Running for more than 30 minutes |
201+| `lost` | warn/error | Runtime-backed task ownership disappeared; retained lost tasks warn until `cleanupAfter`, then become errors |
202+| `delivery_failed` | warn | Delivery failed and notify policy is not `silent` |
203+| `missing_cleanup` | warn | Terminal task with no cleanup timestamp |
204+| `inconsistent_timestamps` | warn | Timeline violation (for example ended before started) |
205205206206### `tasks maintenance`
207207@@ -284,7 +284,7 @@ The registry loads into memory at gateway start and syncs writes to SQLite for d
284284A sweeper runs every **60 seconds** and handles three things:
2852852862861. **Reconciliation** — checks whether active tasks still have authoritative runtime backing. ACP/subagent tasks use child-session state, cron tasks use active-job ownership, and chat-backed CLI tasks use the owning run context. If that backing state is gone for more than 5 minutes, the task is marked `lost`.
287-2. **Cleanup stamping** — sets a `cleanupAfter` timestamp on terminal tasks (endedAt + 7 days).
287+2. **Cleanup stamping** — sets a `cleanupAfter` timestamp on terminal tasks (endedAt + 7 days). During retention, lost tasks still appear in audit as warnings; after `cleanupAfter` expires or when cleanup metadata is missing, they are errors.
2882883. **Pruning** — deletes records past their `cleanupAfter` date.
289289290290**Retention**: terminal task records are kept for **7 days**, then automatically pruned. No configuration needed.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。