@xenonbyte/da-vinci-workflow 0.2.4 → 0.2.6

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 (42) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +15 -9
  3. package/README.zh-CN.md +16 -9
  4. package/SKILL.md +45 -704
  5. package/docs/dv-command-reference.md +33 -5
  6. package/docs/execution-chain-migration.md +14 -3
  7. package/docs/maintainer-bootstrap.md +102 -0
  8. package/docs/pencil-rendering-workflow.md +1 -1
  9. package/docs/prompt-entrypoints.md +1 -0
  10. package/docs/skill-contract-maintenance.md +14 -0
  11. package/docs/skill-usage.md +31 -0
  12. package/docs/workflow-overview.md +40 -5
  13. package/docs/zh-CN/dv-command-reference.md +31 -5
  14. package/docs/zh-CN/maintainer-bootstrap.md +101 -0
  15. package/docs/zh-CN/pencil-rendering-workflow.md +1 -1
  16. package/docs/zh-CN/prompt-entrypoints.md +1 -0
  17. package/docs/zh-CN/skill-usage.md +30 -0
  18. package/docs/zh-CN/workflow-overview.md +38 -5
  19. package/lib/audit.js +19 -0
  20. package/lib/cli/helpers.js +104 -0
  21. package/lib/cli/lint-family.js +56 -0
  22. package/lib/cli/verify-family.js +79 -0
  23. package/lib/cli.js +143 -172
  24. package/lib/gate-utils.js +56 -0
  25. package/lib/install.js +134 -6
  26. package/lib/lint-bindings.js +41 -28
  27. package/lib/lint-spec.js +403 -109
  28. package/lib/lint-tasks.js +571 -21
  29. package/lib/maintainer-readiness.js +317 -0
  30. package/lib/planning-parsers.js +198 -2
  31. package/lib/planning-quality-utils.js +81 -0
  32. package/lib/planning-signal-freshness.js +205 -0
  33. package/lib/scaffold.js +454 -23
  34. package/lib/scope-check.js +751 -82
  35. package/lib/sidecars.js +396 -1
  36. package/lib/task-review.js +2 -1
  37. package/lib/utils.js +34 -0
  38. package/lib/verify.js +1160 -88
  39. package/lib/workflow-persisted-state.js +52 -32
  40. package/lib/workflow-state.js +1187 -249
  41. package/package.json +1 -1
  42. package/references/skill-workflow-detail.md +66 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.2.6 - 2026-04-04
4
+
5
+ ### Added
6
+ - shared planning gate-envelope helpers (`lib/gate-utils.js`, `lib/planning-quality-utils.js`, `lib/planning-signal-freshness.js`) to normalize gate serialization, status finalization, and signal freshness checks across lint/spec/scope/task surfaces
7
+ - new regression coverage for bounded clarify visibility, stale-signal upstream derivation, analyze orphan/support detection hardening, and strict-promotion routing semantics
8
+
9
+ ### Changed
10
+ - `scope-check` analyze gate now enforces stronger cross-artifact support checks: empty bindings page-traceability is treated as drift, orphan fallback matching is tightened, and unresolved planning-anchor coverage is explicitly downgraded to advisory
11
+ - `lint-tasks` now derives upstream clarify/analyze context from current artifacts when planning signals are stale and merges derived evidence into task-checkpoint gate resolution
12
+ - planning signal freshness for `lint-tasks` now tracks `proposal.md` and page-map surfaces to prevent stale upstream gate carry-forward
13
+ - workflow-state now routes decisions from persisted gate/status truth with explicit stale-signal handling and bounded clarify note propagation
14
+
15
+ ### Fixed
16
+ - integrity audit now keeps clarify bounded-context findings visible for `lint-spec` signals regardless of top-level PASS/WARN/BLOCK status
17
+ - `lint-spec` gate findings attachment no longer carries an unreachable bounded-context branch for non-clarify gates
18
+
19
+ ## v0.2.5 - 2026-04-02
20
+
21
+ ### Added
22
+ - modular CLI command-family handlers for verify/lint surfaces via `lib/cli/verify-family.js`, `lib/cli/lint-family.js`, and shared helpers in `lib/cli/helpers.js`
23
+ - framework-aware scaffold template coverage for React/Next.js/Vue/Svelte with explicit fallback metadata and expanded verify/scaffold regression tests
24
+ - skill-contract split guardrails with `references/skill-workflow-detail.md`, `docs/skill-contract-maintenance.md`, and `scripts/test-skill-contract-core.js`
25
+
26
+ ### Changed
27
+ - `verify-implementation` and `verify-structure` now emit richer evidence and incremental scan metadata (mode, confidence, boundaries, filtered input stats)
28
+ - core `SKILL.md` was reduced to invariant workflow contract plus on-demand reference map; stage-specific procedures now live in owner references
29
+ - shared path helpers (`normalizeRelativePath`, `pathWithinRoot`) moved into `lib/utils.js` to avoid duplicated logic drift
30
+
31
+ ### Fixed
32
+ - `resolveImplementationLanding` now resolves `.vue`, `.svelte`, and SvelteKit `src/routes/<route>/+page.svelte` landings
33
+ - `verify-implementation` no longer treats regex literal bodies as syntax-aware high-confidence coverage evidence
34
+ - `verify-structure` no longer treats comment-only pseudo markup as real structural evidence
35
+ - `--changed-files` now blocks symlink-based root-escape paths via realpath boundary checks
36
+ - framework detection no longer reports definitive `unknown` when probe scans hit file-count limits; now marked ambiguous with warning context
37
+
3
38
  ## v0.2.4 - 2026-04-02
