Files
mnote/bugs/07-ai/process/7-23-markdown-edit-manifest-schema-contract-drift-v1.md
T
lix-2026 3311bd0366 chore: document architecture gaps and add dev hot reload
- add npm dev:hot wrapper using cargo-watch and page reload polling

- add mnote-web dev hot reload endpoint and coverage

- record current architecture review and tracked bug findings across realtime, tree, editor, and AI runtimes

Verification:

- node scripts/task-dev-hot-plan-test.js

- node --check scripts/dev-hot.js

- cargo test -p mnote-web dev_hot -- --nocapture
2026-05-17 23:09:56 +08:00

1.2 KiB
Raw Blame History

7-23 [process][bug] mnote.doc.markdown_edit manifest schema 缺少 required 与写入字段 v1

发现时间:2026-05-17

状态:[process]

关联主线:07-ai

1. 问题定义

mnote.doc.markdown_edit manifest 的 input schema 没有完整声明 required 字段,也缺少 dryRunidempotencyKey 等写入合同字段。

这会让模型、ACP wrapper 和外部调用方无法从 manifest 得知真实写入要求。

2. 证据

  • manifest.rs 附近定义 mnote.doc.markdown_edit manifest。
  • 当前 schema 更像参数提示,没有完整表达写入前置条件。

3. 影响

  • 调用方可能不传幂等字段或 dryRun 字段。
  • tool toggle / schema validation 无法提前拒绝不合规请求。
  • Reasonix / ACP 等多 runtime 接入时会继续复制不完整合同。

4. 建议修复

  • mnote.doc.markdown_edit 补全 JSON Schemarequired、互斥的 operations / full_content、写入合同字段。
  • manifest 与 Rust runtime 校验保持一致。
  • 增加 manifest snapshot 测试,防止字段再次漂移。

5. 状态

已确认 manifest 合同不完整,尚未修复。