Files
mnote/.codex/reasonix-tasks/2026-05-21-batch-j-worker-b-tool-availability.md
T

52 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Batch J Worker Btool availability 三处一致性审查
项目根目录:`/mnt/Data1T/mnote`
## 目标
只读审查 `7-34` 的 P1-1
确认 profile-level tool availability / capability 是否在三处保持一致:
1. Hermes tool manifest:工具是否标明 enabled / disabled / capability / annotations。
2. UI:页面 AI 或 tool list 是否根据同一能力判断展示 disabled / hidden。
3. Execute guard:真正执行工具时是否复用同一能力判断,而不是只靠 UI 阻止。
## 允许范围
只读以下文件,不修改代码:
- `rust/crates/mnote-web/src/hermes_tools/manifest.rs`
- `rust/crates/mnote-web/src/hermes_tools/*.rs`
- `rust/crates/mnote-web/src/routes/hermes_tools.rs`
- `rust/crates/mnote-web/src/ssr/pages/layout.rs`
- 必要时可只读 `rust/crates/mnote-web/src/routes/hermes_client.rs`
## 禁止事项
- 不修改任何源码、设计文档或测试。
- 不提交 git。
- 不移动文件。
- 不运行破坏性命令。
## 输出要求
把结果写入 `.codex/reasonix-tasks/results/batch-j-worker-b-tool-availability.md`
必须包含:
1. manifest / UI / execute guard 各自当前能力判断来源。
2. 三处是否同源;如果不同源,指出具体文件和函数。
3. P0/P1/P2 分级缺口。
4. 建议的最小测试名或现有 targeted test。
## 验收命令
只需要运行:
```bash
git diff --check
```
最终回复中列出读取过的关键文件、结论、风险和未完成项。