Why: Capture the fixed opt-in/budget/anti-self-trigger decisions and update the usage guide boundary list. Evidence: proposal r1 status approved Impact: Authority for backend auto-present implementation. Refs: plan GenUI boundaries T2/T3 Co-authored-by: Cursor <cursoragent@cursor.com>
2.1 KiB
2.1 KiB
title, date, type, revision, status, product_contract_source
| title | date | type | revision | status | product_contract_source |
|---|---|---|---|---|---|
| Generative UI auto-trigger opt-in design | 2026-10-12 | feat | r1 | approved | generative-ui-r2-U6-U7-boundary |
Generative UI 自动触发 opt-in 设计(r1)
依据:主记录 r2(语义事件 / 预算 / 防自激);收口稿已知边界;用户 2026-10-12 计划确认「边界三项全部做」并将本表定案作为实施基线。
负责人:裁定 weichen(用户,经执行计划确认);起草 Agent;更新时间 2026-10-12。
定案表
| 项 | 定案 |
|---|---|
| 开关 | owner 级 settings:plugins.generative-ui.autoPresent,默认 false;不写入 plugin_activation(避免 bump epoch) |
| 前提 | plugin_activation(generative-ui).enabled 为真;否则 auto 无效 |
| 事件 | 仅:任务阶段跃迁(plan/todo 状态变化)、材料/工件完成(material notice、document artifact) |
| 禁止事件 | per-token / 每条 SSE、surface.updated、动作回执、present 成功路径 |
| 动作 | 注入 system-reminder,只建议调用一次 generative-ui.present;不自动点 actions;不改写任务事实 |
| 预算 | 每任务(conversation)每小时 ≤3 次;耗尽写审计 genui.auto_present_exhausted |
| 冷却 | 同会话自动触发间隔 ≥60s |
| UX | 复用 U6 pin/follow;固定后新页不抢占 |
| 门槛 | 扩大范围仍以人类效率约 +20% 为后续条件;本增量只落地最小 opt-in |
实施面
- Backend:settings schema/defaults;
genui.Auto闸门;runmgr 语义钩子;审计。 - Frontend:SettingsModal 经 schema 出开关(无需专用页)。
- Documents:本提案 + 使用说明边界条目更新。
验收线
- 默认关:无 reminder / 无额外 present 建议。
- 仅 activation∧opt-in 时,材料完成 / 阶段跃迁 / document 工件可触发。
- surface/action/present 路径不重入。
- 第 4 次/小时审计耗尽并停止。
- 冷却内跳过。
裁定记录
用户经「Implement the plan」确认本定案表;本文 status: approved,实施任务
feature/genui-auto-trigger-optin 按本表交付。