@xenonbyte/da-vinci-workflow 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +61 -4
  3. package/README.zh-CN.md +57 -6
  4. package/SKILL.md +11 -3
  5. package/commands/claude/dv/continue.md +4 -0
  6. package/commands/claude/dv/design.md +3 -2
  7. package/commands/codex/prompts/dv-continue.md +4 -0
  8. package/commands/codex/prompts/dv-design.md +3 -2
  9. package/commands/gemini/dv/continue.toml +4 -0
  10. package/commands/gemini/dv/design.toml +3 -2
  11. package/docs/codex-natural-language-usage.md +5 -0
  12. package/docs/dv-command-reference.md +4 -0
  13. package/docs/mode-use-cases.md +6 -4
  14. package/docs/pencil-rendering-workflow.md +79 -15
  15. package/docs/prompt-entrypoints.md +11 -1
  16. package/docs/prompt-presets/README.md +7 -4
  17. package/docs/prompt-presets/desktop-app.md +51 -7
  18. package/docs/prompt-presets/mobile-app.md +51 -7
  19. package/docs/prompt-presets/tablet-app.md +51 -7
  20. package/docs/prompt-presets/web-app.md +51 -7
  21. package/docs/visual-adapters.md +179 -1
  22. package/docs/visual-assist-presets/README.md +28 -5
  23. package/docs/visual-assist-presets/desktop-app.md +88 -2
  24. package/docs/visual-assist-presets/mobile-app.md +89 -2
  25. package/docs/visual-assist-presets/tablet-app.md +88 -2
  26. package/docs/visual-assist-presets/web-app.md +88 -2
  27. package/docs/workflow-examples.md +8 -3
  28. package/docs/workflow-overview.md +23 -0
  29. package/docs/zh-CN/codex-natural-language-usage.md +5 -0
  30. package/docs/zh-CN/dv-command-reference.md +4 -0
  31. package/docs/zh-CN/mode-use-cases.md +7 -5
  32. package/docs/zh-CN/pencil-rendering-workflow.md +79 -15
  33. package/docs/zh-CN/prompt-entrypoints.md +13 -1
  34. package/docs/zh-CN/prompt-presets/README.md +7 -4
  35. package/docs/zh-CN/prompt-presets/desktop-app.md +50 -7
  36. package/docs/zh-CN/prompt-presets/mobile-app.md +50 -7
  37. package/docs/zh-CN/prompt-presets/tablet-app.md +50 -7
  38. package/docs/zh-CN/prompt-presets/web-app.md +50 -7
  39. package/docs/zh-CN/visual-adapters.md +179 -1
  40. package/docs/zh-CN/visual-assist-presets/README.md +28 -5
  41. package/docs/zh-CN/visual-assist-presets/desktop-app.md +88 -1
  42. package/docs/zh-CN/visual-assist-presets/mobile-app.md +89 -2
  43. package/docs/zh-CN/visual-assist-presets/tablet-app.md +89 -2
  44. package/docs/zh-CN/visual-assist-presets/web-app.md +88 -1
  45. package/docs/zh-CN/workflow-examples.md +8 -3
  46. package/docs/zh-CN/workflow-overview.md +23 -0
  47. package/lib/audit.js +654 -0
  48. package/lib/pencil-lock.js +15 -4
  49. package/package.json +4 -1
  50. package/references/artifact-templates.md +57 -0
  51. package/references/checkpoints.md +44 -19
  52. package/references/modes.md +2 -2
  53. package/references/pencil-design-to-code.md +3 -3
  54. package/references/prompt-recipes.md +12 -2
  55. package/scripts/test-audit-context-delta.js +446 -0
  56. package/scripts/test-audit-design-supervisor.js +348 -0
  57. package/scripts/test-mode-consistency.js +134 -0
  58. package/scripts/test-pencil-lock.js +130 -0
@@ -6,13 +6,57 @@
6
6
  - 高密度生产力界面
7
7
  - 工具型 workspace
8
8
 
