@hmharness/cognitive 0.23.5 → 0.23.6
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/analysis.d.ts +7 -2
- package/dist/analysis.js +8 -2
- package/package.json +2 -2
package/dist/analysis.d.ts
CHANGED
|
@@ -107,8 +107,13 @@ export interface CalibrationTrend {
|
|
|
107
107
|
/** The learning curve of the cognitive OS: calibration reliability over
|
|
108
108
|
* chronological time buckets. If reliability rises, the harness's world
|
|
109
109
|
* model is genuinely improving from its own experience — self-evolution
|
|
110
|
-
* made measurable on the dimension where the harness's value is proven.
|
|
111
|
-
|
|
110
|
+
* made measurable on the dimension where the harness's value is proven.
|
|
111
|
+
*
|
|
112
|
+
* Mixed-distribution guard (2026-10-02 lesson): exploration phases probe
|
|
113
|
+
* unfamiliar actions ON PURPOSE, so their predictions are bad by design —
|
|
114
|
+
* bucketing them with task-phase predictions reads "task mix changed", not
|
|
115
|
+
* "learning changed". envFilter restricts to ONE environment's curve. */
|
|
116
|
+
export declare function calibrationTrend(home: string, bucketCount?: number, envFilter?: string): Promise<CalibrationTrend>;
|
|
112
117
|
/** Compact world-model digest for the SYSTEM PROMPT. The model sees which
|
|
113
118
|
* tool types history trusts, which keep failing, and what the diagnosis
|
|
114
119
|
* layer currently suggests — perception feeding action, capped hard so it
|
package/dist/analysis.js
CHANGED
|
@@ -217,10 +217,16 @@ export async function calibrationReport(home, topN = 12) {
|
|
|
217
217
|
/** The learning curve of the cognitive OS: calibration reliability over
|
|
218
218
|
* chronological time buckets. If reliability rises, the harness's world
|
|
219
219
|
* model is genuinely improving from its own experience — self-evolution
|
|
220
|
-
* made measurable on the dimension where the harness's value is proven.
|
|
221
|
-
|
|
220
|
+
* made measurable on the dimension where the harness's value is proven.
|
|
221
|
+
*
|
|
222
|
+
* Mixed-distribution guard (2026-10-02 lesson): exploration phases probe
|
|
223
|
+
* unfamiliar actions ON PURPOSE, so their predictions are bad by design —
|
|
224
|
+
* bucketing them with task-phase predictions reads "task mix changed", not
|
|
225
|
+
* "learning changed". envFilter restricts to ONE environment's curve. */
|
|
226
|
+
export async function calibrationTrend(home, bucketCount = 5, envFilter) {
|
|
222
227
|
const trajectories = await loadTrajectories(home, 500);
|
|
223
228
|
const predicted = trajectories
|
|
229
|
+
.filter((t) => (envFilter ? t.environment.id === envFilter : true))
|
|
224
230
|
.flatMap((t) => t.steps.filter((s) => s.prediction).map((s) => ({ at: t.startedAt, err: Math.abs(s.prediction.confidence - (s.outcome === 'success' ? 1 : 0)) })))
|
|
225
231
|
.sort((a, b) => a.at.localeCompare(b.at));
|
|
226
232
|
if (predicted.length < bucketCount * 2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/cognitive",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.6",
|
|
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.
|
|
29
|
+
"@hmharness/kernel": "0.23.6"
|
|
30
30
|
}
|
|
31
31
|
}
|