docs: V13 审计修复文档同步 — 6项状态更新 + 中间件14→15层
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

AUDIT_TRACKER: V13-GAP-01~05 FIXED, GAP-06 PARTIALLY_FIXED
wiki/middleware: 15层 (TrajectoryRecorder V13注册)
wiki/log: 2026-04-13 变更记录
CLAUDE.md: 中间件链 14→15 层

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
iven
2026-04-13 01:38:55 +08:00
parent c167ea4ea5
commit fd3e7fd2cb
5 changed files with 26 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ status: active
| Zustand Store | 17 文件 + chat/4子store = 21 | `ls desktop/src/store/` |
| React 组件 | 104 个 (.tsx/.ts) | `find desktop/src/components/` |
| Admin V2 页面 | 15 个 (.tsx) | `ls admin-v2/src/pages/` |
| 中间件 | 14 层 runtime + 6 层 SaaS HTTP | `kernel/mod.rs` + `zclaw-saas middleware` |
| 中间件 | 15 层 runtime + 6 层 SaaS HTTP | `kernel/mod.rs` + `zclaw-saas middleware` |
| 前端 lib/ | 85 个 .ts | `find desktop/src/lib/` |
| TODO/FIXME | 前端 4 + Rust 4 = 8 | `grep TODO/FIXME` |

View File

@@ -1,6 +1,6 @@
---
title: 变更日志
updated: 2026-04-12
updated: 2026-04-13
status: active
tags: [log, history]
---
@@ -191,7 +191,15 @@ Phase 5 — 主动行为激活 (3 files, 152 insertions):
> 更新规则: 每次重大变更后追加一条,最新在最上面
### [2026-04-11] 详情面板 7 问题修复
### [2026-04-13] V13 审计 6 项修复全部完成
- FIX-01 (P1): TrajectoryRecorderMiddleware 注册到 create_middleware_chain() @650Hermes 轨迹数据开始流入
- FIX-02 (P1): industryStore 接入 ButlerPanel桌面端展示行业专长卡片 + 自动拉取
- FIX-03 (P1): 桌面端知识库搜索 — saas-knowledge mixin + VikingPanel SaaS KB 搜索 UI
- FIX-04 (P2): Webhook 孤儿迁移标注 deprecated + down migration 注释
- FIX-05 (P2): Admin Knowledge 新增"结构化数据"Tab (CRUD + 行浏览)
- FIX-06 (P2): PersistentMemoryStore dead_code 精化标注 (完整迁移留后续)
- 文件: 11 个 (Rust 4 + TS 7), 358 行新增, 1 次提交
- P0: memory_search 空查询 min_similarity 默认值; hand_trigger null→handAutoTrigger; 重启后 chat 路由竞态修复
- P1: AgentInfo 扩展 UserProfile 桥接; 反思阈值降低 5→3; 反思 state restore peek+pop 竞态修复

View File

@@ -20,7 +20,7 @@ tags: [module, middleware, runtime]
## 代码逻辑
### 14 层中间件(注册顺序见 `kernel/mod.rs:190-345`
### 15 层中间件(注册顺序见 `kernel/mod.rs:190-360`
| # | 中间件 | 文件 | 职责 | 注册条件 |
|---|--------|------|------|----------|
@@ -37,7 +37,7 @@ tags: [module, middleware, runtime]
| 11 | ToolOutputGuard | `middleware/tool_output_guard.rs` | 工具输出安全检查 | 始终 |
| 12 | Guardrail | `middleware/guardrail.rs` | shell_exec/file_write/web_fetch 安全规则 | 始终 |
| 13 | SubagentLimit | `middleware/subagent_limit.rs` | 限制并发子 agent | 始终 |
| 14 | TrajectoryRecorder | `middleware/trajectory_recorder.rs` | 轨迹记录 + 压缩 | 始终 |
| 14 | TrajectoryRecorder | `middleware/trajectory_recorder.rs` | 轨迹记录 + 压缩 | 始终 (V13-FIX-01 注册) |
### 优先级分类(来自 `middleware.rs` 头注释)