specsmd 0.1.5 → 0.1.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/flows/aidlc/commands/construction-agent.md +1 -1
- package/flows/aidlc/memory-bank.yaml +2 -1
- package/flows/aidlc/skills/construction/bolt-list.md +1 -1
- package/flows/aidlc/skills/construction/bolt-status.md +1 -1
- package/flows/aidlc/skills/master/analyze-context.md +1 -1
- package/flows/aidlc/templates/construction/bolt-template.md +2 -2
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +73 -11
- package/flows/aidlc/templates/standards/decision-index-template.md +32 -0
- package/package.json +2 -2
|
@@ -29,7 +29,7 @@ You are now the **Construction Agent** for specsmd AI-DLC.
|
|
|
29
29
|
1. **Read Schema**: `.specsmd/aidlc/memory-bank.yaml`
|
|
30
30
|
2. **Verify Unit**: Check unit exists and has completed inception
|
|
31
31
|
3. **Load Bolts**: Find bolts for this unit
|
|
32
|
-
4. **Determine State**: Check which bolts are planned/in-progress/
|
|
32
|
+
4. **Determine State**: Check which bolts are planned/in-progress/complete
|
|
33
33
|
5. **Present Menu or Continue**: Show status or continue active bolt
|
|
34
34
|
|
|
35
35
|
---
|
|
@@ -81,13 +81,14 @@ schema:
|
|
|
81
81
|
story-index: "memory-bank/story-index.md"
|
|
82
82
|
inception-log: "memory-bank/intents/{intent-name}/inception-log.md"
|
|
83
83
|
construction-log: "memory-bank/intents/{intent-name}/units/{unit-name}/construction-log.md"
|
|
84
|
+
decision-index: "memory-bank/standards/decision-index.md"
|
|
84
85
|
|
|
85
86
|
# Agent Ownership
|
|
86
87
|
# Note: Both Inception and Construction can plan/create bolts
|
|
87
88
|
# Inception: initial planning, Construction: replanning during execution
|
|
88
89
|
ownership:
|
|
89
90
|
inception: [intents, units, stories, story-index, bolts] # Plans bolts initially
|
|
90
|
-
construction: [units, bolts]
|
|
91
|
+
construction: [units, bolts, decision-index] # Executes, can replan bolts, maintains decision index
|
|
91
92
|
operations: [operations]
|
|
92
93
|
|
|
93
94
|
# Global Story Index Options
|
|
@@ -81,7 +81,7 @@ Check for issues:
|
|
|
81
81
|
- **Unit**: `{unit-name}`
|
|
82
82
|
- **Intent**: `{intent-name}`
|
|
83
83
|
- **Type**: {bolt-type}
|
|
84
|
-
- **Status**: {planned|in-progress|
|
|
84
|
+
- **Status**: {planned|in-progress|complete|blocked}
|
|
85
85
|
|
|
86
86
|
### Progress
|
|
87
87
|
[██████████░░░░░░░░░░] 50% (2/4 stages)
|
|
@@ -53,7 +53,7 @@ For recent/active intents:
|
|
|
53
53
|
Check `schema.bolts` directory:
|
|
54
54
|
|
|
55
55
|
- Are there bolt instance files?
|
|
56
|
-
- What is their status? (planned, in-progress,
|
|
56
|
+
- What is their status? (planned, in-progress, complete)
|
|
57
57
|
- What stage are in-progress bolts at?
|
|
58
58
|
|
|
59
59
|
### 5. Determine Phase
|
|
@@ -67,7 +67,7 @@ Before creating a bolt, verify ALL required fields are present:
|
|
|
67
67
|
| `unit` | **YES** | Parent unit ID |
|
|
68
68
|
| `intent` | **YES** | Parent intent ID |
|
|
69
69
|
| `type` | **YES** | Bolt type (`ddd-construction-bolt` or `simple-construction-bolt`) |
|
|
70
|
-
| `status` | **YES** | Current status (`planned`, `in-progress`, `
|
|
70
|
+
| `status` | **YES** | Current status (`planned`, `in-progress`, `complete`, `blocked`) |
|
|
71
71
|
| `stories` | **YES** | Array of story IDs included in this bolt |
|
|
72
72
|
| `created` | **YES** | Creation timestamp |
|
|
73
73
|
| `requires_bolts` | **YES** | Array of bolt IDs this depends on (can be empty `[]`) |
|
|
@@ -134,7 +134,7 @@ Before creating a bolt, verify ALL required fields are present:
|
|
|
134
134
|
|
|
135
135
|
- **planned**: Bolt created, not started
|
|
136
136
|
- **in-progress**: Currently being executed
|
|
137
|
-
- **
|
|
137
|
+
- **complete**: All stages done
|
|
138
138
|
- **blocked**: Cannot proceed due to dependency
|
|
139
139
|
|
|
140
140
|
---
|
|
@@ -272,6 +272,7 @@ Suggest an ADR when you identify:
|
|
|
272
272
|
3 - **Identify ADR-worthy decisions**: Create decision list
|
|
273
273
|
4 - **Present opportunities to user**: Get user selection
|
|
274
274
|
5 - **Create ADR documents**: Generate selected ADRs
|
|
275
|
+
6 - **Update decision index**: Add entries to `memory-bank/standards/decision-index.md`
|
|
275
276
|
|
|
276
277
|
**Artifact**: `adr-{number}-{slug}.md` (zero or more)
|
|
277
278
|
**Template**: `.specsmd/aidlc/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md`
|
|
@@ -282,7 +283,8 @@ Suggest an ADR when you identify:
|
|
|
282
283
|
1. Review stories, domain model, and technical design
|
|
283
284
|
2. Compare against loaded project standards
|
|
284
285
|
3. If decision-worthy patterns detected, present opportunities to user
|
|
285
|
-
4. Handle user response
|
|
286
|
+
4. Handle user response (create selected ADRs or skip)
|
|
287
|
+
5. Update decision index (if ADRs created) and proceed to checkpoint
|
|
286
288
|
|
|
287
289
|
**Step 3 Output Format**:
|
|
288
290
|
|
|
@@ -299,10 +301,36 @@ Would you like to create ADRs for any of these? (Enter numbers, "all", or "skip"
|
|
|
299
301
|
|
|
300
302
|
**Step 4 Decision Handling**:
|
|
301
303
|
|
|
302
|
-
- **User selects numbers or "all"** → Generate ADRs using template, then
|
|
304
|
+
- **User selects numbers or "all"** → Generate ADRs using template, then update decision index
|
|
303
305
|
- **User selects "skip"** → Proceed to checkpoint with "No ADRs created"
|
|
304
306
|
- **No ADR opportunities identified** → Auto-proceed to checkpoint with "No ADR-worthy decisions found"
|
|
305
307
|
|
|
308
|
+
**Step 5 Decision Index Update**:
|
|
309
|
+
|
|
310
|
+
For each ADR created, add an entry to `memory-bank/standards/decision-index.md`:
|
|
311
|
+
|
|
312
|
+
1. If `decision-index.md` doesn't exist, create it from template: `.specsmd/aidlc/templates/standards/decision-index-template.md`
|
|
313
|
+
2. Add entry for each ADR in the following format:
|
|
314
|
+
|
|
315
|
+
```markdown
|
|
316
|
+
### ADR-{n}: {title}
|
|
317
|
+
- **Status**: {status from ADR frontmatter}
|
|
318
|
+
- **Date**: {YYYY-MM-DD from ADR created timestamp}
|
|
319
|
+
- **Bolt**: {bolt-id} ({unit-name})
|
|
320
|
+
- **Path**: `bolts/{bolt-id}/adr-{n}-{slug}.md`
|
|
321
|
+
- **Summary**: {First sentence from Context section}. {First sentence from Decision section}.
|
|
322
|
+
- **Read when**: {Generate guidance based on the ADR's domain - describe scenarios when agents should read this ADR}
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
1. Update frontmatter: increment `total_decisions`, update `last_updated` timestamp
|
|
326
|
+
|
|
327
|
+
**"Read when" Guidance Examples**:
|
|
328
|
+
|
|
329
|
+
- "Working on authentication flows or session management"
|
|
330
|
+
- "Implementing caching strategies or data persistence patterns"
|
|
331
|
+
- "Designing API contracts or integration points"
|
|
332
|
+
- "Handling error cases or implementing retry logic"
|
|
333
|
+
|
|
306
334
|
**Example ADR**:
|
|
307
335
|
|
|
308
336
|
```markdown
|
|
@@ -330,6 +358,7 @@ Implement CQRS pattern with separate read models for task queries.
|
|
|
330
358
|
- [ ] Project standards compared
|
|
331
359
|
- [ ] User presented with ADR opportunities (if any)
|
|
332
360
|
- [ ] Selected ADRs created (or explicitly skipped)
|
|
361
|
+
- [ ] Decision index updated (if ADRs were created)
|
|
333
362
|
|
|
334
363
|
**Important**: Do not force ADRs. Only suggest when there's genuine value. Simple bolts with straightforward decisions don't need ADRs.
|
|
335
364
|
|
|
@@ -495,6 +524,37 @@ status: in-progress
|
|
|
495
524
|
|
|
496
525
|
## Bolt Context Loading
|
|
497
526
|
|
|
527
|
+
### Prior Decision Lookup (All Stages)
|
|
528
|
+
|
|
529
|
+
**Before starting any stage**, scan the decision index for relevant prior ADRs:
|
|
530
|
+
|
|
531
|
+
1. Read `memory-bank/standards/decision-index.md` (if it exists)
|
|
532
|
+
2. Match the current bolt's domain/scope against "Read when" fields
|
|
533
|
+
3. Load full ADRs for any matching entries
|
|
534
|
+
4. Consider these decisions as constraints or guidance for the current work
|
|
535
|
+
|
|
536
|
+
**Example**: If working on a bolt for "user-service" and the decision index contains:
|
|
537
|
+
|
|
538
|
+
```text
|
|
539
|
+
### ADR-001: Use JWT for Authentication
|
|
540
|
+
- **Read when**: Working on authentication flows or user services
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
→ Load and consider `ADR-001` before starting design work.
|
|
544
|
+
|
|
545
|
+
**Present relevant ADRs to user** at bolt start:
|
|
546
|
+
|
|
547
|
+
```text
|
|
548
|
+
## Relevant Prior Decisions
|
|
549
|
+
|
|
550
|
+
Found {n} ADR(s) that may apply to this bolt:
|
|
551
|
+
- ADR-001: Use JWT for Authentication → [View](bolts/001-auth-service/adr-001-jwt-auth.md)
|
|
552
|
+
|
|
553
|
+
These decisions may constrain or guide your approach. Proceed? (y/n)
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
### Bolt Folder Artifacts (Stages 4-5)
|
|
557
|
+
|
|
498
558
|
For stages that build on previous work (Stage 4: Implement, Stage 5: Test), load all artifacts from the bolt folder:
|
|
499
559
|
|
|
500
560
|
**Location**: `memory-bank/bolts/{bolt-id}/`
|
|
@@ -515,14 +575,16 @@ This ensures the implementation and test stages have full context from earlier d
|
|
|
515
575
|
1. **Load bolt instance** from path defined by `schema.bolts`
|
|
516
576
|
2. **Read `bolt_type` field** (e.g., `ddd-construction-bolt`)
|
|
517
577
|
3. **Load this definition** from `.specsmd/aidlc/templates/construction/bolt-types/`
|
|
518
|
-
4. **
|
|
519
|
-
5. **
|
|
520
|
-
6. **
|
|
521
|
-
7. **
|
|
522
|
-
8.
|
|
523
|
-
9. **
|
|
524
|
-
10.
|
|
525
|
-
|
|
526
|
-
|
|
578
|
+
4. **Scan decision index** for relevant prior ADRs (see Prior Decision Lookup)
|
|
579
|
+
5. **Present relevant ADRs** to user if any found, get confirmation to proceed
|
|
580
|
+
6. **Check `current_stage`** in bolt instance
|
|
581
|
+
7. **Load bolt folder artifacts** if stage requires previous context (see Bolt Folder Artifacts)
|
|
582
|
+
8. **Execute stage** following activities defined here
|
|
583
|
+
9. **Create artifacts** using templates
|
|
584
|
+
10. **⛔ STOP and present completion summary** - DO NOT continue automatically
|
|
585
|
+
11. **Wait for user confirmation** - user must explicitly approve (e.g., "continue", "proceed", "next")
|
|
586
|
+
12. **Only after approval**: Update bolt state and advance to next stage
|
|
587
|
+
|
|
588
|
+
**⛔ CRITICAL**: Steps 10-11 are MANDATORY. Never skip the human checkpoint. Never auto-advance.
|
|
527
589
|
|
|
528
590
|
The Construction Agent is **bolt-type agnostic** - it reads stages from this file and executes them.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
last_updated: {YYYY-MM-DDTHH:MM:SSZ}
|
|
3
|
+
total_decisions: 0
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Decision Index
|
|
7
|
+
|
|
8
|
+
This index tracks all Architecture Decision Records (ADRs) created during Construction bolts.
|
|
9
|
+
Use this to find relevant prior decisions when working on related features.
|
|
10
|
+
|
|
11
|
+
## How to Use
|
|
12
|
+
|
|
13
|
+
**For Agents**: Scan the "Read when" fields below to identify decisions relevant to your current task. Before implementing new features, check if existing ADRs constrain or guide your approach. Load the full ADR for matching entries.
|
|
14
|
+
|
|
15
|
+
**For Humans**: Browse decisions chronologically or search for keywords. Each entry links to the full ADR with complete context, alternatives considered, and consequences.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Decisions
|
|
20
|
+
|
|
21
|
+
<!-- Entries are appended below in reverse chronological order (newest first) -->
|
|
22
|
+
<!-- Format for each entry:
|
|
23
|
+
|
|
24
|
+
### ADR-{n}: {title}
|
|
25
|
+
- **Status**: {proposed|accepted|deprecated|superseded}
|
|
26
|
+
- **Date**: {YYYY-MM-DD}
|
|
27
|
+
- **Bolt**: {bolt-id} ({unit-name})
|
|
28
|
+
- **Path**: `bolts/{bolt-id}/adr-{n}-{slug}.md`
|
|
29
|
+
- **Summary**: {First sentence from Context}. {First sentence from Decision}.
|
|
30
|
+
- **Read when**: {Agent guidance - domain keywords and scenarios when this ADR is relevant}
|
|
31
|
+
|
|
32
|
+
-->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specsmd",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
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": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"markdownlint": "^0.40.0",
|
|
62
62
|
"markdownlint-cli": "^0.46.0",
|
|
63
63
|
"remark-parse": "^11.0.0",
|
|
64
|
-
"semantic-release": "^
|
|
64
|
+
"semantic-release": "^25.0.2",
|
|
65
65
|
"typescript": "^5.9.3",
|
|
66
66
|
"unified": "^11.0.5",
|
|
67
67
|
"unist-util-visit": "^5.0.0",
|