4
39
 
5
40
  ### Changed
package/README.md CHANGED
@@ -24,19 +24,25 @@ This workflow is intended for:
24
24
  - large existing-product overhauls where flows and logic also change
25
25
  - scoped feature delivery on an existing product
26
26
 
27
+ ## Maintainer Entry
28
+
29
+ If you are contributing to this repository itself, start with
30
+ [docs/maintainer-bootstrap.md](./docs/maintainer-bootstrap.md).
31
+ Use `da-vinci maintainer-readiness` as the canonical maintainer diagnosis surface after setup.
32
+
27
33
  ## Current release
28
34
 
29
35
  Latest published npm package:
30
36
 
31
- - `@xenonbyte/da-vinci-workflow@0.2.4`
37
+ - `@xenonbyte/da-vinci-workflow@0.2.6`
32
38
 
33
- Release highlights for `0.2.4`:
39
+ Release highlights for `0.2.6`:
34
40
 
35
- - design-approval stale detection now checks `design.md`, `pencil-design.md`, and `pencil-bindings.md` instead of only one artifact timestamp
36
- - `lint-tasks` verification command parsing now accepts `da-vinci verify-*` commands from the current task template
37
- - `worktree-preflight` now warns and recommends isolation when a project is not a git repository (or `git status` cannot be read)
38
- - `supervisor-review` retry parsing now honors explicit `--review-retries 0` without falling back to default retries
39
- - `task-execution` and `task-review` resolve-failure messaging now keeps defensive fallback text instead of leaking `undefined`
41
+ - quality-gate alignment landed across `lint-spec` + `scope-check` + `lint-tasks`, with shared gate-envelope utilities and explicit clarify/analyze/task-checkpoint routing
42
+ - `scope-check` analyze gate now catches empty `pencil-bindings.md` page-traceability drift and hardens orphan-task detection (with planning-anchor aware advisory fallback)
43
+ - `lint-tasks` now derives upstream clarify/analyze context from current artifacts when persisted signals are stale, including clarify bounded-context carry-forward
44
+ - planning-signal freshness for `lint-tasks` now includes `proposal.md` and page-map dependencies to avoid stale task-checkpoint trust
45
+ - workflow promotion and integrity audit now keep clarify bounded context visible as notes while preserving non-blocking bounded semantics
40
46
 
41
47
  ## Discipline And Orchestration Upgrade
42
48
 
@@ -57,7 +63,7 @@ Implemented capability set:
57
63
  This upgrade does **not** replace artifact truth, checkpoint truth, or completion audit authority.
58
64
  `workflow-status`, `next-step`, and orchestration outputs remain bounded by the existing contract.
59
65
 
60
- See [docs/discipline-and-orchestration-upgrade.md](/Users/xubo/x-skills/da-vinci/docs/discipline-and-orchestration-upgrade.md) for operator and maintainer guidance, and the OpenSpec change folder for implementation details.
66
+ See [docs/discipline-and-orchestration-upgrade.md](./docs/discipline-and-orchestration-upgrade.md) for operator and maintainer guidance, and the OpenSpec change folder for implementation details.
61
67
 
62
68
  ## Supported workflow modes
63
69
 
@@ -134,7 +140,7 @@ If the growing CLI surface is the main usability problem, use the built-in termi
134
140
  - it supports English/Chinese chrome, light/dark theme auto-detection, and `t` as a manual fallback
135
141
  - `p` sets project context, `c` sets change context, `l` toggles language, `J` toggles `--json`, and `Enter` opens/runs the selected item
136
142
 
137
- Use [docs/skill-usage.md](/Users/xubo/x-skills/da-vinci/docs/skill-usage.md) for the operator-facing workflow, resume rules, and TUI guidance.
143
+ Use [docs/skill-usage.md](./docs/skill-usage.md) for the operator-facing workflow, resume rules, and TUI guidance.
138
144
 
