@unblocklabs/unblock-memory 0.11.1 → 0.12.1
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 +1 -1
- package/dist/src/agent-transcript.js +16 -0
- package/dist/src/config.d.ts +2 -0
- package/dist/src/config.js +4 -1
- package/dist/src/evidence-review.d.ts +2 -0
- package/dist/src/evidence-review.js +1 -1
- package/dist/src/people-background.d.ts +3 -1
- package/dist/src/people-background.js +10 -1
- package/dist/src/people-dossier-review.d.ts +5 -1
- package/dist/src/people-dossier-review.js +40 -23
- package/dist/src/people-hooks.js +10 -6
- package/dist/src/people-learning-config.d.ts +39 -0
- package/dist/src/people-learning-config.js +36 -0
- package/dist/src/people-learning-cron.d.ts +14 -0
- package/dist/src/people-learning-cron.js +101 -0
- package/dist/src/people-learning-inventory.d.ts +58 -0
- package/dist/src/people-learning-inventory.js +260 -0
- package/dist/src/people-learning-prompt.d.ts +1 -0
- package/dist/src/people-learning-prompt.js +11 -0
- package/dist/src/people-learning-runtime.d.ts +6 -0
- package/dist/src/people-learning-runtime.js +374 -0
- package/dist/src/people-learning-store.d.ts +153 -0
- package/dist/src/people-learning-store.js +281 -0
- package/dist/src/people-learning-time.d.ts +7 -0
- package/dist/src/people-learning-time.js +33 -0
- package/dist/src/people-primer-tool.js +1 -1
- package/dist/src/people-primer.js +19 -17
- package/dist/src/people-store.d.ts +16 -5
- package/dist/src/people-store.js +67 -7
- package/dist/src/people-tools.js +10 -6
- package/dist/src/plugin.js +8 -4
- package/dist/src/response-store.d.ts +2 -0
- package/dist/src/response-store.js +8 -0
- package/dist/src/typesafe-review.d.ts +2 -0
- package/dist/src/typesafe-review.js +9 -8
- package/docs/configuration.md +6 -2
- package/docs/people-learning.md +239 -0
- package/docs/peoplesql.md +30 -22
- package/openclaw.plugin.json +34 -5
- package/package.json +5 -2
- package/scripts/people-nightly-inventory.mjs +9 -0
- package/scripts/people-review-coverage.mjs +65 -0
- package/skills/people-whisperer/SKILL.md +123 -123
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "unblock-memory",
|
|
3
3
|
"name": "Unblock Memory",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.12.1",
|
|
5
5
|
"description": "Indexes, retrieves, and analyzes configured workspace memory with existing QMD vectors.",
|
|
6
6
|
"kind": "memory",
|
|
7
7
|
"activation": { "onStartup": true },
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"memory_people_inspect",
|
|
25
25
|
"memory_people_update",
|
|
26
26
|
"memory_people_prime",
|
|
27
|
-
"memory_people_sync"
|
|
27
|
+
"memory_people_sync",
|
|
28
|
+
"memory_people_learning"
|
|
28
29
|
]
|
|
29
30
|
},
|
|
30
31
|
"toolMetadata": {
|
|
@@ -42,7 +43,8 @@
|
|
|
42
43
|
"memory_people_inspect": { "replaySafe": true },
|
|
43
44
|
"memory_people_update": { "sideEffecting": true },
|
|
44
45
|
"memory_people_prime": { "sideEffecting": true },
|
|
45
|
-
"memory_people_sync": { "sideEffecting": true, "optional": true }
|
|
46
|
+
"memory_people_sync": { "sideEffecting": true, "optional": true },
|
|
47
|
+
"memory_people_learning": { "sideEffecting": true }
|
|
46
48
|
},
|
|
47
49
|
"uiHints": {
|
|
48
50
|
"myTurn.enabled": { "label": "My Turn", "help": "Opt in to sending recent group/channel conversation text and agent identity to TypeSafe. Appends an advisory NO_REPLY hint only when Jev clearly favors silence. DMs and internal wakes are excluded. Failures never prevent a turn. Requires hook conversation access and prompt injection. Disabled by default." },
|
|
@@ -109,9 +111,10 @@
|
|
|
109
111
|
},
|
|
110
112
|
"people.whisperer.enabled": {
|
|
111
113
|
"label": "People Whisperer",
|
|
112
|
-
"help": "
|
|
114
|
+
"help": "Supply identity, scoped preferences and unexpired agent lessons on every Slack user turn. Enables private nightly learning and weekly validation by default. Same-run retries replay their snapshot."
|
|
113
115
|
},
|
|
114
|
-
"people.whisperer.maxChars": { "label": "People
|
|
116
|
+
"people.whisperer.maxChars": { "label": "People Context Character Limit", "help": "Combined identity and interaction context limit. Identity blurb remains at most 70 words." },
|
|
117
|
+
"people.learning.enabled": { "label": "People Learning", "help": "Defaults on with People Whisperer. Private nightly dreaming at 03:10 and complete weekly validation Sunday at 04:00 in the agent timezone. Does not grant external-analysis or corpus approvals." },
|
|
115
118
|
"analysis.executable": {
|
|
116
119
|
"label": "Memory Analysis Worker",
|
|
117
120
|
"help": "Optional absolute path to the locally installed unblock-memory-analysis executable."
|
|
@@ -292,6 +295,32 @@
|
|
|
292
295
|
"maxOpen": { "type": "integer", "minimum": 1, "maximum": 10000, "default": 1000 }
|
|
293
296
|
},
|
|
294
297
|
"default": { "maxOpen": 1000 }
|
|
298
|
+
},
|
|
299
|
+
"learning": {
|
|
300
|
+
"type": "object", "additionalProperties": false,
|
|
301
|
+
"properties": {
|
|
302
|
+
"enabled": { "type": "boolean" },
|
|
303
|
+
"nightly": { "type": "boolean", "default": true },
|
|
304
|
+
"weekly": { "type": "boolean", "default": true },
|
|
305
|
+
"nightlySchedule": { "type": "string", "default": "10 3 * * *" },
|
|
306
|
+
"weeklySchedule": { "type": "string", "default": "0 4 * * 0" },
|
|
307
|
+
"timezone": { "type": "string" },
|
|
308
|
+
"legacyJobIds": { "type": "array", "items": { "type": "string" } },
|
|
309
|
+
"agents": {
|
|
310
|
+
"type": "object",
|
|
311
|
+
"propertyNames": { "pattern": "^[a-z0-9][a-z0-9_-]*$" },
|
|
312
|
+
"additionalProperties": {
|
|
313
|
+
"type": "object", "additionalProperties": false,
|
|
314
|
+
"properties": {
|
|
315
|
+
"enabled": { "type": "boolean" },
|
|
316
|
+
"nightly": { "type": "boolean" }, "weekly": { "type": "boolean" },
|
|
317
|
+
"nightlySchedule": { "type": "string" }, "weeklySchedule": { "type": "string" },
|
|
318
|
+
"timezone": { "type": "string" },
|
|
319
|
+
"legacyJobIds": { "type": "array", "items": { "type": "string" } }
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
295
324
|
}
|
|
296
325
|
},
|
|
297
326
|
"default": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unblocklabs/unblock-memory",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Workspace-native memory for OpenClaw, powered by QMD",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
"docs/response-audit.md",
|
|
32
32
|
"docs/memory-training.md",
|
|
33
33
|
"docs/extraction.md",
|
|
34
|
+
"docs/people-learning.md",
|
|
35
|
+
"scripts/people-nightly-inventory.mjs",
|
|
36
|
+
"scripts/people-review-coverage.mjs",
|
|
34
37
|
"openclaw.plugin.json"
|
|
35
38
|
],
|
|
36
39
|
"scripts": {
|
|
@@ -48,7 +51,7 @@
|
|
|
48
51
|
},
|
|
49
52
|
"dependencies": {
|
|
50
53
|
"@huggingface/tokenizers": "0.2.0",
|
|
51
|
-
"@unblocklabs/qmd": "3.0.
|
|
54
|
+
"@unblocklabs/qmd": "3.0.4",
|
|
52
55
|
"chokidar": "5.0.0",
|
|
53
56
|
"js-tiktoken": "1.0.21",
|
|
54
57
|
"picomatch": "^4.0.5",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Portable operator entry point. Host configuration owns identities, paths and timezone.
|
|
3
|
+
import { spawnSync } from 'node:child_process';
|
|
4
|
+
const args = process.argv.slice(2);
|
|
5
|
+
if (!args.includes('--agent')) throw new Error('Usage: people-nightly-inventory.mjs --agent ID [--kind nightly|weekly] [--date YYYY-MM-DD]');
|
|
6
|
+
if (args.includes('--dry-run')) throw new Error('Use the operator inventory command; it writes private resumable review state, never people preferences.');
|
|
7
|
+
const result = spawnSync('openclaw', ['memory-people-learning', 'inventory', ...args], { stdio: 'inherit' });
|
|
8
|
+
if (result.error) throw result.error;
|
|
9
|
+
process.exitCode = result.status ?? 1;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
|
|
4
|
+
// Coverage verification is deterministic; evidence interpretation remains the agent's job.
|
|
5
|
+
const [manifestPath, receiptPath] = process.argv.slice(2);
|
|
6
|
+
if (!manifestPath || !receiptPath) throw new Error('Usage: people-review-coverage.mjs MANIFEST_JSON RECEIPT_JSON');
|
|
7
|
+
const manifest = JSON.parse(readFileSync(manifestPath, 'utf8'));
|
|
8
|
+
const receipt = JSON.parse(readFileSync(receiptPath, 'utf8'));
|
|
9
|
+
if (manifest.id && manifest.agentId) {
|
|
10
|
+
const { verifyLearningCoverage, LEARNING_RECEIPT_SCHEMA } = await import('../dist/src/people-learning-store.js');
|
|
11
|
+
const { Value } = await import('typebox/value');
|
|
12
|
+
const result = verifyLearningCoverage(manifest, Value.Parse(LEARNING_RECEIPT_SCHEMA, receipt));
|
|
13
|
+
console.log(JSON.stringify(result, null, 2));
|
|
14
|
+
process.exit(result.status === 'complete' ? 0 : 1);
|
|
15
|
+
}
|
|
16
|
+
// Compatibility for receipts produced by the original local extension. These
|
|
17
|
+
// cannot be submitted to plugin-owned runs, which require the schema above.
|
|
18
|
+
const errors = [];
|
|
19
|
+
const byId = new Map((receipt.assertionReviews ?? []).map(review => [review.assertionId, review]));
|
|
20
|
+
if (byId.size !== (receipt.assertionReviews ?? []).length) errors.push('Duplicate assertion dispositions');
|
|
21
|
+
const statuses = new Set(['revalidated','corrected','retired','unresolved']);
|
|
22
|
+
let reviewed = 0, unresolved = 0;
|
|
23
|
+
if (receipt.fullValidation) {
|
|
24
|
+
for (const claim of manifest.assertions) {
|
|
25
|
+
const review = byId.get(claim.id);
|
|
26
|
+
if (!review) { errors.push(`Missing assertion ${claim.id}`); continue; }
|
|
27
|
+
if (!statuses.has(review.disposition) || !review.reason?.trim() || !Number.isFinite(Date.parse(review.reviewedAt))) {
|
|
28
|
+
errors.push(`Invalid disposition ${claim.id}`); continue;
|
|
29
|
+
}
|
|
30
|
+
if (review.disposition !== 'unresolved' && (!Array.isArray(review.sourceRefs) || !review.sourceRefs.length)) {
|
|
31
|
+
errors.push(`Missing original-source verification ${claim.id}`); continue;
|
|
32
|
+
}
|
|
33
|
+
if (review.disposition === 'unresolved') unresolved++; else reviewed++;
|
|
34
|
+
}
|
|
35
|
+
const known = new Set(manifest.assertions.map(claim => claim.id));
|
|
36
|
+
for (const id of byId.keys()) if (!known.has(id)) errors.push(`Unknown assertion ${id}`);
|
|
37
|
+
}
|
|
38
|
+
if (receipt.kind === 'nightly') {
|
|
39
|
+
const people = new Map((receipt.peopleReviews ?? []).map(person => [person.senderId, person]));
|
|
40
|
+
if (people.size !== (receipt.peopleReviews ?? []).length) errors.push('Duplicate team-member reviews');
|
|
41
|
+
for (const person of manifest.roster) {
|
|
42
|
+
const review = people.get(person.senderId);
|
|
43
|
+
if (!review || !['reviewed','no_interactions','unresolved'].includes(review.status)) {
|
|
44
|
+
errors.push(`Missing/invalid team-member review ${person.senderId}`); continue;
|
|
45
|
+
}
|
|
46
|
+
if (person.sessions.length && review.status === 'no_interactions') errors.push(`Skipped existing interactions for ${person.senderId}`);
|
|
47
|
+
const inspected = new Set(review.sessionIds ?? []);
|
|
48
|
+
if (review.status === 'reviewed' && person.sessions.some(session => !inspected.has(session.sessionId))) {
|
|
49
|
+
errors.push(`Unreviewed session for ${person.senderId}`);
|
|
50
|
+
}
|
|
51
|
+
if (review.status === 'reviewed' && (!review.reason?.trim() || !Array.isArray(review.sourceRefs) || !review.sourceRefs.length)) {
|
|
52
|
+
errors.push(`Missing exchange evidence for ${person.senderId}`);
|
|
53
|
+
}
|
|
54
|
+
if (review.status === 'unresolved') unresolved++;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const gapReviews = new Map((receipt.sourceGapReviews ?? []).map(review => [review.sourceGapId, review]));
|
|
58
|
+
const gaps = manifest.sourceGaps.filter(gap => {
|
|
59
|
+
const review = gapReviews.get(gap.id);
|
|
60
|
+
return review?.status !== 'resolved' || !review.reason?.trim() || !review.sourceRefs?.length;
|
|
61
|
+
}).length;
|
|
62
|
+
const status = errors.length ? 'invalid' : unresolved || gaps || receipt.auditBacklog ? 'partial' : 'complete';
|
|
63
|
+
console.log(JSON.stringify({ status, expectedAssertions: receipt.fullValidation ? manifest.assertions.length : 0,
|
|
64
|
+
reviewed, unresolved, sourceGaps: gaps, errors }, null, 2));
|
|
65
|
+
if (status !== 'complete') process.exitCode = 1;
|
|
@@ -1,129 +1,129 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: people-whisperer
|
|
3
|
-
description:
|
|
3
|
+
description: Remember who each person is, their interaction preferences, and evidence-backed lessons from working with them. Curate feedback during nightly dreaming and revalidate every saved statement weekly.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# People Whisperer
|
|
7
7
|
|
|
8
|
-
Help
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
to
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
8
|
+
Help future sessions recognize the person and work better with them. Save specific,
|
|
9
|
+
scoped adjustments grounded in actual exchanges. The agent decides which lessons
|
|
10
|
+
are useful, and distinguishes explicit human preferences from its own hypotheses.
|
|
11
|
+
|
|
12
|
+
## Review feedback during nightly dreaming
|
|
13
|
+
|
|
14
|
+
Identify the exact Slack account/sender with `memory_people_inspect` view `person`.
|
|
15
|
+
Read their current dossier before replacing it. During nightly dreaming, review
|
|
16
|
+
continuing interaction preferences and corrections from the day's exchanges.
|
|
17
|
+
Decide which updates are useful and save verified changes. Preserve other
|
|
18
|
+
verified claims and their original scope. A one-off task request is not automatically
|
|
19
|
+
a permanent preference. If duration is ambiguous, use the narrowest supported scope.
|
|
20
|
+
|
|
21
|
+
Research original sources using `memory_people_prime`, `memory_search` and
|
|
22
|
+
`memory_get`. The primer covers identity, organization, agent relationship,
|
|
23
|
+
preferences and working-style feedback, including corrections. Sync sessions with
|
|
24
|
+
`memory_sync_sessions` and inspect `memory_sync_status` when needed. Existing
|
|
25
|
+
dossiers and the agent's earlier assertions are not independent evidence. Do not
|
|
26
|
+
send evidence outside the approved corpora to TypeSafe.
|
|
27
|
+
|
|
28
|
+
## Store a compact, sourced dossier
|
|
29
|
+
|
|
30
|
+
Keep the `blurb` an identity/background paragraph of at most 70 words. Store each
|
|
31
|
+
ongoing preference separately under `preferences` or `workingStyle`; these sections
|
|
32
|
+
are also supplied to the agent. New dossiers allow `role`, `relationship`,
|
|
33
|
+
`preferences` and `workingStyle` sections. Cite original evidence for EVERY claim.
|
|
34
|
+
Use `scope` to retain channel, project or interaction limits, and `reviewedAt` for
|
|
35
|
+
the actual last verification time. Source `observedAt` is the source's time, not the
|
|
36
|
+
review time. Preserve source attribution and uncertainty.
|
|
37
|
+
|
|
38
|
+
Explicit human preferences use `reported` (or directly observed facts use
|
|
39
|
+
`observed`). Agent-derived improvements use `agent_assessment`, an explicit scope,
|
|
40
|
+
`reviewedAt`, and `expiresAt` no more than 30 days later; default to a seven-day
|
|
41
|
+
trial. These are provisional agent lessons, never human-stated instructions. Decide
|
|
42
|
+
whether a small, reversible adjustment is justified by the complete exchange.
|
|
43
|
+
Do not infer psychological traits, emotions as enduring personality, permissions,
|
|
44
|
+
or new responsibilities. Sentiment alone does not establish the desired adjustment.
|
|
45
|
+
|
|
46
|
+
Use `memory_people_update` action `replace_dossier` with a complete replacement
|
|
47
|
+
and a concise reason. The tool reviews the identity blurb and every stored claim
|
|
48
|
+
against its own evidence. Indexed evidence needs exact `qmd://path#Lstart-Lend`
|
|
49
|
+
references (1–3 per assertion, at most 120 lines each and 6,000 characters total).
|
|
50
|
+
A failed, uncertain or unavailable review leaves the dossier unchanged.
|
|
51
|
+
|
|
52
|
+
For direct feedback in the current conversation, authoritative directory data,
|
|
53
|
+
non-indexed evidence or an unavailable/incorrect automated review, use a
|
|
54
|
+
source-specific `manualVerification` ONLY after independently checking every
|
|
55
|
+
retained assertion, attribution, scope and any newer corrections. Record the
|
|
56
|
+
original Slack message/account/sender/time or authoritative source; do not invent
|
|
57
|
+
indexed citations. Manual verification is recorded as manual, not a provider pass.
|
|
58
|
+
|
|
59
|
+
If a concurrent change returns `conflict`, inspect again and merge deliberately.
|
|
60
|
+
Respect the configured combined-context character limit. Never silently drop
|
|
61
|
+
preferences merely to fit a new claim. Only actionable claims and the blurb are
|
|
62
|
+
injected; evidence and full change history remain in storage. Expired claims are
|
|
63
|
+
omitted from injection automatically. Context refreshes on every user turn; a retry
|
|
64
|
+
of the exact same run replays its original snapshot.
|
|
65
|
+
|
|
66
|
+
## Nightly dreaming: did I show up well for each teammate?
|
|
67
|
+
|
|
68
|
+
Use `memory_people_learning` action `inventory`, kind `nightly`, in the private
|
|
69
|
+
plugin-owned review session. Follow its manifest and exact local identities. Review every
|
|
70
|
+
team member's interactions in the completed local day, plus unfinished review
|
|
71
|
+
backlog. Record people with no interactions rather than inventing observations.
|
|
72
|
+
Use response-quality/sentiment reports to find leads, then read the full relevant
|
|
73
|
+
request, agent response, human reaction and subsequent repair in original sessions.
|
|
74
|
+
Also inspect neutral corrections, explicit preferences, repeated constraints,
|
|
75
|
+
avoidable rework and examples that worked well. No complaint is not proof of success.
|
|
76
|
+
|
|
77
|
+
Ask: what did the person need, what did I do, how did they respond, and what
|
|
78
|
+
specific adjustment would improve the next relevant interaction? Separate agent
|
|
79
|
+
execution/delivery mistakes, changing requirements and external frustration from
|
|
80
|
+
personal interaction preferences. Record general execution fixes as agent work;
|
|
81
|
+
keep person dossiers focused on how to collaborate with that person.
|
|
82
|
+
Keep saved lessons concise; do not add unnecessary or irrelevant caveats.
|
|
83
|
+
|
|
84
|
+
The agent decides whether to save an explicit preference, trial an inferred lesson,
|
|
85
|
+
revise an existing claim, or make no change. Check for newer contradictions and
|
|
86
|
+
avoid duplicates. Preserve what worked. Do not learn blanket avoidance, unsupported
|
|
87
|
+
personality labels, authority grants, or misleading explanations of an error.
|
|
88
|
+
Revisit earlier provisional lessons; retain only evidence-supported adjustments,
|
|
89
|
+
revise ineffective ones, and let unconfirmed trials expire. Never extend an expiry
|
|
90
|
+
merely because the lesson was already saved.
|
|
91
|
+
|
|
92
|
+
## Complete weekly validation
|
|
93
|
+
|
|
94
|
+
Use `memory_people_learning` action `inventory`, kind `weekly`. The manifest
|
|
95
|
+
enumerates every statement for people with activity in the past completed local
|
|
96
|
+
week, plus unverified legacy dossiers for bootstrap. Source gaps conservatively
|
|
97
|
+
include all dossiers. Enumerate people with `memory_people_inspect` view `people`,
|
|
98
|
+
`includeInactive: true`, following every page, to reconcile any concurrent additions.
|
|
99
|
+
Never reactivate anyone or change injection permissions during an audit.
|
|
100
|
+
For each assertion in the blurb AND every section, inspect its original evidence
|
|
101
|
+
and search for newer changes, contradictions, retractions, completed contexts or
|
|
102
|
+
superseding feedback. Old evidence can still be valid; age alone is not staleness.
|
|
103
|
+
A previous saved statement is never evidence for retaining itself.
|
|
104
|
+
|
|
105
|
+
Classify every statement as revalidated, corrected, retired, or unresolved.
|
|
106
|
+
Update `reviewedAt` only after actual verification. Remove contradicted, superseded,
|
|
107
|
+
expired or unsupported claims from the active dossier; replacements/deletions retain
|
|
108
|
+
before/after history and reasons. Preserve independently verified claims. If all
|
|
109
|
+
useful claims are invalid, delete the dossier with an evidence-based reason. For
|
|
110
|
+
inactive people, inspect/report needed changes without restoring or enabling them.
|
|
111
|
+
Do not pretend a source/provider outage proves a claim false; mark it unresolved
|
|
112
|
+
and retain an explicit backlog for retry. Do not reset its review date.
|
|
113
|
+
|
|
114
|
+
Checkpoint with `memory_people_learning`, preserving its run ID and receipt schema.
|
|
115
|
+
Use `inspect` to resume each pending run and `signals` with its run ID for approved
|
|
116
|
+
analysis. Include person/claim coverage counts, dispositions, source
|
|
117
|
+
references, actual save results, gaps and carried backlog. A run is fully complete
|
|
118
|
+
only when every existing statement has a disposition; a time limit is partial,
|
|
119
|
+
never success-by-sampling. Resume unfinished people first next time. Recheck all
|
|
120
|
+
current claims for every person active that week, even if their dossier is unchanged.
|
|
121
|
+
An old backlog remains pending even after a later run completes.
|
|
122
|
+
|
|
123
|
+
## State and reporting
|
|
124
|
+
|
|
125
|
+
Use `delete_dossier` for an invalid dossier; preserve raw memory and change history.
|
|
126
|
+
Respect paused, archived and unavailable people. Restore and injection changes are
|
|
127
|
+
separate deliberate operations. Report saved snippets, concrete adjustments,
|
|
128
|
+
retired claims, evidence limitations and unresolved work. Do not send team messages
|
|
129
|
+
or modify configuration/schedules from maintenance runs.
|