@xenonbyte/da-vinci-workflow 0.1.19 → 0.1.21

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 (56) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +40 -54
  3. package/README.zh-CN.md +34 -54
  4. package/SKILL.md +4 -0
  5. package/commands/claude/dv/build.md +6 -0
  6. package/commands/claude/dv/continue.md +5 -0
  7. package/commands/codex/prompts/dv-build.md +4 -0
  8. package/commands/codex/prompts/dv-continue.md +5 -0
  9. package/commands/gemini/dv/build.toml +4 -0
  10. package/commands/gemini/dv/continue.toml +5 -0
  11. package/docs/codex-natural-language-usage.md +3 -0
  12. package/docs/dv-command-reference.md +10 -0
  13. package/docs/mode-use-cases.md +2 -0
  14. package/docs/pencil-rendering-workflow.md +16 -0
  15. package/docs/prompt-entrypoints.md +7 -0
  16. package/docs/prompt-presets/README.md +2 -0
  17. package/docs/prompt-presets/desktop-app.md +4 -0
  18. package/docs/prompt-presets/mobile-app.md +4 -0
  19. package/docs/prompt-presets/tablet-app.md +4 -0
  20. package/docs/prompt-presets/web-app.md +4 -0
  21. package/docs/visual-adapters.md +24 -80
  22. package/docs/visual-assist-presets/desktop-app.md +20 -68
  23. package/docs/visual-assist-presets/mobile-app.md +20 -68
  24. package/docs/visual-assist-presets/tablet-app.md +20 -68
  25. package/docs/visual-assist-presets/web-app.md +20 -68
  26. package/docs/workflow-examples.md +2 -0
  27. package/docs/workflow-overview.md +11 -0
  28. package/docs/zh-CN/codex-natural-language-usage.md +3 -0
  29. package/docs/zh-CN/dv-command-reference.md +10 -0
  30. package/docs/zh-CN/mode-use-cases.md +2 -0
  31. package/docs/zh-CN/pencil-rendering-workflow.md +16 -0
  32. package/docs/zh-CN/prompt-entrypoints.md +7 -0
  33. package/docs/zh-CN/prompt-presets/README.md +2 -0
  34. package/docs/zh-CN/prompt-presets/desktop-app.md +3 -0
  35. package/docs/zh-CN/prompt-presets/mobile-app.md +3 -0
  36. package/docs/zh-CN/prompt-presets/tablet-app.md +3 -0
  37. package/docs/zh-CN/prompt-presets/web-app.md +3 -0
  38. package/docs/zh-CN/visual-adapters.md +24 -80
  39. package/docs/zh-CN/visual-assist-presets/desktop-app.md +20 -68
  40. package/docs/zh-CN/visual-assist-presets/mobile-app.md +20 -68
  41. package/docs/zh-CN/visual-assist-presets/tablet-app.md +20 -68
  42. package/docs/zh-CN/visual-assist-presets/web-app.md +20 -68
  43. package/docs/zh-CN/workflow-examples.md +2 -0
  44. package/docs/zh-CN/workflow-overview.md +11 -0
  45. package/examples/greenfield-spec-markupflow/DA-VINCI.md +4 -13
  46. package/lib/audit.js +455 -0
  47. package/lib/cli.js +6 -1
  48. package/lib/pencil-session.js +6 -0
  49. package/package.json +2 -1
  50. package/references/artifact-templates.md +38 -0
  51. package/references/checkpoints.md +16 -0
  52. package/references/prompt-recipes.md +5 -0
  53. package/scripts/test-audit-context-delta.js +446 -0
  54. package/scripts/test-mode-consistency.js +50 -0
  55. package/scripts/test-pencil-session.js +40 -0
  56. package/scripts/test-persistence-flows.js +31 -1
@@ -46,33 +46,14 @@ Recommended shape:
46
46
 