9
- 推荐配置:
9
+ 从下面三种 `DA-VINCI.md` 配置里选一种。
10
+
11
+ ### 变体 1:只有 adapter,没有 reviewer
12
+
13
+ 适用场景:
14
+
15
+ - 只想增强桌面 workspace / panel 的构图判断
16
+ - 不需要单独 reviewer 角色
17
+ - 结构性 gate 已经足够
18
+
19
+ ```md
20
+ ## Visual Assist
21
+ - Preferred adapters:
22
+ - ui-ux-pro-max
23
+ - frontend-skill
24
+ - Scope:
25
+ - visual contract refinement
26
+ - workspace composition
27
+ - hierarchy and spacing
28
+ - motion guidance
29
+ - anchor-surface composition
30
+ - Pencil design refinement
31
+ - Fallback:
32
+ - native-da-vinci
33
+ - Require Adapter:
34
+ - false
35
+ ```
36
+
37
+ ### 变体 2:reviewer 建议性审查
38
+
39
+ 适用场景:
40
+
41
+ - 希望记录最终桌面端风格质量结论
42
+ - 但默认不希望 review 结果阻断 completion
10
43
 
11
44
  ```md
12
45
  ## Visual Assist
13
46
  - Preferred adapters:
14
47
  - ui-ux-pro-max
15
48
  - frontend-skill
49
+ - Design-supervisor reviewers:
50
+ - frontend-skill
51
+ - ui-ux-pro-max
52
+ - Design-supervisor review mode:
53
+ - screenshot-and-theme
54
+ - Design-supervisor review inputs:
55
+ - screenshots
56
+ - pencil variables
57
+ - visual thesis
58
+ - content plan
59
+ - interaction thesis
16
60
  - Scope:
17
61
  - visual contract refinement
18
62
  - workspace composition
@@ -24,11 +68,54 @@
24
68
  - native-da-vinci
25
69
  - Require Adapter:
26
70
  - false
71
+ - Require Supervisor Review:
72
+ - false
73
+ ```
74
+
75
+ ### 变体 3:reviewer 硬签字
76
+
77
+ 适用场景:
78
+
79
+ - 桌面产品对外可见,或设计质量要求很高
80
+ - 需要 reviewer 对最终风格质量签字
81
+ - 不允许从普通或泛化结果直接进入实现
82
+
83
+ ```md
84
+ ## Visual Assist
85
+ - Preferred adapters:
86
+ - frontend-skill
87
+ - ui-ux-pro-max
88
+ - Design-supervisor reviewers:
89
+ - frontend-skill
90
+ - ui-ux-pro-max
91
+ - Design-supervisor review mode:
92
+ - screenshot-and-theme
93
+ - Design-supervisor review inputs:
94
+ - screenshots
95
+ - pencil variables
96
+ - visual thesis
97
+ - content plan
98
+ - interaction thesis
99
+ - Scope:
100
+ - visual contract refinement
101
+ - workspace composition
102
+ - hierarchy and spacing
103
+ - motion guidance
104
+ - anchor-surface composition
105
+ - Pencil design refinement
106
+ - Fallback:
107
+ - native-da-vinci
108
+ - Require Adapter:
109
+ - true
110
+ - Require Supervisor Review:
111
+ - true
27
112
  ```
28
113
 
114
+ 通用说明:
29
115
  说明:
30
116
 
31
117
  - 优先用 `ui-ux-pro-max` 做高密度 app 布局判断
32
118
  - 如果当前环境里的 adapter 名不一样,先改成真实可用名称
119
+ - 把 `Design-supervisor reviewers` 和 `Preferred adapters` 分开;reviewers 负责在结构性 gate 通过后判断桌面端最终风格质量
33
120
  - `frontend-skill` 更适合作为辅助,不要反过来把工具界面做成营销页
34
121
  - 如果结果太平、太盒子化、太像通用后台,就把 `frontend-skill` 调到第一位,并提高 design checkpoint 的要求
@@ -5,13 +5,58 @@
5
5
  - 手机优先的产品
6
6
  - 需要更稳的移动端层级和触控判断
7
7
 
