cc-devflow 4.5.10 → 4.5.11

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 (45) hide show
  1. package/.claude/skills/cc-act/CHANGELOG.md +5 -0
  2. package/.claude/skills/cc-act/SKILL.md +9 -2
  3. package/.claude/skills/cc-check/CHANGELOG.md +6 -0
  4. package/.claude/skills/cc-check/SKILL.md +9 -7
  5. package/.claude/skills/cc-dev/CHANGELOG.md +5 -0
  6. package/.claude/skills/cc-dev/SKILL.md +9 -2
  7. package/.claude/skills/cc-do/CHANGELOG.md +6 -0
  8. package/.claude/skills/cc-do/SKILL.md +16 -7
  9. package/.claude/skills/cc-investigate/CHANGELOG.md +7 -0
  10. package/.claude/skills/cc-investigate/PLAYBOOK.md +4 -4
  11. package/.claude/skills/cc-investigate/SKILL.md +160 -426
  12. package/.claude/skills/cc-investigate/assets/TASKS_TEMPLATE.md +8 -5
  13. package/.claude/skills/cc-investigate/assets/TASK_MANIFEST_TEMPLATE.json +3 -4
  14. package/.claude/skills/cc-investigate/references/investigation-contract.md +3 -2
  15. package/.claude/skills/cc-plan/CHANGELOG.md +13 -0
  16. package/.claude/skills/cc-plan/SKILL.md +197 -540
  17. package/.claude/skills/cc-plan/assets/TASKS_TEMPLATE.md +3 -0
  18. package/.claude/skills/cc-plan/assets/TASK_MANIFEST_TEMPLATE.json +2 -3
  19. package/.claude/skills/cc-plan/references/planning-contract.md +2 -1
  20. package/CHANGELOG.md +14 -0
  21. package/README.md +5 -3
  22. package/README.zh-CN.md +5 -3
  23. package/docs/examples/START-HERE.md +2 -1
  24. package/docs/examples/example-bindings.json +6 -6
  25. package/docs/examples/full-design-blocked/README.md +1 -1
  26. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/design.md +1 -1
  27. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/task-manifest.json +1 -1
  28. package/docs/examples/full-design-blocked/changes/REQ-002-bulk-invite-import/planning/tasks.md +1 -1
  29. package/docs/examples/local-handoff/README.md +1 -1
  30. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/design.md +1 -1
  31. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/task-manifest.json +1 -1
  32. package/docs/examples/local-handoff/changes/REQ-003-audit-log-export/planning/tasks.md +1 -1
  33. package/docs/examples/pdca-loop/README.md +1 -1
  34. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/design.md +1 -1
  35. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/task-manifest.json +1 -1
  36. package/docs/examples/pdca-loop/changes/REQ-001-copy-invite-link/planning/tasks.md +1 -1
  37. package/docs/guides/artifact-contract.md +4 -0
  38. package/docs/guides/getting-started.md +4 -3
  39. package/docs/guides/getting-started.zh-CN.md +4 -3
  40. package/docs/guides/minimize-artifacts.md +19 -5
  41. package/lib/skill-runtime/__tests__/benchmark-skills.test.js +109 -0
  42. package/lib/skill-runtime/__tests__/task-contract.test.js +92 -1
  43. package/lib/skill-runtime/operations/task-contract.js +75 -6
  44. package/lib/skill-runtime/task-contract.js +2 -1
  45. package/package.json +8 -7
@@ -18,6 +18,7 @@
18
18
  - Open for root-cause doubt: `planning/tasks.md#Root Cause Contract` Project Postmortem Recall, Feedback Loop, Evidence Chain, Boundary Probe Matrix.
19
19
  - Open for scheduling: `planning/task-manifest.json`, dependencies, touched files.
20
20
  - Open for audit/recovery: Git state, CLI logs, report-card findings, Workflow Forensics.
21
+ - Machine JSON rule: after editing this file, run `cc-devflow task-contract compile --change <changeId> --change-key <changeKey>` and `cc-devflow task-contract validate --change <changeId> --change-key <changeKey>`; do not handwrite `task-manifest.json` or `change-meta.json`.
21
22
 
22
23
  ## Root Cause Contract
23
24
 
@@ -59,6 +60,8 @@ Risk / Escalate If:
59
60
  > This is the default human-authored investigation contract. Do not create
60
61
  > `planning/analysis.md` for new investigations unless the user explicitly
61
62
  > requests a legacy artifact or a migration requires preserving one.
63
+ > `task-manifest.json` and `change-meta.json` are generated by
64
+ > `cc-devflow task-contract compile`, not by manual AI JSON authoring.
62
65
 
63
66
  ## Execution Handoff
64
67
 
@@ -88,32 +91,32 @@ Risk / Escalate If:
88
91
  - Parallel boundaries:
89
92
  - Correct test seam:
90
93
  - Evidence request if blocked:
91
- - Do not repair symptom site unless analysis proves it is the original trigger:
94
+ - Do not repair symptom site unless Root Cause Contract proves it is the original trigger:
92
95
 
93
96
  ## Phase 1: Reproduce And Probe Guard
94
97
 
95
98
  - [ ] T001 [TEST] Capture the failing behavior as a stable reproduction (dependsOn:none) `path/to/test`
96
99
  Goal: 让 bug 先变成一个快、准、可复跑且匹配用户症状的失败事实。
97
100
  Files: `path/to/test`
98
- Read first: `analysis.md`, `tasks.md`
101
+ Read first: `tasks.md`
99
102
  Project postmortem search: `rg -n "<symptom|test seam|module|model-risk>" devflow/postmortems` or record `no-project-postmortems-yet`
