@hmharness/cognitive 0.23.34 → 0.23.35

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.
@@ -194,7 +194,15 @@ export declare class WorldModel {
194
194
  get transitionsStore(): TransitionStore;
195
195
  /** WM checkpoint: a serializable snapshot that fromCheckpoint() can restore
196
196
  * exactly — the state, the rolling accuracy counters, and the transitions
197
- * (the replay/revision evidence, capped to the most recent N). */
197
+ * (the replay/revision evidence, capped to the most recent N).
198
+ *
199
+ * RESUME CURSOR CONTRACT (v0.29 soak finding, 2026-10-15): the restoring
200
+ * runtime must replay the durable log FROM THE CHECKPOINT POSITION, never
201
+ * from zero — replaying already-applied updates double-counts evidence and
202
+ * drifts beliefs (measured: confidence 0.8055 vs 0.8571 after one
203
+ * crash+full-replay cycle; scripts/longrun-soak.mts F1/F2 pins both the
204
+ * trap and the guarded-equivalence proof). `state.version` is a usable
205
+ * cursor: updates applied since snapshot = version - checkpointed version. */
198
206
  checkpoint(maxTransitions?: number): string;
199
207
  static fromCheckpoint(json: string): WorldModel;
200
208
  /** Stale-belief detection (0.30): beliefs whose last confirming evidence is
@@ -302,7 +302,15 @@ export class WorldModel {
302
302
  /* -------- Long-running sessions (weekly pack 0.30 P2 infrastructure) -------- */
303
303
  /** WM checkpoint: a serializable snapshot that fromCheckpoint() can restore
304
304
  * exactly — the state, the rolling accuracy counters, and the transitions
305
- * (the replay/revision evidence, capped to the most recent N). */
305
+ * (the replay/revision evidence, capped to the most recent N).
306
+ *
307
+ * RESUME CURSOR CONTRACT (v0.29 soak finding, 2026-10-15): the restoring
308
+ * runtime must replay the durable log FROM THE CHECKPOINT POSITION, never
309
+ * from zero — replaying already-applied updates double-counts evidence and
310
+ * drifts beliefs (measured: confidence 0.8055 vs 0.8571 after one
311
+ * crash+full-replay cycle; scripts/longrun-soak.mts F1/F2 pins both the
312
+ * trap and the guarded-equivalence proof). `state.version` is a usable
313
+ * cursor: updates applied since snapshot = version - checkpointed version. */
306
314
  checkpoint(maxTransitions = 1000) {
307
315
  return JSON.stringify({
308
316
  kind: 'hmharness-world-model-checkpoint',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/cognitive",
3
- "version": "0.23.34",
3
+ "version": "0.23.35",
4
4
  "description": "hmharness Cognitive OS core: Environment protocol, World Model, Goal system, Exploration, RLM runtime, five-layer memory, Skill Compiler, Continual Learning control plane, Evolution 2.0 governance, Multi-Agent topology, Transfer lab and GeneralBench schema. Cognitive strategy layer per the HMH Cognitive OS blueprint (2026-09).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,6 +26,6 @@
26
26
  "node": ">=22"
27
27
  },
28
28
  "dependencies": {
29
- "@hmharness/kernel": "0.23.34"
29
+ "@hmharness/kernel": "0.23.35"
30
30
  }
31
31
  }