8
- 推荐配置:
8
+ 从下面三种 `DA-VINCI.md` 配置里选一种。
9
+
10
+ ### 变体 1:只有 adapter,没有 reviewer
11
+
12
+ 适用场景:
13
+
14
+ - 只想增强移动端构图和层级生成
15
+ - 不需要最终 reviewer 角色
16
+ - 结构性 gate 已经足够
17
+
18
+ ```md
19
+ ## Visual Assist
20
+ - Preferred adapters:
21
+ - ui-ux-pro-max
22
+ - frontend-skill
23
+ - Scope:
24
+ - visual contract refinement
25
+ - mobile page composition
26
+ - hierarchy and spacing
27
+ - touch-first motion guidance
28
+ - anchor-surface composition
29
+ - Pencil design refinement
30
+ - Fallback:
31
+ - native-da-vinci
32
+ - Require Adapter:
33
+ - false
34
+ ```
35
+
36
+ ### 变体 2:reviewer 建议性审查
37
+
38
+ 适用场景:
39
+
40
+ - 希望有最终移动端风格质量结论
41
+ - 希望把结果记录到 `pencil-design.md`
42
+ - 但默认不希望因为 review 结果阻断交付
9
43
 
10
44
  ```md
11
45
  ## Visual Assist
12
46
  - Preferred adapters:
13
47
  - ui-ux-pro-max
14
48
  - frontend-skill
49
+ - Design-supervisor reviewers:
50
+ - frontend-skill
51
+ - ui-ux-pro-max
52
+ - Design-supervisor review mode:
53
+ - screenshot-and-theme
54
+ - Design-supervisor review inputs:
55
+ - screenshots
56
+ - pencil variables
57
+ - visual thesis
58
+ - content plan
59
+ - interaction thesis
15
60
  - Scope:
16
61
  - visual contract refinement
17
62
  - mobile page composition
@@ -23,11 +68,53 @@
23
68
  - native-da-vinci
24
69
  - Require Adapter:
25
70
  - false
71
+ - Require Supervisor Review:
72
+ - false
73
+ ```
74
+
75
+ ### 变体 3:reviewer 硬签字
76
+
77
+ 适用场景:
78
+
79
+ - 产品品牌敏感,或面向 premium 用户
80
+ - 移动端风格质量本身就是交付门槛
81
+ - 如果缺 review 或 review 结果不够好,就不允许扩屏或进入实现交接
82
+
83
+ ```md
84
+ ## Visual Assist
85
+ - Preferred adapters:
86
+ - frontend-skill
87
+ - ui-ux-pro-max
88
+ - Design-supervisor reviewers:
89
+ - frontend-skill
90
+ - ui-ux-pro-max
91
+ - Design-supervisor review mode:
92
+ - screenshot-and-theme
93
+ - Design-supervisor review inputs:
94
+ - screenshots
95
+ - pencil variables
96
+ - visual thesis
97
+ - content plan
98
+ - interaction thesis
99
+ - Scope:
100
+ - visual contract refinement
101
+ - mobile page composition
102
+ - hierarchy and spacing
103
+ - touch-first motion guidance
104
+ - anchor-surface composition
105
+ - Pencil design refinement
106
+ - Fallback:
107
+ - native-da-vinci
108
+ - Require Adapter:
109
+ - true
110
+ - Require Supervisor Review:
111
+ - true
26
112
  ```
27
113
 
28
- 说明:
114
+ 通用说明:
29
115
 
30
116
  - `ui-ux-pro-max` 更适合移动端 app 表面的密度和平衡
31
117
  - 如果当前环境里的 adapter 名不一样,先改成真实可用名称
118
+ - 把 `Design-supervisor reviewers` 和 `Preferred adapters` 分开;reviewers 负责在结构性 gate 通过后判断移动端最终风格质量
32
119
  - motion 要轻,不要把普通 app 页面做成营销页
33
120
  - 如果结果总是变成泛化卡片堆砌或层级太弱,就把 `frontend-skill` 调到第一位,并考虑把 `Require Adapter` 改成 `true`
@@ -5,13 +5,57 @@
5
5
  - 平板优先界面