47
47
  ```md
48
48
  ## Visual Assist
49
- - Preferred adapters:
50
- - frontend-skill
51
- - ui-ux-pro-max
52
- - Design-supervisor reviewers:
53
- - frontend-skill
54
- - ui-ux-pro-max
55
- - Design-supervisor review mode:
56
- - screenshot-and-theme
57
- - Design-supervisor review inputs:
58
- - screenshots
59
- - pencil variables
60
- - visual thesis
61
- - content plan
62
- - interaction thesis
63
- - Scope:
64
- - visual contract refinement
65
- - page composition
66
- - hierarchy and spacing
67
- - motion guidance
68
- - anchor-surface composition
69
- - Pencil design refinement
70
- - Fallback:
71
- - native-da-vinci
72
- - Require Adapter:
73
- - false
74
- - Require Supervisor Review:
75
- - false
49
+ - Preferred adapters: frontend-skill, ui-ux-pro-max
50
+ - Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
51
+ - Design-supervisor review mode: screenshot-and-theme
52
+ - Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
53
+ - Scope: visual contract refinement, page composition, hierarchy and spacing, motion guidance, anchor-surface composition, Pencil design refinement
54
+ - Fallback: native-da-vinci
55
+ - Require Adapter: false
56
+ - Require Supervisor Review: false
76
57
  ```
77
58
 
78
59
  Use `Require Adapter: true` only when the workflow must stop if the preferred adapter is unavailable locally.
@@ -83,32 +64,14 @@ Balanced default:
83
64
 
84
65
  ```md
85
66
  ## Visual Assist
86
- - Preferred adapters:
87
- - ui-ux-pro-max
88
- - frontend-skill
89
- - Design-supervisor reviewers:
90
- - frontend-skill
91
- - ui-ux-pro-max
92
- - Design-supervisor review mode:
93
- - screenshot-and-theme
94
- - Design-supervisor review inputs:
95
- - screenshots
96
- - pencil variables
97
- - visual thesis
98
- - content plan
99
- - interaction thesis
100
- - Scope:
101
- - visual contract refinement
102
- - page composition
103
- - hierarchy and spacing
104
- - anchor-surface composition
105
- - Pencil design refinement
106
- - Fallback:
107
- - native-da-vinci
108
- - Require Adapter:
109
- - false
110
- - Require Supervisor Review:
111
- - false
67
+ - Preferred adapters: ui-ux-pro-max, frontend-skill
68
+ - Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
69
+ - Design-supervisor review mode: screenshot-and-theme
70
+ - Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
71
+ - Scope: visual contract refinement, page composition, hierarchy and spacing, anchor-surface composition, Pencil design refinement
72
+ - Fallback: native-da-vinci
73
+ - Require Adapter: false
74
+ - Require Supervisor Review: false
112
75
  ```
113
76
 
114
77
  Use this when:
@@ -120,33 +83,14 @@ Quality-first redesign:
120
83
 
121
84
  ```md
122
85
  ## Visual Assist
123
- - Preferred adapters:
124
- - frontend-skill
125
- - ui-ux-pro-max
126
- - Design-supervisor reviewers:
127
- - frontend-skill
128
- - ui-ux-pro-max
129
- - Design-supervisor review mode:
130
- - screenshot-and-theme
131
- - Design-supervisor review inputs:
132
- - screenshots
133
- - pencil variables
134
- - visual thesis
135
- - content plan
136
- - interaction thesis
137
- - Scope:
138
- - visual contract refinement
139
- - page composition
140
- - hierarchy and spacing
141
- - motion guidance
142
- - anchor-surface composition
143
- - Pencil design refinement
144
- - Fallback:
145
- - native-da-vinci
146
- - Require Adapter:
147
- - true
148
- - Require Supervisor Review:
149
- - false
86
+ - Preferred adapters: frontend-skill, ui-ux-pro-max
87
+ - Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
88
+ - Design-supervisor review mode: screenshot-and-theme
89
+ - Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
90
+ - Scope: visual contract refinement, page composition, hierarchy and spacing, motion guidance, anchor-surface composition, Pencil design refinement
91
+ - Fallback: native-da-vinci
92
+ - Require Adapter: true
93
+ - Require Supervisor Review: false
150
94
  ```
151
95
 
152
96
  Use this when:
@@ -21,20 +21,10 @@ Use when:
21
21
 
22
22
  ```md
23
23
  ## Visual Assist
24
- - Preferred adapters:
25
- - ui-ux-pro-max
26
- - frontend-skill
27
- - Scope:
28
- - visual contract refinement
29
- - workspace composition
30
- - hierarchy and spacing
31
- - motion guidance
32
- - anchor-surface composition
33
- - Pencil design refinement
34
- - Fallback:
35
- - native-da-vinci
36
- - Require Adapter:
37
- - false
24
+ - Preferred adapters: ui-ux-pro-max, frontend-skill
25
+ - Scope: visual contract refinement, workspace composition, hierarchy and spacing, motion guidance, anchor-surface composition, Pencil design refinement
26
+ - Fallback: native-da-vinci
27
+ - Require Adapter: false
38
28
  ```
39
29
 
40
30
  ### Variant 2: Advisory Supervisor Review
@@ -46,33 +36,14 @@ Use when:
46
36
 
47
37
  ```md
48
38
  ## Visual Assist
49
- - Preferred adapters:
50
- - ui-ux-pro-max
51
- - frontend-skill
52
- - Design-supervisor reviewers:
53
- - frontend-skill
54
- - ui-ux-pro-max
55
- - Design-supervisor review mode:
56
- - screenshot-and-theme
57
- - Design-supervisor review inputs:
58
- - screenshots
59
- - pencil variables
60
- - visual thesis
61
- - content plan
62
- - interaction thesis
63
- - Scope:
64
- - visual contract refinement
65
- - workspace composition
66
- - hierarchy and spacing
67
- - motion guidance
68
- - anchor-surface composition
69
- - Pencil design refinement
70
- - Fallback:
71
- - native-da-vinci
72
- - Require Adapter:
73
- - false
74
- - Require Supervisor Review:
75
- - false
39
+ - Preferred adapters: ui-ux-pro-max, frontend-skill
40
+ - Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
41
+ - Design-supervisor review mode: screenshot-and-theme
42
+ - Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
43
+ - Scope: visual contract refinement, workspace composition, hierarchy and spacing, motion guidance, anchor-surface composition, Pencil design refinement
44
+ - Fallback: native-da-vinci
45
+ - Require Adapter: false
46
+ - Require Supervisor Review: false
76
47
  ```
77
48
 
78
49
  ### Variant 3: Required Supervisor Signoff
@@ -85,33 +56,14 @@ Use when:
85
56
 
86
57
  ```md
87
58
  ## Visual Assist
88
- - Preferred adapters:
89
- - frontend-skill
90
- - ui-ux-pro-max
91
- - Design-supervisor reviewers:
92
- - frontend-skill
93
- - ui-ux-pro-max
94
- - Design-supervisor review mode:
95
- - screenshot-and-theme
96
- - Design-supervisor review inputs:
97
- - screenshots
98
- - pencil variables
99
- - visual thesis
100
- - content plan
101
- - interaction thesis
102
- - Scope:
103
- - visual contract refinement
104
- - workspace composition
105
- - hierarchy and spacing
106
- - motion guidance
107
- - anchor-surface composition
108
- - Pencil design refinement
109
- - Fallback:
110
- - native-da-vinci
111
- - Require Adapter:
112
- - true
113
- - Require Supervisor Review:
114
- - true
59
+ - Preferred adapters: frontend-skill, ui-ux-pro-max
60
+ - Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
61
+ - Design-supervisor review mode: screenshot-and-theme
62
+ - Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
63
+ - Scope: visual contract refinement, workspace composition, hierarchy and spacing, motion guidance, anchor-surface composition, Pencil design refinement
64
+ - Fallback: native-da-vinci
65
+ - Require Adapter: true
66
+ - Require Supervisor Review: true
115
67
  ```
116
68
 
117
69
  Notes for all variants:
@@ -21,20 +21,10 @@ Use when:
21
21
 
22
22
  ```md
23
23
  ## Visual Assist
24
- - Preferred adapters:
25
- - ui-ux-pro-max
26
- - frontend-skill
27
- - Scope:
28
- - visual contract refinement
29
- - mobile page composition
30
- - hierarchy and spacing
31
- - touch-first motion guidance
32
- - anchor-surface composition
33
- - Pencil design refinement
34
- - Fallback:
35
- - native-da-vinci
36
- - Require Adapter:
37
- - false
24
+ - Preferred adapters: ui-ux-pro-max, frontend-skill
25
+ - Scope: visual contract refinement, mobile page composition, hierarchy and spacing, touch-first motion guidance, anchor-surface composition, Pencil design refinement
26
+ - Fallback: native-da-vinci
27
+ - Require Adapter: false
38
28
  ```
