From 57062d605308445c8da61a1bd7ea8b71651c390c Mon Sep 17 00:00:00 2001 From: lanrtop Date: Wed, 30 Sep 2026 14:31:33 +0900 Subject: [PATCH] =?UTF-8?q?docs(blueprint/dev-variables):=20=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=B8=A4=E8=BD=AE=20UI=20=E7=BB=88=E9=AA=8C=E7=BB=93?= =?UTF-8?q?=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- .blueprint/modules/project-dev-variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.blueprint/modules/project-dev-variables.md b/.blueprint/modules/project-dev-variables.md index a10608f..a6a40b0 100644 --- a/.blueprint/modules/project-dev-variables.md +++ b/.blueprint/modules/project-dev-variables.md @@ -110,7 +110,7 @@ progress: 91 - acceptance: "agent_verify: [真实 Codex CLI + 合成数据] 跨会话登记→填写→读取→撤销后再读失败,项目目录无新 .env 或 token;[CLI] cargo test、pnpm typecheck、git diff --check 均 exit 0。human_verify: 不使用真实生产账号、不触发真实 PR/部署/数据库写入,确认日常开发摩擦是否下降。" - resolved_blocker: 原阻碍为非交互 `exec` 默认 approval=never 拒绝写工具。2026-09-30 用户授权单次 `--approve-for-me`(仅会话 A 登记这一写调用),沿用 R11 先例;未放宽全局策略,读工具无需审批。 - verification: "2026-09-30:新增 ignored 宿主 `mcp_server::tests::isolated_dev_variables_client_pilot`(内存 DB、随机合成账户、临时 scoped MCP,认证走真实 `dev-manager-tauri.exe --lianjing-mcp-header` helper 取 Windows 凭据中的项目 bearer)。自检:helper exit 0;无认证 read_project_test_account → HTTP 403。真实 Codex CLI 0.155.0-alpha.9.2(gpt-5.6-terra)三个独立会话:A 登记 PILOT_LOGIN(environment=local)→ 宿主代人填写;B 新会话 list → configured=true、read → username=pilot-user-12abb974,与宿主生成值一致;宿主代人撤销后 C 新会话 read → 失败「开发变量尚未由用户填写」。finish 后宿主断言:状态全部未配置、目录无 `.env*`、任何文件不含 MCP token 与测试密码、MCP 认证材料已删除、临时目录已清理,test ok。回归:cargo test --locked 227 passed / 5 ignored,pnpm typecheck exit 0,git diff --check 通过。" -- human_verify: pending(真实桌面 UI 填写/撤销与日常开发摩擦是否下降,需人终验) +- human_verify: "2026-09-30 用户在 dev-variables 构建(真实 DB,已备份)对 Enterprise AGENT_ADMIN 两轮终验:首轮否决两处——修改时空白(→ V12)、撤销无确认框(→ f74fe11,根因 plugin-dialog 异步 confirm,同类 5 处一并修复);次轮通过。日常开发摩擦是否下降待合并后真实任务观察。" - unverified: "正式打包版 helper 路径;Claude/DeepSeek 等非 Codex 客户端的 bearer helper 取值;B 会话中模型把 list/read 各重复调用 3 次(结果一致,属模型行为,未影响断言);宿主强制终止时 Drop 不保证执行,可能残留合成 Windows 凭据。" ## 设计决策:测试账户一次填写与跨会话复用(2026-09-28) @@ -198,7 +198,7 @@ progress: 91 - depends: V10 - acceptance: "agent_verify: [cargo test] reveal(已配置测试账户) → 账号与密码原值;reveal(标量) → 原值;未配置 → 错误;MCP tools/list 不含任何 reveal 工具。human_verify: 点「修改」→ 账号预填可见、密码预填但默认遮罩,点「显示」可见;保存后生效。" - verification: "2026-09-30:cargo test reveal_returns_original_value_by_kind_only_for_humans 覆盖测试账户/标量取回、未配置与撤销后报错、MCP tools/list 不含 reveal;全量 cargo test --locked 228 passed / 5 ignored,pnpm typecheck exit 0,vitest 8 passed。" -- human_verify: pending(第二次 UI 终验) +- human_verify: "2026-09-30 通过:修改预填原账号、密码遮罩可切换显示、撤销弹出确认框且取消不生效。" - decision: 值仅经本机 Tauri command 在人显式点「修改」时取回,沿用 API Key R2 的显式 reveal 模式;不进 MCP,agent 取值仍只走已认证的 read_project_test_account。密码默认遮罩防截图/旁观泄露。 ### ✅ V13 — 接入包 skill 提示 agent 先查炼境测试账户