diff options
| author | Agando <roduccomm@gmail.com> | 2026-10-23 21:24:04 +0200 |
|---|---|---|
| committer | Agando <roduccomm@gmail.com> | 2026-10-23 21:24:04 +0200 |
| commit | a31cdb8f9186f3603583b5e3433d8f1cbf688e6a (patch) | |
| tree | 0f89b95fd076d602dfbb36b43d7ef79b3ff6caa9 /modules/ext/skill-pack-core.js | |
| parent | cdba58ccda05d10dd02f9dcb447f624377744b21 (diff) | |
fix(newos4): the audit stops inventing '999d unused' (v4.6.85)
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.
Diffstat (limited to 'modules/ext/skill-pack-core.js')
| -rw-r--r-- | modules/ext/skill-pack-core.js | 4 |
1 files changed, 3 insertions, 1 deletions
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) |