@jonathangu/openclawbrain 0.3.0 → 0.3.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 +140 -290
- package/docs/END_STATE.md +106 -94
- package/docs/EVIDENCE.md +71 -23
- package/docs/RELEASE_CONTRACT.md +46 -32
- package/docs/agent-tools.md +65 -34
- package/docs/architecture.md +128 -142
- package/docs/configuration.md +62 -25
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/channels-status.txt +20 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/config-snapshot.json +94 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/doctor.json +14 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/gateway-probe.txt +24 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/gateway-status.txt +31 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/init-capture.json +15 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/logs.txt +357 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/status-all.txt +61 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/status.json +275 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/summary.md +18 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/trace.json +222 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/validation-report.json +1515 -0
- package/docs/evidence/2026-03-16/1fc8ee6fd7892e3deb27d111434df948bca2a66b/workspace-inventory.json +4 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/channels-status.txt +20 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/config-snapshot.json +94 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/doctor.json +14 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/gateway-probe.txt +24 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/gateway-status.txt +31 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/init-capture.json +15 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/logs.txt +362 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/status-all.txt +61 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/status.json +275 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/summary.md +21 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/trace.json +222 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/validation-report.json +4400 -0
- package/docs/evidence/2026-03-16/4ccd71a22418b9170128b8d948f5a95801a10380/workspace-inventory.json +4 -0
- package/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507/channels-status.txt +31 -0
- package/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507/config-snapshot.json +94 -0
- package/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507/doctor.json +14 -0
- package/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507/gateway-probe.txt +34 -0
- package/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507/gateway-status.txt +41 -0
- package/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507/logs.txt +441 -0
- package/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507/status-all.txt +60 -0
- package/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507/status.json +276 -0
- package/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507/summary.md +13 -0
- package/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507/trace.json +4 -0
- package/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507/validation-report.json +387 -0
- package/docs/tui.md +11 -4
- package/index.ts +194 -1
- package/package.json +1 -1
- package/src/brain-cli.ts +12 -1
- package/src/brain-harvest/scanner.ts +286 -16
- package/src/brain-harvest/self.ts +134 -6
- package/src/brain-runtime/evidence-detectors.ts +3 -1
- package/src/brain-runtime/harvester-extension.ts +3 -0
- package/src/brain-runtime/service.ts +2 -0
- package/src/brain-store/embedding.ts +29 -8
- package/src/brain-worker/worker.ts +40 -0
- package/src/engine.ts +1 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
{
|
|
2
|
+
"command": "openclaw",
|
|
3
|
+
"args": [
|
|
4
|
+
"status",
|
|
5
|
+
"--json",
|
|
6
|
+
"--timeout",
|
|
7
|
+
"10000"
|
|
8
|
+
],
|
|
9
|
+
"cwd": "/Users/cormorantai/openclawbrain",
|
|
10
|
+
"exitCode": 0,
|
|
11
|
+
"signal": null,
|
|
12
|
+
"ok": true,
|
|
13
|
+
"stdout": "[plugins] [openclawbrain] Plugin loaded (enabled=true, db=/Users/cormorantai/.openclaw-ocbphase1/lcm.db, threshold=0.75)\n{\n \"runtimeVersion\": \"2026.3.13\",\n \"heartbeat\": {\n \"defaultAgentId\": \"main\",\n \"agents\": [\n {\n \"agentId\": \"main\",\n \"enabled\": true,\n \"every\": \"30m\",\n \"everyMs\": 1800000\n }\n ]\n },\n \"channelSummary\": [],\n \"queuedSystemEvents\": [],\n \"sessions\": {\n \"paths\": [\n \"/Users/cormorantai/.openclaw-ocbphase1/agents/main/sessions/sessions.json\"\n ],\n \"count\": 1,\n \"defaults\": {\n \"model\": \"qwen2.5:7b-instruct\",\n \"contextTokens\": 262144\n },\n \"recent\": [\n {\n \"agentId\": \"main\",\n \"key\": \"agent:main:main\",\n \"kind\": \"direct\",\n \"sessionId\": \"475abd74-ed4f-4334-a896-8ffd7d81eec7\",\n \"updatedAt\": 1773635277472,\n \"age\": 16057669,\n \"abortedLastRun\": false,\n \"inputTokens\": 15733,\n \"outputTokens\": 280,\n \"cacheRead\": 0,\n \"cacheWrite\": 0,\n \"totalTokens\": 15733,\n \"totalTokensFresh\": true,\n \"remainingTokens\": 246411,\n \"percentUsed\": 6,\n \"model\": \"qwen2.5:7b-instruct\",\n \"contextTokens\": 262144,\n \"flags\": [\n \"id:475abd74-ed4f-4334-a896-8ffd7d81eec7\"\n ]\n }\n ],\n \"byAgent\": [\n {\n \"agentId\": \"main\",\n \"path\": \"/Users/cormorantai/.openclaw-ocbphase1/agents/main/sessions/sessions.json\",\n \"count\": 1,\n \"recent\": [\n {\n \"agentId\": \"main\",\n \"key\": \"agent:main:main\",\n \"kind\": \"direct\",\n \"sessionId\": \"475abd74-ed4f-4334-a896-8ffd7d81eec7\",\n \"updatedAt\": 1773635277472,\n \"age\": 16057669,\n \"abortedLastRun\": false,\n \"inputTokens\": 15733,\n \"outputTokens\": 280,\n \"cacheRead\": 0,\n \"cacheWrite\": 0,\n \"totalTokens\": 15733,\n \"totalTokensFresh\": true,\n \"remainingTokens\": 246411,\n \"percentUsed\": 6,\n \"model\": \"qwen2.5:7b-instruct\",\n \"contextTokens\": 262144,\n \"flags\": [\n \"id:475abd74-ed4f-4334-a896-8ffd7d81eec7\"\n ]\n }\n ]\n }\n ]\n },\n \"os\": {\n \"platform\": \"darwin\",\n \"arch\": \"arm64\",\n \"release\": \"25.3.0\",\n \"label\": \"macos 26.3 (arm64)\"\n },\n \"update\": {\n \"root\": \"/Users/cormorantai/opencormorant\",\n \"installKind\": \"git\",\n \"packageManager\": \"pnpm\",\n \"git\": {\n \"root\": \"/Users/cormorantai/opencormorant\",\n \"sha\": \"66e02b296fa7c18c04dc94fe071d916042a30137\",\n \"tag\": null,\n \"branch\": \"main\",\n \"upstream\": \"origin/main\",\n \"dirty\": false,\n \"ahead\": 0,\n \"behind\": 544,\n \"fetchOk\": true\n },\n \"deps\": {\n \"manager\": \"pnpm\",\n \"status\": \"stale\",\n \"lockfilePath\": \"/Users/cormorantai/opencormorant/pnpm-lock.yaml\",\n \"markerPath\": \"/Users/cormorantai/opencormorant/node_modules/.modules.yaml\",\n \"reason\": \"lockfile newer than install marker\"\n },\n \"registry\": {\n \"latestVersion\": \"2026.3.13\"\n }\n },\n \"updateChannel\": \"dev\",\n \"updateChannelSource\": \"git-branch\",\n \"memory\": {\n \"agentId\": \"main\",\n \"backend\": \"builtin\",\n \"files\": 0,\n \"chunks\": 0,\n \"dirty\": true,\n \"workspaceDir\": \"/Users/cormorantai/.openclaw/workspace-ocbphase1\",\n \"dbPath\": \"/Users/cormorantai/.openclaw-ocbphase1/memory/main.sqlite\",\n \"provider\": \"gemini\",\n \"model\": \"gemini-embedding-001\",\n \"requestedProvider\": \"auto\",\n \"sources\": [\n \"memory\"\n ],\n \"extraPaths\": [],\n \"sourceCounts\": [\n {\n \"source\": \"memory\",\n \"files\": 0,\n \"chunks\": 0\n }\n ],\n \"cache\": {\n \"enabled\": true,\n \"entries\": 0\n },\n \"fts\": {\n \"enabled\": true,\n \"available\": true\n },\n \"vector\": {\n \"enabled\": true,\n \"available\": true,\n \"extensionPath\": \"/Users/cormorantai/opencormorant/node_modules/.pnpm/sqlite-vec@0.1.7-alpha.2/node_modules/sqlite-vec-darwin-arm64/vec0.dylib\"\n },\n \"batch\": {\n \"enabled\": false,\n \"failures\": 0,\n \"limit\": 2,\n \"wait\": true,\n \"concurrency\": 2,\n \"pollIntervalMs\": 2000,\n \"timeoutMs\": 3600000\n },\n \"custom\": {\n \"searchMode\": \"hybrid\",\n \"readonlyRecovery\": {\n \"attempts\": 0,\n \"successes\": 0,\n \"failures\": 0\n }\n }\n },\n \"memoryPlugin\": {\n \"enabled\": true,\n \"slot\": \"memory-core\"\n },\n \"gateway\": {\n \"mode\": \"local\",\n \"url\": \"ws://127.0.0.1:19031\",\n \"urlSource\": \"local loopback\",\n \"misconfigured\": false,\n \"reachable\": false,\n \"connectLatencyMs\": null,\n \"self\": null,\n \"error\": \"connect failed: connect ECONNREFUSED 127.0.0.1:19031\",\n \"authWarning\": null\n },\n \"gatewayService\": {\n \"label\": \"LaunchAgent\",\n \"installed\": false,\n \"managedByOpenClaw\": false,\n \"externallyManaged\": false,\n \"loadedText\": \"not loaded\",\n \"runtimeShort\": \"unknown\"\n },\n \"nodeService\": {\n \"label\": \"LaunchAgent\",\n \"installed\": false,\n \"managedByOpenClaw\": false,\n \"externallyManaged\": false,\n \"loadedText\": \"not loaded\",\n \"runtimeShort\": \"unknown\"\n },\n \"agents\": {\n \"defaultId\": \"main\",\n \"agents\": [\n {\n \"id\": \"main\",\n \"workspaceDir\": \"/Users/cormorantai/.openclaw/workspace-ocbphase1\",\n \"bootstrapPending\": true,\n \"sessionsPath\": \"/Users/cormorantai/.openclaw-ocbphase1/agents/main/sessions/sessions.json\",\n \"sessionsCount\": 1,\n \"lastUpdatedAt\": 1773635277472,\n \"lastActiveAgeMs\": 16057665\n }\n ],\n \"totalSessions\": 1,\n \"bootstrapPendingCount\": 1\n },\n \"securityAudit\": {\n \"ts\": 1773651337689,\n \"summary\": {\n \"critical\": 3,\n \"warn\": 1,\n \"info\": 1\n },\n \"findings\": [\n {\n \"checkId\": \"summary.attack_surface\",\n \"severity\": \"info\",\n \"title\": \"Attack surface summary\",\n \"detail\": \"groups: open=0, allowlist=0\\ntools.elevated: enabled\\nhooks.webhooks: disabled\\nhooks.internal: disabled\\nbrowser control: enabled\\ntrust model: personal assistant (one trusted operator boundary), not hostile multi-tenant on one shared gateway\"\n },\n {\n \"checkId\": \"gateway.trusted_proxies_missing\",\n \"severity\": \"warn\",\n \"title\": \"Reverse proxy headers are not trusted\",\n \"detail\": \"gateway.bind is loopback and gateway.trustedProxies is empty. If you expose the Control UI through a reverse proxy, configure trusted proxies so local-client checks cannot be spoofed.\",\n \"remediation\": \"Set gateway.trustedProxies to your proxy IPs or keep the Control UI local-only.\"\n },\n {\n \"checkId\": \"gateway.loopback_no_auth\",\n \"severity\": \"critical\",\n \"title\": \"Gateway auth missing on loopback\",\n \"detail\": \"gateway.bind is loopback but no gateway auth secret is configured. If the Control UI is exposed through a reverse proxy, unauthenticated access is possible.\",\n \"remediation\": \"Set gateway.auth (token recommended) or keep the Control UI local-only.\"\n },\n {\n \"checkId\": \"browser.control_no_auth\",\n \"severity\": \"critical\",\n \"title\": \"Browser control has no auth\",\n \"detail\": \"Browser control HTTP routes are enabled but no gateway.auth token/password is configured. Any local process (or SSRF to loopback) can call browser control endpoints.\",\n \"remediation\": \"Set gateway.auth.token (recommended) or gateway.auth.password so browser control HTTP routes require authentication. Restarting the gateway will auto-generate gateway.auth.token when browser control is enabled.\"\n },\n {\n \"checkId\": \"models.small_params\",\n \"severity\": \"critical\",\n \"title\": \"Small models require sandboxing and web tools disabled\",\n \"detail\": \"Small models (<=300B params) detected:\\n- ollama/qwen2.5:7b-instruct (7B) @ agents.defaults.model.primary (unsafe; sandbox=off; web=[web_search, web_fetch, browser])\\nUncontrolled input tools allowed: web_search, web_fetch, browser.\\nSmall models are not recommended for untrusted inputs.\",\n \"remediation\": \"If you must use small models, enable sandboxing for all sessions (agents.defaults.sandbox.mode=\\\"all\\\") and disable web_search/web_fetch/browser (tools.deny=[\\\"group:web\\\",\\\"browser\\\"]).\"\n }\n ]\n },\n \"secretDiagnostics\": []\n}\n",
|
|
14
|
+
"stderr": "Config warnings:\\n- plugins.entries.ollama: plugin ollama: plugin id mismatch (manifest uses \"ollama\", entry hints \"ollama-provider\")\n- plugins.entries.sglang: plugin sglang: plugin id mismatch (manifest uses \"sglang\", entry hints \"sglang-provider\")\n- plugins.entries.vllm: plugin vllm: plugin id mismatch (manifest uses \"vllm\", entry hints \"vllm-provider\")\n[plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: openclawbrain (/Users/cormorantai/openclawbrain/index.ts). Set plugins.allow to explicit trusted ids.\n[plugins] [brain] Embedding model is unset; learned retrieval is disabled until init/configuration is complete\nConfig warnings:\\n- plugins.entries.ollama: plugin ollama: plugin id mismatch (manifest uses \"ollama\", entry hints \"ollama-provider\")\n- plugins.entries.sglang: plugin sglang: plugin id mismatch (manifest uses \"sglang\", entry hints \"sglang-provider\")\n- plugins.entries.vllm: plugin vllm: plugin id mismatch (manifest uses \"vllm\", entry hints \"vllm-provider\")\n",
|
|
15
|
+
"error": null,
|
|
16
|
+
"parsed": {
|
|
17
|
+
"runtimeVersion": "2026.3.13",
|
|
18
|
+
"heartbeat": {
|
|
19
|
+
"defaultAgentId": "main",
|
|
20
|
+
"agents": [
|
|
21
|
+
{
|
|
22
|
+
"agentId": "main",
|
|
23
|
+
"enabled": true,
|
|
24
|
+
"every": "30m",
|
|
25
|
+
"everyMs": 1800000
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"channelSummary": [],
|
|
30
|
+
"queuedSystemEvents": [],
|
|
31
|
+
"sessions": {
|
|
32
|
+
"paths": [
|
|
33
|
+
"/Users/cormorantai/.openclaw-ocbphase1/agents/main/sessions/sessions.json"
|
|
34
|
+
],
|
|
35
|
+
"count": 1,
|
|
36
|
+
"defaults": {
|
|
37
|
+
"model": "qwen2.5:7b-instruct",
|
|
38
|
+
"contextTokens": 262144
|
|
39
|
+
},
|
|
40
|
+
"recent": [
|
|
41
|
+
{
|
|
42
|
+
"agentId": "main",
|
|
43
|
+
"key": "agent:main:main",
|
|
44
|
+
"kind": "direct",
|
|
45
|
+
"sessionId": "475abd74-ed4f-4334-a896-8ffd7d81eec7",
|
|
46
|
+
"updatedAt": 1773635277472,
|
|
47
|
+
"age": 16057669,
|
|
48
|
+
"abortedLastRun": false,
|
|
49
|
+
"inputTokens": 15733,
|
|
50
|
+
"outputTokens": 280,
|
|
51
|
+
"cacheRead": 0,
|
|
52
|
+
"cacheWrite": 0,
|
|
53
|
+
"totalTokens": 15733,
|
|
54
|
+
"totalTokensFresh": true,
|
|
55
|
+
"remainingTokens": 246411,
|
|
56
|
+
"percentUsed": 6,
|
|
57
|
+
"model": "qwen2.5:7b-instruct",
|
|
58
|
+
"contextTokens": 262144,
|
|
59
|
+
"flags": [
|
|
60
|
+
"id:475abd74-ed4f-4334-a896-8ffd7d81eec7"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"byAgent": [
|
|
65
|
+
{
|
|
66
|
+
"agentId": "main",
|
|
67
|
+
"path": "/Users/cormorantai/.openclaw-ocbphase1/agents/main/sessions/sessions.json",
|
|
68
|
+
"count": 1,
|
|
69
|
+
"recent": [
|
|
70
|
+
{
|
|
71
|
+
"agentId": "main",
|
|
72
|
+
"key": "agent:main:main",
|
|
73
|
+
"kind": "direct",
|
|
74
|
+
"sessionId": "475abd74-ed4f-4334-a896-8ffd7d81eec7",
|
|
75
|
+
"updatedAt": 1773635277472,
|
|
76
|
+
"age": 16057669,
|
|
77
|
+
"abortedLastRun": false,
|
|
78
|
+
"inputTokens": 15733,
|
|
79
|
+
"outputTokens": 280,
|
|
80
|
+
"cacheRead": 0,
|
|
81
|
+
"cacheWrite": 0,
|
|
82
|
+
"totalTokens": 15733,
|
|
83
|
+
"totalTokensFresh": true,
|
|
84
|
+
"remainingTokens": 246411,
|
|
85
|
+
"percentUsed": 6,
|
|
86
|
+
"model": "qwen2.5:7b-instruct",
|
|
87
|
+
"contextTokens": 262144,
|
|
88
|
+
"flags": [
|
|
89
|
+
"id:475abd74-ed4f-4334-a896-8ffd7d81eec7"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"os": {
|
|
97
|
+
"platform": "darwin",
|
|
98
|
+
"arch": "arm64",
|
|
99
|
+
"release": "25.3.0",
|
|
100
|
+
"label": "macos 26.3 (arm64)"
|
|
101
|
+
},
|
|
102
|
+
"update": {
|
|
103
|
+
"root": "/Users/cormorantai/opencormorant",
|
|
104
|
+
"installKind": "git",
|
|
105
|
+
"packageManager": "pnpm",
|
|
106
|
+
"git": {
|
|
107
|
+
"root": "/Users/cormorantai/opencormorant",
|
|
108
|
+
"sha": "66e02b296fa7c18c04dc94fe071d916042a30137",
|
|
109
|
+
"tag": null,
|
|
110
|
+
"branch": "main",
|
|
111
|
+
"upstream": "origin/main",
|
|
112
|
+
"dirty": false,
|
|
113
|
+
"ahead": 0,
|
|
114
|
+
"behind": 544,
|
|
115
|
+
"fetchOk": true
|
|
116
|
+
},
|
|
117
|
+
"deps": {
|
|
118
|
+
"manager": "pnpm",
|
|
119
|
+
"status": "stale",
|
|
120
|
+
"lockfilePath": "/Users/cormorantai/opencormorant/pnpm-lock.yaml",
|
|
121
|
+
"markerPath": "/Users/cormorantai/opencormorant/node_modules/.modules.yaml",
|
|
122
|
+
"reason": "lockfile newer than install marker"
|
|
123
|
+
},
|
|
124
|
+
"registry": {
|
|
125
|
+
"latestVersion": "2026.3.13"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"updateChannel": "dev",
|
|
129
|
+
"updateChannelSource": "git-branch",
|
|
130
|
+
"memory": {
|
|
131
|
+
"agentId": "main",
|
|
132
|
+
"backend": "builtin",
|
|
133
|
+
"files": 0,
|
|
134
|
+
"chunks": 0,
|
|
135
|
+
"dirty": true,
|
|
136
|
+
"workspaceDir": "/Users/cormorantai/.openclaw/workspace-ocbphase1",
|
|
137
|
+
"dbPath": "/Users/cormorantai/.openclaw-ocbphase1/memory/main.sqlite",
|
|
138
|
+
"provider": "gemini",
|
|
139
|
+
"model": "gemini-embedding-001",
|
|
140
|
+
"requestedProvider": "auto",
|
|
141
|
+
"sources": [
|
|
142
|
+
"memory"
|
|
143
|
+
],
|
|
144
|
+
"extraPaths": [],
|
|
145
|
+
"sourceCounts": [
|
|
146
|
+
{
|
|
147
|
+
"source": "memory",
|
|
148
|
+
"files": 0,
|
|
149
|
+
"chunks": 0
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"cache": {
|
|
153
|
+
"enabled": true,
|
|
154
|
+
"entries": 0
|
|
155
|
+
},
|
|
156
|
+
"fts": {
|
|
157
|
+
"enabled": true,
|
|
158
|
+
"available": true
|
|
159
|
+
},
|
|
160
|
+
"vector": {
|
|
161
|
+
"enabled": true,
|
|
162
|
+
"available": true,
|
|
163
|
+
"extensionPath": "/Users/cormorantai/opencormorant/node_modules/.pnpm/sqlite-vec@0.1.7-alpha.2/node_modules/sqlite-vec-darwin-arm64/vec0.dylib"
|
|
164
|
+
},
|
|
165
|
+
"batch": {
|
|
166
|
+
"enabled": false,
|
|
167
|
+
"failures": 0,
|
|
168
|
+
"limit": 2,
|
|
169
|
+
"wait": true,
|
|
170
|
+
"concurrency": 2,
|
|
171
|
+
"pollIntervalMs": 2000,
|
|
172
|
+
"timeoutMs": 3600000
|
|
173
|
+
},
|
|
174
|
+
"custom": {
|
|
175
|
+
"searchMode": "hybrid",
|
|
176
|
+
"readonlyRecovery": {
|
|
177
|
+
"attempts": 0,
|
|
178
|
+
"successes": 0,
|
|
179
|
+
"failures": 0
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"memoryPlugin": {
|
|
184
|
+
"enabled": true,
|
|
185
|
+
"slot": "memory-core"
|
|
186
|
+
},
|
|
187
|
+
"gateway": {
|
|
188
|
+
"mode": "local",
|
|
189
|
+
"url": "ws://127.0.0.1:19031",
|
|
190
|
+
"urlSource": "local loopback",
|
|
191
|
+
"misconfigured": false,
|
|
192
|
+
"reachable": false,
|
|
193
|
+
"connectLatencyMs": null,
|
|
194
|
+
"self": null,
|
|
195
|
+
"error": "connect failed: connect ECONNREFUSED 127.0.0.1:19031",
|
|
196
|
+
"authWarning": null
|
|
197
|
+
},
|
|
198
|
+
"gatewayService": {
|
|
199
|
+
"label": "LaunchAgent",
|
|
200
|
+
"installed": false,
|
|
201
|
+
"managedByOpenClaw": false,
|
|
202
|
+
"externallyManaged": false,
|
|
203
|
+
"loadedText": "not loaded",
|
|
204
|
+
"runtimeShort": "unknown"
|
|
205
|
+
},
|
|
206
|
+
"nodeService": {
|
|
207
|
+
"label": "LaunchAgent",
|
|
208
|
+
"installed": false,
|
|
209
|
+
"managedByOpenClaw": false,
|
|
210
|
+
"externallyManaged": false,
|
|
211
|
+
"loadedText": "not loaded",
|
|
212
|
+
"runtimeShort": "unknown"
|
|
213
|
+
},
|
|
214
|
+
"agents": {
|
|
215
|
+
"defaultId": "main",
|
|
216
|
+
"agents": [
|
|
217
|
+
{
|
|
218
|
+
"id": "main",
|
|
219
|
+
"workspaceDir": "/Users/cormorantai/.openclaw/workspace-ocbphase1",
|
|
220
|
+
"bootstrapPending": true,
|
|
221
|
+
"sessionsPath": "/Users/cormorantai/.openclaw-ocbphase1/agents/main/sessions/sessions.json",
|
|
222
|
+
"sessionsCount": 1,
|
|
223
|
+
"lastUpdatedAt": 1773635277472,
|
|
224
|
+
"lastActiveAgeMs": 16057665
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"totalSessions": 1,
|
|
228
|
+
"bootstrapPendingCount": 1
|
|
229
|
+
},
|
|
230
|
+
"securityAudit": {
|
|
231
|
+
"ts": 1773651337689,
|
|
232
|
+
"summary": {
|
|
233
|
+
"critical": 3,
|
|
234
|
+
"warn": 1,
|
|
235
|
+
"info": 1
|
|
236
|
+
},
|
|
237
|
+
"findings": [
|
|
238
|
+
{
|
|
239
|
+
"checkId": "summary.attack_surface",
|
|
240
|
+
"severity": "info",
|
|
241
|
+
"title": "Attack surface summary",
|
|
242
|
+
"detail": "groups: open=0, allowlist=0\ntools.elevated: enabled\nhooks.webhooks: disabled\nhooks.internal: disabled\nbrowser control: enabled\ntrust model: personal assistant (one trusted operator boundary), not hostile multi-tenant on one shared gateway"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"checkId": "gateway.trusted_proxies_missing",
|
|
246
|
+
"severity": "warn",
|
|
247
|
+
"title": "Reverse proxy headers are not trusted",
|
|
248
|
+
"detail": "gateway.bind is loopback and gateway.trustedProxies is empty. If you expose the Control UI through a reverse proxy, configure trusted proxies so local-client checks cannot be spoofed.",
|
|
249
|
+
"remediation": "Set gateway.trustedProxies to your proxy IPs or keep the Control UI local-only."
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"checkId": "gateway.loopback_no_auth",
|
|
253
|
+
"severity": "critical",
|
|
254
|
+
"title": "Gateway auth missing on loopback",
|
|
255
|
+
"detail": "gateway.bind is loopback but no gateway auth secret is configured. If the Control UI is exposed through a reverse proxy, unauthenticated access is possible.",
|
|
256
|
+
"remediation": "Set gateway.auth (token recommended) or keep the Control UI local-only."
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"checkId": "browser.control_no_auth",
|
|
260
|
+
"severity": "critical",
|
|
261
|
+
"title": "Browser control has no auth",
|
|
262
|
+
"detail": "Browser control HTTP routes are enabled but no gateway.auth token/password is configured. Any local process (or SSRF to loopback) can call browser control endpoints.",
|
|
263
|
+
"remediation": "Set gateway.auth.token (recommended) or gateway.auth.password so browser control HTTP routes require authentication. Restarting the gateway will auto-generate gateway.auth.token when browser control is enabled."
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"checkId": "models.small_params",
|
|
267
|
+
"severity": "critical",
|
|
268
|
+
"title": "Small models require sandboxing and web tools disabled",
|
|
269
|
+
"detail": "Small models (<=300B params) detected:\n- ollama/qwen2.5:7b-instruct (7B) @ agents.defaults.model.primary (unsafe; sandbox=off; web=[web_search, web_fetch, browser])\nUncontrolled input tools allowed: web_search, web_fetch, browser.\nSmall models are not recommended for untrusted inputs.",
|
|
270
|
+
"remediation": "If you must use small models, enable sandboxing for all sessions (agents.defaults.sandbox.mode=\"all\") and disable web_search/web_fetch/browser (tools.deny=[\"group:web\",\"browser\"])."
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
"secretDiagnostics": []
|
|
275
|
+
}
|
|
276
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# OpenClawBrain validation summary
|
|
2
|
+
|
|
3
|
+
- commit: `d93f09feea123a08d020fcad8a4523b6c1d26507`
|
|
4
|
+
- validation mode: sterile-lane
|
|
5
|
+
- config path: `/Users/cormorantai/.openclaw-ocbphase1/openclaw.json`
|
|
6
|
+
- state dir: `/Users/cormorantai/.openclaw-ocbphase1`
|
|
7
|
+
- workspace: `/Users/cormorantai/.openclaw/workspace-ocbphase1`
|
|
8
|
+
- artifact dir: `/Users/cormorantai/openclawbrain/docs/evidence/2026-03-16/d93f09feea123a08d020fcad8a4523b6c1d26507`
|
|
9
|
+
|
|
10
|
+
## Assertions
|
|
11
|
+
|
|
12
|
+
## Skipped
|
|
13
|
+
- init-and-agent-checks: --setup-only was requested.
|