39
29
 
40
30
  ### Variant 2: Advisory Supervisor Review
@@ -47,33 +37,14 @@ Use when:
47
37
 
48
38
  ```md
49
39
  ## Visual Assist
50
- - Preferred adapters:
51
- - ui-ux-pro-max
52
- - frontend-skill
53
- - Design-supervisor reviewers:
54
- - frontend-skill
55
- - ui-ux-pro-max
56
- - Design-supervisor review mode:
57
- - screenshot-and-theme
58
- - Design-supervisor review inputs:
59
- - screenshots
60
- - pencil variables
61
- - visual thesis
62
- - content plan
63
- - interaction thesis
64
- - Scope:
65
- - visual contract refinement
66
- - mobile page composition
67
- - hierarchy and spacing
68
- - touch-first motion guidance
69
- - anchor-surface composition
70
- - Pencil design refinement
71
- - Fallback:
72
- - native-da-vinci
73
- - Require Adapter:
74
- - false
75
- - Require Supervisor Review:
76
- - false
40
+ - Preferred adapters: ui-ux-pro-max, frontend-skill
41
+ - Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
42
+ - Design-supervisor review mode: screenshot-and-theme
43
+ - Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
44
+ - Scope: visual contract refinement, mobile page composition, hierarchy and spacing, touch-first motion guidance, anchor-surface composition, Pencil design refinement
45
+ - Fallback: native-da-vinci
46
+ - Require Adapter: false
47
+ - Require Supervisor Review: false
77
48
  ```
78
49
 
79
50
  ### Variant 3: Required Supervisor Signoff
@@ -86,33 +57,14 @@ Use when:
86
57
 
87
58
  ```md
88
59
  ## Visual Assist
89
- - Preferred adapters:
90
- - frontend-skill
91
- - ui-ux-pro-max
92
- - Design-supervisor reviewers:
93
- - frontend-skill
94
- - ui-ux-pro-max
95
- - Design-supervisor review mode:
96
- - screenshot-and-theme
97
- - Design-supervisor review inputs:
98
- - screenshots
99
- - pencil variables
100
- - visual thesis
101
- - content plan
102
- - interaction thesis
103
- - Scope:
104
- - visual contract refinement
105
- - mobile page composition
106
- - hierarchy and spacing
107
- - touch-first motion guidance
108
- - anchor-surface composition
109
- - Pencil design refinement
110
- - Fallback:
111
- - native-da-vinci
112
- - Require Adapter:
113
- - true
114
- - Require Supervisor Review:
115
- - true
60
+ - Preferred adapters: frontend-skill, ui-ux-pro-max
61
+ - Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
62
+ - Design-supervisor review mode: screenshot-and-theme
63
+ - Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
64
+ - Scope: visual contract refinement, mobile page composition, hierarchy and spacing, touch-first motion guidance, anchor-surface composition, Pencil design refinement
65
+ - Fallback: native-da-vinci
66
+ - Require Adapter: true
67
+ - Require Supervisor Review: true
116
68
  ```
117
69
 
118
70
  Notes for all variants:
@@ -21,20 +21,10 @@ Use when:
21
21
 
22
22
  ```md
23
23
  ## Visual Assist
24
- - Preferred adapters:
25
- - ui-ux-pro-max
26
- - frontend-skill
27
- - Scope:
28
- - visual contract refinement
29
- - tablet page composition
30
- - hierarchy and spacing
31
- - touch-aware motion guidance
32
- - anchor-surface composition
33
- - Pencil design refinement
34
- - Fallback:
35
- - native-da-vinci
36
- - Require Adapter:
37
- - false
24
+ - Preferred adapters: ui-ux-pro-max, frontend-skill
25
+ - Scope: visual contract refinement, tablet page composition, hierarchy and spacing, touch-aware motion guidance, anchor-surface composition, Pencil design refinement
26
+ - Fallback: native-da-vinci
27
+ - Require Adapter: false
38
28
  ```
39
29
 
40
30
  ### Variant 2: Advisory Supervisor Review
@@ -46,33 +36,14 @@ Use when:
46
36
 
47
37
  ```md
48
38
  ## Visual Assist
49
- - Preferred adapters:
50
- - ui-ux-pro-max
51
- - frontend-skill
52
- - Design-supervisor reviewers:
53
- - frontend-skill
54
- - ui-ux-pro-max
55
- - Design-supervisor review mode:
56
- - screenshot-and-theme
57
- - Design-supervisor review inputs:
58
- - screenshots
59
- - pencil variables
60
- - visual thesis
61
- - content plan
62
- - interaction thesis
63
- - Scope:
64
- - visual contract refinement
65
- - tablet page composition
66
- - hierarchy and spacing
67
- - touch-aware motion guidance
68
- - anchor-surface composition
69
- - Pencil design refinement
70
- - Fallback:
71
- - native-da-vinci
72
- - Require Adapter:
73
- - false
74
- - Require Supervisor Review:
75
- - false
39
+ - Preferred adapters: ui-ux-pro-max, frontend-skill
40
+ - Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
41
+ - Design-supervisor review mode: screenshot-and-theme
42
+ - Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
43
+ - Scope: visual contract refinement, tablet page composition, hierarchy and spacing, touch-aware motion guidance, anchor-surface composition, Pencil design refinement
44
+ - Fallback: native-da-vinci
45
+ - Require Adapter: false
46
+ - Require Supervisor Review: false
76
47
  ```
77
48
 
78
49
  ### Variant 3: Required Supervisor Signoff
@@ -85,33 +56,14 @@ Use when:
85
56
 
86
57
  ```md
87
58
  ## Visual Assist
88
- - Preferred adapters:
89
- - frontend-skill
90
- - ui-ux-pro-max
91
- - Design-supervisor reviewers:
92
- - frontend-skill
93
- - ui-ux-pro-max
94
- - Design-supervisor review mode:
95
- - screenshot-and-theme
96
- - Design-supervisor review inputs:
97
- - screenshots
98
- - pencil variables
99
- - visual thesis
100
- - content plan
101
- - interaction thesis
102
- - Scope:
103
- - visual contract refinement
104
- - tablet page composition
105
- - hierarchy and spacing
106
- - touch-aware motion guidance
107
- - anchor-surface composition
108
- - Pencil design refinement
109
- - Fallback:
110
- - native-da-vinci
111
- - Require Adapter:
112
- - true
113
- - Require Supervisor Review:
114
- - true
59
+ - Preferred adapters: frontend-skill, ui-ux-pro-max
60
+ - Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
61
+ - Design-supervisor review mode: screenshot-and-theme
62
+ - Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
63
+ - Scope: visual contract refinement, tablet page composition, hierarchy and spacing, touch-aware motion guidance, anchor-surface composition, Pencil design refinement
64
+ - Fallback: native-da-vinci
65
+ - Require Adapter: true
66
+ - Require Supervisor Review: true
115
67
  ```
116
68
 
117
69
  Notes for all variants:
@@ -21,20 +21,10 @@ Use when:
21
21
 
22
22
  ```md
23
23
  ## Visual Assist
24
- - Preferred adapters:
25
- - ui-ux-pro-max
26
- - frontend-skill
27
- - Scope:
28
- - visual contract refinement
29
- - page composition
30
- - hierarchy and spacing
31
- - responsive motion guidance
32
- - anchor-surface composition
33
- - Pencil design refinement
34
- - Fallback:
35
- - native-da-vinci
36
- - Require Adapter:
37
- - false
24
+ - Preferred adapters: ui-ux-pro-max, frontend-skill
25
+ - Scope: visual contract refinement, page composition, hierarchy and spacing, responsive motion guidance, anchor-surface composition, Pencil design refinement
26
+ - Fallback: native-da-vinci
27
+ - Require Adapter: false
38
28
  ```
39
29
 
40
30
  ### Variant 2: Advisory Supervisor Review
@@ -46,33 +36,14 @@ Use when:
46
36
 