139
145
  ## Visual Assist Quick Start
140
146
 
package/README.zh-CN.md CHANGED
@@ -26,19 +26,26 @@ Da Vinci 是一个把产品需求一路推进到结构化规格、Pencil 设计
26
26
  - 基于现有代码做流程、逻辑和 UI 一起变化的大改版
27
27
  - 在现有产品上做范围明确的 feature-change
28
28
 
29
+ ## 维护者入口
30
+
31
+ 如果你是在维护这个仓库本身(而不是在下游项目里使用 Da Vinci),请先看
32
+ [docs/zh-CN/maintainer-bootstrap.md](./docs/zh-CN/maintainer-bootstrap.md)。
33
+
34
+ 完成 setup 后,用 `da-vinci maintainer-readiness` 作为维护者的 canonical 诊断/就绪命令。
35
+
29
36
  ## 当前发布状态
30
37
 
31
38
  最新已发布 npm 包:
32
39
 
33
- - `@xenonbyte/da-vinci-workflow@0.2.4`
40
+ - `@xenonbyte/da-vinci-workflow@0.2.6`
34
41
 
35
- `0.2.4` 版本重点:
42
+ `0.2.6` 版本重点:
36
43
 
37
- - 设计批准的 stale 检测从单一 `design.md` 扩展为同时检查 `design.md`、`pencil-design.md`、`pencil-bindings.md`
38
- - `lint-tasks` 的 verification command 解析已支持当前模板里的 `da-vinci verify-*` 命令
39
- - `worktree-preflight` 在“非 git 仓库”或 `git status` 失败时会返回告警并建议隔离执行
40
- - `supervisor-review` 现在正确处理显式 `--review-retries 0`,不再错误回退到默认重试
41
- - `task-execution` / `task-review` resolve-change 失败路径上补强了防御性错误回退,避免输出 `undefined`
44
+ - 完成 `lint-spec`、`scope-check`、`lint-tasks` 质量门对齐,并引入共享 gate-envelope 工具,明确 clarify/analyze/task-checkpoint 路由
45
+ - `scope-check` 的 analyze gate 现在会对空 `pencil-bindings.md` 报告页面可追踪性漂移,并强化 orphan task 检测(支持 planning-anchor 降级为 advisory)
46
+ - `lint-tasks` persisted 信号过期时会从当前工件重新派生 clarify/analyze 上游上下文,并保留 clarify bounded-context
47
+ - `lint-tasks` freshness 依赖新增 `proposal.md` 与 page-map 链路,避免 task-checkpoint 误信陈旧上游信号
48
+ - workflow promotion integrity audit 现在都会稳定展示 clarify bounded context 备注,同时保持 bounded 默认非阻断语义
42
49
 
43
50
  ## Discipline And Orchestration 升级
44
51
 
@@ -59,7 +66,7 @@ Da Vinci 是一个把产品需求一路推进到结构化规格、Pencil 设计
59
66
  该升级**不会**替代现有 artifact truth、checkpoint truth 和 completion audit 权威。
60
67
  `workflow-status`、`next-step` 与 orchestration 输出仍然受现有契约约束。
61
68
 
62
- 可先阅读 [docs/discipline-and-orchestration-upgrade.md](/Users/xubo/x-skills/da-vinci/docs/discipline-and-orchestration-upgrade.md) 了解说明,再结合 OpenSpec 目录查看具体实现拆分。
69
+ 可先阅读 [docs/discipline-and-orchestration-upgrade.md](./docs/discipline-and-orchestration-upgrade.md) 了解说明,再结合 OpenSpec 目录查看具体实现拆分。
63
70
 
64
71
  ## 支持的工作流模式
65
72
 
@@ -140,7 +147,7 @@ Da Vinci 当前支持五种模式:
140
147
  - 支持中英文界面与浅色/深色自动识别,`t` 可手动切换主题
141
148
  - `p` 设置项目上下文,`c` 设置 change 上下文,`l` 切语言,`J` 切 `--json`,`Enter` 进入/执行
142
149
 
143
- 如果你想看“人到底怎么用这个 skill、暂停后怎么续跑、TUI 怎么配合”的完整说明,直接看 [docs/zh-CN/skill-usage.md](/Users/xubo/x-skills/da-vinci/docs/zh-CN/skill-usage.md)。
150
+ 如果你想看“人到底怎么用这个 skill、暂停后怎么续跑、TUI 怎么配合”的完整说明,直接看 [docs/zh-CN/skill-usage.md](./docs/zh-CN/skill-usage.md)。
144
151
 
145
152
  ## Visual Assist 快速上手
146
153