contract-driven-delivery 1.8.1 → 1.9.0
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/assets/agents/change-classifier.md +2 -2
- package/assets/agents/contract-reviewer.md +2 -2
- package/assets/agents/dependency-security-reviewer.md +2 -2
- package/assets/agents/qa-reviewer.md +2 -2
- package/assets/agents/repo-context-scanner.md +2 -2
- package/assets/agents/spec-drift-auditor.md +2 -2
- package/assets/agents/ui-ux-reviewer.md +2 -2
- package/assets/agents/visual-reviewer.md +2 -2
- package/assets/skills/cdd-new/SKILL.md +246 -42
- package/package.json +1 -1
|
@@ -65,10 +65,10 @@ Use this structure:
|
|
|
65
65
|
|
|
66
66
|
## Machine-Verifiable Evidence
|
|
67
67
|
|
|
68
|
-
After completing your task, write
|
|
69
|
-
with this exact structure (lines starting with `- ` are required):
|
|
68
|
+
After completing your task, include an **## Agent Log** section at the end of your response with this exact structure (lines starting with `- ` are required). The calling skill will write this block to `specs/changes/<change-id>/agent-log/change-classifier.md`.
|
|
70
69
|
|
|
71
70
|
```
|
|
71
|
+
## Agent Log
|
|
72
72
|
# Change Classifier Log
|
|
73
73
|
- change-id: <id>
|
|
74
74
|
- timestamp: <ISO 8601, e.g. 2026-04-27T14:30:00Z>
|
|
@@ -57,10 +57,10 @@ approved / changes-required
|
|
|
57
57
|
|
|
58
58
|
## Machine-Verifiable Evidence
|
|
59
59
|
|
|
60
|
-
After completing your task, write
|
|
61
|
-
with this exact structure (lines starting with `- ` are required):
|
|
60
|
+
After completing your task, include an **## Agent Log** section at the end of your response with this exact structure (lines starting with `- ` are required). The calling skill will write this block to `specs/changes/<change-id>/agent-log/contract-reviewer.md`.
|
|
62
61
|
|
|
63
62
|
```
|
|
63
|
+
## Agent Log
|
|
64
64
|
# Contract Reviewer Log
|
|
65
65
|
- change-id: <id>
|
|
66
66
|
- timestamp: <ISO 8601, e.g. 2026-04-27T14:30:00Z>
|
|
@@ -64,10 +64,10 @@ approved / changes-required / blocked
|
|
|
64
64
|
|
|
65
65
|
## Machine-Verifiable Evidence
|
|
66
66
|
|
|
67
|
-
After completing your task, write
|
|
68
|
-
with this exact structure (lines starting with `- ` are required):
|
|
67
|
+
After completing your task, include an **## Agent Log** section at the end of your response with this exact structure (lines starting with `- ` are required). The calling skill will write this block to `specs/changes/<change-id>/agent-log/dependency-security-reviewer.md`.
|
|
69
68
|
|
|
70
69
|
```
|
|
70
|
+
## Agent Log
|
|
71
71
|
# Dependency Security Reviewer Log
|
|
72
72
|
- change-id: <id>
|
|
73
73
|
- timestamp: <ISO 8601, e.g. 2026-04-27T14:30:00Z>
|
|
@@ -69,10 +69,10 @@ approved / blocked / approved-with-risk
|
|
|
69
69
|
|
|
70
70
|
## Machine-Verifiable Evidence
|
|
71
71
|
|
|
72
|
-
After completing your task, write
|
|
73
|
-
with this exact structure (lines starting with `- ` are required):
|
|
72
|
+
After completing your task, include an **## Agent Log** section at the end of your response with this exact structure (lines starting with `- ` are required). The calling skill will write this block to `specs/changes/<change-id>/agent-log/qa-reviewer.md`.
|
|
74
73
|
|
|
75
74
|
```
|
|
75
|
+
## Agent Log
|
|
76
76
|
# QA Reviewer Log
|
|
77
77
|
- change-id: <id>
|
|
78
78
|
- timestamp: <ISO 8601, e.g. 2026-04-27T14:30:00Z>
|
|
@@ -81,10 +81,10 @@ frontend / backend / fullstack / monorepo / library / tool
|
|
|
81
81
|
|
|
82
82
|
## Machine-Verifiable Evidence
|
|
83
83
|
|
|
84
|
-
After completing your task, write
|
|
85
|
-
with this exact structure (lines starting with `- ` are required):
|
|
84
|
+
After completing your task, include an **## Agent Log** section at the end of your response with this exact structure (lines starting with `- ` are required). The calling skill will write this block to `specs/changes/<change-id>/agent-log/repo-context-scanner.md`.
|
|
86
85
|
|
|
87
86
|
```
|
|
87
|
+
## Agent Log
|
|
88
88
|
# Repo Context Scanner Log
|
|
89
89
|
- change-id: <id>
|
|
90
90
|
- timestamp: <ISO 8601, e.g. 2026-04-27T14:30:00Z>
|
|
@@ -50,10 +50,10 @@ Multi-iteration development creates drift. Find it before it becomes production
|
|
|
50
50
|
|
|
51
51
|
## Machine-Verifiable Evidence
|
|
52
52
|
|
|
53
|
-
After completing your task, write
|
|
54
|
-
with this exact structure (lines starting with `- ` are required):
|
|
53
|
+
After completing your task, include an **## Agent Log** section at the end of your response with this exact structure (lines starting with `- ` are required). The calling skill will write this block to `specs/changes/<change-id>/agent-log/spec-drift-auditor.md`.
|
|
55
54
|
|
|
56
55
|
```
|
|
56
|
+
## Agent Log
|
|
57
57
|
# Spec Drift Auditor Log
|
|
58
58
|
- change-id: <id>
|
|
59
59
|
- timestamp: <ISO 8601, e.g. 2026-04-27T14:30:00Z>
|
|
@@ -51,10 +51,10 @@ approved / changes-required
|
|
|
51
51
|
|
|
52
52
|
## Machine-Verifiable Evidence
|
|
53
53
|
|
|
54
|
-
After completing your task, write
|
|
55
|
-
with this exact structure (lines starting with `- ` are required):
|
|
54
|
+
After completing your task, include an **## Agent Log** section at the end of your response with this exact structure (lines starting with `- ` are required). The calling skill will write this block to `specs/changes/<change-id>/agent-log/ui-ux-reviewer.md`.
|
|
56
55
|
|
|
57
56
|
```
|
|
57
|
+
## Agent Log
|
|
58
58
|
# UI/UX Reviewer Log
|
|
59
59
|
- change-id: <id>
|
|
60
60
|
- timestamp: <ISO 8601, e.g. 2026-04-27T14:30:00Z>
|
|
@@ -53,10 +53,10 @@ approved / changes-required
|
|
|
53
53
|
|
|
54
54
|
## Machine-Verifiable Evidence
|
|
55
55
|
|
|
56
|
-
After completing your task, write
|
|
57
|
-
with this exact structure (lines starting with `- ` are required):
|
|
56
|
+
After completing your task, include an **## Agent Log** section at the end of your response with this exact structure (lines starting with `- ` are required). The calling skill will write this block to `specs/changes/<change-id>/agent-log/visual-reviewer.md`.
|
|
58
57
|
|
|
59
58
|
```
|
|
59
|
+
## Agent Log
|
|
60
60
|
# Visual Reviewer Log
|
|
61
61
|
- change-id: <id>
|
|
62
62
|
- timestamp: <ISO 8601, e.g. 2026-04-27T14:30:00Z>
|
|
@@ -13,6 +13,19 @@ If no description is provided, ask the user: "Please describe the change you wan
|
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
+
## Write Responsibilities
|
|
17
|
+
|
|
18
|
+
**This distinction is critical — follow it for every step:**
|
|
19
|
+
|
|
20
|
+
| Agent type | Who writes artifact files | Who writes agent-log | Who ticks tasks.md |
|
|
21
|
+
|------------|--------------------------|----------------------|--------------------|
|
|
22
|
+
| Read-only agents (no Edit tool): `change-classifier`, `contract-reviewer`, `qa-reviewer`, `visual-reviewer`, `dependency-security-reviewer`, `ui-ux-reviewer` | YOU (main Claude) | YOU (main Claude) | YOU (main Claude) |
|
|
23
|
+
| Write-capable agents (have Edit): `backend-engineer`, `frontend-engineer`, `e2e-resilience-engineer`, `monkey-test-engineer`, `stress-soak-engineer`, `ci-cd-gatekeeper`, `test-strategist`, `spec-architect` | The agent itself | The agent itself | YOU (main Claude) |
|
|
24
|
+
|
|
25
|
+
**Rule**: After EVERY agent completes (whether it writes itself or you write for it), YOU must update the relevant `tasks.md` checkbox(es) from `[ ]` to `[x]`.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
16
29
|
## Step 1: Generate change-id and scaffold
|
|
17
30
|
|
|
18
31
|
Derive a `change-id` from the description:
|
|
@@ -21,26 +34,162 @@ Derive a `change-id` from the description:
|
|
|
21
34
|
|
|
22
35
|
Check that `specs/changes/<change-id>/` does not already exist. If it does, append `-2` (or next available suffix).
|
|
23
36
|
|
|
24
|
-
|
|
37
|
+
**Create all scaffold files using Write (do NOT run a Python script; do NOT use Edit on pre-existing files):**
|
|
38
|
+
|
|
39
|
+
Create `specs/changes/<change-id>/change-request.md` with the user's description filled in:
|
|
40
|
+
```
|
|
41
|
+
# Change Request: <change-id>
|
|
42
|
+
|
|
43
|
+
## Original Request
|
|
44
|
+
<user's exact description, verbatim>
|
|
45
|
+
|
|
46
|
+
## Business / User Goal
|
|
47
|
+
<infer from the description>
|
|
48
|
+
|
|
49
|
+
## Non-goals
|
|
50
|
+
|
|
51
|
+
## Constraints
|
|
52
|
+
|
|
53
|
+
## Known Context
|
|
54
|
+
|
|
55
|
+
## Open Questions
|
|
56
|
+
|
|
57
|
+
## Requested Delivery Date / Priority
|
|
58
|
+
as soon as possible
|
|
59
|
+
```
|
|
25
60
|
|
|
61
|
+
Create `specs/changes/<change-id>/change-classification.md` with blank template:
|
|
62
|
+
```
|
|
63
|
+
# Change Classification
|
|
64
|
+
|
|
65
|
+
## Change Types
|
|
66
|
+
- primary:
|
|
67
|
+
- secondary:
|
|
68
|
+
|
|
69
|
+
## Risk Level
|
|
70
|
+
- low / medium / high / critical
|
|
71
|
+
|
|
72
|
+
## Impact Radius
|
|
73
|
+
- isolated / module-level / cross-module / system-wide
|
|
74
|
+
|
|
75
|
+
## Required Artifacts
|
|
76
|
+
| artifact | required | reason |
|
|
77
|
+
|---|---:|---|
|
|
78
|
+
| current-behavior.md | | |
|
|
79
|
+
| proposal.md | | |
|
|
80
|
+
| spec.md | | |
|
|
81
|
+
| design.md | | |
|
|
82
|
+
| contracts.md | | |
|
|
83
|
+
| test-plan.md | yes | every implementation change requires test planning |
|
|
84
|
+
| ci-gates.md | yes | every implementation change requires CI/CD gate planning |
|
|
85
|
+
| qa-report.md | | |
|
|
86
|
+
| regression-report.md | | |
|
|
87
|
+
|
|
88
|
+
## Required Contracts
|
|
89
|
+
- API:
|
|
90
|
+
- CSS/UI:
|
|
91
|
+
- Env:
|
|
92
|
+
- Data shape:
|
|
93
|
+
- Business logic:
|
|
94
|
+
- CI/CD:
|
|
95
|
+
|
|
96
|
+
## Required Test Families
|
|
97
|
+
- unit:
|
|
98
|
+
- contract:
|
|
99
|
+
- integration:
|
|
100
|
+
- E2E:
|
|
101
|
+
- visual:
|
|
102
|
+
- data-boundary:
|
|
103
|
+
- resilience:
|
|
104
|
+
- fuzz/monkey:
|
|
105
|
+
- stress:
|
|
106
|
+
- soak:
|
|
107
|
+
|
|
108
|
+
## Required Agents
|
|
109
|
+
|
|
110
|
+
## Assumptions / Clarifications
|
|
26
111
|
```
|
|
27
|
-
|
|
112
|
+
|
|
113
|
+
Create `specs/changes/<change-id>/test-plan.md` with blank template:
|
|
28
114
|
```
|
|
115
|
+
# Test Plan: <change-id>
|
|
116
|
+
|
|
117
|
+
## Scope
|
|
29
118
|
|
|
30
|
-
|
|
119
|
+
## Unit Tests
|
|
31
120
|
|
|
32
|
-
|
|
33
|
-
|--------|-------------|
|
|
34
|
-
| `.claude/skills/contract-driven-delivery/templates/change-request.md` | `specs/changes/<change-id>/change-request.md` |
|
|
35
|
-
| `.claude/skills/contract-driven-delivery/templates/change-classification.md` | `specs/changes/<change-id>/change-classification.md` |
|
|
36
|
-
| `.claude/skills/contract-driven-delivery/templates/test-plan.md` | `specs/changes/<change-id>/test-plan.md` |
|
|
37
|
-
| `.claude/skills/contract-driven-delivery/templates/ci-gates.md` | `specs/changes/<change-id>/ci-gates.md` |
|
|
38
|
-
| `.claude/skills/contract-driven-delivery/templates/tasks.md` | `specs/changes/<change-id>/tasks.md` |
|
|
121
|
+
## Contract Tests
|
|
39
122
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
123
|
+
## Integration Tests
|
|
124
|
+
|
|
125
|
+
## E2E Tests
|
|
126
|
+
|
|
127
|
+
## Resilience / Data-Boundary Tests
|
|
128
|
+
|
|
129
|
+
## Stress / Soak Tests
|
|
130
|
+
|
|
131
|
+
## Out of Scope
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Create `specs/changes/<change-id>/ci-gates.md` with blank template:
|
|
135
|
+
```
|
|
136
|
+
# CI Gates: <change-id>
|
|
137
|
+
|
|
138
|
+
## Required Gates (block merge if failing)
|
|
139
|
+
|
|
140
|
+
## Informational Gates (report only)
|
|
141
|
+
|
|
142
|
+
## Nightly / Weekly / Manual Gates
|
|
143
|
+
|
|
144
|
+
## Promotion Policy
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Create `specs/changes/<change-id>/tasks.md` with ALL checkboxes unchecked:
|
|
148
|
+
```
|
|
149
|
+
# Tasks: <change-id>
|
|
150
|
+
|
|
151
|
+
## 1. Preparation
|
|
152
|
+
- [ ] 1.1 Confirm classification and required artifacts
|
|
153
|
+
- [ ] 1.2 Confirm contracts to update
|
|
154
|
+
- [ ] 1.3 Confirm CI/CD gate plan
|
|
155
|
+
|
|
156
|
+
## 2. Contract Updates
|
|
157
|
+
- [ ] 2.1 API contract
|
|
158
|
+
- [ ] 2.2 CSS/UI contract
|
|
159
|
+
- [ ] 2.3 Env contract
|
|
160
|
+
- [ ] 2.4 Data shape contract
|
|
161
|
+
- [ ] 2.5 Business logic contract
|
|
162
|
+
- [ ] 2.6 CI/CD contract
|
|
163
|
+
|
|
164
|
+
## 3. Tests First
|
|
165
|
+
- [ ] 3.1 Unit/contract tests
|
|
166
|
+
- [ ] 3.2 Integration tests
|
|
167
|
+
- [ ] 3.3 E2E/resilience tests
|
|
168
|
+
- [ ] 3.4 Data-boundary/monkey tests
|
|
169
|
+
- [ ] 3.5 Stress/soak tests if required
|
|
170
|
+
|
|
171
|
+
## 4. Implementation
|
|
172
|
+
- [ ] 4.1 Backend
|
|
173
|
+
- [ ] 4.2 Frontend
|
|
174
|
+
- [ ] 4.3 Env/deploy
|
|
175
|
+
- [ ] 4.4 CI/CD workflows
|
|
176
|
+
|
|
177
|
+
## 5. Review
|
|
178
|
+
- [ ] 5.1 UI/UX review
|
|
179
|
+
- [ ] 5.2 Visual review
|
|
180
|
+
- [ ] 5.3 Contract review
|
|
181
|
+
- [ ] 5.4 QA review
|
|
182
|
+
|
|
183
|
+
## 6. Verification
|
|
184
|
+
- [ ] 6.1 Local gates
|
|
185
|
+
- [ ] 6.2 PR required gates
|
|
186
|
+
- [ ] 6.3 Informational gates
|
|
187
|
+
- [ ] 6.4 Nightly/weekly/manual gates if required
|
|
188
|
+
|
|
189
|
+
## 7. Archive
|
|
190
|
+
- [ ] 7.1 Archive change
|
|
191
|
+
- [ ] 7.2 Promote durable learnings to contracts or CLAUDE.md
|
|
192
|
+
```
|
|
44
193
|
|
|
45
194
|
---
|
|
46
195
|
|
|
@@ -51,61 +200,112 @@ Invoke `change-classifier` agent with:
|
|
|
51
200
|
- The project profile at `specs/project-profile.md` (if it exists)
|
|
52
201
|
- The existing contracts in `contracts/` (if any)
|
|
53
202
|
|
|
54
|
-
|
|
55
|
-
- Risk tier (Tier 0–5, or low / medium / high / critical)
|
|
56
|
-
- Affected surfaces (API, UI, env, data, CI)
|
|
57
|
-
- List of required agents
|
|
203
|
+
**change-classifier is read-only** — it will return its output as text. After it responds:
|
|
58
204
|
|
|
59
|
-
|
|
205
|
+
1. **YOU write** `specs/changes/<change-id>/change-classification.md` — replace the blank template with the classifier's classification output.
|
|
206
|
+
2. **YOU write** `specs/changes/<change-id>/agent-log/change-classifier.md` — copy the Agent Log block from the classifier's response.
|
|
207
|
+
3. **YOU tick** `tasks.md` item `1.1`.
|
|
208
|
+
|
|
209
|
+
Wait until these three writes are done before continuing.
|
|
60
210
|
|
|
61
211
|
---
|
|
62
212
|
|
|
63
213
|
## Step 3: Read the tier and commission agents
|
|
64
214
|
|
|
65
|
-
Read `change-classification.md` to determine the tier. Then invoke agents **in the exact order below
|
|
215
|
+
Read `change-classification.md` to determine the tier. Then invoke agents **in the exact order below**.
|
|
216
|
+
|
|
217
|
+
**For each read-only agent**: wait for its text response → YOU write its artifact file(s) → YOU write its agent-log → YOU tick relevant tasks.md item(s).
|
|
218
|
+
|
|
219
|
+
**For each write-capable agent**: wait for it to confirm completion → YOU tick relevant tasks.md item(s).
|
|
220
|
+
|
|
221
|
+
If any agent sets `status: blocked` in its log, halt immediately and report the agent's `next-action` to the user — do not proceed to subsequent agents.
|
|
222
|
+
|
|
223
|
+
---
|
|
66
224
|
|
|
67
225
|
### Tier 4–5 (low risk: docs, prompts, config-only, no behavior change)
|
|
68
226
|
|
|
69
|
-
1.
|
|
70
|
-
|
|
227
|
+
1. **`contract-reviewer`** (read-only) — confirm no contracts are touched or all touched ones are already updated.
|
|
228
|
+
- YOU write: `agent-log/contract-reviewer.md`
|
|
229
|
+
- YOU tick: `1.2`, applicable items in section 2
|
|
230
|
+
|
|
231
|
+
2. **`qa-reviewer`** (read-only) — confirm release readiness.
|
|
232
|
+
- YOU write: `agent-log/qa-reviewer.md`
|
|
233
|
+
- YOU tick: `5.4`
|
|
234
|
+
|
|
235
|
+
---
|
|
71
236
|
|
|
72
237
|
### Tier 2–3 (normal: feature, enhancement, bug fix with behavior change)
|
|
73
238
|
|
|
74
|
-
1.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
239
|
+
1. **`contract-reviewer`** (read-only) — update or create contracts in `contracts/` before any implementation starts.
|
|
240
|
+
- YOU write: `agent-log/contract-reviewer.md`
|
|
241
|
+
- YOU tick: `1.2`, applicable items in section 2
|
|
242
|
+
|
|
243
|
+
2. **`test-strategist`** (write-capable) — writes `specs/changes/<change-id>/test-plan.md` directly.
|
|
244
|
+
- YOU tick: applicable items in section 3 based on what test families were planned
|
|
245
|
+
|
|
246
|
+
3. **`spec-architect`** (write-capable) — only if the classifier flagged an architectural boundary or cross-module impact.
|
|
247
|
+
- YOU tick: `1.3` (if it produced a gate plan)
|
|
248
|
+
|
|
249
|
+
4. **`backend-engineer`** (write-capable) — if the change touches server, API, data, or business logic. Writes implementation and its own agent-log.
|
|
250
|
+
- YOU tick: `4.1` and/or `4.3` based on scope
|
|
251
|
+
|
|
252
|
+
5. **`frontend-engineer`** (write-capable) — if the change touches UI, components, or client-side behavior. Writes implementation and its own agent-log.
|
|
253
|
+
- YOU tick: `4.2`
|
|
254
|
+
|
|
255
|
+
6. **`dependency-security-reviewer`** (read-only) — if the change touches lockfiles, package manifests, or DB migrations.
|
|
256
|
+
- YOU write: `agent-log/dependency-security-reviewer.md`
|
|
257
|
+
- YOU tick: applicable security-related items
|
|
258
|
+
|
|
259
|
+
7. **`ui-ux-reviewer`** (read-only) — if any UI change (run alongside or after frontend-engineer).
|
|
260
|
+
- YOU write: `agent-log/ui-ux-reviewer.md`
|
|
261
|
+
- YOU tick: `5.1`
|
|
262
|
+
|
|
263
|
+
8. **`visual-reviewer`** (read-only) — if any UI change (run after ui-ux-reviewer).
|
|
264
|
+
- YOU write: `agent-log/visual-reviewer.md`
|
|
265
|
+
- YOU tick: `5.2`
|
|
266
|
+
|
|
267
|
+
9. **`ci-cd-gatekeeper`** (write-capable) — writes `specs/changes/<change-id>/ci-gates.md` directly.
|
|
268
|
+
- YOU tick: `1.3`, `4.4`, applicable items in section 6
|
|
269
|
+
|
|
270
|
+
10. **`qa-reviewer`** (read-only) — release readiness decision (always last).
|
|
271
|
+
- YOU write: `agent-log/qa-reviewer.md`
|
|
272
|
+
- YOU tick: `5.4`
|
|
273
|
+
|
|
274
|
+
---
|
|
84
275
|
|
|
85
276
|
### Tier 0–1 (high risk: production data, concurrency, queues, large queries, auth, payments, exports)
|
|
86
277
|
|
|
87
|
-
All agents from Tier 2–3, plus insert these after `frontend-engineer` / `backend-engineer`:
|
|
278
|
+
All agents from Tier 2–3, plus insert these after `frontend-engineer` / `backend-engineer` and before `dependency-security-reviewer`:
|
|
279
|
+
|
|
280
|
+
- **`e2e-resilience-engineer`** (write-capable) — E2E, failure-injection, data-boundary tests. Writes its own agent-log.
|
|
281
|
+
- YOU tick: `3.3`
|
|
282
|
+
|
|
283
|
+
- **`monkey-test-engineer`** (write-capable) — adversarial input, fuzz, rapid-UI-action tests. Writes its own agent-log.
|
|
284
|
+
- YOU tick: `3.4`
|
|
88
285
|
|
|
89
|
-
-
|
|
90
|
-
- `
|
|
91
|
-
- `stress-soak-engineer` — load, soak, and long-running stability tests
|
|
286
|
+
- **`stress-soak-engineer`** (write-capable) — load, soak, and long-running stability tests. Writes its own agent-log.
|
|
287
|
+
- YOU tick: `3.5`
|
|
92
288
|
|
|
93
|
-
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
**Agent commission rules:**
|
|
94
292
|
- Skip an agent only if the classifier explicitly marks its surface as "not affected"
|
|
95
|
-
- If
|
|
96
|
-
- If
|
|
293
|
+
- If backend-only with no UI: skip `frontend-engineer`, `ui-ux-reviewer`, `visual-reviewer`
|
|
294
|
+
- If UI-only with no backend: skip `backend-engineer`
|
|
97
295
|
|
|
98
296
|
---
|
|
99
297
|
|
|
100
298
|
## Step 4: Run the gate
|
|
101
299
|
|
|
102
|
-
After all required agents have completed:
|
|
300
|
+
After all required agents have completed and all tasks.md items for their sections are ticked:
|
|
103
301
|
|
|
104
302
|
```
|
|
105
303
|
cdd-kit gate <change-id>
|
|
106
304
|
```
|
|
107
305
|
|
|
108
|
-
**If gate passes**:
|
|
306
|
+
**If gate passes**:
|
|
307
|
+
- YOU tick: `tasks.md` item `6.1`
|
|
308
|
+
- Proceed to Step 5.
|
|
109
309
|
|
|
110
310
|
**If gate fails**:
|
|
111
311
|
1. Read the gate error output carefully
|
|
@@ -128,6 +328,9 @@ Risk tier: <tier>
|
|
|
128
328
|
Agents invoked: <list in order>
|
|
129
329
|
Gate: PASSED
|
|
130
330
|
|
|
331
|
+
Tasks completed:
|
|
332
|
+
- [x] all applicable items checked in specs/changes/<change-id>/tasks.md
|
|
333
|
+
|
|
131
334
|
All artifacts written to: specs/changes/<change-id>/
|
|
132
335
|
|
|
133
336
|
Next step:
|
|
@@ -158,5 +361,6 @@ Please review the above items and re-run: cdd-kit gate <change-id>
|
|
|
158
361
|
- Never start implementation (backend/frontend-engineer) before `contract-reviewer` has completed for Tier 0–3 changes
|
|
159
362
|
- Never skip `test-plan.md` for Tier 0–3 changes
|
|
160
363
|
- Never skip `ci-gates.md` for any implementation change
|
|
161
|
-
- Every agent must
|
|
364
|
+
- Every agent must have its `agent-log/<name>.md` written — YOU write it for read-only agents after receiving their response; write-capable agents write their own
|
|
365
|
+
- Tick the relevant `tasks.md` checkbox immediately after each agent completes — do not batch
|
|
162
366
|
- `qa-reviewer` always runs last and makes the release-readiness decision
|
package/package.json
CHANGED