Files
mnote/bugs/07-ai/done/7-64-page-ai-pi-rust-p2-advanced-runtime-diagnostics-checklist-v1.md
T

23 lines
1.6 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.
# Page AI Pi Rust P2 Advanced Runtime Diagnostics Checklist
## 背景
P1 已恢复 Pi Rust 官方主链能力。P2 聚焦非对话主链但会影响稳定性和排障效率的高级能力:运行时 policy 透传、effective policy 可见性、官方诊断/admin 命令的受控接入。
## 产品取舍
- [x] 支持 `--extension-policy` / `--repair-policy` 透传;MNote 仍保留自身 permission mode 与 allowlist,但诊断面暴露最终 effective advanced runtime。
- [x] 支持 `--session-durability``--request-timeout``--max-tool-iterations``--hide-cwd-in-prompt`;来源为 AI policy 的 `piRuntime` / `advancedRuntime`env 作为兜底。
- [x] provider 默认仍按 MNote 宿主策略走 OmniRoute,不把默认 provider 当 bug;后续如要“官方 Pi Rust 完整 provider passthrough”,应作为单独高级 provider passthrough 项。
- [x] 官方 `doctor/context-preview/list/info/search/update-index` 接入 MNote 诊断 API`update-index` 标记 `mutatesCache=true`,不放到普通对话链路。
- [x] 不开放 `install/remove/update/migrate/config` 这类会修改扩展安装或会话结构的命令;诊断 API 不接受裸 argv 透传。
## 验收
- [x] `cargo fmt --manifest-path rust/Cargo.toml -p mnote-web`
- [x] `cargo test --manifest-path rust/Cargo.toml -p mnote-web page_ai_pi -- --nocapture`32 passed
- [x] `node scripts/task-pi-lab-static-smoke.js`259 checks passed
- [x] 真实 Chromium Pi Lab smoke 仍能完成 built-in full access 删除验证:`/tmp/mnote-pi-full-access-builtin-tools-1783809738370/result.json`
- [x] `codegraph sync . && codegraph status .`Index is up to date
- [x] 提交 git