@unblocklabs/unblock-memory 0.12.3 → 0.14.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.
- package/README.md +19 -18
- package/defaults.json +162 -0
- package/dist/src/analysis.js +1 -1
- package/dist/src/cluster-review.d.ts +2 -0
- package/dist/src/cluster-review.js +9 -8
- package/dist/src/config.d.ts +9 -6
- package/dist/src/config.js +59 -45
- package/dist/src/curation.d.ts +1 -1
- package/dist/src/decision-client.d.ts +45 -0
- package/dist/src/decision-client.js +87 -0
- package/dist/src/{typesafe.d.ts → decision-ranking.d.ts} +15 -18
- package/dist/src/decision-ranking.js +155 -0
- package/dist/src/{typesafe-review.d.ts → decision-review.d.ts} +13 -9
- package/dist/src/decision-review.js +193 -0
- package/dist/src/defaults.d.ts +8 -0
- package/dist/src/defaults.js +128 -0
- package/dist/src/diagnostics.d.ts +5 -5
- package/dist/src/emotion-baselines.d.ts +28 -3
- package/dist/src/emotion-baselines.js +312 -115
- package/dist/src/evidence-review.d.ts +22 -8
- package/dist/src/evidence-review.js +11 -8
- package/dist/src/extraction-chunk.d.ts +3 -0
- package/dist/src/extraction-chunk.js +25 -6
- package/dist/src/extraction-config.js +4 -2
- package/dist/src/extraction-model.d.ts +25 -17
- package/dist/src/extraction-model.js +232 -104
- package/dist/src/extraction-runtime.d.ts +3 -1
- package/dist/src/extraction-runtime.js +48 -20
- package/dist/src/extraction-source.d.ts +1 -1
- package/dist/src/extraction-source.js +21 -12
- package/dist/src/extraction-store.d.ts +29 -3
- package/dist/src/extraction-store.js +149 -25
- package/dist/src/extraction-worker.d.ts +3 -3
- package/dist/src/extraction-worker.js +250 -95
- package/dist/src/inside-out-runtime.js +43 -30
- package/dist/src/inside-out-sources.js +2 -1
- package/dist/src/inside-out-store.d.ts +2 -2
- package/dist/src/inside-out-store.js +111 -69
- package/dist/src/inside-out.d.ts +10 -9
- package/dist/src/inside-out.js +194 -106
- package/dist/src/manager.d.ts +22 -9
- package/dist/src/manager.js +279 -172
- package/dist/src/memory-database.js +3 -2
- package/dist/src/memory-passage.d.ts +2 -2
- package/dist/src/memory-passage.js +3 -2
- package/dist/src/memory-search.d.ts +4 -2
- package/dist/src/memory-search.js +5 -5
- package/dist/src/memory-whisperer.d.ts +1 -1
- package/dist/src/memory-whisperer.js +195 -129
- package/dist/src/my-turn.d.ts +1 -1
- package/dist/src/my-turn.js +90 -70
- package/dist/src/people-background.d.ts +5 -1
- package/dist/src/people-background.js +31 -7
- package/dist/src/people-dossier-review.d.ts +20 -8
- package/dist/src/people-dossier-review.js +15 -11
- package/dist/src/people-hooks.js +127 -22
- package/dist/src/people-learning-cron.d.ts +1 -1
- package/dist/src/people-learning-cron.js +107 -57
- package/dist/src/people-learning-inventory.d.ts +1 -0
- package/dist/src/people-learning-inventory.js +283 -172
- package/dist/src/people-learning-prompt.js +1 -1
- package/dist/src/people-learning-runtime.d.ts +1 -1
- package/dist/src/people-learning-runtime.js +360 -203
- package/dist/src/people-learning-store.d.ts +27 -4
- package/dist/src/people-learning-store.js +312 -96
- package/dist/src/people-primer-tool.js +13 -10
- package/dist/src/people-primer.d.ts +3 -1
- package/dist/src/people-primer.js +66 -48
- package/dist/src/people-store.d.ts +18 -21
- package/dist/src/people-store.js +188 -64
- package/dist/src/people-tools.js +138 -93
- package/dist/src/plugin.js +19 -18
- package/dist/src/quality-audit.d.ts +2 -0
- package/dist/src/quality-audit.js +11 -9
- package/dist/src/quality-triage.js +4 -3
- package/dist/src/query-generator.js +5 -2
- package/dist/src/response-audit.d.ts +1 -1
- package/dist/src/response-audit.js +78 -44
- package/dist/src/response-config.js +3 -1
- package/dist/src/response-episodes.d.ts +1 -1
- package/dist/src/response-episodes.js +15 -19
- package/dist/src/response-identity.js +2 -1
- package/dist/src/response-judge.d.ts +151 -145
- package/dist/src/response-judge.js +535 -204
- package/dist/src/response-memory.js +2 -1
- package/dist/src/response-outcome.js +9 -8
- package/dist/src/response-reviews.d.ts +29 -1
- package/dist/src/response-reviews.js +113 -15
- package/dist/src/response-runtime.js +10 -9
- package/dist/src/response-stages.d.ts +50 -53
- package/dist/src/response-stages.js +10 -4
- package/dist/src/response-store.d.ts +7 -6
- package/dist/src/response-store.js +335 -212
- package/dist/src/review-tools.d.ts +8 -2
- package/dist/src/review-tools.js +22 -21
- package/dist/src/runtime.d.ts +7 -4
- package/dist/src/runtime.js +625 -98
- package/dist/src/safety-config.js +3 -2
- package/dist/src/safety-whisperer.d.ts +2 -2
- package/dist/src/safety-whisperer.js +90 -73
- package/dist/src/session-sync.d.ts +3 -1
- package/dist/src/session-sync.js +202 -96
- package/dist/src/skill-whisperer.d.ts +2 -2
- package/dist/src/skill-whisperer.js +55 -32
- package/dist/src/slack-directory.js +3 -2
- package/dist/src/training-gate.d.ts +9 -22
- package/dist/src/training-gate.js +34 -36
- package/dist/src/training-input.js +4 -3
- package/dist/src/training-judge.d.ts +9 -16
- package/dist/src/training-judge.js +6 -5
- package/dist/src/training-models.d.ts +1 -1
- package/dist/src/training-models.js +9 -7
- package/dist/src/training-queries.d.ts +14 -9
- package/dist/src/training-queries.js +374 -231
- package/dist/src/training-retrieval.d.ts +17 -27
- package/dist/src/training-retrieval.js +186 -139
- package/dist/src/training-runtime.d.ts +3 -0
- package/dist/src/training-runtime.js +76 -18
- package/dist/src/training-store.d.ts +18 -3
- package/dist/src/training-store.js +141 -52
- package/dist/src/training.js +9 -11
- package/dist/src/whisperer-context.d.ts +13 -0
- package/dist/src/whisperer-context.js +22 -1
- package/docs/configuration.md +83 -64
- package/docs/extraction.md +26 -35
- package/docs/memory-training.md +7 -6
- package/docs/people-learning.md +2 -2
- package/docs/peoplesql.md +6 -6
- package/docs/response-audit.md +10 -8
- package/docs/retrieval.md +43 -47
- package/openclaw.plugin.json +76 -75
- package/package.json +5 -2
- package/skills/memory-curator/SKILL.md +1 -1
- package/skills/people-whisperer/SKILL.md +1 -1
- package/dist/src/typesafe-client.d.ts +0 -30
- package/dist/src/typesafe-client.js +0 -92
- package/dist/src/typesafe-review.js +0 -154
- package/dist/src/typesafe.js +0 -147
package/docs/peoplesql.md
CHANGED
|
@@ -42,14 +42,14 @@ it does **not** generate claims, update dossiers, or inject context. With
|
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
This is a plugin config fragment. List only configured, approved non-skill corpora. The feature is **off by
|
|
45
|
-
default** and requires shared
|
|
45
|
+
default** and requires shared decision model credentials. Disabled decision model or missing/
|
|
46
46
|
unreadable credentials safely skip the primer; agents can still research normally.
|
|
47
47
|
Enabling it approves sending the person's identity, retrieved excerpts and optional
|
|
48
|
-
draft snippet to
|
|
48
|
+
draft snippet to the decision endpoint. Existing dossiers are not sent as grading evidence.
|
|
49
49
|
Sessions includes all indexed conversations;
|
|
50
50
|
results are available to the agent's tool callers, so scope approval accordingly.
|
|
51
51
|
Primer and dossier-save requests use `peoplePrimer.timeoutMs`, not
|
|
52
|
-
`
|
|
52
|
+
`decisionModel.timeoutMs`; the total tool deadline is two minutes.
|
|
53
53
|
|
|
54
54
|
Three default questions cover explicit role/organization, enduring organizational
|
|
55
55
|
background, and the person's relationship to the agent (not its business mission).
|
|
@@ -88,9 +88,9 @@ edit/deletion returns `conflict` instead of overwriting the newer change.
|
|
|
88
88
|
After independently verifying every assertion and background eligibility, an agent
|
|
89
89
|
can supply a source-specific `manualVerification` explanation (up to 400 characters)
|
|
90
90
|
for direct human corrections, non-indexed evidence or disabled/unavailable/incorrect
|
|
91
|
-
reviews. This explicit path skips
|
|
91
|
+
reviews. This explicit path skips decision model, records manual provenance in change
|
|
92
92
|
history and keeps all structural limits. It is not a provider pass. Normal success
|
|
93
|
-
returns `status: "ok"`, `saved: true` and `verification: "
|
|
93
|
+
returns `status: "ok"`, `saved: true` and `verification: "decision" | "manual"`.
|
|
94
94
|
The skill documents when to use each path. Sources outside approved corpora are
|
|
95
95
|
rejected before egress; no separate `evidenceReview` toggle is needed.
|
|
96
96
|
|
|
@@ -153,7 +153,7 @@ before replacement. No automatic destructive migration or blanket deletion occur
|
|
|
153
153
|
|
|
154
154
|
Every `replace_dossier` and `delete_dossier` action requires a concise `reason`
|
|
155
155
|
(up to 500 characters for replacements, 1,000 for deletions). Replacement history
|
|
156
|
-
also records whether
|
|
156
|
+
also records whether decision model checks passed or a manual attestation was used.
|
|
157
157
|
The plugin transactionally records that reason with its authoritative before and
|
|
158
158
|
after dossier snapshots. List small newest-first summaries with
|
|
159
159
|
`memory_people_inspect({ view: "dossier_changes", personId, limit?, offset? })`,
|
package/docs/response-audit.md
CHANGED
|
@@ -10,8 +10,8 @@ deliverable fit, clear underdelivery and its observable reason. Memory gaps are
|
|
|
10
10
|
an optional diagnostic lead, not a proxy for performance.
|
|
11
11
|
|
|
12
12
|
This reads the host transcript database directly: it does not require a `sessions`
|
|
13
|
-
corpus, People Primer, whisperers or clustering. Configure [shared
|
|
14
|
-
credentials](configuration.md#shared-
|
|
13
|
+
corpus, People Primer, whisperers or clustering. Configure [shared decision model
|
|
14
|
+
credentials](configuration.md#shared-decision-model-credentials) separately. Begin with
|
|
15
15
|
the dry-run command below before requesting inference.
|
|
16
16
|
Only approved Slack sender IDs with trusted `senderKind: human` or owner metadata
|
|
17
17
|
qualify (older Slack records use unknown senderKind even for known owners).
|
|
@@ -44,15 +44,17 @@ investigation while still tracking response quality and sentiment.
|
|
|
44
44
|
}
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
This is explicit approval to send those exchanges to
|
|
47
|
+
This is explicit approval to send those exchanges to the configured decision-model
|
|
48
|
+
endpoint (defaulting to `https://codex.unblocklabs.ai/v1/decisions` -> OpenRouter
|
|
49
|
+
`liquid/d1.2-ultra`). Sender IDs apply
|
|
48
50
|
across the agent's Slack accounts; use only identities approved in all such accounts.
|
|
49
51
|
`memoryCorpora` is optional and separately approves configured **file** corpora for
|
|
50
52
|
memory-gap investigation. Leave it empty to send no indexed memory evidence.
|
|
51
|
-
`
|
|
53
|
+
`decisionModel.enabled: false` or missing credentials prevents evaluation. An interval
|
|
52
54
|
of zero means manual-only. Defaults are disabled, no approved senders, direct chats,
|
|
53
55
|
6 preceding visible messages, 30 days, 20 episodes per run and a 60-minute interval.
|
|
54
56
|
`sentimentEnabled` defaults to **true within that opt-in audit**; it does not bypass
|
|
55
|
-
approved senders or
|
|
57
|
+
approved senders or decision model credentials. Set it false to omit polarity, annoyance,
|
|
56
58
|
frustration and intensity questions while retaining quality/repair judgments.
|
|
57
59
|
`intervalMinutes` controls their shared cadence; no second sentiment timer is needed.
|
|
58
60
|
For example, `720` means every 12 hours; `0` means manual-only. `maxEpisodes`
|
|
@@ -80,7 +82,7 @@ openclaw memory-responses report --agent main --episode EPISODE_ID
|
|
|
80
82
|
openclaw memory-responses report --agent main --sender SLACK_USER_ID --account ACCOUNT_SCOPE --bucket day --since 2026-09-01 --until 2026-10-01
|
|
81
83
|
openclaw memory-responses report --agent main --person PERSON_ID
|
|
82
84
|
openclaw memory-responses tasks --agent main
|
|
83
|
-
openclaw memory-responses review --agent main --id TASK_ID --status deferred --reviewer human --note "Review the linked exchanges before changing preferences"
|
|
85
|
+
openclaw memory-responses review --agent main --id TASK_ID --evidence-hash EVIDENCE_HASH --status deferred --reviewer human --note "Review the linked exchanges before changing preferences"
|
|
84
86
|
openclaw memory-responses annotate --agent main --date 2026-09-18 --kind prompt --note "Known prompt revision deployed"
|
|
85
87
|
openclaw memory-responses retry-failed --agent main
|
|
86
88
|
```
|
|
@@ -88,7 +90,7 @@ openclaw memory-responses retry-failed --agent main
|
|
|
88
90
|
Reports group by scoped human identity as well as task/model/time. Names are not
|
|
89
91
|
identity keys. Existing active people-store links are resolved read-only at assessment
|
|
90
92
|
time; missing links do not prevent analysis. Unknown account scopes stay isolated
|
|
91
|
-
per session. No new identity fields are sent to
|
|
93
|
+
per session. No new identity fields are sent to the decision endpoint. Date ranges are UTC with
|
|
92
94
|
an inclusive start and exclusive end. `periodStart` identifies a day/week bucket;
|
|
93
95
|
legacy `week`/`fromWeek`/`toWeek` fields remain aliases. `--task-type` and `--model`
|
|
94
96
|
further narrow comparisons. Human-specific scores are not rankings of the humans:
|
|
@@ -126,7 +128,7 @@ fulfillment/deliverable-fit grade. The feedback pass distinguishes acceptance,
|
|
|
126
128
|
correction, continuation, unrelated replies, expressed sentiment, repeated constraints
|
|
127
129
|
and avoidable rework. Current-index memory investigation runs only for a strong
|
|
128
130
|
memory-gap signal: lexical retrieval selects up to three whole short documents from
|
|
129
|
-
approved collections. Each document is graded in its own concurrent
|
|
131
|
+
approved collections. Each document is graded in its own concurrent decision model request
|
|
130
132
|
against the same request/answer/feedback; no candidate sees the other documents.
|
|
131
133
|
The isolated memory-stage cache version does not reuse old multi-candidate scores.
|
|
132
134
|
This is an investigation lead, **not proof of historical
|
package/docs/retrieval.md
CHANGED
|
@@ -9,7 +9,7 @@ default. Select named corpora, or use `["all"]` alone. An empty list or unknown
|
|
|
9
9
|
name is an error. Supply `bm25Query` (distinctive keywords/names) and
|
|
10
10
|
`vectorQuery` (a natural-language question describing the information needed).
|
|
11
11
|
Each lane retrieves ten candidates; complete passages are deduplicated and
|
|
12
|
-
independently judged
|
|
12
|
+
independently judged against `vectorQuery`. No query generation or
|
|
13
13
|
recall gate runs. Default: **5 results**, `minUsefulness: 0.7`;
|
|
14
14
|
`maxResults` is 1–20 and `minUsefulness` is 0–1. The old `query` and vector
|
|
15
15
|
`minScore` parameters are removed, not silently reinterpreted.
|
|
@@ -21,7 +21,7 @@ Example tool input (the `memory` corpus exists by default):
|
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Results use compact JSON and carry `path`, `startLine`, `endLine`, `snippet`,
|
|
24
|
-
`corpus`, and a `score`. With `rankingMode: "
|
|
24
|
+
`corpus`, and a `score`. With `rankingMode: "decision"`, this is a
|
|
25
25
|
usefulness probability rounded to hundredths; ranking and threshold filtering
|
|
26
26
|
still use full precision. With `rankingMode: "retrieval"`, passage-level
|
|
27
27
|
reciprocal rank fusion (RRF, `k = 60`, with QMD's top-rank bonuses) scores
|
|
@@ -74,8 +74,9 @@ Search snippets are leads. Inspect attribution, qualifications, dates and adjace
|
|
|
74
74
|
context before relying on a factual claim. An old plan is not proof it happened,
|
|
75
75
|
and memory does not grant permission to act. No results may mean the wrong corpus,
|
|
76
76
|
a high threshold, an unsynced session or an unavailable index—not absence of the fact.
|
|
77
|
-
When enabled and configured,
|
|
78
|
-
excerpts, dates, corpus and source paths.
|
|
77
|
+
When enabled and configured, the decision endpoint receives the semantic query,
|
|
78
|
+
candidate excerpts, dates, corpus and source paths. The default route is Codex LB →
|
|
79
|
+
OpenRouter `liquid/d1.2-ultra`. If disabled, missing/unreadable credentials,
|
|
79
80
|
or **all** eligible usefulness requests fail (including billing HTTP 402, timeouts,
|
|
80
81
|
network or invalid responses), explicit search returns local retrieval-ranked leads.
|
|
81
82
|
The response includes `rankingMode: "retrieval"`, `scoreMeaning: "retrieval_rank"`,
|
|
@@ -119,7 +120,7 @@ Both `memorySearch` and `memoryWhisperer` also report per-call stage measurement
|
|
|
119
120
|
`vectorScanMs`, `hydrationMs`, and `vectorMappingMs`. Repeated scan/hydration stages are summed;
|
|
120
121
|
`vectorScanAttempts` counts native scans. Embedding time includes any lazy model/context setup.
|
|
121
122
|
- `passageMs`: rendering merged candidates; `candidatePrepMs`: eligibility checks and deduplication
|
|
122
|
-
before disclosure to
|
|
123
|
+
before disclosure to the decision endpoint. `judgeMs` covers the concurrent candidate judgments, not their sum.
|
|
123
124
|
- `vectorOtherMs` and `retrievalOtherMs` expose time outside measured child stages. `otherMs` accounts
|
|
124
125
|
for the remaining manual tool execution; Whisperer tracks individual stage timings without a
|
|
125
126
|
separate whole-run residual. Parent durations must not be added to their child durations.
|
|
@@ -135,7 +136,7 @@ path, credential or session identifier is retained; samples are process-local an
|
|
|
135
136
|
Corpora and session filters select evidence; they are not audience ACLs. Normal
|
|
136
137
|
tools can access this agent's configured non-skill corpora, not just its current
|
|
137
138
|
chat. Only index material suitable for the agent's tool callers. Per-feature
|
|
138
|
-
|
|
139
|
+
decision model allowlists do not restrict ordinary retrieval.
|
|
139
140
|
|
|
140
141
|
## QMD entry points
|
|
141
142
|
|
|
@@ -290,7 +291,7 @@ incomplete envelopes leave the entire message unchanged rather than blocking syn
|
|
|
290
291
|
The companion QMD semantic-chunking update skips only source-confirmed standalone
|
|
291
292
|
REM heading/marker spans and orphan closing fences. Reflections and useful text
|
|
292
293
|
remain searchable, with original source offsets. These are deterministic rules,
|
|
293
|
-
not
|
|
294
|
+
not decision model judgments; audit flags never authorize automatic memory deletion.
|
|
294
295
|
|
|
295
296
|
The plugin installs its exact release-pinned QMD dependency (see
|
|
296
297
|
[package metadata](../package.json)). Projector/chunker version changes refresh derived
|
|
@@ -318,13 +319,14 @@ or `memory_get`. Enable it in the plugin config with an explicit corpus allowlis
|
|
|
318
319
|
```
|
|
319
320
|
|
|
320
321
|
Requires `hooks.allowConversationAccess: true` on the plugin entry, prompt
|
|
321
|
-
injection permission, and [shared
|
|
322
|
+
injection permission, and [shared decision model credentials](configuration.md#shared-decision-model-credentials).
|
|
322
323
|
An empty allowlist is invalid when enabled; `all`, unknown names, and `skills`
|
|
323
324
|
are not accepted. When `sessions` is enabled for Memory Whisperer, automatic recall
|
|
324
325
|
can retrieve across this agent's indexed sessions. The sessions corpus's `chatTypes`
|
|
325
326
|
setting controls whether direct messages are included; no additional session-scope
|
|
326
|
-
toggle is required. Selected excerpts are sent to
|
|
327
|
-
|
|
327
|
+
toggle is required. Selected excerpts are sent to the configured decision endpoint
|
|
328
|
+
(defaults to `https://codex.unblocklabs.ai/v1/decisions` -> OpenRouter `liquid/d1.2-ultra`)
|
|
329
|
+
and may be injected into any conversation using this agent. Session availability still depends on the normal
|
|
328
330
|
indexing/sync schedule.
|
|
329
331
|
|
|
330
332
|
The example is a plugin config fragment; `knowledge` must already be configured.
|
|
@@ -340,9 +342,9 @@ complete approved collection scope (not ten per collection) and fusing them via
|
|
|
340
342
|
passage-level RRF (`k = 60`, with QMD top-rank bonuses). The lexical adapter
|
|
341
343
|
uses literal OR keywords; quotation marks do not enable exact-phrase matching.
|
|
342
344
|
After deduplication and cooldown filtering, Whisperer sends at most the top **six**
|
|
343
|
-
fused candidates to
|
|
345
|
+
fused candidates to the decision endpoint, paired with a compact conversation context (the
|
|
344
346
|
current request plus at most the last two visible messages, bounded to 1,500
|
|
345
|
-
characters).
|
|
347
|
+
characters). decision model evaluates one independent Noul question per candidate in
|
|
346
348
|
its own concurrent HTTP request: would a careful assistant use a specific factual
|
|
347
349
|
detail from the excerpt when answering the current request? Partial answers and
|
|
348
350
|
concrete leads count; repeated facts, topic/name matches without answer content,
|
|
@@ -359,7 +361,7 @@ Explicit configured thresholds are preserved. Evaluate it on your own conversati
|
|
|
359
361
|
current request and most recent whole messages are retained; an oversized current
|
|
360
362
|
request skips automatic memory before query generation or retrieval.
|
|
361
363
|
Diagnostics count `input_too_large`; completed logs report `outcome: "skipped"` and
|
|
362
|
-
`reason: "input_too_large"`, without recording the input. Each
|
|
364
|
+
`reason: "input_too_large"`, without recording the input. Each decision model usefulness
|
|
363
365
|
request receives the compacted conversation (at most 1,500 characters across the
|
|
364
366
|
current request and up to two prior visible messages) plus one complete
|
|
365
367
|
1,200-character excerpt, its corpus/source path, all represented message timestamps,
|
|
@@ -396,10 +398,10 @@ All whisperer contributions share that appended block, in this order: `<memory>`
|
|
|
396
398
|
are omitted; no wrapper is emitted when none qualify. The independent whisperers
|
|
397
399
|
run concurrently, and a failed contribution does not discard successful siblings.
|
|
398
400
|
|
|
399
|
-
Unlike Skill Whisperer, **disabled
|
|
401
|
+
Unlike Skill Whisperer, **disabled decision model, a missing key, or no qualifying successful
|
|
400
402
|
judgments means no memory hint**—there is no vector-only fallback. A failed candidate
|
|
401
403
|
does not discard successful siblings. The overall process
|
|
402
|
-
has a 3-second deadline, with the shared 1.5-second
|
|
404
|
+
has a 3-second deadline, with the shared 1.5-second decision model request deadline inside it;
|
|
403
405
|
neither performs retries. Timed-out or superseded runs cannot inject late hints.
|
|
404
406
|
Already-running local QMD work may finish in the background, but does not keep the
|
|
405
407
|
agent waiting beyond the deadline. No new indexing, clustering, or summarization runs
|
|
@@ -407,8 +409,7 @@ are triggered by this feature beyond the memory manager's normal initialization.
|
|
|
407
409
|
|
|
408
410
|
### API query generation (Memory Whisperer remains off by default)
|
|
409
411
|
|
|
410
|
-
|
|
411
|
-
and explicitly enable Memory Whisperer only when ready:
|
|
412
|
+
Memory Whisperer uses deterministic queries by default. To use a resident V2 query-model API, explicitly configure its endpoint and credential file:
|
|
412
413
|
|
|
413
414
|
```json
|
|
414
415
|
{
|
|
@@ -417,20 +418,14 @@ and explicitly enable Memory Whisperer only when ready:
|
|
|
417
418
|
"corpora": ["memory", "knowledge", "sessions"],
|
|
418
419
|
"timeoutMs": 8000,
|
|
419
420
|
"api": {
|
|
420
|
-
"endpoint": "http://
|
|
421
|
+
"endpoint": "http://127.0.0.1:18087",
|
|
421
422
|
"apiKeyFile": "/absolute/path/to/memory-query-api/api-token"
|
|
422
423
|
}
|
|
423
424
|
}
|
|
424
425
|
}
|
|
425
426
|
```
|
|
426
427
|
|
|
427
|
-
The
|
|
428
|
-
the same API/model themselves and override the endpoint with `http://127.0.0.1:18087`.
|
|
429
|
-
The plugin does not launch Python, download weights, or manage the server. The host
|
|
430
|
-
service must retain and warm the model and restart it after failure. The Studio
|
|
431
|
-
service starts at Roman's login, uses bearer authentication and a client-IP allowlist;
|
|
432
|
-
each new fleet client must be provisioned there before enabling hints. Plain HTTP is
|
|
433
|
-
for the trusted LAN/loopback only; use TLS or a private tunnel across untrusted networks.
|
|
428
|
+
The plugin does not launch or manage the server. Use plain HTTP only on trusted networks; use TLS or a private tunnel otherwise.
|
|
434
429
|
Visible conversation text is sent to this endpoint, never tool outputs/thinking.
|
|
435
430
|
Approve only corpora suitable for every audience of the agent.
|
|
436
431
|
|
|
@@ -446,7 +441,7 @@ between that private worker protocol and the HTTP API below.
|
|
|
446
441
|
missing credentials, timeouts (capped at half the whisperer deadline, up to 1.5s),
|
|
447
442
|
and HTTP failures log `generation_fallback` and fall back to deterministic local
|
|
448
443
|
`lex`/`vec` extraction rather than aborting retrieval; all fallback hits still pass
|
|
449
|
-
through
|
|
444
|
+
through decision model usefulness judging.
|
|
450
445
|
Turn cancellation aborts HTTP and prevents late hints; already-running server-side
|
|
451
446
|
generation may finish independently. Gateway shutdown does not stop the shared API.
|
|
452
447
|
Old `mlx` config is accepted but ignored; remove it after migrating.
|
|
@@ -478,7 +473,7 @@ scores.
|
|
|
478
473
|
Query output requires exactly the two nonempty string fields `lex` and `vec`;
|
|
479
474
|
surrounding whitespace is trimmed. Old query arrays are not accepted. Unparseable,
|
|
480
475
|
timed-out, or unavailable v2 output falls back to deterministic local `lex`/`vec`
|
|
481
|
-
queries for that turn and still requires
|
|
476
|
+
queries for that turn and still requires decision model passage judgments.
|
|
482
477
|
Nothing changes in manual `memory_search` beyond passage-level RRF scoring in
|
|
483
478
|
shared candidate discovery. The default total deadline remains three seconds;
|
|
484
479
|
measure the full path before choosing a larger explicit budget.
|
|
@@ -508,8 +503,8 @@ disabled; an explicit `skillWhisperer.enabled: true` without one logs a warning.
|
|
|
508
503
|
Set `skillWhisperer.enabled` to `false` to opt out. It
|
|
509
504
|
embeds the current prompt plus the configured number of prior user/assistant
|
|
510
505
|
messages, compares it with each configured skill's frontmatter `name` and
|
|
511
|
-
`description`. With
|
|
512
|
-
candidates are graded in separate concurrent
|
|
506
|
+
`description`. With decision model enabled and a key available, the top three valid
|
|
507
|
+
candidates are graded in separate concurrent decision model requests, without a vector-score cutoff.
|
|
513
508
|
Each request sees only one skill's name/description plus the conversation. Code chooses
|
|
514
509
|
the highest usefulness probability at or above **0.7**, with retrieval order breaking ties.
|
|
515
510
|
If none qualifies, no skill is suggested; there is no vector fallback. This is an
|
|
@@ -520,10 +515,10 @@ The reminder follows memory, when present, in the same appended `<unblock_memory
|
|
|
520
515
|
block: `<skill>This skill may be relevant: "/path/to/SKILL.md"</skill>`.
|
|
521
516
|
It includes the path but does not repeat the skill name.
|
|
522
517
|
|
|
523
|
-
See [shared
|
|
518
|
+
See [shared decision model credentials](configuration.md#shared-decision-model-credentials) for key setup,
|
|
524
519
|
rotation and the `enabled: true` / `timeoutMs: 1500` defaults.
|
|
525
520
|
|
|
526
|
-
If
|
|
521
|
+
If the decision model is disabled or no key is found, selection uses the original local
|
|
527
522
|
vector process and `skillWhisperer.minScore`. With a key present, an API error,
|
|
528
523
|
invalid response, or timeout excludes that candidate and logs a sanitized warning;
|
|
529
524
|
successful siblings can still qualify. If all fail, no hint is emitted. It does
|
|
@@ -535,21 +530,21 @@ credential resolution, retrieval and provider calls. A slow skill lookup cannot
|
|
|
535
530
|
hold up ready memory or people hints beyond that budget. Session teardown,
|
|
536
531
|
superseding turns and Gateway shutdown cancel its wait and provider requests;
|
|
537
532
|
shared indexing/embedding work can finish for other callers, but cannot trigger
|
|
538
|
-
late
|
|
533
|
+
late decision model calls or hints for the cancelled run.
|
|
539
534
|
|
|
540
|
-
**Privacy:** enabled
|
|
541
|
-
prompt/recent user-assistant text, plus the shortlisted names/descriptions, to
|
|
542
|
-
`
|
|
543
|
-
|
|
535
|
+
**Privacy:** enabled decision-model selection sends up to 12,000 characters of current
|
|
536
|
+
prompt/recent user-assistant text, plus the shortlisted names/descriptions, to the
|
|
537
|
+
configured `decisionModel.endpoint` (defaulting to `https://codex.unblocklabs.ai/v1/decisions`,
|
|
538
|
+
routed to OpenRouter's `liquid/d1.2-ultra`). Source-path fields, full skill procedures, tool-result
|
|
539
|
+
messages, and system messages are excluded; dossiers and ordinary memory files are not read
|
|
544
540
|
for this call. Material already quoted in user/assistant text can still be included.
|
|
545
|
-
Disable `
|
|
546
|
-
is `jev-1.13.0`.
|
|
541
|
+
Disable `decisionModel.enabled` to keep Skill Whisperer entirely local.
|
|
547
542
|
|
|
548
543
|
The defaults use five prior messages, a vector-only score threshold of `0.5`,
|
|
549
544
|
and a ten-turn cooldown. A skill is cooling down after either a suggestion or a
|
|
550
545
|
successful direct `read` of its indexed `SKILL.md`. When the selected
|
|
551
546
|
skill is cooling down, no hint is emitted; Skill Whisperer does not fall through
|
|
552
|
-
to a weaker match. When every shortlisted skill is cooling down,
|
|
547
|
+
to a weaker match. When every shortlisted skill is cooling down, no decision requests are made.
|
|
553
548
|
Cooldown state is per session and intentionally resets with
|
|
554
549
|
the Gateway. Shell-command reads are not tracked.
|
|
555
550
|
|
|
@@ -571,7 +566,7 @@ rebuild the skill index from the updated configuration.
|
|
|
571
566
|
- `memory_diagnostics` reports credential **availability only**, per-agent process-local
|
|
572
567
|
whisperer counters, projection version, old indexed-session projection count, and
|
|
573
568
|
embedding readiness. Counters are bounded to 100 agents and reset on restart.
|
|
574
|
-
This is not a complete people/response feature-status report; it makes no
|
|
569
|
+
This is not a complete people/response feature-status report; it makes no decision model
|
|
575
570
|
request, but can initialize the memory manager/index on first use.
|
|
576
571
|
No prompts, excerpts, paths, keys, or provider error bodies enter these counters.
|
|
577
572
|
Parser cleanup/budget-skip counts are persisted with the latest completed
|
|
@@ -606,19 +601,20 @@ Optional plugin config fragment (corpora must already be configured):
|
|
|
606
601
|
```
|
|
607
602
|
|
|
608
603
|
Both additions default off. Claim review sends the proposed claim and approved
|
|
609
|
-
source excerpts to
|
|
604
|
+
source excerpts to the decision endpoint; cluster review sends one approved sampled excerpt per request.
|
|
610
605
|
Complementary hints use up to six concurrent directional-pair requests over at most four already-useful
|
|
611
606
|
candidates. Each request sees only its pair, not the other candidates. Only redundancy probability >=0.9
|
|
612
607
|
removes a hint; distinct evidence and contradictions should remain. Provider errors
|
|
613
608
|
retain baseline hints, while the existing total turn deadline/cancellation still
|
|
614
|
-
suppresses late results. Missing keys or disabled
|
|
609
|
+
suppresses late results. Missing keys or disabled decision model never enable these calls.
|
|
615
610
|
The retrieval corpus/session boundaries are unchanged.
|
|
616
611
|
|
|
617
612
|
## Memory quality audit
|
|
618
613
|
|
|
619
|
-
`memory_audit_quality` is an on-demand, source-read-only audit.
|
|
620
|
-
ingestion noise for agent investigation; it never deletes, rewrites,
|
|
621
|
-
memory. Enable it with explicit approval for the corpora sent to
|
|
614
|
+
`memory_audit_quality` is an on-demand, source-read-only audit. The configured decision
|
|
615
|
+
model flags likely ingestion noise for agent investigation; it never deletes, rewrites,
|
|
616
|
+
or suppresses memory. Enable it with explicit approval for the corpora sent to the
|
|
617
|
+
configured decision endpoint (defaults to `https://codex.unblocklabs.ai/v1/decisions` -> OpenRouter `liquid/d1.2-ultra`):
|
|
622
618
|
|
|
623
619
|
```json
|
|
624
620
|
{
|
|
@@ -631,8 +627,8 @@ memory. Enable it with explicit approval for the corpora sent to TypeSafe:
|
|
|
631
627
|
```
|
|
632
628
|
|
|
633
629
|
This is a plugin config fragment; both corpora must already be configured.
|
|
634
|
-
Off by default. Uses the shared
|
|
635
|
-
credentials or disabled
|
|
630
|
+
Off by default. Uses the shared decision model credentials and request timeout. Missing
|
|
631
|
+
credentials or disabled decision model produces no audit. Approval includes transmission
|
|
636
632
|
of full eligible chunks and visibility of findings to all audiences using the agent.
|
|
637
633
|
Unlike Memory Whisperer, approving `sessions` includes **all indexed sessions** in
|
|
638
634
|
that corpus, including configured direct conversations. Only approve that when intended.
|