From a31cdb8f9186f3603583b5e3433d8f1cbf688e6a Mon Sep 17 00:00:00 2001 From: Agando Date: Fri, 23 Oct 2026 21:24:04 +0200 Subject: fix(newos4): the audit stops inventing '999d unused' (v4.6.85) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit getStaleSkills() returned daysUnused=999 for a skill that had useCount 0 and no lastUsed — a placeholder rendered by the audit as '999d unused', indistinguishable from a measurement. It told the operator to archive procedural memory that had simply never been instrumented. Now: daysUnused null + neverUsed true when there is no lastUsed; real day count otherwise; the audit prints '(never used)'. Verified: probe skill with no telemetry -> {daysUnused: null, neverUsed: true}; one last used 2026-08-01 -> 83; no 999 anywhere in getStaleSkills() or the audit output. --- modules/ext/skill-pack-core.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/ext') diff --git a/modules/ext/skill-pack-core.js b/modules/ext/skill-pack-core.js index 67adf80..cba77b6 100644 --- a/modules/ext/skill-pack-core.js +++ b/modules/ext/skill-pack-core.js @@ -1206,7 +1206,9 @@ after the behaviour itself was fixed in v4.6.58.`), } for (var s of staleSkills) { if (!index[s.name] || index[s.name].immune) continue; - stale.push(s.name + ' (' + s.daysUnused + 'd unused)'); + stale.push(s.name + (s.daysUnused === null || s.daysUnused === undefined + ? ' (never used)' + : ' (' + s.daysUnused + 'd unused)')); } // 2. Duplicate check (simple Levenshtein on name) -- cgit v1.2.3