6
6
  - 需要兼顾触控和更大工作区
7
7
 
8
- 推荐配置:
8
+ 从下面三种 `DA-VINCI.md` 配置里选一种。
9
+
10
+ ### 变体 1:只有 adapter,没有 reviewer
11
+
12
+ 适用场景:
13
+
14
+ - 只想增强平板端构图和分区判断
15
+ - 不需要单独 reviewer 角色
16
+ - 常规结构性 gate 已经足够
17
+
18
+ ```md
19
+ ## Visual Assist
20
+ - Preferred adapters:
21
+ - ui-ux-pro-max
22
+ - frontend-skill
23
+ - Scope:
24
+ - visual contract refinement
25
+ - tablet page composition
26
+ - hierarchy and spacing
27
+ - touch-aware motion guidance
28
+ - anchor-surface composition
29
+ - Pencil design refinement
30
+ - Fallback:
31
+ - native-da-vinci
32
+ - Require Adapter:
33
+ - false
34
+ ```
35
+
36
+ ### 变体 2:reviewer 建议性审查
37
+
38
+ 适用场景:
39
+
40
+ - 希望记录最终平板端风格质量结论
41
+ - 但默认不希望 review 结果阻断 completion
9
42
 
10
43
  ```md
11
44
  ## Visual Assist
12
45
  - Preferred adapters:
13
46
  - ui-ux-pro-max
14
47
  - frontend-skill
48
+ - Design-supervisor reviewers:
49
+ - frontend-skill
50
+ - ui-ux-pro-max
51
+ - Design-supervisor review mode:
52
+ - screenshot-and-theme
53
+ - Design-supervisor review inputs:
54
+ - screenshots
55
+ - pencil variables
56
+ - visual thesis
57
+ - content plan
58
+ - interaction thesis
15
59
  - Scope:
16
60
  - visual contract refinement
17
61
  - tablet page composition
@@ -23,11 +67,54 @@
23
67
  - native-da-vinci
24
68
  - Require Adapter:
25
69
  - false
70
+ - Require Supervisor Review:
71
+ - false
72
+ ```
73
+
74
+ ### 变体 3:reviewer 硬签字
75
+
76
+ 适用场景:
77
+
78
+ - 平板体验是旗舰入口,或审查要求很高
79
+ - 最终风格质量必须经过 reviewer 签字
80
+ - 不接受寡淡、过度框线化或弱层级结果直接进入实现
81
+
82
+ ```md
83
+ ## Visual Assist
84
+ - Preferred adapters:
85
+ - frontend-skill
86
+ - ui-ux-pro-max
87
+ - Design-supervisor reviewers:
88
+ - frontend-skill
89
+ - ui-ux-pro-max
90
+ - Design-supervisor review mode:
91
+ - screenshot-and-theme
92
+ - Design-supervisor review inputs:
93
+ - screenshots
94
+ - pencil variables
95
+ - visual thesis
96
+ - content plan
97
+ - interaction thesis
98
+ - Scope:
99
+ - visual contract refinement
100
+ - tablet page composition
101
+ - hierarchy and spacing
102
+ - touch-aware motion guidance
103
+ - anchor-surface composition
104
+ - Pencil design refinement
105
+ - Fallback:
106
+ - native-da-vinci
107
+ - Require Adapter:
108
+ - true
109
+ - Require Supervisor Review:
110
+ - true
26
111
  ```
27
112
 
28
- 说明:
113
+ 通用说明:
29
114
 
30
115
  - spacing 一般要比手机更舒展,但又不能像桌面端那样过密
31
116
  - 如果当前环境里的 adapter 名不一样,先改成真实可用名称
117
+ - 把 `Design-supervisor reviewers` 和 `Preferred adapters` 分开;reviewers 负责在结构性 gate 通过后判断平板端最终风格质量
32
118
  - 更适合用 adapter 去辅助分栏、画布区和主次区域的平衡
119
+ - 不要把平板端压缩成手机式长列表堆叠
33
120
  - 如果结果还是寡淡或被边框框死,就把 `frontend-skill` 调到第一位,并要求在 Pencil 设计前先写清楚 visual thesis
