Files
mnote/.codex/reasonix-tasks/2026-05-25-batch-al-worker-a-3-20-document-pane-host-readonly.md
T

74 lines
2.7 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.
# Reasonix Worker Task
## 任务
`3-20` 的 document pane host adapter / conflict panel runtime 做只读审计,范围只限于:
- `rust/crates/mnote-web/src/routes/web_shell.rs`
- `rust/crates/mnote-web/browser/document-conflict-panel-runtime.js`
- `design/03-rust-web/process/3-20-browser-runtime-followup-checklist-v1.md`
只做边界审计和最小切片建议,不修改源码、不运行测试、不提交 git。
## Project Root
`/mnt/Data1T/mnote-worktrees/0525-al-worker-a-3-20-document-pane-host-readonly`
## 输入文件
- Checklist
- `/mnt/Data1T/mnote/design/03-rust-web/process/3-20-browser-runtime-followup-checklist-v1.md`
- 相关代码入口:
- `/mnt/Data1T/mnote-worktrees/0525-al-worker-a-3-20-document-pane-host-readonly/rust/crates/mnote-web/src/routes/web_shell.rs`
- `/mnt/Data1T/mnote-worktrees/0525-al-worker-a-3-20-document-pane-host-readonly/rust/crates/mnote-web/browser/document-conflict-panel-runtime.js`
## Ownership
你负责:
- 只读分析 document conflict / document pane host 当前还留在 `web_shell.rs` 的可迁纯 DOM/helper。
- 明确哪些逻辑必须继续留在 `web_shell.rs` 壳层。
- 给出下一刀最小 helper 建议,优先纯 DOM / callback wiring / host mount helper,不要碰 fetch/persist/session status 业务逻辑。
你不能修改:
- 任何源码
- 任何 design / bugs 文档
- 任何生成产物
共享或冲突文件规则:
- 本任务是只读审计,工作区必须保持源码零 diff。
- 允许写 runner 自己的输出文件,例如 `process-handoff.md/json``final.md``result.json`
## 额外限制
- 禁止创建新的 `.codex/reasonix-tasks/*.md`
- 禁止启动新的 reasonix / claudecode / codex / hermes / runner
- 禁止操作其他 worktree
- 不要建议整体迁出 `acceptDiskVersion``keepCurrentEditorVersion``writeMergedConflictResult`
- 不要建议整体迁出 fetch / persist / session status / aggregate/resource snapshot 逻辑
- 重点只看 host 挂载、panel 定位、header 插入、diff panel 显隐、shared callback wiring 是否还能收一刀
## 需要回答的问题
1. `renderSessionConflictSurface` 中是否还有可迁出的纯 DOM / host helper
2. `openConflictDiffPanel` 中除已迁的 `populateSessionConflictDiffPanel` 外,是否还有可独立迁出的纯 DOM 层?
3. 下一刀最小可迁 helper 的建议签名是什么?
4. 哪些边界必须继续留在 `web_shell.rs`
## 验收命令
不需要运行测试;这是只读审计任务。
## 最终回复格式
请按以下结构回复:
- 修改文件:
- 审计结论:
- 建议的最小切片:
- 必须留在 web_shell.rs 的边界:
- 未完成项:
- 风险和需要 Codex 复核的点: