specsmd 0.0.0-dev.57 → 0.0.0-dev.58
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.
|
@@ -41,11 +41,12 @@ When routed from Orchestrator or user invokes this agent:
|
|
|
41
41
|
### Autopilot Mode (0 checkpoints)
|
|
42
42
|
|
|
43
43
|
```text
|
|
44
|
-
[1]
|
|
45
|
-
[2]
|
|
46
|
-
[3]
|
|
47
|
-
[4]
|
|
48
|
-
[5]
|
|
44
|
+
[1] Call init-run.js to initialize run (creates run folder + run.md)
|
|
45
|
+
[2] Load work item and context
|
|
46
|
+
[3] Execute implementation directly
|
|
47
|
+
[4] Run tests
|
|
48
|
+
[5] Generate walkthrough
|
|
49
|
+
[6] Call complete-run.js to finalize (updates state.yaml + run.md)
|
|
49
50
|
```
|
|
50
51
|
|
|
51
52
|
For: Bug fixes, minor updates, low-complexity tasks.
|
|
@@ -53,15 +54,16 @@ For: Bug fixes, minor updates, low-complexity tasks.
|
|
|
53
54
|
### Confirm Mode (1 checkpoint)
|
|
54
55
|
|
|
55
56
|
```text
|
|
56
|
-
[1]
|
|
57
|
-
[2]
|
|
58
|
-
[3]
|
|
57
|
+
[1] Call init-run.js to initialize run (creates run folder + run.md)
|
|
58
|
+
[2] Load work item and context
|
|
59
|
+
[3] Generate implementation plan
|
|
60
|
+
[4] CHECKPOINT: Present plan to user
|
|
59
61
|
→ User confirms → Continue
|
|
60
62
|
→ User modifies → Adjust plan, re-confirm
|
|
61
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
63
|
+
[5] Execute implementation
|
|
64
|
+
[6] Run tests
|
|
65
|
+
[7] Generate walkthrough
|
|
66
|
+
[8] Call complete-run.js to finalize (updates state.yaml + run.md)
|
|
65
67
|
```
|
|
66
68
|
|
|
67
69
|
For: Standard features, medium-complexity tasks.
|
|
@@ -69,16 +71,17 @@ For: Standard features, medium-complexity tasks.
|
|
|
69
71
|
### Validate Mode (2 checkpoints)
|
|
70
72
|
|
|
71
73
|
```text
|
|
72
|
-
[1]
|
|
73
|
-
[2]
|
|
74
|
-
[3]
|
|
75
|
-
[4]
|
|
74
|
+
[1] Call init-run.js to initialize run (creates run folder + run.md)
|
|
75
|
+
[2] Load work item and design doc
|
|
76
|
+
[3] CHECKPOINT 1: Design doc review (already done by Planner)
|
|
77
|
+
[4] Generate implementation plan
|
|
78
|
+
[5] CHECKPOINT 2: Present plan to user
|
|
76
79
|
→ User confirms → Continue
|
|
77
80
|
→ User modifies → Adjust plan, re-confirm
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
[
|
|
81
|
-
[
|
|
81
|
+
[6] Execute implementation
|
|
82
|
+
[7] Run tests
|
|
83
|
+
[8] Generate walkthrough
|
|
84
|
+
[9] Call complete-run.js to finalize (updates state.yaml + run.md)
|
|
82
85
|
```
|
|
83
86
|
|
|
84
87
|
For: Security features, payments, core architecture.
|
|
@@ -136,6 +139,36 @@ files_modified:
|
|
|
136
139
|
|
|
137
140
|
---
|
|
138
141
|
|
|
142
|
+
## CRITICAL: Script Usage for State Management
|
|
143
|
+
|
|
144
|
+
**NEVER edit `.specs-fire/state.yaml` or run artifacts directly.**
|
|
145
|
+
|
|
146
|
+
All state changes MUST go through the scripts in `skills/run-execute/scripts/`:
|
|
147
|
+
|
|
148
|
+
| Action | Script | Direct Editing |
|
|
149
|
+
|--------|--------|----------------|
|
|
150
|
+
| Initialize run | `node scripts/init-run.js ...` | ❌ FORBIDDEN |
|
|
151
|
+
| Complete work item | `node scripts/complete-run.js ... --complete-item` | ❌ FORBIDDEN |
|
|
152
|
+
| Complete run | `node scripts/complete-run.js ... --complete-run` | ❌ FORBIDDEN |
|
|
153
|
+
| Create run folder | (handled by init-run.js) | ❌ NO mkdir |
|
|
154
|
+
| Create run.md | (handled by init-run.js) | ❌ NO direct write |
|
|
155
|
+
| Update state.yaml | (handled by scripts) | ❌ NO direct edit |
|
|
156
|
+
|
|
157
|
+
**Why scripts are mandatory:**
|
|
158
|
+
- Scripts atomically update both state.yaml AND run artifacts
|
|
159
|
+
- Scripts track run history in `runs.completed`
|
|
160
|
+
- Scripts handle batch run state transitions
|
|
161
|
+
- Scripts ensure consistent state across interruptions
|
|
162
|
+
|
|
163
|
+
**If you find yourself about to:**
|
|
164
|
+
- `mkdir .specs-fire/runs/run-XXX` → STOP, use `init-run.js`
|
|
165
|
+
- Edit `state.yaml` directly → STOP, use `complete-run.js`
|
|
166
|
+
- Write `run.md` directly → STOP, use `init-run.js`
|
|
167
|
+
|
|
168
|
+
See `skills/run-execute/SKILL.md` for full script documentation.
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
139
172
|
## Brownfield Rules
|
|
140
173
|
|
|
141
174
|
When working in existing codebases:
|
|
@@ -165,12 +198,14 @@ Each run creates a folder with its artifacts:
|
|
|
165
198
|
- **test-report.md** — Test results and acceptance criteria validation
|
|
166
199
|
- **walkthrough.md** — Human-readable summary after completion
|
|
167
200
|
|
|
168
|
-
| Artifact | Location |
|
|
169
|
-
|
|
170
|
-
| Plan | `.specs-fire/runs/{run-id}/plan.md` | `skills/run-execute/templates/plan.md.hbs` |
|
|
171
|
-
| Run Log | `.specs-fire/runs/{run-id}/run.md` | (
|
|
172
|
-
| Test Report | `.specs-fire/runs/{run-id}/test-report.md` | `skills/run-execute/templates/test-report.md.hbs` |
|
|
173
|
-
| Walkthrough | `.specs-fire/runs/{run-id}/walkthrough.md` | `skills/walkthrough-generate/templates/walkthrough.md.hbs` |
|
|
201
|
+
| Artifact | Location | Created By |
|
|
202
|
+
|----------|----------|------------|
|
|
203
|
+
| Plan | `.specs-fire/runs/{run-id}/plan.md` | Agent (template: `skills/run-execute/templates/plan.md.hbs`) |
|
|
204
|
+
| Run Log | `.specs-fire/runs/{run-id}/run.md` | **init-run.js script** (NEVER create manually) |
|
|
205
|
+
| Test Report | `.specs-fire/runs/{run-id}/test-report.md` | Agent (template: `skills/run-execute/templates/test-report.md.hbs`) |
|
|
206
|
+
| Walkthrough | `.specs-fire/runs/{run-id}/walkthrough.md` | Agent (template: `skills/walkthrough-generate/templates/walkthrough.md.hbs`) |
|
|
207
|
+
|
|
208
|
+
**IMPORTANT**: The run folder and run.md are created by `init-run.js`. Do NOT use mkdir or Write tool to create these.
|
|
174
209
|
|
|
175
210
|
---
|
|
176
211
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specsmd",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.58",
|
|
4
4
|
"description": "Multi-agent orchestration system for AI-native software development. Delivers AI-DLC, Agile, and custom SDLC flows as markdown-based agent systems.",
|
|
5
5
|
"main": "lib/installer.js",
|
|
6
6
|
"bin": {
|