@@ -6,13 +6,57 @@
6
6
  - 浏览器里的产品界面
7
7
  - 兼具产品性和一定品牌表达的界面
8
8
 
9
- 推荐配置:
9
+ 从下面三种 `DA-VINCI.md` 配置里选一种。
10
+
11
+ ### 变体 1:只有 adapter,没有 reviewer
12
+
13
+ 适用场景:
14
+
15
+ - 只想增强 Web 产品的响应式和 workspace 构图
16
+ - 不需要单独 reviewer 角色
17
+ - 结构性 gate 已经足够
18
+
19
+ ```md
20
+ ## Visual Assist
21
+ - Preferred adapters:
22
+ - ui-ux-pro-max
23
+ - frontend-skill
24
+ - Scope:
25
+ - visual contract refinement
26
+ - page composition
27
+ - hierarchy and spacing
28
+ - responsive motion guidance
29
+ - anchor-surface composition
30
+ - Pencil design refinement
31
+ - Fallback:
32
+ - native-da-vinci
33
+ - Require Adapter:
34
+ - false
35
+ ```
36
+
37
+ ### 变体 2:reviewer 建议性审查
38
+
39
+ 适用场景:
40
+
41
+ - 希望记录最终 Web 风格质量结论
42
+ - review 结果默认不直接阻断 completion
10
43
 
11
44
  ```md
12
45
  ## Visual Assist
13
46
  - Preferred adapters:
14
47
  - ui-ux-pro-max
15
48
  - frontend-skill
49
+ - Design-supervisor reviewers:
50
+ - frontend-skill
51
+ - ui-ux-pro-max
52
+ - Design-supervisor review mode:
53
+ - screenshot-and-theme
54
+ - Design-supervisor review inputs:
55
+ - screenshots
56
+ - pencil variables
57
+ - visual thesis
58
+ - content plan
59
+ - interaction thesis
16
60
  - Scope:
17
61
  - visual contract refinement
18
62
  - page composition
@@ -24,11 +68,54 @@
24
68
  - native-da-vinci
25
69
  - Require Adapter:
26
70
  - false
71
+ - Require Supervisor Review:
72
+ - false
73
+ ```
74
+
75
+ ### 变体 3:reviewer 硬签字
76
+
77
+ 适用场景:
78
+
79
+ - Web 产品是品牌关键或高曝光入口
80
+ - 最终风格质量必须经过 reviewer 签字
81
+ - 不允许用泛化 SaaS 风格直接进入实现
82
+
83
+ ```md
84
+ ## Visual Assist
85
+ - Preferred adapters:
86
+ - frontend-skill
87
+ - ui-ux-pro-max
88
+ - Design-supervisor reviewers:
89
+ - frontend-skill
90
+ - ui-ux-pro-max
91
+ - Design-supervisor review mode:
92
+ - screenshot-and-theme
93
+ - Design-supervisor review inputs:
94
+ - screenshots
95
+ - pencil variables
96
+ - visual thesis
97
+ - content plan
98
+ - interaction thesis
99
+ - Scope:
100
+ - visual contract refinement
101
+ - page composition
102
+ - hierarchy and spacing
103
+ - responsive motion guidance
104
+ - anchor-surface composition
105
+ - Pencil design refinement
106
+ - Fallback:
107
+ - native-da-vinci
108
+ - Require Adapter:
109
+ - true
110
+ - Require Supervisor Review:
111
+ - true
27
112
  ```
28
113
 
114
+ 通用说明:
29
115
  说明:
30
116
 
31
117
  - 如果是典型 product UI,优先 `ui-ux-pro-max`
32
118
  - 如果当前环境里的 adapter 名不一样,先改成真实可用名称
119
+ - 把 `Design-supervisor reviewers` 和 `Preferred adapters` 分开;reviewers 负责在结构性 gate 通过后判断 Web 最终风格质量
33
120
  - 如果页面更偏品牌表达或强视觉,可以把 `frontend-skill` 放前面
