@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.
- package/CHANGELOG.md +24 -0
- package/README.md +40 -54
- package/README.zh-CN.md +34 -54
- package/SKILL.md +4 -0
- package/commands/claude/dv/build.md +6 -0
- package/commands/claude/dv/continue.md +5 -0
- package/commands/codex/prompts/dv-build.md +4 -0
- package/commands/codex/prompts/dv-continue.md +5 -0
- package/commands/gemini/dv/build.toml +4 -0
- package/commands/gemini/dv/continue.toml +5 -0
- package/docs/codex-natural-language-usage.md +3 -0
- package/docs/dv-command-reference.md +10 -0
- package/docs/mode-use-cases.md +2 -0
- package/docs/pencil-rendering-workflow.md +16 -0
- package/docs/prompt-entrypoints.md +7 -0
- package/docs/prompt-presets/README.md +2 -0
- package/docs/prompt-presets/desktop-app.md +4 -0
- package/docs/prompt-presets/mobile-app.md +4 -0
- package/docs/prompt-presets/tablet-app.md +4 -0
- package/docs/prompt-presets/web-app.md +4 -0
- package/docs/visual-adapters.md +24 -80
- package/docs/visual-assist-presets/desktop-app.md +20 -68
- package/docs/visual-assist-presets/mobile-app.md +20 -68
- package/docs/visual-assist-presets/tablet-app.md +20 -68
- package/docs/visual-assist-presets/web-app.md +20 -68
- package/docs/workflow-examples.md +2 -0
- package/docs/workflow-overview.md +11 -0
- package/docs/zh-CN/codex-natural-language-usage.md +3 -0
- package/docs/zh-CN/dv-command-reference.md +10 -0
- package/docs/zh-CN/mode-use-cases.md +2 -0
- package/docs/zh-CN/pencil-rendering-workflow.md +16 -0
- package/docs/zh-CN/prompt-entrypoints.md +7 -0
- package/docs/zh-CN/prompt-presets/README.md +2 -0
- package/docs/zh-CN/prompt-presets/desktop-app.md +3 -0
- package/docs/zh-CN/prompt-presets/mobile-app.md +3 -0
- package/docs/zh-CN/prompt-presets/tablet-app.md +3 -0
- package/docs/zh-CN/prompt-presets/web-app.md +3 -0
- package/docs/zh-CN/visual-adapters.md +24 -80
- package/docs/zh-CN/visual-assist-presets/desktop-app.md +20 -68
- package/docs/zh-CN/visual-assist-presets/mobile-app.md +20 -68
- package/docs/zh-CN/visual-assist-presets/tablet-app.md +20 -68
- package/docs/zh-CN/visual-assist-presets/web-app.md +20 -68
- package/docs/zh-CN/workflow-examples.md +2 -0
- package/docs/zh-CN/workflow-overview.md +11 -0
- package/examples/greenfield-spec-markupflow/DA-VINCI.md +4 -13
- package/lib/audit.js +455 -0
- package/lib/cli.js +6 -1
- package/lib/pencil-session.js +6 -0
- package/package.json +2 -1
- package/references/artifact-templates.md +38 -0
- package/references/checkpoints.md +16 -0
- package/references/prompt-recipes.md +5 -0
- package/scripts/test-audit-context-delta.js +446 -0
- package/scripts/test-mode-consistency.js +50 -0
- package/scripts/test-pencil-session.js +40 -0
- package/scripts/test-persistence-flows.js +31 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.1.21 - 2026-03-29
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- `scripts/test-mode-consistency.js` coverage for `build` completion-audit discipline and `continue` build-recommendation gate behavior
|
|
7
|
+
- `scripts/test-pencil-session.js` coverage requiring live snapshot input for `pencil-session end` unless `--force` is used
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- `da-vinci pencil-session end` now requires `--nodes-file` (and optional variables/version payload) unless `--force` is explicitly provided
|
|
11
|
+
- `build` prompts across Codex, Claude, and Gemini now treat compile success as non-terminal and require completion-audit pass before terminal completion claims
|
|
12
|
+
- `continue` prompts across Codex, Claude, and Gemini now block build recommendation while unresolved design gates exist
|
|
13
|
+
- command reference docs (English and Chinese) now reflect the stricter build/continue routing discipline and completion gate expectations
|
|
14
|
+
|
|
15
|
+
## v0.1.20 - 2026-03-29
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- `scripts/test-audit-context-delta.js` to cover context-delta expectation signals, status mismatch reporting, `supersedes` validation, and timestamp-normalized reference matching
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- continue prompt/docs behavior now consistently route from artifact and checkpoint truth first, with contextual deltas used only as auxiliary recovery context
|
|
22
|
+
- context-delta audit expectation signals now trigger on `## Checkpoint Status` and `## MCP Runtime Gate` (or explicit `Context Delta Required` opt-in) instead of broad `## Outcome` matching
|
|
23
|
+
- context-delta mismatch warnings now use neutral status-mismatch wording and include per-checkpoint status history
|
|
24
|
+
- context-delta `supersedes` fields are now validated against earlier entries in the same artifact, including parseable timestamp normalization
|
|
25
|
+
- README, Chinese README, workflow docs, prompt docs, and templates now document automatic context-delta checks plus optional explicit opt-in usage
|
|
26
|
+
|
|
3
27
|
## v0.1.19 - 2026-03-28
|
|
4
28
|
|
|
5
29
|
### Added
|
package/README.md
CHANGED
|
@@ -28,10 +28,17 @@ This workflow is intended for:
|
|
|
28
28
|
|
|
29
29
|
Latest published npm package:
|
|
30
30
|
|
|
31
|
-
- `@xenonbyte/da-vinci-workflow@0.1.
|
|
31
|
+
- `@xenonbyte/da-vinci-workflow@0.1.21`
|
|
32
32
|
|
|
33
33
|
Release highlights:
|
|
34
34
|
|
|
35
|
+
- `da-vinci pencil-session end` now requires live snapshot input (`--nodes-file`) unless `--force` is used, preventing silent session close while live MCP and disk are out of sync
|
|
36
|
+
- `build` route discipline now treats compile success as non-terminal and requires `da-vinci audit --mode completion --change <change-id> <project-path>` before reporting terminal completion
|
|
37
|
+
- `continue` route guidance now blocks `build` recommendation whenever core design gates remain unresolved (missing project-local `.pen`, active session, runtime/design-source BLOCK, or required design-supervisor BLOCK)
|
|
38
|
+
- added regression coverage for session-end sync guards and prompt-level build/continue gate discipline
|
|
39
|
+
- continue-routing and recovery guidance now consistently prioritize artifact/checkpoint truth first, with contextual deltas treated as auxiliary notes only
|
|
40
|
+
- context-delta audit now uses tighter expectation signals, status-mismatch wording, and `supersedes` validation with timestamp normalization
|
|
41
|
+
- context-delta expectation checks are now automatic for checkpoint-bearing artifacts and allow explicit opt-in (`Context Delta Required`) only for edge cases
|
|
35
42
|
- `design-supervisor review` is now a first-class final style-quality gate with explicit advisory versus required behavior controlled by `Require Supervisor Review`
|
|
36
43
|
- `Visual Assist` docs now explain gate order, gate judging criteria, and branching across screenshot review, layout hygiene, design checkpoint, and design-supervisor review
|
|
37
44
|
- `visual-assist-presets` for mobile, desktop, web, and tablet now ship three explicit variants: adapter-only, advisory reviewer, and required reviewer signoff in both English and Chinese
|
|
@@ -118,6 +125,9 @@ Route discipline:
|
|
|
118
125
|
- `intake` and `continue` should usually generate a main `$da-vinci ...` or `/da-vinci ...` prompt
|
|
119
126
|
- they should not default the user into `build`
|
|
120
127
|
- `build` remains a direct expert route for workflows that are already implementation-ready
|
|
128
|
+
- `continue` should determine route selection from artifact and checkpoint truth first
|
|
129
|
+
- contextual checkpoint deltas are auxiliary recovery notes only and must not override routing
|
|
130
|
+
- if contextual deltas conflict with current artifacts, ignore them for routing and record the conflict
|
|
121
131
|
|
|
122
132
|
## Visual Assist Quick Start
|
|
123
133
|
|
|
@@ -127,32 +137,14 @@ Recommended default:
|
|
|
127
137
|
|
|
128
138
|
```md
|
|
129
139
|
## Visual Assist
|
|
130
|
-
- Preferred adapters:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
- Design-supervisor
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
- Design-supervisor review inputs:
|
|
139
|
-
- screenshots
|
|
140
|
-
- pencil variables
|
|
141
|
-
- visual thesis
|
|
142
|
-
- content plan
|
|
143
|
-
- interaction thesis
|
|
144
|
-
- Scope:
|
|
145
|
-
- visual contract refinement
|
|
146
|
-
- page composition
|
|
147
|
-
- hierarchy and spacing
|
|
148
|
-
- anchor-surface composition
|
|
149
|
-
- Pencil design refinement
|
|
150
|
-
- Fallback:
|
|
151
|
-
- native-da-vinci
|
|
152
|
-
- Require Adapter:
|
|
153
|
-
- false
|
|
154
|
-
- Require Supervisor Review:
|
|
155
|
-
- false
|
|
140
|
+
- Preferred adapters: ui-ux-pro-max, frontend-skill
|
|
141
|
+
- Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
|
|
142
|
+
- Design-supervisor review mode: screenshot-and-theme
|
|
143
|
+
- Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
|
|
144
|
+
- Scope: visual contract refinement, page composition, hierarchy and spacing, anchor-surface composition, Pencil design refinement
|
|
145
|
+
- Fallback: native-da-vinci
|
|
146
|
+
- Require Adapter: false
|
|
147
|
+
- Require Supervisor Review: false
|
|
156
148
|
```
|
|
157
149
|
|
|
158
150
|
Use this when:
|
|
@@ -165,33 +157,14 @@ Quality-first redesign configuration:
|
|
|
165
157
|
|
|
166
158
|
```md
|
|
167
159
|
## Visual Assist
|
|
168
|
-
- Preferred adapters:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
- Design-supervisor
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
-
|
|
175
|
-
|
|
176
|
-
- Design-supervisor review inputs:
|
|
177
|
-
- screenshots
|
|
178
|
-
- pencil variables
|
|
179
|
-
- visual thesis
|
|
180
|
-
- content plan
|
|
181
|
-
- interaction thesis
|
|
182
|
-
- Scope:
|
|
183
|
-
- visual contract refinement
|
|
184
|
-
- page composition
|
|
185
|
-
- hierarchy and spacing
|
|
186
|
-
- motion guidance
|
|
187
|
-
- anchor-surface composition
|
|
188
|
-
- Pencil design refinement
|
|
189
|
-
- Fallback:
|
|
190
|
-
- native-da-vinci
|
|
191
|
-
- Require Adapter:
|
|
192
|
-
- true
|
|
193
|
-
- Require Supervisor Review:
|
|
194
|
-
- true
|
|
160
|
+
- Preferred adapters: frontend-skill, ui-ux-pro-max
|
|
161
|
+
- Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
|
|
162
|
+
- Design-supervisor review mode: screenshot-and-theme
|
|
163
|
+
- Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
|
|
164
|
+
- Scope: visual contract refinement, page composition, hierarchy and spacing, motion guidance, anchor-surface composition, Pencil design refinement
|
|
165
|
+
- Fallback: native-da-vinci
|
|
166
|
+
- Require Adapter: true
|
|
167
|
+
- Require Supervisor Review: true
|
|
195
168
|
```
|
|
196
169
|
|
|
197
170
|
Use this when:
|
|
@@ -340,6 +313,11 @@ Checkpoint outcomes:
|
|
|
340
313
|
- `WARN`
|
|
341
314
|
- `BLOCK`
|
|
342
315
|
|
|
316
|
+
Context delta notes:
|
|
317
|
+
|
|
318
|
+
- keep concise `Context Delta` entries inside existing change artifacts (`pencil-design.md`, `tasks.md`, `verification.md`)
|
|
319
|
+
- treat contextual deltas as recovery aids, not as a second source of phase truth
|
|
320
|
+
|
|
343
321
|
## Execution Policy
|
|
344
322
|
|
|
345
323
|
Da Vinci is `autonomous-by-default`.
|
|
@@ -355,6 +333,7 @@ Default behavior:
|
|
|
355
333
|
- `PASS` -> continue
|
|
356
334
|
- `WARN` -> record and continue
|
|
357
335
|
- `BLOCK` -> stop only when the blocker cannot be resolved from existing artifacts or local context
|
|
336
|
+
- missing or status-mismatched contextual deltas -> warn and continue
|
|
358
337
|
|
|
359
338
|
Typical stop conditions:
|
|
360
339
|
|
|
@@ -476,6 +455,13 @@ da-vinci uninstall --platform codex,claude,gemini
|
|
|
476
455
|
- `--mode integrity`: a mid-workflow filesystem-truth check for missing baseline artifacts, misplaced exports, polluted `.da-vinci/designs/`, and missing persisted `.pen` sources
|
|
477
456
|
- `--mode completion`: a strict pre-completion gate for one change scope; use `--change <change-id>` and treat any failure as blocking
|
|
478
457
|
|
|
458
|
+
Context-delta integration in audit:
|
|
459
|
+
|
|
460
|
+
- missing, incomplete, or status-mismatched contextual delta entries are warning-level signals
|
|
461
|
+
- these warnings improve resume quality but do not introduce new completion failure gates by themselves
|
|
462
|
+
- expectation checks are automatic when an artifact includes `## Checkpoint Status` or `## MCP Runtime Gate`; no manual toggle is needed in normal workflows
|
|
463
|
+
- only add `Context Delta Required: true` (also accepts `yes` / `on` / `1`) for artifacts that intentionally opt in without those headings
|
|
464
|
+
|
|
479
465
|
Both modes check the most common workflow-integrity failures in a project:
|
|
480
466
|
|
|
481
467
|
- missing standard Da Vinci artifacts
|
package/README.zh-CN.md
CHANGED
|
@@ -30,10 +30,17 @@ Da Vinci 是一个把产品需求一路推进到结构化规格、Pencil 设计
|
|
|
30
30
|
|
|
31
31
|
最新已发布 npm 包:
|
|
32
32
|
|
|
33
|
-
- `@xenonbyte/da-vinci-workflow@0.1.
|
|
33
|
+
- `@xenonbyte/da-vinci-workflow@0.1.21`
|
|
34
34
|
|
|
35
35
|
已发布版本重点:
|
|
36
36
|
|
|
37
|
+
- `da-vinci pencil-session end` 现在默认要求提供 live 快照输入(`--nodes-file`);只有显式 `--force` 才允许跳过,避免 live MCP 与磁盘未同步时被静默关闭
|
|
38
|
+
- `build` 路由现在明确:编译成功不等于流程完成;对外宣布终态前必须通过 `da-vinci audit --mode completion --change <change-id> <project-path>`
|
|
39
|
+
- `continue` 的推荐规则现在会拦截未过设计门禁时的 `build` 选路(缺少项目内 `.pen`、session 未关闭、runtime/design-source BLOCK、required design-supervisor BLOCK)
|
|
40
|
+
- 新增回归测试覆盖:session 结束同步防护,以及 build/continue 提示词级门禁约束
|
|
41
|
+
- `continue` 的选路与恢复规则现已统一:先看工件/checkpoint 真相,再把 Context Delta 当作辅助信息
|
|
42
|
+
- Context Delta 审计规则已强化:触发信号更精确、告警改为状态不一致语义,并补充 `supersedes` 校验与时间归一化
|
|
43
|
+
- checkpoint 相关工件默认自动启用 Context Delta 期望检查;只有少数无 checkpoint 标题的工件才需要显式 `Context Delta Required`
|
|
37
44
|
- `design-supervisor review` 现在成为正式的最终风格质量 gate,并通过 `Require Supervisor Review` 明确区分“建议性”与“硬门槛”
|
|
38
45
|
- `Visual Assist` 文档现在补全了 gate 顺序、每层 gate 怎么审,以及 screenshot review、layout hygiene、design checkpoint、design-supervisor review 之间的分叉规则
|
|
39
46
|
- 移动端、桌面端、Web、平板四套 `visual-assist-presets` 现在都提供三种明确变体:只有 adapter、reviewer 建议性审查、reviewer 硬签字,中英文一致
|
|
@@ -123,6 +130,9 @@ Da Vinci 当前支持五种模式:
|
|
|
123
130
|
- `intake` 和 `continue` 通常应该回到主工作流入口,即 `$da-vinci ...` 或 `/da-vinci ...`
|
|
124
131
|
- 它们不应该默认把用户直接导向 `build`
|
|
125
132
|
- `build` 仍然保留,但它是给已经实现就绪的高级直接入口
|
|
133
|
+
- `continue` 的选路应先看工件和 checkpoint 真相,再看上下文补充信息
|
|
134
|
+
- Context Delta 只用于恢复上下文,不是阶段判定真相源
|
|
135
|
+
- 如果 Context Delta 与当前工件冲突,应该忽略冲突条目并按工件真相继续
|
|
126
136
|
|
|
127
137
|
## Visual Assist 快速上手
|
|
128
138
|
|
|
@@ -132,32 +142,14 @@ Da Vinci 当前支持五种模式:
|
|
|
132
142
|
|
|
133
143
|
```md
|
|
134
144
|
## Visual Assist
|
|
135
|
-
- Preferred adapters:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
- Design-supervisor
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
-
|
|
142
|
-
|
|
143
|
-
- Design-supervisor review inputs:
|
|
144
|
-
- screenshots
|
|
145
|
-
- pencil variables
|
|
146
|
-
- visual thesis
|
|
147
|
-
- content plan
|
|
148
|
-
- interaction thesis
|
|
149
|
-
- Scope:
|
|
150
|
-
- visual contract refinement
|
|
151
|
-
- page composition
|
|
152
|
-
- hierarchy and spacing
|
|
153
|
-
- anchor-surface composition
|
|
154
|
-
- Pencil design refinement
|
|
155
|
-
- Fallback:
|
|
156
|
-
- native-da-vinci
|
|
157
|
-
- Require Adapter:
|
|
158
|
-
- false
|
|
159
|
-
- Require Supervisor Review:
|
|
160
|
-
- false
|
|
145
|
+
- Preferred adapters: ui-ux-pro-max, frontend-skill
|
|
146
|
+
- Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
|
|
147
|
+
- Design-supervisor review mode: screenshot-and-theme
|
|
148
|
+
- Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
|
|
149
|
+
- Scope: visual contract refinement, page composition, hierarchy and spacing, anchor-surface composition, Pencil design refinement
|
|
150
|
+
- Fallback: native-da-vinci
|
|
151
|
+
- Require Adapter: false
|
|
152
|
+
- Require Supervisor Review: false
|
|
161
153
|
```
|
|
162
154
|
|
|
163
155
|
适用场景:
|
|
@@ -170,33 +162,14 @@ Da Vinci 当前支持五种模式:
|
|
|
170
162
|
|
|
171
163
|
```md
|
|
172
164
|
## Visual Assist
|
|
173
|
-
- Preferred adapters:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
- Design-supervisor
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
-
|
|
180
|
-
|
|
181
|
-
- Design-supervisor review inputs:
|
|
182
|
-
- screenshots
|
|
183
|
-
- pencil variables
|
|
184
|
-
- visual thesis
|
|
185
|
-
- content plan
|
|
186
|
-
- interaction thesis
|
|
187
|
-
- Scope:
|
|
188
|
-
- visual contract refinement
|
|
189
|
-
- page composition
|
|
190
|
-
- hierarchy and spacing
|
|
191
|
-
- motion guidance
|
|
192
|
-
- anchor-surface composition
|
|
193
|
-
- Pencil design refinement
|
|
194
|
-
- Fallback:
|
|
195
|
-
- native-da-vinci
|
|
196
|
-
- Require Adapter:
|
|
197
|
-
- true
|
|
198
|
-
- Require Supervisor Review:
|
|
199
|
-
- true
|
|
165
|
+
- Preferred adapters: frontend-skill, ui-ux-pro-max
|
|
166
|
+
- Design-supervisor reviewers: frontend-skill, ui-ux-pro-max
|
|
167
|
+
- Design-supervisor review mode: screenshot-and-theme
|
|
168
|
+
- Design-supervisor review inputs: screenshots, pencil variables, visual thesis, content plan, interaction thesis
|
|
169
|
+
- Scope: visual contract refinement, page composition, hierarchy and spacing, motion guidance, anchor-surface composition, Pencil design refinement
|
|
170
|
+
- Fallback: native-da-vinci
|
|
171
|
+
- Require Adapter: true
|
|
172
|
+
- Require Supervisor Review: true
|
|
200
173
|
```
|
|
201
174
|
|
|
202
175
|
适用场景:
|
|
@@ -403,6 +376,13 @@ da-vinci uninstall --platform codex,claude,gemini
|
|
|
403
376
|
- `--mode integrity`:适合在工作进行中检查文件系统真相,比如基础工件缺失、导出路径错误、`.da-vinci/designs/` 被污染、项目内 `.pen` 没落盘
|
|
404
377
|
- `--mode completion`:适合在宣称完成前做严格检查;配合 `--change <change-id>` 使用,任何失败都应视为阻断
|
|
405
378
|
|
|
379
|
+
Context Delta 与 audit 的关系:
|
|
380
|
+
|
|
381
|
+
- Context Delta 缺失、字段不完整或与最新 checkpoint 不一致时,属于告警(`WARN`)
|
|
382
|
+
- 这些告警用于提升续跑质量,不应单独变成新的 completion 失败门槛
|
|
383
|
+
- 当工件包含 `## Checkpoint Status` 或 `## MCP Runtime Gate` 时,期望检查会自动启用,正常流程不需要手动开关
|
|
384
|
+
- 只有在不包含这些标题但仍想启用检查时,才需要写 `Context Delta Required: true`(也支持 `yes` / `on` / `1`)
|
|
385
|
+
|
|
406
386
|
两种模式都会检查项目里最常见的工作流完整性问题:
|
|
407
387
|
|
|
408
388
|
- 标准 Da Vinci 工件缺失
|
package/SKILL.md
CHANGED
|
@@ -136,8 +136,11 @@ Use these helper actions when the user needs help entering or resuming the workf
|
|
|
136
136
|
- detected workflow state
|
|
137
137
|
- gaps or blockers
|
|
138
138
|
- one executable continuation prompt
|
|
139
|
+
- contextual recovery notes from recent checkpoint deltas when consistent with current artifacts
|
|
139
140
|
- do not restart discovery if the artifacts already provide enough truth
|
|
140
141
|
- do not default to `build` unless the project is clearly implementation-ready
|
|
142
|
+
- determine route selection from artifact and checkpoint truth first; contextual deltas are auxiliary and must not override routing
|
|
143
|
+
- if contextual deltas conflict with current artifacts, ignore them for routing and record the conflict
|
|
141
144
|
|
|
142
145
|
## V2 Mode Selection
|
|
143
146
|
|
|
@@ -731,6 +734,7 @@ Checkpoint handling:
|
|
|
731
734
|
- `PASS`: continue automatically
|
|
732
735
|
- `WARN`: record the issue and continue automatically
|
|
733
736
|
- `BLOCK`: stop, report the blocker, and ask only if the blocker cannot be resolved from existing artifacts
|
|
737
|
+
- contextual-delta issues: warn and continue; do not treat missing/stale contextual notes as standalone blockers
|
|
734
738
|
|
|
735
739
|
## Drift Policy
|
|
736
740
|
|
|
@@ -15,3 +15,9 @@ Focus on:
|
|
|
15
15
|
During implementation:
|
|
16
16
|
- run `execution checkpoint` after each top-level task group
|
|
17
17
|
- update source artifacts before continuing if drift is found
|
|
18
|
+
|
|
19
|
+
Completion discipline:
|
|
20
|
+
- treat `BUILD SUCCESSFUL` as compile-only evidence, not workflow completion
|
|
21
|
+
- do not report `design complete` or `workflow complete` while in-scope task groups remain unfinished
|
|
22
|
+
- before any terminal completion claim, require `da-vinci audit --mode completion --change <change-id> <project-path>` to pass
|
|
23
|
+
- if completion audit fails, continue from the minimal unfinished stage instead of exiting
|
|
@@ -15,12 +15,17 @@ Focus on:
|
|
|
15
15
|
Output should include:
|
|
16
16
|
- detected workflow state
|
|
17
17
|
- missing or weak artifacts
|
|
18
|
+
- contextual recovery notes from recent checkpoint deltas when they are consistent with current artifacts
|
|
18
19
|
- one primary `/da-vinci continue ...` prompt
|
|
19
20
|
- one more conservative continuation prompt when useful
|
|
20
21
|
|
|
21
22
|
Route discipline:
|
|
22
23
|
- do not restart discovery if the current artifacts already contain enough truth
|
|
24
|
+
- determine route selection from artifact and checkpoint truth before reading contextual deltas
|
|
25
|
+
- use contextual deltas as auxiliary recovery context only; they must not override route selection
|
|
26
|
+
- if contextual deltas conflict with current artifacts, ignore them for routing and call out the conflict
|
|
23
27
|
- do not default the user into `/dv:build` unless the project is clearly implementation-ready
|
|
24
28
|
- if design artifacts exist but `tasks.md` does not, prefer a continuation prompt that moves into `/dv:tasks`
|
|
25
29
|
- only prefer `/dv:build` once task generation and implementation readiness are already clear
|
|
30
|
+
- do not route into `/dv:build` when any design gate is unresolved: missing shell-visible project-local `.pen`, active/unclosed Pencil session, runtime/design-source checkpoint still BLOCK, or required design-supervisor review still BLOCK/unaccepted
|
|
26
31
|
- continuation prompts should usually target the main workflow entry so Da Vinci can resume the full state machine
|
|
@@ -11,3 +11,7 @@ Implementation rules:
|
|
|
11
11
|
- requirements decide behavior
|
|
12
12
|
- Pencil decides presentation
|
|
13
13
|
- run `execution checkpoint` after each top-level task group
|
|
14
|
+
- treat `BUILD SUCCESSFUL` as compile-only evidence, not workflow completion
|
|
15
|
+
- do not report `design complete` or `workflow complete` while in-scope task groups remain unfinished
|
|
16
|
+
- before any terminal completion claim, require `da-vinci audit --mode completion --change <change-id> <project-path>` to pass
|
|
17
|
+
- if completion audit fails, continue from the minimal unfinished stage instead of exiting
|
|
@@ -15,12 +15,17 @@ Goal:
|
|
|
15
15
|
Output should include:
|
|
16
16
|
- detected workflow state
|
|
17
17
|
- missing or weak artifacts
|
|
18
|
+
- contextual recovery notes from recent checkpoint deltas when they are consistent with current artifacts
|
|
18
19
|
- one primary `$da-vinci continue ...` prompt
|
|
19
20
|
- one more conservative continuation prompt when useful
|
|
20
21
|
|
|
21
22
|
Route discipline:
|
|
22
23
|
- do not restart discovery if the current artifacts already contain enough truth
|
|
24
|
+
- determine route selection from artifact and checkpoint truth before reading contextual deltas
|
|
25
|
+
- use contextual deltas as auxiliary recovery context only; they must not override route selection
|
|
26
|
+
- if contextual deltas conflict with current artifacts, ignore them for routing and call out the conflict
|
|
23
27
|
- do not default the user into `/prompts:dv-build` unless the project is clearly implementation-ready
|
|
24
28
|
- if design artifacts exist but `tasks.md` does not, prefer a continuation prompt that moves into `/prompts:dv-tasks`
|
|
25
29
|
- only prefer `/prompts:dv-build` once task generation and implementation readiness are already clear
|
|
30
|
+
- do not route into `/prompts:dv-build` when any design gate is unresolved: missing shell-visible project-local `.pen`, active/unclosed Pencil session, runtime/design-source checkpoint still BLOCK, or required design-supervisor review still BLOCK/unaccepted
|
|
26
31
|
- continuation prompts should usually target the main workflow entry so Da Vinci can resume the full state machine
|
|
@@ -10,4 +10,8 @@ Implementation rules:
|
|
|
10
10
|
- requirements decide behavior
|
|
11
11
|
- Pencil decides presentation
|
|
12
12
|
- run `execution checkpoint` after each top-level task group
|
|
13
|
+
- treat `BUILD SUCCESSFUL` as compile-only evidence, not workflow completion
|
|
14
|
+
- do not report `design complete` or `workflow complete` while in-scope task groups remain unfinished
|
|
15
|
+
- before any terminal completion claim, require `da-vinci audit --mode completion --change <change-id> <project-path>` to pass
|
|
16
|
+
- if completion audit fails, continue from the minimal unfinished stage instead of exiting
|
|
13
17
|
"""
|
|
@@ -14,13 +14,18 @@ Focus on:
|
|
|
14
14
|
Output should include:
|
|
15
15
|
- detected workflow state
|
|
16
16
|
- missing or weak artifacts
|
|
17
|
+
- contextual recovery notes from recent checkpoint deltas when they are consistent with current artifacts
|
|
17
18
|
- one primary `/da-vinci continue ...` prompt
|
|
18
19
|
- one more conservative continuation prompt when useful
|
|
19
20
|
|
|
20
21
|
Route discipline:
|
|
21
22
|
- do not restart discovery if the current artifacts already contain enough truth
|
|
23
|
+
- determine route selection from artifact and checkpoint truth before reading contextual deltas
|
|
24
|
+
- use contextual deltas as auxiliary recovery context only; they must not override route selection
|
|
25
|
+
- if contextual deltas conflict with current artifacts, ignore them for routing and call out the conflict
|
|
22
26
|
- do not default the user into `/dv:build` unless the project is clearly implementation-ready
|
|
23
27
|
- if design artifacts exist but `tasks.md` does not, prefer a continuation prompt that moves into `/dv:tasks`
|
|
24
28
|
- only prefer `/dv:build` once task generation and implementation readiness are already clear
|
|
29
|
+
- do not route into `/dv:build` when any design gate is unresolved: missing shell-visible project-local `.pen`, active/unclosed Pencil session, runtime/design-source checkpoint still BLOCK, or required design-supervisor review still BLOCK/unaccepted
|
|
25
30
|
- continuation prompts should usually target the main workflow entry so Da Vinci can resume the full state machine
|
|
26
31
|
"""
|
|
@@ -53,6 +53,7 @@ Use this when:
|
|
|
53
53
|
- `DA-VINCI.md` already exists
|
|
54
54
|
- `.da-vinci/` artifacts already exist
|
|
55
55
|
- the workflow paused and needs to resume
|
|
56
|
+
- route selection should come from artifact/checkpoint truth first, then contextual deltas
|
|
56
57
|
|
|
57
58
|
### Run a mode directly
|
|
58
59
|
|
|
@@ -151,6 +152,8 @@ $da-vinci use continue for this existing redesign-from-code workflow.
|
|
|
151
152
|
|
|
152
153
|
Use the existing Da Vinci artifacts in this project.
|
|
153
154
|
Existing code remains the behavior source of truth.
|
|
155
|
+
Determine route progression from current artifacts and checkpoints first.
|
|
156
|
+
Use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
154
157
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
155
158
|
Do not stop at tasks.md.
|
|
156
159
|
Continue into implementation and verification.
|
|
@@ -73,6 +73,7 @@ Outputs:
|
|
|
73
73
|
|
|
74
74
|
- detected workflow state
|
|
75
75
|
- missing or weak artifacts
|
|
76
|
+
- contextual recovery notes from recent checkpoint deltas when consistent with current artifacts
|
|
76
77
|
- one primary continuation prompt
|
|
77
78
|
- one conservative continuation prompt when useful
|
|
78
79
|
|
|
@@ -80,6 +81,9 @@ Important continuation rule:
|
|
|
80
81
|
|
|
81
82
|
- if design exists but `tasks.md` does not, continuation should usually point to `tasks`
|
|
82
83
|
- it should not promote `build` as a co-equal next step yet
|
|
84
|
+
- route selection should be derived from artifact and checkpoint truth before contextual deltas are consulted
|
|
85
|
+
- if contextual deltas conflict with current artifacts, ignore those deltas for route selection and report the conflict
|
|
86
|
+
- do not route into `build` while design gates are unresolved: missing shell-visible project-local `.pen`, active/unclosed Pencil session, runtime or design-source checkpoint still `BLOCK`, or required design-supervisor review still `BLOCK`/unaccepted
|
|
83
87
|
|
|
84
88
|
### `/dv:breakdown`
|
|
85
89
|
|
|
@@ -151,6 +155,12 @@ Creates or updates:
|
|
|
151
155
|
|
|
152
156
|
This is the execution stage.
|
|
153
157
|
|
|
158
|
+
Completion discipline:
|
|
159
|
+
|
|
160
|
+
- treat `BUILD SUCCESSFUL` as compile-only evidence
|
|
161
|
+
- do not claim `design complete` or `workflow complete` while in-scope task groups remain
|
|
162
|
+
- run `da-vinci audit --mode completion --change <change-id> <project-path>` before any terminal completion claim
|
|
163
|
+
|
|
154
164
|
### `/dv:verify`
|
|
155
165
|
|
|
156
166
|
Use when:
|
package/docs/mode-use-cases.md
CHANGED
|
@@ -82,6 +82,8 @@ Common rule:
|
|
|
82
82
|
|
|
83
83
|
- `intake` and `continue` should normally lead back to the main workflow entry
|
|
84
84
|
- they should not default the user into `build` unless the project is already implementation-ready
|
|
85
|
+
- `continue` should determine route selection from artifact/checkpoint truth first, then use contextual deltas as auxiliary recovery notes
|
|
86
|
+
- if contextual deltas conflict with current artifacts, ignore those deltas for routing and record the conflict
|
|
85
87
|
|
|
86
88
|
---
|
|
87
89
|
|
|
@@ -63,6 +63,14 @@ When the project already has a registered `.pen`:
|
|
|
63
63
|
|
|
64
64
|
Da Vinci does not assume live MCP edits were flushed automatically.
|
|
65
65
|
|
|
66
|
+
## Continuation Recovery Rule
|
|
67
|
+
|
|
68
|
+
When resuming from existing artifacts:
|
|
69
|
+
|
|
70
|
+
- choose routing from current artifact and checkpoint truth first
|
|
71
|
+
- use checkpoint-adjacent `Context Delta` notes only as auxiliary recovery context
|
|
72
|
+
- if a contextual delta conflicts with current artifact/checkpoint truth, ignore that conflicting entry and record the conflict before continuing
|
|
73
|
+
|
|
66
74
|
## Persistence Rule
|
|
67
75
|
|
|
68
76
|
Da Vinci does not treat headless interactive `save()` as authoritative persistence truth.
|
|
@@ -227,6 +235,14 @@ da-vinci audit --mode completion --change <change-id> <project-path>
|
|
|
227
235
|
|
|
228
236
|
This audit now also expects `.da-vinci/state/pencil-session.json` to reflect the latest persisted `.pen` hash.
|
|
229
237
|
|
|
238
|
+
Context-delta audit expectations are warning-only:
|
|
239
|
+
|
|
240
|
+
- missing concrete context deltas for checkpoint-bearing artifacts -> `WARN`
|
|
241
|
+
- incomplete context-delta entries -> `WARN`
|
|
242
|
+
- context-delta status mismatch with current checkpoints -> `WARN`
|
|
243
|
+
- a mismatch can indicate stale checkpoint status or stale context-delta notes
|
|
244
|
+
- these warnings improve resume quality but do not create standalone completion blockers
|
|
245
|
+
|
|
230
246
|
## Preferred Command Chain
|
|
231
247
|
|
|
232
248
|
Typical autonomous chain:
|
|
@@ -58,9 +58,16 @@ What it should output:
|
|
|
58
58
|
|
|
59
59
|
- detected workflow state
|
|
60
60
|
- missing or weak artifacts
|
|
61
|
+
- contextual recovery notes from recent checkpoint deltas when available
|
|
61
62
|
- one primary continuation prompt
|
|
62
63
|
- one more conservative continuation prompt when useful
|
|
63
64
|
|
|
65
|
+
Continuation precedence:
|
|
66
|
+
|
|
67
|
+
- determine routing from artifact and checkpoint truth first
|
|
68
|
+
- use contextual checkpoint deltas only as auxiliary recovery context
|
|
69
|
+
- if contextual deltas conflict with current artifacts, ignore them for routing and note the conflict
|
|
70
|
+
|
|
64
71
|
## Default Flow
|
|
65
72
|
|
|
66
73
|
Use this default sequence:
|
|
@@ -116,5 +116,7 @@ $da-vinci use continue for this existing overhaul-from-code workflow.
|
|
|
116
116
|
|
|
117
117
|
Use the existing Da Vinci artifacts.
|
|
118
118
|
Detect whether the workflow should return to breakdown, continue with design, generate tasks, continue implementation, or verify drift.
|
|
119
|
+
Determine routing from artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
120
|
+
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
119
121
|
Prefer the artifact-backed next safe stage instead of restarting the overhaul from scratch.
|
|
120
122
|
```
|
|
@@ -75,6 +75,8 @@ $da-vinci use continue for this existing overhaul-from-code desktop workflow.
|
|
|
75
75
|
|
|
76
76
|
Use the existing Da Vinci artifacts.
|
|
77
77
|
Detect whether the workflow should return to breakdown, continue with design, generate tasks, continue implementation, or verify drift.
|
|
78
|
+
Determine routing from artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
79
|
+
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
78
80
|
Prefer the artifact-backed next safe stage instead of restarting the overhaul from scratch.
|
|
79
81
|
```
|
|
80
82
|
|
|
@@ -187,6 +189,8 @@ $da-vinci use continue for this existing desktop-product redesign workflow.
|
|
|
187
189
|
|
|
188
190
|
Use the existing Da Vinci artifacts in this project.
|
|
189
191
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
192
|
+
Determine continuation routing from current artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
193
|
+
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
190
194
|
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci pencil-session persist --project <project-path> --pen <path> ...` after material live edits; fall back to the lower-level `write-pen + check-pen-sync` path only when the session wrapper cannot be used.
|
|
191
195
|
If the redesign is complex, continue from the approved anchor surfaces instead of restarting broad scaffolding.
|
|
192
196
|
If Pencil MCP is active and this session performs new Pencil writes, rerun the MCP runtime gate and record the refreshed result in `pencil-design.md`.
|
|
@@ -75,6 +75,8 @@ $da-vinci use continue for this existing overhaul-from-code mobile workflow.
|
|
|
75
75
|
|
|
76
76
|
Use the existing Da Vinci artifacts.
|
|
77
77
|
Detect whether the workflow should return to breakdown, continue with design, generate tasks, continue implementation, or verify drift.
|
|
78
|
+
Determine routing from artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
79
|
+
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
78
80
|
Prefer the artifact-backed next safe stage instead of restarting the overhaul from scratch.
|
|
79
81
|
```
|
|
80
82
|
|
|
@@ -195,6 +197,8 @@ $da-vinci use continue for this existing mobile-app redesign workflow.
|
|
|
195
197
|
|
|
196
198
|
Use the existing Da Vinci artifacts in this project.
|
|
197
199
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
200
|
+
Determine continuation routing from current artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
201
|
+
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
198
202
|
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci pencil-session persist --project <project-path> --pen <path> ...` after material live edits; fall back to the lower-level `write-pen + check-pen-sync` path only when the session wrapper cannot be used.
|
|
199
203
|
If the redesign is complex, keep the anchor-first flow until the design checkpoint passes.
|
|
200
204
|
If Pencil MCP is active and this session performs new Pencil writes, rerun the MCP runtime gate and record the refreshed result in `pencil-design.md`.
|
|
@@ -75,6 +75,8 @@ $da-vinci use continue for this existing overhaul-from-code tablet workflow.
|
|
|
75
75
|
|
|
76
76
|
Use the existing Da Vinci artifacts.
|
|
77
77
|
Detect whether the workflow should return to breakdown, continue with design, generate tasks, continue implementation, or verify drift.
|
|
78
|
+
Determine routing from artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
79
|
+
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
78
80
|
Prefer the artifact-backed next safe stage instead of restarting the overhaul from scratch.
|
|
79
81
|
```
|
|
80
82
|
|
|
@@ -187,6 +189,8 @@ $da-vinci use continue for this existing tablet-product redesign workflow.
|
|
|
187
189
|
|
|
188
190
|
Use the existing Da Vinci artifacts in this project.
|
|
189
191
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
192
|
+
Determine continuation routing from current artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
193
|
+
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
190
194
|
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci pencil-session persist --project <project-path> --pen <path> ...` after material live edits; fall back to the lower-level `write-pen + check-pen-sync` path only when the session wrapper cannot be used.
|
|
191
195
|
If the redesign is complex, continue from the approved anchor surfaces instead of restarting broad scaffolding.
|
|
192
196
|
If Pencil MCP is active and this session performs new Pencil writes, rerun the MCP runtime gate and record the refreshed result in `pencil-design.md`.
|
|
@@ -75,6 +75,8 @@ $da-vinci use continue for this existing overhaul-from-code web workflow.
|
|
|
75
75
|
|
|
76
76
|
Use the existing Da Vinci artifacts.
|
|
77
77
|
Detect whether the workflow should return to breakdown, continue with design, generate tasks, continue implementation, or verify drift.
|
|
78
|
+
Determine routing from artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
79
|
+
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
78
80
|
Prefer the artifact-backed next safe stage instead of restarting the overhaul from scratch.
|
|
79
81
|
```
|
|
80
82
|
|
|
@@ -188,6 +190,8 @@ $da-vinci use continue for this existing web-product redesign workflow.
|
|
|
188
190
|
|
|
189
191
|
Use the existing Da Vinci artifacts in this project.
|
|
190
192
|
Do not restart discovery unless an artifact is missing or clearly wrong.
|
|
193
|
+
Determine continuation routing from current artifact and checkpoint truth first, then use contextual checkpoint deltas only as auxiliary recovery notes.
|
|
194
|
+
If a contextual delta conflicts with current artifacts, ignore that delta and record the conflict before continuing.
|
|
191
195
|
Keep the registered project-local Pencil source under .da-vinci/designs/ as the design source of truth. If the resumed session will perform Pencil edits, require `da-vinci pencil-session begin --project <project-path> --pen <path>`, then use `da-vinci pencil-session persist --project <project-path> --pen <path> ...` after material live edits; fall back to the lower-level `write-pen + check-pen-sync` path only when the session wrapper cannot be used.
|
|
192
196
|
If the redesign is complex, continue from the approved anchor surfaces instead of restarting broad scaffolding.
|
|
193
197
|
If Pencil MCP is active and this session performs new Pencil writes, rerun the MCP runtime gate and record the refreshed result in `pencil-design.md`.
|