Files
mnote/.codex/reasonix-tasks/2026-05-21-batch-f-worker-a-gfm-archive.md
T

53 lines
2.3 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 AGFM AST 降级策略与 process 收口
Project root`/mnt/Data1T/mnote`
你不是唯一 worker。不要回滚、覆盖或清理他人的改动;只修改本任务 ownership 范围内的文件。不要提交 git。
## 目标
收口 `design/03-rust-web/process/3-13-rust-web-local-markdown-gfm-ast-parser-migration-v1.md` 的真实尾项:
1. 表格/不支持结构降级策略是否已有测试证据。
2. `web_shell.rs``legacyStylesToTiptapMarks` 等 legacy marks 适配分支是否仍被当前 bootstrap 使用。
3. 如果剩余项已可解释且测试通过,把 `3-13` 移动到 `design/03-rust-web/done/`;否则只更新未完成项和证据,不要强行归档。
## Ownership
允许修改:
- `design/03-rust-web/process/3-13-rust-web-local-markdown-gfm-ast-parser-migration-v1.md`
- `design/03-rust-web/done/3-13-rust-web-local-markdown-gfm-ast-parser-migration-v1.md`(仅当归档)
- `rust/crates/mnote-web/src/routes/local_folder_source.rs`
- `rust/crates/mnote-web/src/routes/local_markdown_parser.rs`
- `rust/crates/mnote-web/src/routes/web_shell.rs`
禁止修改:
- AI / Hermes 工具文件
- tree realtime / websocket 文件
- 任何 `design/01-tree-first-graph-kernel/process/1-13-*` 之外的 batch 文件,除非只是记录本任务结果
## 执行要求
- 先审查现有测试:搜索 `local_markdown_save_writes_table_inline_marks``local_markdown_save_round_trips_tiptap_table_marks``local_markdown_save_table_handles_colspan_degradation``document_shell_bootstrap_preserves_inline_mark_conversion`
- 若降级策略已有足够测试,更新 `3-13` 的表格状态即可。
- 若缺少最小测试,优先补 Rust 单测,不新增浏览器 smoke。
- 不要直接删除 `legacyStylesToTiptapMarks`,除非你能证明当前 web shell 不再需要 legacy block -> Tiptap marks bootstrap,并且 `web_shell` 测试通过。
- 若决定保留该分支,把 `3-13` 中“必须移除”改为“保留兼容层 + 退出条件”,然后归档。
## 验收命令
```bash
cargo test -p mnote-web local_markdown -- --test-threads=1
cargo test -p mnote-web web_shell -- --test-threads=1
git diff --check
```
## 最终回复格式
- 修改文件列表
- 归档/未归档判断
- 运行过的命令和结果
- 未完成项或风险