@bli-cockpit/telemetry-core 0.1.40 → 0.1.41

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.
@@ -1,5 +1,18 @@
1
1
  /** The shared, deliberately conservative transcript characters-per-token estimate. */
2
2
  export declare const CHARS_PER_TOKEN_ESTIMATE = 4;
3
- /** The Stop-hook context window measured by the arm-6 replay. */
4
- export declare const MEMORY_EXTRACT_CONTEXT_TOKENS = 20000;
3
+ /**
4
+ * The Stop-hook context window.
5
+ *
6
+ * 20,000 came over from the API extractor's small-window arm and was never
7
+ * swept. BLI-3971 swept it (2026-09-08): eight arms, six frozen sessions, 952
8
+ * calls, blind two-tier judge. 10,000 and 20,000 were indistinguishable — 56.3
9
+ * against 55.5 correct non-trivial facts per session, 0.67 wrong on both,
10
+ * 98.8% precision on both, inside a measured noise band of ±3.4 facts — and
11
+ * 10,000 costs 58% less per session; 40,000 was measurably worse. Edward,
12
+ * 2026-09-08 20:40 ICT: "let's just do 10,000 tokens." A cost decision on
13
+ * quality nothing could tell apart; `docs/reports/memory-hook-context-sweep-2026-09-08.md`.
14
+ * `ANCHOR_STRIDE_CHARS` is half of this, so the anchored prefix (BLI-3950) is
15
+ * unchanged in kind.
16
+ */
17
+ export declare const MEMORY_EXTRACT_CONTEXT_TOKENS = 10000;
5
18
  export declare const MEMORY_EXTRACT_CONTEXT_MAX_CHARS: number;
@@ -1,5 +1,18 @@
1
1
  /** The shared, deliberately conservative transcript characters-per-token estimate. */
2
2
  export const CHARS_PER_TOKEN_ESTIMATE = 4;
3
- /** The Stop-hook context window measured by the arm-6 replay. */
4
- export const MEMORY_EXTRACT_CONTEXT_TOKENS = 20_000;
3
+ /**
4
+ * The Stop-hook context window.
5
+ *
6
+ * 20,000 came over from the API extractor's small-window arm and was never
7
+ * swept. BLI-3971 swept it (2026-09-08): eight arms, six frozen sessions, 952
8
+ * calls, blind two-tier judge. 10,000 and 20,000 were indistinguishable — 56.3
9
+ * against 55.5 correct non-trivial facts per session, 0.67 wrong on both,
10
+ * 98.8% precision on both, inside a measured noise band of ±3.4 facts — and
11
+ * 10,000 costs 58% less per session; 40,000 was measurably worse. Edward,
12
+ * 2026-09-08 20:40 ICT: "let's just do 10,000 tokens." A cost decision on
13
+ * quality nothing could tell apart; `docs/reports/memory-hook-context-sweep-2026-09-08.md`.
14
+ * `ANCHOR_STRIDE_CHARS` is half of this, so the anchored prefix (BLI-3950) is
15
+ * unchanged in kind.
16
+ */
17
+ export const MEMORY_EXTRACT_CONTEXT_TOKENS = 10_000;
5
18
  export const MEMORY_EXTRACT_CONTEXT_MAX_CHARS = MEMORY_EXTRACT_CONTEXT_TOKENS * CHARS_PER_TOKEN_ESTIMATE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/telemetry-core",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",