Scan Report
10 /100
memory-harness
Runtime-enforced memory harness for OpenClaw. Implements 3-stage recall (session preflight, triggered recall, pre-execution gate) with intent classification, entity detection, memory compression, and status tracking.
Memory Harness 是一个纯本地内存管理工具,代码行为与文档描述基本一致,未发现恶意行为或数据外泄风险。存在轻微文档-实现不一致(shell脚本vs JS文件)和代码质量问题。
Safe to install
建议修复 intent-classifier.js 中的语法错误,统一文档中提到的脚本类型(.sh vs .js),但当前代码可安全使用。
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| Low | 文档与实现脚本类型不一致 Doc Mismatch | SKILL.md:98 |
| Low | intent-classifier.js 存在语法错误和不完整代码 code_quality | scripts/intent-classifier.js:50 |
| Info | pre-execution-gate.js 包含安全检查逻辑 positive | scripts/pre-execution-gate.js:45 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | READ | READ | ✓ Aligned | 代码仅读取自身目录下的JS文件 |
| Shell | NONE | NONE | — | 仅使用 execFileSync 调用本地 node 脚本 |
| Network | NONE | NONE | — | 无任何网络请求代码 |
| Environment | NONE | NONE | — | 无环境变量访问 |
| Skill Invoke | NONE | NONE | — | 无外部技能调用 |
File Tree
10 files · 24.0 KB · 1031 lines JavaScript 8f · 579L
Markdown 2f · 452L
├─
▾
scripts
│ ├─
entity-detector.js
JavaScript
│ ├─
harness.js
JavaScript
│ ├─
intent-classifier.js
JavaScript
│ ├─
memory-compress.js
JavaScript
│ ├─
pre-execution-gate.js
JavaScript
│ ├─
should-recall.js
JavaScript
│ ├─
structured-log.js
JavaScript
│ └─
targeted-recall.js
JavaScript
├─
readme.md
Markdown
└─
SKILL.md
Markdown
Security Positives
✓ 无网络请求或数据外泄
✓ 无凭证收割或敏感文件访问
✓ 无 shell 命令执行或 RCE 风险
✓ pre-execution-gate.js 包含安全检查功能
✓ 内存压缩限制为5项,防止信息过载
✓ 代码均为纯本地处理