@hmharness/agent 0.22.3 → 0.23.0

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.
Files changed (2) hide show
  1. package/dist/runner.js +11 -2
  2. package/package.json +8 -8
package/dist/runner.js CHANGED
@@ -133,7 +133,14 @@ export async function contextPack(task, sessionId, opts = {}) {
133
133
  return { memory: '', skills: '', insights: '', cognitive: '', skillsInjected: [] };
134
134
  }
135
135
  const [memory, skills, insights, cognitive] = await Promise.all([
136
- retrieveMemory(home, task, { workspace: opts.workspace ?? undefined, embedding: opts.embedding }),
136
+ // HMH_NO_CONTEXT=1 strips the harness EXPERIENCE layer (memory +
137
+ // task-relevant insights) — the full-ablation arm for §26. The v0.22.3
138
+ // reading showed tool-reliability digest alone has no result effect;
139
+ // the live hypothesis is that the VALUE lives in the lessons layer,
140
+ // which was present in BOTH arms of every ablation so far.
141
+ process.env.HMH_NO_CONTEXT === '1'
142
+ ? Promise.resolve('')
143
+ : retrieveMemory(home, task, { workspace: opts.workspace ?? undefined, embedding: opts.embedding }),
137
144
  listSkills(home),
138
145
  // 2026-09-27 plan A: experience retrieval - the K most RELEVANT past
139
146
  // insights for THIS task (bigram similarity, recency tiebreak) instead
@@ -141,7 +148,9 @@ export async function contextPack(task, sessionId, opts = {}) {
141
148
  // surfaces that lesson instead of five unrelated recent rows.
142
149
  // Plan C: cross-project lessons stay retrievable but carry their
143
150
  // origin stamp ([来自项目:X]) so the model can weigh them.
144
- retrieveInsights(home, task, { workspace: opts.workspace ?? undefined }),
151
+ process.env.HMH_NO_CONTEXT === '1'
152
+ ? Promise.resolve('')
153
+ : retrieveInsights(home, task, { workspace: opts.workspace ?? undefined }),
145
154
  // blueprint M3: the world model feeds the planner — which tools history
146
155
  // trusts/distrusts lands in the system prompt (empty until ≥3 steps of
147
156
  // evidence exist, so cold starts see nothing). HMH_NO_COGNITIVE=1 strips
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/agent",
3
- "version": "0.22.3",
3
+ "version": "0.23.0",
4
4
  "description": "hmharness agent execution layer: base tools, system prompt, sub-agent spawn, and the shared task runner that frontends (cli, web) drive.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -15,13 +15,13 @@
15
15
  "build": "tsc -p tsconfig.build.json"
16
16
  },
17
17
  "dependencies": {
18
- "@hmharness/cognitive": "0.22.3",
19
- "@hmharness/domain-harmony": "0.22.3",
20
- "@hmharness/domain-ops": "0.22.3",
21
- "@hmharness/evolution": "0.22.3",
22
- "@hmharness/kernel": "0.22.3",
23
- "@hmharness/observability": "0.22.3",
24
- "@hmharness/sandbox": "0.22.3"
18
+ "@hmharness/cognitive": "0.23.0",
19
+ "@hmharness/domain-harmony": "0.23.0",
20
+ "@hmharness/domain-ops": "0.23.0",
21
+ "@hmharness/evolution": "0.23.0",
22
+ "@hmharness/kernel": "0.23.0",
23
+ "@hmharness/observability": "0.23.0",
24
+ "@hmharness/sandbox": "0.23.0"
25
25
  },
26
26
  "files": [
27
27
  "dist"