Files
mnote/.codex/reasonix-tasks/2026-05-21-batch-h-worker-b-command-context-doc-status.md
T

51 lines
1.7 KiB
Markdown
Raw Normal View History

2026-05-21 23:53:39 +08:00
# Reasonix Worker B1-5 / 1-6 command context 状态收口
## 项目
- Project root: `/mnt/Data1T/mnote`
## Ownership
允许修改:
- `design/01-tree-first-graph-kernel/process/1-5-next-phase-sequential-execution-checklist-v1.md`
- `design/01-tree-first-graph-kernel/process/1-6-next-phase-gap-closure-checklist-v1.md`
禁止修改:
- 不改 Rust / JS runtime 代码。
- 不改 `1-8``1-13``1-14`
- 不提交 git。
## 背景
当前代码和 `1-6` 的部分段落已经显示:
- `core-protocol/src/command.rs``CommandContext` / `when` evaluator。
- FileTree 右键菜单和 Delete/Backspace 已接入等价 context 判断。
- Hermes tools 写入守卫已消费 `args.commandContext` / `args.command_context``ai.canWrite``workspace.readonly`
`1-5` Phase A7 和 `1-6` 顶部/汇总处仍有一些未更新的未完成表述。
## 任务
1. 只围绕 command context / context key 状态更新 `1-5``1-6`
2. 把已经有证据的项改为完成,并写入验证命令。
3. 保留真实未完成项,例如更完整的 editor/object tab context 或未实跑的 DnD readonly smoke。
4. 不夸大为“所有 command context 完全完成”。
5. 运行:
- `cargo test --manifest-path rust/Cargo.toml -p core-protocol command_context -- --test-threads=1`
- `cargo test --manifest-path rust/Cargo.toml -p mnote-web ensure_write_authorized -- --test-threads=1`
- `node --check scripts/task471-local-folder-bulk-resource-trash-smoke.js`
- `node --check scripts/task476-filetree-editor-context-menu-download-smoke.js`
- `git diff --check`
## 最终回复
用简体中文列出:
1. 修改文件
2. 勾选了哪些项、保留了哪些未完成项
3. 验证命令和结果
4. 风险