100
103
  Verification: `npm test -- path/to/test`
101
104
  Evidence: failing output or reproducible log + symptom match evidence
102
105
  Correct seam: test must exercise the real trigger chain through a public interface
103
106
  Root cause proof: must expose or preserve evidence for first bad state and original trigger
104
- Ready when: feedback loop 已稳定,analysis 已记录必要的 boundary / trace / comparison / root-cause-ladder evidence
107
+ Ready when: feedback loop 已稳定,Root Cause Contract 已记录必要的 boundary / trace / comparison / root-cause-ladder evidence
105
108
 
106
109
  ## Phase 2: Repair
107
110
 
108
111
  - [ ] T002 [IMPL] Apply the minimal root-cause fix (dependsOn:T001) `path/to/file`
109
112
  Goal: 只修已确认根因,不扩成重写。
110
113
  Files: `path/to/file`
111
- Read first: `analysis.md`, `path/to/test`
114
+ Read first: `tasks.md`, `path/to/test`
112
115
  Project postmortem search: `rg -n "<root cause|module|failure-class|model-risk>" devflow/postmortems` or record `no-project-postmortems-yet`
113
116
  Verification: `npm test -- path/to/test`
114
117
  Evidence: passing output + Git diff
115
118
  Do not re-decide: root cause, first bad state, original trigger, allowed files, forbidden files
116
- Ready when: T001 已证明同一个用户症状存在,analysis 已证明根因源头和 counterfactual proof
119
+ Ready when: T001 已证明同一个用户症状存在,Root Cause Contract 已证明根因源头和 counterfactual proof
117
120
 
118
121
  ## Phase 3: Verify
119
122
 
@@ -6,7 +6,7 @@
6
6
  "documentLanguage": ""
7
7
  },
8
8
  "planningMeta": {
9
- "ccInvestigateSkillVersion": "1.5.0",
9
+ "ccInvestigateSkillVersion": "1.5.1",
10
10
  "analysisVersion": "analysis.v1",
11
11
  "workBranch": "FIX/XXX-short-bug-name",
12
12
  "approvedAt": "2026-04-17T12:00:00.000Z",
@@ -43,7 +43,7 @@
43
43
  "componentBoundary": "api -> service",
44
44
  "inputObserved": "Request payload matches the reproduced failure",
45
45
  "outputObserved": "Service receives invalid state",
46
- "configEnvObserved": "Relevant env/config values recorded in analysis.md",
46
+ "configEnvObserved": "Relevant env/config values recorded in planning/tasks.md#Root Cause Contract",
47
47
  "stateObserved": "State snapshot or log pointer",
48
48
  "verdict": "fail"
49
49
  }
@@ -196,7 +196,6 @@
196
196
  ],
197
197
  "context": {
198
198
  "readFiles": [
199
- "analysis.md",
200
199
  "tasks.md",
201
200
  "change-meta.json"
202
201
  ],
@@ -205,7 +204,7 @@
205
204
  ],
206
205
  "notes": [
207
206
  "Prove the bug first",
208
- "Do not repair the symptom site unless analysis proves it is the original trigger",
207
+ "Do not repair the symptom site unless Root Cause Contract proves it is the original trigger",
209
208
  "Do not change unrelated contracts in this task"
210
209
  ]
211
210
  },
@@ -37,8 +37,9 @@
37
37
 
38
38
  - `planning/tasks.md#Root Cause Contract` 是人类真相源
39
39
  - `planning/tasks.md` 的 task blocks 是修复 handoff
40
- - `planning/task-manifest.json` 是执行真相源
41
- - `change-meta.json` 必须记录 roadmap sync status、spec diagnosis 和 no-op reason / updated files
40
+ - `planning/task-manifest.json` 是 CLI 生成的执行真相源,不手写
41
+ - `change-meta.json` 必须由 CLI / 模板更新,记录 roadmap sync status、spec diagnosis 和 no-op reason / updated files
42
+ - 修改机器态结构时改 `cc-devflow task-contract` / 模板 / validator,再重新生成;不要在 change 目录里补 JSON
42
43
 
43
44
  ## Root-Cause Hypothesis
44
45
 
@@ -1,5 +1,18 @@
1
1
  # CC-Plan Skill Changelog
2
2
 
3
+ ## v3.9.2 - 2026-05-13
4
+
5
+ - make CLI-owned machine artifacts a hard rule: AI writes `planning/tasks.md`, then runs `cc-devflow task-contract compile` / `validate` for `task-manifest.json` and `change-meta.json`
6
+ - forbid hand-authored process JSON and require CLI / template / validator fixes when machine-state structure changes
7
+ - internalize planning operating rules: assumptions first, smallest reversible scope, explicit conflict choice, intent-focused verification, and CLI-owned deterministic state
8
+ - keep the thin entrypoint budget under the existing `cc-plan` limit while preserving the planning contract
9
+
10
+ ## v3.9.1 - 2026-05-13
11
+
12
+ - slim the public `SKILL.md` entrypoint into a thin harness contract focused on branch safety, artifact ownership, density switching, and completion gates
13
+ - move low-frequency deep planning, review, postmortem, and external-best-practice details behind conditional `PLAYBOOK.md` / `references/*` escalation instead of default context
14
+ - keep `planning/tasks.md`, lean `task-manifest.json`, `change-meta.json`, and `workflow-context --compact` as the durable execution contract
15
+
3
16
  ## v3.9.0 - 2026-05-13
4
17
 
5
18
  - collapse the default planning artifact surface to `planning/tasks.md` plus CLI-generated `task-manifest.json` and `change-meta.json`