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

42 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.
# Reasonix Batch A / Worker C3-20 document pane host 只读审计
Project root:由 runner 传入的独立 worktree。
## 目标
只读审计 `mnote-web` document pane host adapter / document session / conflict panel 相关 inline runtime,为 `design/03-rust-web/process/3-20-browser-runtime-followup-checklist-v1.md` 提供下一刀模块拆分方案。
## 只读范围
可以读取:
- `rust/crates/mnote-web/src/routes/web_shell.rs`
- `rust/crates/mnote-web/src/ssr/pages/layout.rs`
- `rust/crates/mnote-web/browser/*`
- 与 document session / conflict panel 相关的 smoke 脚本
## 禁止事项
- 严格只读,禁止修改任何源码、文档、脚本、生成产物或 git 状态。
- 不迁入 Tiptap 内部命令、history 或 editor DOM overlay。
- 不建议把 Page AI panel 混入本切片。
## 审计问题
请回答:
1. document pane host adapter 当前在哪些 Rust raw string / inline module 中?
2. 哪些函数适合拆到 `document-pane-host-runtime.js` / `document-session-runtime.js` / `document-conflict-panel-runtime.js`
3. 第一刀最小可迁函数是什么,为什么?
4. 哪些行为必须由 browser smoke 覆盖:primary/secondary pane、resource tab、conflict panel unmount、attachment tab、error placeholder
5. 哪些函数属于 `05-editor-mainline`,不能在 `03-rust-web` 里处理?
## 输出要求
最终 handoff 必须包含:
- 候选模块表。
- 函数位置和迁移优先级。
- 不可迁项和边界原因。
- 推荐 Worker 实现任务书草案。