34
121
  - 如果结果像很普通的 SaaS 模板,就把 `frontend-skill` 提到第一位,并把 `DA-VINCI.md` 的视觉方向写得更具体
@@ -16,6 +16,8 @@
16
16
 
17
17
  - `intake` 和 `continue` 通常应该回到主工作流入口
18
18
  - 不应默认把用户导向 `build`
19
+ - `continue` 选路先看工件/checkpoint 真相,再把 Context Delta 当作辅助恢复信息
20
+ - 如果 Context Delta 与当前工件冲突,选路时应忽略冲突内容并记录冲突
19
21
 
20
22
  ## 1. `greenfield-spec`
21
23
 
@@ -95,8 +97,8 @@ $da-vinci use redesign-from-code to inventory the current app, identify current
95
97
  8. 创建新的或更新后的 Pencil 页面,基于重新构图而不是旧 UI 换皮,并优先持久化到 `.da-vinci/designs/`
96
98
  9. 在把 operations 发给 Pencil 前,先对非小型 `batch_design` 做 preflight,并保持 anchor-surface 批次足够小
97
99
  10. 如果同一个 anchor surface 连续两次回滚,就切到每批不超过 6 个操作的微批次,直到拿到干净的 schema-safe pass
98
- 11. 如果这一轮开始时还没有登记的项目内 `.pen`,先允许第一个通过审查的 live anchor surface 在内存里完成,然后立即把该 MCP 快照持久化到 `.da-vinci/designs/`
99
- 12. 如果项目里原本已有登记的 `.pen`,继续设计时先打开它,但发生了实质性 live edit 后,必须把当前 MCP 快照重新覆盖写回同一路径
100
+ 11. 如果这一轮开始时还没有登记的项目内 `.pen`,必须先执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,先 seed 登记路径并拿到全局锁,再开始第一次 Pencil 编辑
101
+ 12. 如果项目里原本已有登记的 `.pen`,继续设计时也必须先通过 `da-vinci pencil-session begin --project <project-path> --pen <path>` reopen 它;发生了实质性 live edit 后,再通过 `da-vinci pencil-session persist` 把当前 MCP 快照重新覆盖写回同一路径
100
102
  13. 在第一次成功写入 Pencil 后,立即验证登记的项目内 `.pen` 路径已经成为 shell 可见文件
101
103
  14. 紧接着运行 `da-vinci audit --mode integrity <project-path>`
102
104
  15. 如果 Pencil MCP 可用,先运行 MCP runtime gate,并把结果记录到 `pencil-design.md`
@@ -114,6 +116,8 @@ $da-vinci use redesign-from-code to inventory the current app, identify current
114
116
  $da-vinci use redesign-from-code to redesign this existing Android app.
115
117
 
116
118
  Existing code is the behavior source of truth, not the layout truth.
119
+ Treat this as full-delivery unless explicitly changed.
120
+ Do not stop after anchor-surface summaries, phase summaries, or tasks.md once the corresponding checkpoints pass.
117
121
  Inventory activities, fragments, tabs, dialogs, bottom sheets, nested flows, and important states.
118
122
  Decompose complex screens into separate design surfaces before Pencil work.
119
123
  Use frontend-skill explicitly as the primary visual reasoning source.
@@ -127,7 +131,7 @@ Do not treat screenshot analysis as an automatic pass if it reports hierarchy, s
127
131
  Before non-trivial `batch_design` calls, preflight the Pencil operations when shell access is available.
128
132
  If the same anchor surface rolls back twice, switch to micro-batches of 6 or fewer operations until a clean schema-safe pass succeeds.
129
133
  Use only Pencil-supported properties; do not use web-only props like flex or margin.
130
- 优先在第一次 Pencil 编辑前执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,这样会先 seed 登记好的 `.pen` 并持有全局 Pencil 锁。
134
+ 在第一次 Pencil 编辑前,必须执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,这样会先 seed 登记好的 `.pen` 并持有全局 Pencil 锁。
131
135
  如果项目里原本已有登记的 `.pen`,继续设计时先打开它,但实质性 live edit 后优先通过 `da-vinci pencil-session persist` 把当前 live MCP 快照重新覆盖写回同一路径。