47
37
  ```md
48
38
  ## Visual Assist
49
- - Preferred adapters:
50
- - ui-ux-pro-max
51
- - frontend-skill
52
- - Design-supervisor reviewers:
53
- - frontend-skill
54
- - ui-ux-pro-max
55
- - Design-supervisor review mode:
56
- - screenshot-and-theme
57
- - Design-supervisor review inputs:
58
- - screenshots
59
- - pencil variables
60
- - visual thesis
61
- - content plan
62
- - interaction thesis
63
- - Scope:
64
- - visual contract refinement
65
- - page composition
66
- - hierarchy and spacing
67
- - responsive motion guidance
68
- - anchor-surface composition
69
- - Pencil design refinement
70
- - Fallback:
71
- - native-da-vinci
72
- - Require Adapter:
73
- - false
74
- - Require Supervisor Review:
75
- - false
39
+ - Preferred adapters: ui-ux-pro-max, frontend-skill
40
+ - Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
41
+ - Design-supervisor review mode: screenshot-and-theme
42
+ - Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
43
+ - Scope: visual contract refinement, page composition, hierarchy and spacing, responsive motion guidance, anchor-surface composition, Pencil design refinement
44
+ - Fallback: native-da-vinci
45
+ - Require Adapter: false
46
+ - Require Supervisor Review: false
76
47
  ```
77
48
 
78
49
  ### Variant 3: Required Supervisor Signoff
@@ -85,33 +56,14 @@ Use when:
85
56
 
86
57
  ```md
87
58
  ## Visual Assist
88
- - Preferred adapters:
89
- - frontend-skill
90
- - ui-ux-pro-max
91
- - Design-supervisor reviewers:
92
- - frontend-skill
93
- - ui-ux-pro-max
94
- - Design-supervisor review mode:
95
- - screenshot-and-theme
96
- - Design-supervisor review inputs:
97
- - screenshots
98
- - pencil variables
99
- - visual thesis
100
- - content plan
101
- - interaction thesis
102
- - Scope:
103
- - visual contract refinement
104
- - page composition
105
- - hierarchy and spacing
106
- - responsive motion guidance
107
- - anchor-surface composition
108
- - Pencil design refinement
109
- - Fallback:
110
- - native-da-vinci
111
- - Require Adapter:
112
- - true
113
- - Require Supervisor Review:
114
- - true
59
+ - Preferred adapters: frontend-skill, ui-ux-pro-max
60
+ - Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
61
+ - Design-supervisor review mode: screenshot-and-theme
62
+ - Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
63
+ - Scope: visual contract refinement, page composition, hierarchy and spacing, responsive motion guidance, anchor-surface composition, Pencil design refinement
64
+ - Fallback: native-da-vinci
65
+ - Require Adapter: true
66
+ - Require Supervisor Review: true
115
67
  ```
116
68
 
117
69
  Notes for all variants:
@@ -14,6 +14,8 @@ Common rule:
14
14
 
15
15
  - `intake` and `continue` should usually generate a main `$da-vinci ...` or `/da-vinci ...` prompt
16
16
  - they should not default the user into `build` unless implementation readiness is already clear
17
+ - `continue` should pick routes from artifact/checkpoint truth first, then use contextual deltas as auxiliary recovery notes
18
+ - if contextual deltas conflict with current artifacts, ignore them for routing and record the conflict
17
19
 
18
20
  ## 1. `greenfield-spec`
19
21
 
@@ -128,6 +128,7 @@ Before mapping or implementation are treated as safe, Da Vinci runs:
128
128
  - `design-source checkpoint`
129
129
  - `MCP runtime gate` when Pencil MCP is active
130
130
  - `da-vinci audit --mode integrity <project-path>` during active work
131
+ - checkpoint-adjacent `Context Delta` notes in existing change artifacts
131
132
 
132
133
  These checks verify that:
133
134
 
@@ -135,6 +136,7 @@ These checks verify that:
135
136
  - the active editor is the correct source
136
137
  - the shell-visible `.pen` exists
137
138
  - live snapshot and persisted snapshot are in sync
139
+ - recent execution context is recoverable without replacing artifact truth as the routing authority
138
140
 
139
141
  ### 6. Mapping
140
142
 
@@ -163,6 +165,10 @@ The workflow must not report `design complete`, `workflow complete`, or any equi
163
165
  - MCP runtime gate is acceptable when Pencil MCP was used
164
166
  - `da-vinci audit --mode completion --change <change-id> <project-path>` passes
