From e52da740a5ee4eb7f9fbb1bb36b3002607e8940b Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Fri, 31 Jul 2026 16:32:46 -0700 Subject: [PATCH] =?UTF-8?q?fix(core):=20stale-orphan-dir=20skip=20logs=20a?= =?UTF-8?q?t=20debug,=20not=20warn=20=E2=80=94=20steady-state=20per-sweep?= =?UTF-8?q?=20noise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- packages/core/src/task-store/lifecycle-ops.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/core/src/task-store/lifecycle-ops.ts b/packages/core/src/task-store/lifecycle-ops.ts index 755bd4a9d9..696021f4ae 100644 --- a/packages/core/src/task-store/lifecycle-ops.ts +++ b/packages/core/src/task-store/lifecycle-ops.ts @@ -464,7 +464,16 @@ export async function reconcileOrphanedTaskDirsImpl(store: TaskStore, opts: { ig const ageMs = Date.now() - mtimeMs; if (ageMs > RECONCILE_ORPHAN_TASK_DIR_MAX_AGE_MS) { result.skipped.push({ id, reason: "stale-orphan-dir-beyond-recency-window" }); - storeLog.warn("Skipping stale orphaned task-dir reconcile (beyond recency window)", { + /* + FNXC:Diagnostics 2026-08-01-00:50 (operator report — warn spam): + This skip is STEADY-STATE: a months-old orphan dir (e.g. a pre-tombstone hard-delete + leftover) trips it on EVERY maintenance sweep, forever, until someone deletes the dir. + Per the self-healing logging policy (self-healing.ts header), per-sweep + no-action/skip lines are debug (FUSION_DEBUG=task-store), not warn — warn is for real + recoveries and failures. The skip stays visible in the sweep's returned `skipped` + summary either way. + */ + storeLog.debug("Skipping stale orphaned task-dir reconcile (beyond recency window)", { phase: "reconcileOrphanedTaskDirs:recency", taskId: id, taskJsonPath,