132
136
  Verify the registered project-local `.pen` file exists as a shell-visible file after the first Pencil write.
133
137
  在第一次成功写入 Pencil 后、继续大范围扩展前,先运行 `da-vinci audit --mode integrity <project-path>`。
@@ -214,6 +218,7 @@ $da-vinci use intake for this existing Android project.
214
218
  I need to globally replace the UI.
215
219
  Existing code is the behavior source of truth.
216
220
  HTML references are in /abs/path/to/mockups.
221
+ Treat this as full-delivery unless I explicitly narrow it to design-only.
217
222
  ```
218
223
 
219
224
  如果工件已经存在,需要继续:
@@ -119,6 +119,7 @@ Da Vinci 围绕一个固定契约工作:
119
119
  - 经过 screenshot review
120
120
  - 满足当前 form factor 的 layout-hygiene 规则
121
121
  - 通过 design checkpoint 才能扩屏
122
+ - 如果 `DA-VINCI.md` 配置了 `Design-supervisor reviewers`,还要运行 `design-supervisor review`;只有 `Require Supervisor Review: true` 时,它才是阻断性的最终风格质量 gate
122
123
 
123
124
  anchor 通过后,再抽 shared primitives,然后再扩更多页面。
124
125
 
@@ -129,6 +130,7 @@ anchor 通过后,再抽 shared primitives,然后再扩更多页面。
129
130
  - `design-source checkpoint`
130
131
  - 如果启用了 Pencil MCP,则跑 `MCP runtime gate`
131
132
  - 工作中期跑 `da-vinci audit --mode integrity <project-path>`
133
+ - 在现有 change 工件里记录 checkpoint 邻近的 `Context Delta`
132
134
 
133
135
  这些检查用来确认:
134
136
 
@@ -136,6 +138,7 @@ anchor 通过后,再抽 shared primitives,然后再扩更多页面。
136
138
  - active editor 是正确的设计源
137
139
  - shell 上确实有 `.pen`
138
140
  - live snapshot 和 persisted snapshot 已同步
141
+ - 最近关键执行上下文可恢复,但不会替代工件真相的选路权
139
142
 
140
143
  ### 6. Mapping
141
144
 
@@ -164,6 +167,10 @@ mapping 通过后:
164
167
  - 如果用了 Pencil MCP,runtime gate 结果可接受
165
168
  - `da-vinci audit --mode completion --change <change-id> <project-path>` 通过
166
169
 
170
+ 补充说明:
171
+
172
+ - Context Delta 的告警用于提升续跑质量,本身不会单独形成新的 completion 阻断
173
+
167
174
  ## 门禁与审计
168
175
 
169
176
  ### Design Checkpoint
@@ -176,6 +183,17 @@ mapping 通过后:
176
183
  - 视觉锚点很弱
177
184
  - 忽略 screenshot review 问题
178
185
 
186
+ ### Design-Supervisor Review
187
+
188
+ 当 `DA-VINCI.md` 里配置了它时,这是一道位于 screenshot review、layout hygiene 和 design checkpoint 之后的最终风格质量 gate。
189
+
190
+ 它会判断:
191
+
192
+ - 品牌感和识别度
193
+ - 多个 screen 之间的视觉一致性
194
+ - token/theme 与最终画面的匹配程度
195
+ - 当前 anchor 是否足够成熟,能继续扩屏或进入实现
196
+
179
197
  ### Design-Source Checkpoint
180
198
 
181
199
  确认:
@@ -207,6 +225,11 @@ mapping 通过后:
207
225
 
208
226
  在任何终态完成声明前跑。
209
227
 
228
+ audit 中对 Context Delta 的处理:
229
+
230
+ - 缺失、字段不完整、或过期冲突都属于告警级信号
231
+ - 选路和完成真相仍以工件、checkpoint、runtime gate 与文件系统审计为准
232
+
210
233
  ## 流程图
211
234
 
212
235
  ```mermaid