@openviking/openclaw-plugin 2026.8.11 → 2026.8.12

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/config.ts CHANGED
@@ -190,9 +190,6 @@ export const OPENVIKING_TOOL_GROUPS: Record<string, readonly OpenVikingToolName[
190
190
  default: OPENVIKING_DEFAULT_ENABLED_TOOL_NAMES,
191
191
  memory: ["memory_recall", "memory_store", "memory_forget"],
192
192
  resource_query: ["ov_search", "ov_read", "ov_multi_read", "ov_list"],
193
- // Migration alias for configurations that previously selected the removed
194
- // search_experience/read_experience tools.
195
- experience: ["ov_search", "ov_read"],
196
193
  import: ["add_resource", "add_skill"],
197
194
  recall_trace: ["ov_recall_trace"],
198
195
  archive: ["ov_archive_search", "ov_archive_expand"],
@@ -951,7 +948,7 @@ export const memoryOpenVikingConfigSchema = {
951
948
  enabledTools: {
952
949
  label: "Enabled Tools",
953
950
  placeholder: "default",
954
- help: "Agent-visible tool allowlist. Accepts tool names or groups: default, all, memory, resource_query, experience (legacy alias), import, recall_trace, archive, tool_result. add_resource also requires enableAddResourceTool=true.",
951
+ help: "Agent-visible tool allowlist. Accepts tool names or groups: default, all, memory, resource_query, import, recall_trace, archive, tool_result. add_resource also requires enableAddResourceTool=true.",
955
952
  advanced: true,
956
953
  },
957
954
  disabledTools: {
package/dist/config.js CHANGED
@@ -54,9 +54,6 @@ export const OPENVIKING_TOOL_GROUPS = {
54
54
  default: OPENVIKING_DEFAULT_ENABLED_TOOL_NAMES,
55
55
  memory: ["memory_recall", "memory_store", "memory_forget"],
56
56
  resource_query: ["ov_search", "ov_read", "ov_multi_read", "ov_list"],
57
- // Migration alias for configurations that previously selected the removed
58
- // search_experience/read_experience tools.
59
- experience: ["ov_search", "ov_read"],
60
57
  import: ["add_resource", "add_skill"],
61
58
  recall_trace: ["ov_recall_trace"],
62
59
  archive: ["ov_archive_search", "ov_archive_expand"],
@@ -653,7 +650,7 @@ export const memoryOpenVikingConfigSchema = {
653
650
  enabledTools: {
654
651
  label: "Enabled Tools",
655
652
  placeholder: "default",
656
- help: "Agent-visible tool allowlist. Accepts tool names or groups: default, all, memory, resource_query, experience (legacy alias), import, recall_trace, archive, tool_result. add_resource also requires enableAddResourceTool=true.",
653
+ help: "Agent-visible tool allowlist. Accepts tool names or groups: default, all, memory, resource_query, import, recall_trace, archive, tool_result. add_resource also requires enableAddResourceTool=true.",
657
654
  advanced: true,
658
655
  },
659
656
  disabledTools: {
@@ -41,6 +41,7 @@
41
41
  ".gitignore",
42
42
  "skills/install-openviking-memory/SKILL.md",
43
43
  "skills/openviking-context-database/SKILL.md",
44
+ "skills/ov-experience-memory/SKILL.md",
44
45
  "INSTALL-AGENT.md"
45
46
  ]
46
47
  },
@@ -50,7 +50,8 @@
50
50
  },
51
51
  "skills": [
52
52
  "./skills/install-openviking-memory",
53
- "./skills/openviking-context-database"
53
+ "./skills/openviking-context-database",
54
+ "./skills/ov-experience-memory"
54
55
  ],
55
56
  "setup": {
56
57
  "providers": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openviking/openclaw-plugin",
3
- "version": "2026.8.11",
3
+ "version": "2026.8.12",
4
4
  "displayName": "OpenViking",
5
5
  "description": "OpenClaw context-engine plugin — OpenViking AI memory, long-term memory, knowledge base, semantic search, RAG, context engine. 长期记忆 · 知识库 · 语义检索 · 上下文引擎",
6
6
  "type": "module",
@@ -0,0 +1,116 @@
1
+ ---
2
+ name: ov-experience-memory
3
+ description: Retrieve and apply OpenViking Experience memories through the Agent runtime's generic OpenViking search and read tools. Use before or during executable, multi-step, or tool-based work such as coding, file or data changes, configuration, deployment, workflow execution, and failure recovery when prior operational guidance could improve reliability. Do not use for casual chat or simple factual questions.
4
+ ---
5
+
6
+ # OpenViking Experience Memory
7
+
8
+ Use prior task Experience as advisory operational guidance. Keep the current
9
+ user request, current environment, and verified tool results authoritative.
10
+ Experience retrieval supplements normal context retrieval; it does not replace
11
+ user memory, events, preferences, session archives, resources, or Agent Skills.
12
+
13
+ ## Preconditions
14
+
15
+ - Use only OpenViking tools that are actually registered in the current Agent
16
+ runtime.
17
+ - Require both a semantic search capability and an exact URI read capability.
18
+ - If either capability is unavailable, continue without Experience. Do not
19
+ invent a tool call, fabricate a ToolPart, or replace the Agent tool call with
20
+ direct HTTP or CLI access.
21
+ - Do not substitute broad memory `recall` for a search scoped to the Experience
22
+ root. Continue using the runtime's normal recall and retrieval flows when the
23
+ task also needs user facts, events, decisions, prior conversation, or domain
24
+ resources.
25
+
26
+ ## Select Runtime Tools
27
+
28
+ Choose the registered names that match the current runtime:
29
+
30
+ | Runtime | Search | Read |
31
+ | --- | --- | --- |
32
+ | OpenViking MCP, Codex, Claude Code | `find` or `search` | `read` |
33
+ | OpenCode | `openviking_find` or `openviking_search` | `openviking_read` |
34
+ | OpenClaw | `ov_search` | `ov_read` or `ov_multi_read` |
35
+
36
+ The host may display MCP names with a namespace such as
37
+ `mcp__openviking__find`. Use the exact registered name and schema shown by the
38
+ runtime. Prefer `find` for a fast task-start lookup and `search` when session
39
+ context or deeper intent analysis is useful.
40
+
41
+ ## Retrieval Workflow
42
+
43
+ 1. Decide whether the request is an executable task. Retrieve Experience for
44
+ planning, tool use, environment changes, multi-step workflows, or recovery
45
+ from a failed attempt. Skip retrieval for casual conversation and simple
46
+ knowledge answers.
47
+ 2. Build one concise query containing the task goal, domain object, intended
48
+ operation, and important constraints. After a failure, include the failed
49
+ operation and stable error signature.
50
+ 3. Search only the current user's Experience root:
51
+
52
+ ```text
53
+ viking://user/memories/experiences
54
+ ```
55
+
56
+ For tools using MCP-style parameters, set `target_uri` to this root. For
57
+ OpenClaw `ov_search`, set `uri` to this root. Never hardcode `default`,
58
+ `test`, or another user ID.
59
+ 4. Start with `limit=5` and the tool's normal score threshold. Judge results by
60
+ task, environment, preconditions, and likely effect; title similarity alone
61
+ is insufficient. If no result is relevant, continue without Experience and
62
+ do not broaden the search to unrelated memory directories.
63
+ 5. Select only the one to three Experience files likely to change execution.
64
+ Require an exact file URI without a query or fragment. Ignore directories,
65
+ unrelated memory types, and sidecars such as `.abstract.md`, `.overview.md`,
66
+ and `.relations.json`.
67
+ 6. Read every selected canonical `viking://.../memories/experiences/...` URI
68
+ with the runtime's OpenViking read tool. Search abstracts help selection but
69
+ are not a substitute for reading the Experience body.
70
+ 7. Apply relevant steps and checks while executing the task. Do not repeat the
71
+ Experience verbatim to the user unless its content is directly needed in the
72
+ answer.
73
+ 8. If execution fails for a materially new reason, perform at most one focused
74
+ follow-up search using the failure evidence, then read only newly relevant
75
+ Experience files.
76
+
77
+ ## Applying Retrieved Experience
78
+
79
+ - Treat Experience as reusable procedure, not as a user profile, user intent,
80
+ security policy, or proof that an action succeeded.
81
+ - Follow priority in this order: system and developer instructions, current
82
+ user request, current environment and tool evidence, then Experience.
83
+ - Ignore stale, incompatible, unsafe, or conflicting guidance. Verify commands,
84
+ paths, APIs, versions, and destructive actions against the current task.
85
+ - Preserve confirmation requirements and permission boundaries. Prior success
86
+ never authorizes a destructive or external action in the current session.
87
+ - When multiple Experience files conflict, prefer the one whose preconditions
88
+ match the current environment; otherwise proceed conservatively and surface
89
+ the ambiguity when it affects the user.
90
+
91
+ ## Session Evidence
92
+
93
+ Use real Agent tool calls so the committed OpenViking session retains their
94
+ ToolParts:
95
+
96
+ - A completed generic OpenViking `find`, `search`, or `list` result containing
97
+ an Experience URI records recall for that Experience.
98
+ - A completed generic OpenViking `read` or `multi_read` of an Experience URI
99
+ records injection and can associate the resulting trajectory with that
100
+ Experience.
101
+ - Failed, cancelled, or incomplete calls do not count.
102
+
103
+ Do not edit, summarize away, or synthesize these ToolParts before the session
104
+ is committed.
105
+
106
+ ## Example
107
+
108
+ For a request to fix a deployment failure:
109
+
110
+ 1. Search the Experience root with a query such as
111
+ `Kubernetes deployment image pull failure private registry`.
112
+ 2. Read the most relevant exact Experience URI.
113
+ 3. Check that its registry, credential, and rollout assumptions match the
114
+ current cluster.
115
+ 4. Apply the compatible diagnostic steps, verify the live result, and continue
116
+ the user's task.