dev-playbooks 1.2.5 → 1.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.
- package/package.json +1 -1
- package/skills/devbooks-code-review/SKILL.md +28 -0
- package/skills/devbooks-coder/SKILL.md +37 -2
- package/skills/devbooks-design-backport/SKILL.md +34 -0
- package/skills/devbooks-design-doc/SKILL.md +22 -0
- package/skills/devbooks-implementation-plan/SKILL.md +36 -0
- package/skills/devbooks-spec-gardener/SKILL.md +100 -1
- package/skills/devbooks-test-owner/SKILL.md +93 -18
package/package.json
CHANGED
|
@@ -10,6 +10,34 @@ allowed-tools:
|
|
|
10
10
|
|
|
11
11
|
# DevBooks: Code Review (Reviewer)
|
|
12
12
|
|
|
13
|
+
## Workflow Position Awareness
|
|
14
|
+
|
|
15
|
+
> **Core Principle**: Code Review executes after Test Owner Phase 2 verification, as the final review step before archiving.
|
|
16
|
+
|
|
17
|
+
### My Position in the Overall Workflow
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
proposal → design → test-owner(phase1) → coder → test-owner(phase2) → [Code Review] → archive
|
|
21
|
+
↓
|
|
22
|
+
Readability/consistency/dependency review
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Code Review's Responsibility Boundaries
|
|
26
|
+
|
|
27
|
+
| Allowed | Prohibited |
|
|
28
|
+
|---------|------------|
|
|
29
|
+
| Review code readability/consistency | ❌ Modify code files |
|
|
30
|
+
| Set verification.md Status = Done | ❌ Discuss business correctness (that's Test Owner's job) |
|
|
31
|
+
| Suggest improvements | ❌ Check off AC coverage matrix (that's Test Owner's job) |
|
|
32
|
+
|
|
33
|
+
### Prerequisites
|
|
34
|
+
|
|
35
|
+
- [ ] Test Owner Phase 2 completed (AC matrix checked)
|
|
36
|
+
- [ ] Tests all green
|
|
37
|
+
- [ ] evidence/green-final/ exists
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
13
41
|
## Prerequisites: Configuration Discovery (Protocol Agnostic)
|
|
14
42
|
|
|
15
43
|
- `<truth-root>`: Current truth directory root
|
|
@@ -12,6 +12,40 @@ allowed-tools:
|
|
|
12
12
|
|
|
13
13
|
# DevBooks: Implementation Lead (Coder)
|
|
14
14
|
|
|
15
|
+
## Workflow Position Awareness
|
|
16
|
+
|
|
17
|
+
> **Core Principle**: Coder executes after Test Owner Phase 1 and hands off to Test Owner Phase 2 for verification upon completion.
|
|
18
|
+
|
|
19
|
+
### My Position in the Overall Workflow
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
proposal → design → test-owner(phase1) → [Coder] → test-owner(phase2) → code-review → archive
|
|
23
|
+
↓
|
|
24
|
+
Implement code, make tests green
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Coder's Responsibility Boundaries
|
|
28
|
+
|
|
29
|
+
| Allowed | Prohibited |
|
|
30
|
+
|---------|------------|
|
|
31
|
+
| Modify `src/**` code | ❌ Modify `tests/**` |
|
|
32
|
+
| Check off `tasks.md` items | ❌ Modify `verification.md` |
|
|
33
|
+
| Record deviations to `deviation-log.md` | ❌ Check off AC coverage matrix |
|
|
34
|
+
| Run tests to verify | ❌ Set verification.md Status |
|
|
35
|
+
|
|
36
|
+
### Flow After Coder Completes
|
|
37
|
+
|
|
38
|
+
1. **Tasks complete**: tasks.md all `[x]`
|
|
39
|
+
2. **Tests green**: Run `npm test` to confirm passing
|
|
40
|
+
3. **Hand off to Test Owner**: Notify Test Owner to enter Phase 2 verification
|
|
41
|
+
4. **Wait for verification result**:
|
|
42
|
+
- Test Owner confirms green → Proceed to Code Review
|
|
43
|
+
- Test Owner finds issues → Coder fixes
|
|
44
|
+
|
|
45
|
+
**Key Reminder**: After Coder completes, **do not go directly to Code Review**, first let Test Owner verify and check off.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
15
49
|
## Prerequisites: Configuration Discovery (Protocol-Agnostic)
|
|
16
50
|
|
|
17
51
|
- `<truth-root>`: Current truth directory root
|
|
@@ -334,8 +368,8 @@ Run devbooks-xxx skill for change <change-id>
|
|
|
334
368
|
|
|
335
369
|
| My Status | Next Step | Reason |
|
|
336
370
|
|-----------|-----------|--------|
|
|
337
|
-
| COMPLETED | `devbooks-
|
|
338
|
-
| COMPLETED_WITH_DEVIATION | `devbooks-design-backport` | Backport design first, then
|
|
371
|
+
| COMPLETED | `devbooks-test-owner` (Phase 2 verification) | Tasks complete, need Test Owner to verify and check off |
|
|
372
|
+
| COMPLETED_WITH_DEVIATION | `devbooks-design-backport` | Backport design first, then let Test Owner verify |
|
|
339
373
|
| HANDOFF (test issue) | `devbooks-test-owner` | Coder cannot modify tests |
|
|
340
374
|
| BLOCKED | Wait for user | Record breakpoint area |
|
|
341
375
|
| FAILED | Fix and retry | Analyze failure reason |
|
|
@@ -344,6 +378,7 @@ Run devbooks-xxx skill for change <change-id>
|
|
|
344
378
|
- Coder **can never modify** `tests/**`
|
|
345
379
|
- If test issues found, must HANDOFF to Test Owner (separate session)
|
|
346
380
|
- If deviations exist, must design-backport first before continuing
|
|
381
|
+
- **Coder must go through Test Owner Phase 2 verification before Code Review**
|
|
347
382
|
|
|
348
383
|
---
|
|
349
384
|
|
|
@@ -11,6 +11,40 @@ allowed-tools:
|
|
|
11
11
|
|
|
12
12
|
# DevBooks: Design Backport
|
|
13
13
|
|
|
14
|
+
## Workflow Position Awareness
|
|
15
|
+
|
|
16
|
+
> **Core Principle**: Design Backport is now **primarily auto-invoked by Spec Gardener during archive phase**, users typically don't need to call it manually.
|
|
17
|
+
|
|
18
|
+
### My Position in the Overall Workflow
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
proposal → design → test-owner → coder → test-owner(verify) → code-review → [Archive/Spec Gardener]
|
|
22
|
+
↓ ↓
|
|
23
|
+
Record deviations to deviation-log.md Auto-invoke design-backport
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Design Decision: Auto Backport
|
|
27
|
+
|
|
28
|
+
**Old Flow** (manual judgment required):
|
|
29
|
+
```
|
|
30
|
+
coder has deviations → user manually calls design-backport → then archive
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**New Flow** (auto handling):
|
|
34
|
+
```
|
|
35
|
+
coder has deviations → spec-gardener auto-detects and backports during archive → archive
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### When Manual Call is Still Needed
|
|
39
|
+
|
|
40
|
+
| Scenario | Need Manual Call? |
|
|
41
|
+
|----------|-------------------|
|
|
42
|
+
| Normal flow (deviations in deviation-log.md) | ❌ Auto-handled during archive |
|
|
43
|
+
| Need immediate backport (don't wait for archive) | ✅ Manual call |
|
|
44
|
+
| Severe design-implementation conflict needs decision | ✅ Manual call and discuss |
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
14
48
|
## Prerequisites: Configuration Discovery (Protocol-Agnostic)
|
|
15
49
|
|
|
16
50
|
- `<truth-root>`: Current truth directory root
|
|
@@ -11,6 +11,28 @@ allowed-tools:
|
|
|
11
11
|
|
|
12
12
|
# DevBooks: Design Document (Design Doc)
|
|
13
13
|
|
|
14
|
+
## Workflow Position Awareness
|
|
15
|
+
|
|
16
|
+
> **Core Principle**: Design Doc executes after Proposal is approved, serving as the starting point for implementation phase.
|
|
17
|
+
|
|
18
|
+
### My Position in the Overall Workflow
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
proposal → [Design Doc] → spec-contract → implementation-plan → test-owner → coder → ...
|
|
22
|
+
↓
|
|
23
|
+
Define What/Constraints/AC
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Design Doc's Output
|
|
27
|
+
|
|
28
|
+
- **What**: What to do (not how to do it)
|
|
29
|
+
- **Constraints**: Constraint conditions
|
|
30
|
+
- **AC-xxx**: Acceptance criteria (testable)
|
|
31
|
+
|
|
32
|
+
**Key**: Design Doc does not write implementation steps, that's implementation-plan's responsibility.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
14
36
|
## Prerequisites: Configuration Discovery (Protocol Agnostic)
|
|
15
37
|
|
|
16
38
|
- `<truth-root>`: Current truth directory root
|
|
@@ -11,6 +11,42 @@ allowed-tools:
|
|
|
11
11
|
|
|
12
12
|
# DevBooks: Implementation Plan
|
|
13
13
|
|
|
14
|
+
## Workflow Position Awareness
|
|
15
|
+
|
|
16
|
+
> **Core Principle**: Implementation Plan executes after Design Doc, providing task list for Test Owner and Coder.
|
|
17
|
+
|
|
18
|
+
### My Position in the Overall Workflow
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
proposal → design → [Implementation Plan] → test-owner(phase1) → coder → ...
|
|
22
|
+
↓
|
|
23
|
+
tasks.md (task list)
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Implementation Plan's Responsibilities
|
|
27
|
+
|
|
28
|
+
| Allowed | Prohibited |
|
|
29
|
+
|---------|------------|
|
|
30
|
+
| Derive tasks from design.md | ❌ Reference tests/ (avoid implementation bias) |
|
|
31
|
+
| Bind acceptance anchors (AC-xxx) | ❌ Write implementation code |
|
|
32
|
+
| Split parallel tasks | ❌ Execute tasks |
|
|
33
|
+
|
|
34
|
+
### Output: tasks.md Structure
|
|
35
|
+
|
|
36
|
+
```markdown
|
|
37
|
+
## Main Plan Area
|
|
38
|
+
- [ ] MP1.1 Task description (AC-001)
|
|
39
|
+
- [ ] MP1.2 Task description (AC-002)
|
|
40
|
+
|
|
41
|
+
## Temporary Plan Area
|
|
42
|
+
(urgent tasks)
|
|
43
|
+
|
|
44
|
+
## Breakpoint Area
|
|
45
|
+
(context switch resume info)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
14
50
|
## Prerequisites: Configuration Discovery (Protocol-Agnostic)
|
|
15
51
|
|
|
16
52
|
- `<truth-root>`: Current truth directory root
|
|
@@ -11,6 +11,36 @@ allowed-tools:
|
|
|
11
11
|
|
|
12
12
|
# DevBooks: Spec Gardener
|
|
13
13
|
|
|
14
|
+
## Workflow Position Awareness
|
|
15
|
+
|
|
16
|
+
> **Core Principle**: Spec Gardener is the endpoint of the archive phase, responsible for merging change package artifacts into truth, **and automatically handling any pending backports**.
|
|
17
|
+
|
|
18
|
+
### My Position in the Overall Workflow
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
proposal → design → test-owner → coder → test-owner(verify) → code-review → [Spec Gardener/Archive]
|
|
22
|
+
↓
|
|
23
|
+
Auto backport + Merge to truth + Archive
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Spec Gardener's Responsibilities
|
|
27
|
+
|
|
28
|
+
1. **Auto backport detection**: Check if deviation-log.md has pending backport records
|
|
29
|
+
2. **Auto execute backport**: If pending records exist, automatically execute design backport
|
|
30
|
+
3. **Merge to truth**: Merge specs/contracts/architecture into truth-root
|
|
31
|
+
4. **Archive change package**: Set verification.md Status = Archived
|
|
32
|
+
|
|
33
|
+
### Why Auto Backport in Archive Phase?
|
|
34
|
+
|
|
35
|
+
**Design Decision**: Users only need to call skills linearly, no need to judge whether backport is needed.
|
|
36
|
+
|
|
37
|
+
| Scenario | Old Design (Manual judgment) | New Design (Auto handling) |
|
|
38
|
+
|----------|------------------------------|---------------------------|
|
|
39
|
+
| Coder has deviations | User needs to call design-backport → then archive | Spec Gardener auto-detects and backports |
|
|
40
|
+
| Coder has no deviations | Archive directly | Archive directly |
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
14
44
|
## Prerequisites: Configuration Discovery (Protocol Agnostic)
|
|
15
45
|
|
|
16
46
|
- `<truth-root>`: Current truth directory root
|
|
@@ -31,6 +61,51 @@ Before execution, **must** search for configuration in the following order (stop
|
|
|
31
61
|
|
|
32
62
|
## Core Responsibilities
|
|
33
63
|
|
|
64
|
+
### 0. Auto Backport Detection and Handling (Required Before Archive)
|
|
65
|
+
|
|
66
|
+
> **Design Decision**: Archive phase automatically handles all pending backports, users don't need to manually call design-backport.
|
|
67
|
+
|
|
68
|
+
**Detection Flow**:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
1. Read <change-root>/<change-id>/deviation-log.md
|
|
72
|
+
2. Check if there are "| ❌" pending backport records
|
|
73
|
+
→ Yes: Execute auto backport (steps 3-5)
|
|
74
|
+
→ No: Skip, proceed directly to merge phase
|
|
75
|
+
|
|
76
|
+
3. For each pending record, determine if it's Design-level content:
|
|
77
|
+
- DESIGN_GAP, CONSTRAINT_CHANGE, API_CHANGE → Need backport
|
|
78
|
+
- Pure implementation details (filename/classname/temp steps) → Don't backport, mark as IMPL_ONLY
|
|
79
|
+
|
|
80
|
+
4. Execute design backport:
|
|
81
|
+
- Read design.md
|
|
82
|
+
- Update according to design-backport protocol's "backportable content scope"
|
|
83
|
+
- Add change record at the end of design.md
|
|
84
|
+
|
|
85
|
+
5. Update deviation-log.md:
|
|
86
|
+
- Mark backported records as ✅
|
|
87
|
+
- Record backport time and archive batch
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Auto Backport Content Scope** (inherited from design-backport):
|
|
91
|
+
|
|
92
|
+
| Backportable | Not Backportable |
|
|
93
|
+
|--------------|------------------|
|
|
94
|
+
| External semantics/user-visible behavior | Specific file paths, class/function names |
|
|
95
|
+
| System-level immutable constraints (Invariants) | PR splits, task execution order |
|
|
96
|
+
| Core data contracts and evolution strategies | Overly detailed algorithm pseudocode |
|
|
97
|
+
| Cross-phase governance strategies | Script commands |
|
|
98
|
+
| Key tradeoffs and decisions | Table/field names |
|
|
99
|
+
|
|
100
|
+
**deviation-log.md Update Format**:
|
|
101
|
+
|
|
102
|
+
```markdown
|
|
103
|
+
| Time | Type | Description | Affected Files | Backported | Batch |
|
|
104
|
+
|------|------|-------------|----------------|:----------:|-------|
|
|
105
|
+
| 2024-01-15 10:30 | DESIGN_GAP | Concurrent scenario | tests/... | ✅ | archive-2024-01-16 |
|
|
106
|
+
| 2024-01-15 11:00 | IMPL_ONLY | Variable rename | src/... | ⏭️ | (skipped) |
|
|
107
|
+
```
|
|
108
|
+
|
|
34
109
|
### 1. Spec Merge and Maintenance
|
|
35
110
|
|
|
36
111
|
During archive phase, merge change package spec artifacts into `<truth-root>`:
|
|
@@ -106,10 +181,34 @@ Detection rules reference: `skills/_shared/context-detection-template.md`
|
|
|
106
181
|
|
|
107
182
|
| Mode | Trigger Condition | Behavior |
|
|
108
183
|
|------|-------------------|----------|
|
|
109
|
-
| **Archive Mode** | change-id provided and gates pass |
|
|
184
|
+
| **Archive Mode** | change-id provided and gates pass | **Auto backport** → Merge to truth-root → Set Status=Archived |
|
|
110
185
|
| **Maintenance Mode** | No change-id | Execute deduplication, cleanup, organization operations |
|
|
111
186
|
| **Check Mode** | With --dry-run parameter | Output suggestions only, no actual modifications |
|
|
112
187
|
|
|
188
|
+
### Archive Mode Complete Flow
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
1. Pre-checks:
|
|
192
|
+
- [ ] Change package exists
|
|
193
|
+
- [ ] verification.md Status = Ready or Done
|
|
194
|
+
- [ ] evidence/green-final/ exists
|
|
195
|
+
- [ ] tasks.md all [x]
|
|
196
|
+
|
|
197
|
+
2. Auto backport (if needed):
|
|
198
|
+
- [ ] Detect deviation-log.md
|
|
199
|
+
- [ ] Backport to design.md
|
|
200
|
+
- [ ] Update deviation-log.md marks
|
|
201
|
+
|
|
202
|
+
3. Merge to truth:
|
|
203
|
+
- [ ] Merge specs/**
|
|
204
|
+
- [ ] Merge contracts/**
|
|
205
|
+
- [ ] Merge Architecture Impact to c4.md
|
|
206
|
+
|
|
207
|
+
4. Archive:
|
|
208
|
+
- [ ] Set verification.md Status = Archived
|
|
209
|
+
- [ ] Output archive report
|
|
210
|
+
```
|
|
211
|
+
|
|
113
212
|
### Detection Output Example
|
|
114
213
|
|
|
115
214
|
```
|
|
@@ -12,6 +12,46 @@ allowed-tools:
|
|
|
12
12
|
|
|
13
13
|
# DevBooks: Test Owner
|
|
14
14
|
|
|
15
|
+
## Workflow Position Awareness
|
|
16
|
+
|
|
17
|
+
> **Core Principle**: Test Owner has **dual-phase responsibilities** in the overall workflow, ensuring role isolation from Coder.
|
|
18
|
+
|
|
19
|
+
### My Position in the Overall Workflow
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
proposal → design → [Test Owner Phase 1] → coder → [Test Owner Phase 2] → code-review → archive
|
|
23
|
+
↓ ↓
|
|
24
|
+
Red baseline output Green verification + check off
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Test Owner's Dual-Phase Responsibilities
|
|
28
|
+
|
|
29
|
+
| Phase | Trigger | Core Responsibility | Output |
|
|
30
|
+
|-------|---------|---------------------|--------|
|
|
31
|
+
| **Phase 1: Red Baseline** | After design.md is complete | Write tests, produce failure evidence | verification.md (Status=Ready), Red baseline |
|
|
32
|
+
| **Phase 2: Green Verification** | After Coder completes | Verify tests pass, check off AC matrix | AC matrix checked, Status remains Ready (wait for Reviewer to set Done) |
|
|
33
|
+
|
|
34
|
+
### Phase 2 Detailed Responsibilities (Critical!)
|
|
35
|
+
|
|
36
|
+
When user says "Coder is done, please verify" or similar, Test Owner enters **Phase 2**:
|
|
37
|
+
|
|
38
|
+
1. **Run all tests**: Execute `npm test` or project test command
|
|
39
|
+
2. **Verify Green status**: Confirm all tests pass
|
|
40
|
+
3. **Check off AC Coverage Matrix**: Change `[ ]` to `[x]` in verification.md AC Coverage Matrix
|
|
41
|
+
4. **Collect Green evidence**: Save to `evidence/green-final/`
|
|
42
|
+
5. **Output verification report**: Summarize test results and coverage
|
|
43
|
+
|
|
44
|
+
### AC Coverage Matrix Checkbox Permissions (Important!)
|
|
45
|
+
|
|
46
|
+
| Checkbox Location | Who Can Check | When to Check |
|
|
47
|
+
|-------------------|---------------|---------------|
|
|
48
|
+
| `[ ]` in AC Coverage Matrix | **Test Owner** | Phase 2 after verifying Green status |
|
|
49
|
+
| Status field `Done` | Reviewer | After Code Review passes |
|
|
50
|
+
|
|
51
|
+
**Prohibited**: Coder cannot check AC Coverage Matrix, cannot modify verification.md.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
15
55
|
## Prerequisites: Configuration Discovery (Protocol-Agnostic)
|
|
16
56
|
|
|
17
57
|
- `<truth-root>`: Current truth directory root
|
|
@@ -339,28 +379,53 @@ During test writing, you **must immediately** write to `deviation-log.md` in the
|
|
|
339
379
|
|
|
340
380
|
## Completion Status and Routing
|
|
341
381
|
|
|
342
|
-
###
|
|
382
|
+
### Phase Awareness (Critical!)
|
|
383
|
+
|
|
384
|
+
Test Owner has two phases, completion status varies by phase:
|
|
385
|
+
|
|
386
|
+
| Current Phase | How to Determine | Next Step After Completion |
|
|
387
|
+
|---------------|------------------|---------------------------|
|
|
388
|
+
| **Phase 1** | verification.md doesn't exist or Red baseline not produced | → Coder |
|
|
389
|
+
| **Phase 2** | User says "verify/check off" and Coder has completed | → Code Review |
|
|
390
|
+
|
|
391
|
+
### Phase 1 Completion Status Classification (MECE)
|
|
343
392
|
|
|
344
393
|
| Code | Status | Determination Criteria | Next Step |
|
|
345
394
|
|:----:|--------|------------------------|-----------|
|
|
346
|
-
| ✅ |
|
|
347
|
-
| ⚠️ |
|
|
395
|
+
| ✅ | PHASE1_COMPLETED | Red baseline produced, no deviations | `devbooks-coder` (separate session) |
|
|
396
|
+
| ⚠️ | PHASE1_COMPLETED_WITH_DEVIATION | Red baseline produced, deviation-log has pending records | `devbooks-design-backport` |
|
|
348
397
|
| ❌ | BLOCKED | Needs external input/decision | Record breakpoint, wait for user |
|
|
349
398
|
| 💥 | FAILED | Test framework issues etc. | Fix and retry |
|
|
350
399
|
|
|
351
|
-
### Status
|
|
400
|
+
### Phase 2 Completion Status Classification (MECE)
|
|
352
401
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
402
|
+
| Code | Status | Determination Criteria | Next Step |
|
|
403
|
+
|:----:|--------|------------------------|-----------|
|
|
404
|
+
| ✅ | PHASE2_VERIFIED | Tests all green, AC matrix checked | `devbooks-code-review` |
|
|
405
|
+
| ❌ | PHASE2_FAILED | Tests not passing | Notify Coder to fix, or HANDOFF |
|
|
406
|
+
| 🔄 | PHASE2_HANDOFF | Found issues with tests themselves | Fix tests then re-verify |
|
|
356
407
|
|
|
357
|
-
|
|
358
|
-
- verification.md exists with traceability matrix
|
|
359
|
-
- evidence/red-baseline/ exists
|
|
360
|
-
→ No: BLOCKED or FAILED
|
|
408
|
+
### Phase Determination Flow
|
|
361
409
|
|
|
362
|
-
|
|
363
|
-
|
|
410
|
+
```
|
|
411
|
+
1. Check which phase we're in:
|
|
412
|
+
- verification.md doesn't exist → Phase 1
|
|
413
|
+
- verification.md exists but AC matrix all [ ] → Phase 1 or Phase 2 (depends on user request)
|
|
414
|
+
- User explicitly says "verify/check off/Coder is done" → Phase 2
|
|
415
|
+
|
|
416
|
+
2. Phase 1 status determination:
|
|
417
|
+
a. Check if deviation-log.md has "| ❌" records
|
|
418
|
+
→ Yes: PHASE1_COMPLETED_WITH_DEVIATION
|
|
419
|
+
b. Check if Red baseline is produced
|
|
420
|
+
→ No: BLOCKED or FAILED
|
|
421
|
+
c. All above pass → PHASE1_COMPLETED
|
|
422
|
+
|
|
423
|
+
3. Phase 2 status determination:
|
|
424
|
+
a. Run tests, check if all green
|
|
425
|
+
→ No: PHASE2_FAILED
|
|
426
|
+
b. Check if tests themselves have issues
|
|
427
|
+
→ Yes: PHASE2_HANDOFF
|
|
428
|
+
c. All green and no issues → PHASE2_VERIFIED
|
|
364
429
|
```
|
|
365
430
|
|
|
366
431
|
### Routing Output Template (Required)
|
|
@@ -370,15 +435,21 @@ After completing test-owner, **must** output in this format:
|
|
|
370
435
|
```markdown
|
|
371
436
|
## Completion Status
|
|
372
437
|
|
|
373
|
-
**
|
|
438
|
+
**Phase**: Phase 1 (Red Baseline) / Phase 2 (Green Verification)
|
|
439
|
+
|
|
440
|
+
**Status**: ✅ PHASE1_COMPLETED / ✅ PHASE2_VERIFIED / ⚠️ ... / ❌ ... / 💥 ...
|
|
441
|
+
|
|
442
|
+
**Red Baseline**: Produced / Not completed (Phase 1 only)
|
|
443
|
+
|
|
444
|
+
**Green Verification**: All green / Has failures (Phase 2 only)
|
|
374
445
|
|
|
375
|
-
**
|
|
446
|
+
**AC Matrix**: Checked N/M / Not checked (Phase 2 only)
|
|
376
447
|
|
|
377
448
|
**Deviation Records**: Has N pending / None
|
|
378
449
|
|
|
379
450
|
## Next Step
|
|
380
451
|
|
|
381
|
-
**Recommended**: `devbooks-xxx skill`
|
|
452
|
+
**Recommended**: `devbooks-xxx skill`
|
|
382
453
|
|
|
383
454
|
**Reason**: [specific reason]
|
|
384
455
|
|
|
@@ -390,8 +461,11 @@ Run devbooks-xxx skill for change <change-id>
|
|
|
390
461
|
|
|
391
462
|
| My Status | Next Step | Reason |
|
|
392
463
|
|-----------|-----------|--------|
|
|
393
|
-
|
|
|
394
|
-
|
|
|
464
|
+
| PHASE1_COMPLETED | `devbooks-coder` (separate session) | Red baseline produced, Coder implements to make Green |
|
|
465
|
+
| PHASE1_COMPLETED_WITH_DEVIATION | `devbooks-design-backport` | Backport design first, then hand to Coder |
|
|
466
|
+
| PHASE2_VERIFIED | `devbooks-code-review` | Tests all green, can proceed to code review |
|
|
467
|
+
| PHASE2_FAILED | Notify Coder | Tests not passing, need Coder to fix |
|
|
468
|
+
| PHASE2_HANDOFF | Fix tests | Tests themselves have issues, Test Owner fixes |
|
|
395
469
|
| BLOCKED | Wait for user | Record breakpoint area |
|
|
396
470
|
| FAILED | Fix and retry | Analyze failure reason |
|
|
397
471
|
|
|
@@ -399,6 +473,7 @@ Run devbooks-xxx skill for change <change-id>
|
|
|
399
473
|
- **Role Isolation**: Coder must work in a **separate conversation/instance**
|
|
400
474
|
- Test Owner and Coder cannot share the same session context
|
|
401
475
|
- If deviations exist, must design-backport first before handing to Coder
|
|
476
|
+
- **Phase 2 AC matrix checking can only be done by Test Owner**
|
|
402
477
|
|
|
403
478
|
---
|
|
404
479
|
|