@hmharness/evolution 0.23.52 → 0.23.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/insights.js CHANGED
@@ -156,7 +156,7 @@ export async function retrieveInsights(home, task, opts = {}) {
156
156
  if (q.size === 0)
157
157
  return rows.slice(-topK).map((r) => formatInsight(r, opts.workspace)).join('\n');
158
158
  // newest first within the pool, so idx IS the recency rank
159
- const newestFirst = [...rows].reverse();
159
+ const newestFirst = rows.toReversed();
160
160
  const scored = newestFirst
161
161
  .map((r, idx) => ({ r, s: jaccard(q, bigrams(r.task)) + (1 - idx / (newestFirst.length + 1)) * 1e-4 }))
162
162
  .filter((x) => x.s > INSIGHT_SIM_FLOOR)
@@ -104,8 +104,8 @@ export function buildTaskSetHashV2(tasks) {
104
104
  : t.assertion.expectAny?.length ? 'expect-any'
105
105
  : t.assertion.expectNone?.length ? 'expect-none'
106
106
  : 'expect';
107
- const rows = [...tasks]
108
- .sort((a, b) => (a.id < b.id ? -1 : a.id > b.id ? 1 : 0))
107
+ const rows = tasks
108
+ .toSorted((a, b) => (a.id < b.id ? -1 : a.id > b.id ? 1 : 0))
109
109
  .map((t) => ({ id: t.id, prompt: t.prompt, assertion: { kind: primaryKind(t), expect: JSON.stringify(t.assertion) }, holdout: t.split === 'protect' }));
110
110
  const canonical = JSON.stringify({ kind: 'hmharness-eval-taskset', version: 1, id: 'three-arm-v2-2026-10-28', revision: 1, tasks: rows });
111
111
  return { setId: 'three-arm-v2-2026-10-28', datasetHash: createHash('sha256').update(canonical).digest('hex'), canonical };
package/dist/three-arm.js CHANGED
@@ -93,8 +93,8 @@ function seededOrderStr(items, seed) {
93
93
  * by id; the FULL assertion spec serialized into evalset's assertion.expect
94
94
  * so the hash is content-sensitive to every mode, not just the primary). */
95
95
  export function buildTaskSetHash(tasks) {
96
- const rows = [...tasks]
97
- .sort((a, b) => (a.id < b.id ? -1 : a.id > b.id ? 1 : 0))
96
+ const rows = tasks
97
+ .toSorted((a, b) => (a.id < b.id ? -1 : a.id > b.id ? 1 : 0))
98
98
  .map((t) => ({ id: t.id, prompt: t.prompt, assertion: { kind: primaryKind(t), expect: JSON.stringify(t.assertion) }, holdout: t.split === 'protect' }));
99
99
  const canonical = JSON.stringify({ kind: 'hmharness-eval-taskset', version: 1, id: 'three-arm-2026-10-27', revision: 1, tasks: rows });
100
100
  return { setId: 'three-arm-2026-10-27', datasetHash: createHash('sha256').update(canonical).digest('hex'), canonical };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/evolution",
3
- "version": "0.23.52",
3
+ "version": "0.23.53",
4
4
  "description": "hmharness evolution subsystem: persistent memory, insight capture, skill library, and the bench that gives evolution its fitness signal. First-class kernel citizen, not a plugin.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -15,8 +15,8 @@
15
15
  "build": "tsc -p tsconfig.build.json"
16
16
  },
17
17
  "dependencies": {
18
- "@hmharness/cognitive": "0.23.52",
19
- "@hmharness/kernel": "0.23.52"
18
+ "@hmharness/cognitive": "0.23.53",
19
+ "@hmharness/kernel": "0.23.53"
20
20
  },
21
21
  "files": [
22
22
  "dist"