165
167
 
168
+ Notes:
169
+
170
+ - contextual delta warnings improve resume quality but do not create new completion blockers by themselves
171
+
166
172
  ## Gates And Audits
167
173
 
168
174
  ### Design Checkpoint
@@ -217,6 +223,11 @@ Run during active work, especially after the first successful Pencil write.
217
223
 
218
224
  Run before any terminal completion claim.
219
225
 
226
+ Context-delta handling in audit:
227
+
228
+ - missing, incomplete, or status-mismatched contextual deltas are warning-level quality signals
229
+ - route and completion truth still come from artifacts, checkpoints, runtime gate, and filesystem audit
230
+
220
231
  ## Flow Diagram
221
232
 
222
233
  ```mermaid
@@ -54,6 +54,7 @@ $da-vinci use continue for <existing workflow state>
54
54
  - 已经存在 `DA-VINCI.md`
55
55
  - 已经存在 `.da-vinci/` 工件
56
56
  - 工作流中途暂停,需要恢复
57
+ - 选路应先基于工件/checkpoint 真相,再参考 Context Delta
57
58
 
58
59
  ### 直接运行某个 mode
59
60
 
@@ -152,6 +153,8 @@ $da-vinci use continue for this existing redesign-from-code workflow.
152
153
 
153
154
  Use the existing Da Vinci artifacts in this project.
154
155
  Existing code remains the behavior source of truth.
156
+ Determine route progression from current artifacts and checkpoints first.
157
+ Use contextual checkpoint deltas only as auxiliary recovery notes.
155
158
  Do not restart discovery unless an artifact is missing or clearly wrong.
156
159
  Do not stop at tasks.md.
157
160
  Continue into implementation and verification.
@@ -75,6 +75,7 @@ Da Vinci 期望它们遵循工作流状态。
75
75
 
76
76
  - 当前 workflow state
77
77
  - 缺失或薄弱工件
78
+ - 与当前工件一致时可引用最近 checkpoint 的 Context Delta 作为恢复补充
78
79
  - 一条主 continuation prompt
79
80
  - 必要时的保守 continuation prompt
80
81
 
@@ -82,6 +83,9 @@ Da Vinci 期望它们遵循工作流状态。
82
83
 
83
84
  - 如果设计已经有了,但 `tasks.md` 还没有,`continue` 通常应该把你送到 `tasks`
84
85
  - 这时候不应该把 `build` 当成同级主推荐
86
+ - 选路必须先基于工件和 checkpoint 真相,再参考 Context Delta
87
+ - 如果 Context Delta 与当前工件冲突,选路时应忽略冲突条目并记录冲突
88
+ - 当设计门禁还未收敛时,不应路由到 `build`:包括缺少 shell 可见的项目本地 `.pen`、Pencil session 仍为 active/unclosed、runtime 或 design-source checkpoint 仍是 `BLOCK`、或必需的 design-supervisor review 仍是 `BLOCK`/未接受
85
89
 
86
90
  ### `/dv:breakdown`
87
91
 
@@ -151,6 +155,12 @@ Da Vinci 期望它们遵循工作流状态。
151
155
 
152
156
  这一层才是真正的执行阶段。
153
157
 
158
+ 完成判定规则:
159
+
160
+ - `BUILD SUCCESSFUL` 只代表可编译,不代表 workflow 完成
161
+ - 只要 in-scope task groups 还没做完,就不能宣告 `design complete` 或 `workflow complete`
162
+ - 任何终态声明前都要运行 `da-vinci audit --mode completion --change <change-id> <project-path>` 并通过
163
+
154
164
  ### `/dv:verify`
155
165
 
156
166
  适合:
@@ -76,6 +76,8 @@ project/
76
76
 
77
77
  - `intake` 和 `continue` 一般应该回到主工作流入口
78
78
  - 不应默认导向 `build`,除非实现就绪已经非常明确
79
+ - `continue` 选路应先看工件/checkpoint 真相,再把 Context Delta 当作辅助恢复信息
80
+ - 如果 Context Delta 与当前工件冲突,选路时应忽略冲突条目并记录冲突
79
81
 
80
82
  ## 1. `greenfield-spec`
81
83