@xenonbyte/da-vinci-workflow 0.1.19 → 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.
- package/CHANGELOG.md +12 -0
- package/README.md +20 -1
- package/README.zh-CN.md +14 -1
- package/SKILL.md +4 -0
- package/commands/claude/dv/continue.md +4 -0
- package/commands/codex/prompts/dv-continue.md +4 -0
- package/commands/gemini/dv/continue.toml +4 -0
- package/docs/codex-natural-language-usage.md +3 -0
- package/docs/dv-command-reference.md +3 -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/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 +3 -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/workflow-examples.md +2 -0
- package/docs/zh-CN/workflow-overview.md +11 -0
- package/lib/audit.js +455 -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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.1.20 - 2026-03-29
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- `scripts/test-audit-context-delta.js` to cover context-delta expectation signals, status mismatch reporting, `supersedes` validation, and timestamp-normalized reference matching
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- continue prompt/docs behavior now consistently route from artifact and checkpoint truth first, with contextual deltas used only as auxiliary recovery context
|
|
10
|
+
- 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
|
|
11
|
+
- context-delta mismatch warnings now use neutral status-mismatch wording and include per-checkpoint status history
|
|
12
|
+
- context-delta `supersedes` fields are now validated against earlier entries in the same artifact, including parseable timestamp normalization
|
|
13
|
+
- README, Chinese README, workflow docs, prompt docs, and templates now document automatic context-delta checks plus optional explicit opt-in usage
|
|
14
|
+
|
|
3
15
|
## v0.1.19 - 2026-03-28
|
|
4
16
|
|
|
5
17
|
### Added
|
package/README.md
CHANGED
|
@@ -28,10 +28,13 @@ 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.20`
|
|
32
32
|
|
|
33
33
|
Release highlights:
|
|
34
34
|
|
|
35
|
+
- continue-routing and recovery guidance now consistently prioritize artifact/checkpoint truth first, with contextual deltas treated as auxiliary notes only
|
|
36
|
+
- context-delta audit now uses tighter expectation signals, status-mismatch wording, and `supersedes` validation with timestamp normalization
|
|
37
|
+
- context-delta expectation checks are now automatic for checkpoint-bearing artifacts and allow explicit opt-in (`Context Delta Required`) only for edge cases
|
|
35
38
|
- `design-supervisor review` is now a first-class final style-quality gate with explicit advisory versus required behavior controlled by `Require Supervisor Review`
|
|
36
39
|
- `Visual Assist` docs now explain gate order, gate judging criteria, and branching across screenshot review, layout hygiene, design checkpoint, and design-supervisor review
|
|
37
40
|
- `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 +121,9 @@ Route discipline:
|
|
|
118
121
|
- `intake` and `continue` should usually generate a main `$da-vinci ...` or `/da-vinci ...` prompt
|
|
119
122
|
- they should not default the user into `build`
|
|
120
123
|
- `build` remains a direct expert route for workflows that are already implementation-ready
|
|
124
|
+
- `continue` should determine route selection from artifact and checkpoint truth first
|
|
125
|
+
- contextual checkpoint deltas are auxiliary recovery notes only and must not override routing
|
|
126
|
+
- if contextual deltas conflict with current artifacts, ignore them for routing and record the conflict
|
|
121
127
|
|
|
122
128
|
## Visual Assist Quick Start
|
|
123
129
|
|
|
@@ -340,6 +346,11 @@ Checkpoint outcomes:
|
|
|
340
346
|
- `WARN`
|
|
341
347
|
- `BLOCK`
|
|
342
348
|
|
|
349
|
+
Context delta notes:
|
|
350
|
+
|
|
351
|
+
- keep concise `Context Delta` entries inside existing change artifacts (`pencil-design.md`, `tasks.md`, `verification.md`)
|
|
352
|
+
- treat contextual deltas as recovery aids, not as a second source of phase truth
|
|
353
|
+
|
|
343
354
|
## Execution Policy
|
|
344
355
|
|
|
345
356
|
Da Vinci is `autonomous-by-default`.
|
|
@@ -355,6 +366,7 @@ Default behavior:
|
|
|
355
366
|
- `PASS` -> continue
|
|
356
367
|
- `WARN` -> record and continue
|
|
357
368
|
- `BLOCK` -> stop only when the blocker cannot be resolved from existing artifacts or local context
|
|
369
|
+
- missing or status-mismatched contextual deltas -> warn and continue
|
|
358
370
|
|
|
359
371
|
Typical stop conditions:
|
|
360
372
|
|
|
@@ -476,6 +488,13 @@ da-vinci uninstall --platform codex,claude,gemini
|
|
|
476
488
|
- `--mode integrity`: a mid-workflow filesystem-truth check for missing baseline artifacts, misplaced exports, polluted `.da-vinci/designs/`, and missing persisted `.pen` sources
|
|
477
489
|
- `--mode completion`: a strict pre-completion gate for one change scope; use `--change <change-id>` and treat any failure as blocking
|
|
478
490
|
|
|
491
|
+
Context-delta integration in audit:
|
|
492
|
+
|
|
493
|
+
- missing, incomplete, or status-mismatched contextual delta entries are warning-level signals
|
|
494
|
+
- these warnings improve resume quality but do not introduce new completion failure gates by themselves
|
|
495
|
+
- expectation checks are automatic when an artifact includes `## Checkpoint Status` or `## MCP Runtime Gate`; no manual toggle is needed in normal workflows
|
|
496
|
+
- only add `Context Delta Required: true` (also accepts `yes` / `on` / `1`) for artifacts that intentionally opt in without those headings
|
|
497
|
+
|
|
479
498
|
Both modes check the most common workflow-integrity failures in a project:
|
|
480
499
|
|
|
481
500
|
- missing standard Da Vinci artifacts
|
package/README.zh-CN.md
CHANGED
|
@@ -30,10 +30,13 @@ Da Vinci 是一个把产品需求一路推进到结构化规格、Pencil 设计
|
|
|
30
30
|
|
|
31
31
|
最新已发布 npm 包:
|
|
32
32
|
|
|
33
|
-
- `@xenonbyte/da-vinci-workflow@0.1.
|
|
33
|
+
- `@xenonbyte/da-vinci-workflow@0.1.20`
|
|
34
34
|
|
|
35
35
|
已发布版本重点:
|
|
36
36
|
|
|
37
|
+
- `continue` 的选路与恢复规则现已统一:先看工件/checkpoint 真相,再把 Context Delta 当作辅助信息
|
|
38
|
+
- Context Delta 审计规则已强化:触发信号更精确、告警改为状态不一致语义,并补充 `supersedes` 校验与时间归一化
|
|
39
|
+
- checkpoint 相关工件默认自动启用 Context Delta 期望检查;只有少数无 checkpoint 标题的工件才需要显式 `Context Delta Required`
|
|
37
40
|
- `design-supervisor review` 现在成为正式的最终风格质量 gate,并通过 `Require Supervisor Review` 明确区分“建议性”与“硬门槛”
|
|
38
41
|
- `Visual Assist` 文档现在补全了 gate 顺序、每层 gate 怎么审,以及 screenshot review、layout hygiene、design checkpoint、design-supervisor review 之间的分叉规则
|
|
39
42
|
- 移动端、桌面端、Web、平板四套 `visual-assist-presets` 现在都提供三种明确变体:只有 adapter、reviewer 建议性审查、reviewer 硬签字,中英文一致
|
|
@@ -123,6 +126,9 @@ Da Vinci 当前支持五种模式:
|
|
|
123
126
|
- `intake` 和 `continue` 通常应该回到主工作流入口,即 `$da-vinci ...` 或 `/da-vinci ...`
|
|
124
127
|
- 它们不应该默认把用户直接导向 `build`
|
|
125
128
|
- `build` 仍然保留,但它是给已经实现就绪的高级直接入口
|
|
129
|
+
- `continue` 的选路应先看工件和 checkpoint 真相,再看上下文补充信息
|
|
130
|
+
- Context Delta 只用于恢复上下文,不是阶段判定真相源
|
|
131
|
+
- 如果 Context Delta 与当前工件冲突,应该忽略冲突条目并按工件真相继续
|
|
126
132
|
|
|
127
133
|
## Visual Assist 快速上手
|
|
128
134
|
|
|
@@ -403,6 +409,13 @@ da-vinci uninstall --platform codex,claude,gemini
|
|
|
403
409
|
- `--mode integrity`:适合在工作进行中检查文件系统真相,比如基础工件缺失、导出路径错误、`.da-vinci/designs/` 被污染、项目内 `.pen` 没落盘
|
|
404
410
|
- `--mode completion`:适合在宣称完成前做严格检查;配合 `--change <change-id>` 使用,任何失败都应视为阻断
|
|
405
411
|
|
|
412
|
+
Context Delta 与 audit 的关系:
|
|
413
|
+
|
|
414
|
+
- Context Delta 缺失、字段不完整或与最新 checkpoint 不一致时,属于告警(`WARN`)
|
|
415
|
+
- 这些告警用于提升续跑质量,不应单独变成新的 completion 失败门槛
|
|
416
|
+
- 当工件包含 `## Checkpoint Status` 或 `## MCP Runtime Gate` 时,期望检查会自动启用,正常流程不需要手动开关
|
|
417
|
+
- 只有在不包含这些标题但仍想启用检查时,才需要写 `Context Delta Required: true`(也支持 `yes` / `on` / `1`)
|
|
418
|
+
|
|
406
419
|
两种模式都会检查项目里最常见的工作流完整性问题:
|
|
407
420
|
|
|
408
421
|
- 标准 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,11 +15,15 @@ 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
|
|
@@ -15,11 +15,15 @@ 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
|
|
@@ -14,11 +14,15 @@ 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
|
|
@@ -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,8 @@ 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
|
|
83
86
|
|
|
84
87
|
### `/dv:breakdown`
|
|
85
88
|
|
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`.
|
|
@@ -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,8 @@ Da Vinci 期望它们遵循工作流状态。
|
|
|
82
83
|
|
|
83
84
|
- 如果设计已经有了,但 `tasks.md` 还没有,`continue` 通常应该把你送到 `tasks`
|
|
84
85
|
- 这时候不应该把 `build` 当成同级主推荐
|
|
86
|
+
- 选路必须先基于工件和 checkpoint 真相,再参考 Context Delta
|
|
87
|
+
- 如果 Context Delta 与当前工件冲突,选路时应忽略冲突条目并记录冲突
|
|
85
88
|
|
|
86
89
|
### `/dv:breakdown`
|
|
87
90
|
|
|
@@ -65,6 +65,14 @@ Da Vinci 现在要求自治运行使用这组 session wrapper:
|
|
|
65
65
|
|
|
66
66
|
Da Vinci 不会假设 live MCP 编辑已经被自动刷盘。
|
|
67
67
|
|
|
68
|
+
## Continue 恢复规则
|
|
69
|
+
|
|
70
|
+
从已有工件恢复时:
|
|
71
|
+
|
|
72
|
+
- 选路先看当前工件和 checkpoint 真相
|
|
73
|
+
- 只把 checkpoint 邻近的 `Context Delta` 当作辅助恢复信息
|
|
74
|
+
- 如果 Context Delta 与当前工件或 checkpoint 真相冲突,忽略冲突条目并先记录冲突,再继续执行
|
|
75
|
+
|
|
68
76
|
## 持久化规则
|
|
69
77
|
|
|
70
78
|
Da Vinci 不把 headless interactive `save()` 当作权威持久化真相。
|
|
@@ -229,6 +237,14 @@ da-vinci audit --mode completion --change <change-id> <project-path>
|
|
|
229
237
|
|
|
230
238
|
这个审计现在还会检查 `.da-vinci/state/pencil-session.json`,要求它记录的 hash 与最新持久化 `.pen` 一致。
|
|
231
239
|
|
|
240
|
+
Context Delta 相关审计期望都是告警级:
|
|
241
|
+
|
|
242
|
+
- checkpoint 邻近工件缺少有效 Context Delta -> `WARN`
|
|
243
|
+
- Context Delta 字段不完整 -> `WARN`
|
|
244
|
+
- Context Delta 状态与当前 checkpoint 不一致 -> `WARN`
|
|
245
|
+
- 这种不一致可能是 checkpoint 状态过期,也可能是 Context Delta 记录过期
|
|
246
|
+
- 这些告警用于提升续跑质量,但不会单独形成 completion 阶段的硬阻断
|
|
247
|
+
|
|
232
248
|
## 推荐命令链
|
|
233
249
|
|
|
234
250
|
典型自治流程:
|
|
@@ -59,9 +59,16 @@
|
|
|
59
59
|
|
|
60
60
|
- 当前工件状态判断
|
|
61
61
|
- 缺失或薄弱工件
|
|
62
|
+
- 可用时补充最近 checkpoint 的 Context Delta(仅在与当前工件一致时)
|
|
62
63
|
- 一条主继续提示词
|
|
63
64
|
- 必要时的保守继续版本
|
|
64
65
|
|
|
66
|
+
继续规则优先级:
|
|
67
|
+
|
|
68
|
+
- 先根据工件和 checkpoint 真相决定路由
|
|
69
|
+
- Context Delta 只用于恢复和解释,不用于覆盖选路
|
|
70
|
+
- 如果 Context Delta 与当前工件冲突,选路时忽略冲突内容并标记冲突
|
|
71
|
+
|
|
65
72
|
## 默认推荐流程
|
|
66
73
|
|
|
67
74
|
推荐顺序:
|
|
@@ -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,7 @@ $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
|
+
选路先以当前工件和 checkpoint 真相为准,再把 Context Delta 作为辅助恢复信息;如果 Context Delta 与工件冲突,忽略冲突条目并记录冲突后继续。
|
|
190
193
|
把登记的项目内 Pencil 源保持在 `.da-vinci/designs/` 下,作为设计真相源。如果继续这一轮会做 Pencil 编辑,必须先执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,发生实质性 live edit 后再执行 `da-vinci pencil-session persist --project <project-path> --pen <path> ...`;只有 session wrapper 不可用时,才退回 `write-pen + check-pen-sync` 这条底层链路。
|
|
191
194
|
If the redesign is complex, continue from the approved anchor surfaces instead of restarting broad scaffolding.
|
|
192
195
|
如果 Pencil MCP 可用,且这一轮继续做了新的 Pencil 写入,就重新运行 MCP runtime gate,并把最新结果记录到 `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,7 @@ $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
|
+
选路先以当前工件和 checkpoint 真相为准,再把 Context Delta 作为辅助恢复信息;如果 Context Delta 与工件冲突,忽略冲突条目并记录冲突后继续。
|
|
198
201
|
把登记的项目内 Pencil 源保持在 `.da-vinci/designs/` 下,作为设计真相源。如果继续这一轮会做 Pencil 编辑,必须先执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,发生实质性 live edit 后再执行 `da-vinci pencil-session persist --project <project-path> --pen <path> ...`;只有 session wrapper 不可用时,才退回 `write-pen + check-pen-sync` 这条底层链路。
|
|
199
202
|
If the redesign is complex, keep the anchor-first flow until the design checkpoint passes.
|
|
200
203
|
如果 Pencil MCP 可用,且这一轮继续做了新的 Pencil 写入,就重新运行 MCP runtime gate,并把最新结果记录到 `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,7 @@ $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
|
+
选路先以当前工件和 checkpoint 真相为准,再把 Context Delta 作为辅助恢复信息;如果 Context Delta 与工件冲突,忽略冲突条目并记录冲突后继续。
|
|
190
193
|
把登记的项目内 Pencil 源保持在 `.da-vinci/designs/` 下,作为设计真相源。如果继续这一轮会做 Pencil 编辑,必须先执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,发生实质性 live edit 后再执行 `da-vinci pencil-session persist --project <project-path> --pen <path> ...`;只有 session wrapper 不可用时,才退回 `write-pen + check-pen-sync` 这条底层链路。
|
|
191
194
|
If the redesign is complex, continue from the approved anchor surfaces instead of restarting broad scaffolding.
|
|
192
195
|
如果 Pencil MCP 可用,且这一轮继续做了新的 Pencil 写入,就重新运行 MCP runtime gate,并把最新结果记录到 `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,7 @@ $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
|
+
选路先以当前工件和 checkpoint 真相为准,再把 Context Delta 作为辅助恢复信息;如果 Context Delta 与工件冲突,忽略冲突条目并记录冲突后继续。
|
|
191
194
|
把登记的项目内 Pencil 源保持在 `.da-vinci/designs/` 下,作为设计真相源。如果继续这一轮会做 Pencil 编辑,必须先执行 `da-vinci pencil-session begin --project <project-path> --pen <path>`,发生实质性 live edit 后再执行 `da-vinci pencil-session persist --project <project-path> --pen <path> ...`;只有 session wrapper 不可用时,才退回 `write-pen + check-pen-sync` 这条底层链路。
|
|
192
195
|
If the redesign is complex, continue from the approved anchor surfaces instead of restarting broad scaffolding.
|
|
193
196
|
如果 Pencil MCP 可用,且这一轮继续做了新的 Pencil 写入,就重新运行 MCP runtime gate,并把最新结果记录到 `pencil-design.md`。
|