Skip to content

Commit f5a0d24

Browse files
committed
feat: Add multi-user parallel development support to AI-DLC
This commit introduces comprehensive multi-user collaboration capabilities: New Features: - Multi-user parallel development with automatic branch management - User-scoped audit files to prevent conflicts - Unit assignment tracking and dependency-aware consolidation - Consolidated project views with automatic indexing New Files: - AGENTS.md.example: Configuration template for multi-user behavior - MULTI-USER-GUIDE.md: Comprehensive guide for team collaboration - MULTI-USER-IMPLEMENTATION.md: Technical implementation details - QUICK-REFERENCE.md: Quick commands and workflows reference - multi-user-commands.md: Command handling rules - multi-user-parallel.md: Parallel workflow orchestration rules Updated Files: - README.md: Added multi-user documentation and configuration sections - Rule files enhanced with minimal multi-user specific additions - All documentation uses current 'kiro-cli chat' command syntax This enables teams to work on different units simultaneously while maintaining audit isolation and providing automatic consolidation capabilities.
1 parent 3f3df91 commit f5a0d24

File tree

7 files changed

+1720
-0
lines changed

7 files changed

+1720
-0
lines changed

AGENTS.md.example

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# AGENTS.md - Project Configuration
2+
3+
Copy to project root as `AGENTS.md` to customize multi-user behavior.
4+
5+
## Folder Structure
6+
7+
### Generated Code
8+
```
9+
[unit-name]/
10+
├── src/ # Source code (language-specific structure)
11+
├── tests/ # Tests
12+
└── docs/ # Documentation
13+
```
14+
15+
### Audits
16+
```
17+
aidlc-docs/audits/[unit-name]/[developer]/
18+
```
19+
20+
### Branches
21+
```
22+
feature/[unit-name]-[developer]
23+
```
24+
25+
## Custom Paths (Optional)
26+
27+
Override defaults by specifying:
28+
- `code_root`: Base path for generated code (default: `[unit-name]/`)
29+
- `audit_root`: Base path for audits (default: `aidlc-docs/audits/`)
30+
- `branch_prefix`: Branch naming prefix (default: `feature/`)

MULTI-USER-GUIDE.md

Lines changed: 339 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,339 @@
1+
# Multi-User Parallel Development Guide
2+
3+
## Overview
4+
5+
AI-DLC now supports multiple developers working on different units simultaneously with automatic branch management, audit isolation, and consolidation.
6+
7+
## Quick Start
8+
9+
### 1. Complete Inception Phase (Lead Developer)
10+
11+
```bash
12+
kiro-cli chat "Create a user management system with authentication"
13+
```
14+
15+
The AI will guide you through:
16+
- Workspace Detection
17+
- Requirements Analysis
18+
- Application Design
19+
- Units Generation
20+
21+
After units are generated, you'll see:
22+
23+
```
24+
🎯 Ready for Parallel Development
25+
26+
3 units are ready. Multiple developers can now work in parallel.
27+
28+
Your Options:
29+
30+
A) Claim a unit now (you will work on it immediately)
31+
B) Enable team collaboration (share with team)
32+
C) Work on all units sequentially (traditional mode)
33+
34+
Which option? [A/B/C]
35+
```
36+
37+
### 2. Enable Team Collaboration
38+
39+
Choose **Option B** to enable team collaboration:
40+
41+
```
42+
✅ Project Ready for Team Collaboration
43+
44+
Share with your team:
45+
1. git pull origin main
46+
2. kiro-cli chat "list units"
47+
3. kiro-cli chat "claim unit <unit-name>"
48+
```
49+
50+
### 3. Team Members Claim Units
51+
52+
Each team member:
53+
54+
```bash
55+
# Pull latest
56+
git pull origin main
57+
58+
# View available units
59+
kiro-cli chat "list units"
60+
61+
# Output:
62+
# ✅ user-service (alice) - Completed
63+
# 🔄 auth-service (bob) - In Progress
64+
# ⭐ profile-service - Available
65+
# ⏳ admin-service - Blocked (depends on auth-service)
66+
67+
# Claim an available unit
68+
kiro-cli chat "claim unit profile-service"
69+
```
70+
71+
The AI will automatically:
72+
- Create branch: `unit/profile-service-charlie`
73+
- Update assignments
74+
- Initialize workspace
75+
- Start Construction Phase for that unit
76+
77+
### 4. Work on Your Unit
78+
79+
The AI guides you through Construction Phase stages:
80+
- Functional Design
81+
- NFR Requirements
82+
- NFR Design
83+
- Infrastructure Design
84+
- Code Generation
85+
86+
All work happens in your isolated branch with your own audit trail:
87+
- Branch: `unit/profile-service-charlie`
88+
- Audit: `aidlc-docs/audit/user-charlie-audit.md`
89+
90+
### 5. Complete Your Unit
91+
92+
When done:
93+
94+
```bash
95+
kiro-cli chat "complete unit profile-service"
96+
```
97+
98+
The AI will:
99+
- Validate all stages completed
100+
- Commit your work
101+
- Push your branch
102+
- Create PR checklist
103+
- Offer next actions
104+
105+
### 6. Consolidate Units (Lead/Integrator)
106+
107+
When all units are ready:
108+
109+
```bash
110+
kiro-cli chat "consolidate units"
111+
```
112+
113+
The AI will:
114+
- Check dependencies
115+
- Merge units in correct order
116+
- Update consolidated index
117+
- Generate consolidated audit
118+
- Trigger Build and Test phase
119+
120+
## Commands Reference
121+
122+
### Unit Management
123+
124+
| Command | Description |
125+
|---------|-------------|
126+
| `list units` | Show all units and their status |
127+
| `claim unit <name>` | Claim a unit for development |
128+
| `complete unit <name>` | Mark unit as complete |
129+
| `merge unit <name>` | Merge completed unit to main |
130+
| `consolidate units` | Merge all completed units |
131+
| `unit status <name>` | Show detailed unit status |
132+
133+
### Audit Management
134+
135+
| Command | Description |
136+
|---------|-------------|
137+
| `show audit` | Display your audit trail |
138+
| `show all audits` | Display all team audits |
139+
| `audit summary` | Generate project audit summary |
140+
141+
### Natural Language
142+
143+
The AI understands natural language too:
144+
145+
```bash
146+
kiro-cli chat "I want to work on the user service"
147+
# → Executes: claim unit user-service
148+
149+
kiro-cli chat "I'm done with payment service"
150+
# → Executes: complete unit payment-service
151+
152+
kiro-cli chat "what units are available?"
153+
# → Executes: list units
154+
155+
kiro-cli chat "integrate everything"
156+
# → Executes: consolidate units
157+
```
158+
159+
## File Structure
160+
161+
### Per-User Audit Files
162+
163+
```
164+
aidlc-docs/
165+
├── audit/
166+
│ ├── user-alice-audit.md # Alice's audit trail
167+
│ ├── user-bob-audit.md # Bob's audit trail
168+
│ ├── user-charlie-audit.md # Charlie's audit trail
169+
│ ├── audit-index.md # Index of all audits
170+
│ └── consolidated-audit.md # Merged view
171+
```
172+
173+
### Unit Branches
174+
175+
```
176+
main # Inception artifacts
177+
├── unit/user-service-alice # Alice's unit
178+
├── unit/auth-service-bob # Bob's unit
179+
└── unit/profile-service-charlie # Charlie's unit
180+
```
181+
182+
### Unit Assignments
183+
184+
```
185+
aidlc-docs/construction/unit-assignments.md
186+
```
187+
188+
| Unit | Assigned To | Status | Branch | Started | Completed |
189+
|------|-------------|--------|--------|---------|-----------|
190+
| user-service | alice | Completed | unit/user-service-alice | 2025-11-05 09:00 | 2025-11-05 11:00 |
191+
| auth-service | bob | In Progress | unit/auth-service-bob | 2025-11-05 10:00 | - |
192+
| profile-service | charlie | In Progress | unit/profile-service-charlie | 2025-11-05 10:30 | - |
193+
194+
## Workflow Diagram
195+
196+
```
197+
Inception Phase (Lead)
198+
199+
Units Generated
200+
201+
┌────┴────┬────────┐
202+
↓ ↓ ↓
203+
Alice Bob Charlie
204+
(Unit 1) (Unit 2) (Unit 3)
205+
↓ ↓ ↓
206+
Branch Branch Branch
207+
↓ ↓ ↓
208+
Construction Construction Construction
209+
↓ ↓ ↓
210+
Complete Complete Complete
211+
↓ ↓ ↓
212+
└────┬────┴────────┘
213+
214+
Consolidation
215+
216+
Build & Test
217+
```
218+
219+
## Best Practices
220+
221+
### 1. Clear Unit Boundaries
222+
- Ensure units have minimal dependencies
223+
- Design for parallel development during Application Design
224+
225+
### 2. Communication
226+
- Update unit-assignments.md when claiming units
227+
- Check dependencies before starting
228+
- Coordinate with team on blocked units
229+
230+
### 3. Regular Consolidation
231+
- Don't wait too long to merge completed units
232+
- Merge in dependency order
233+
- Run integration tests after consolidation
234+
235+
### 4. Audit Trail
236+
- Each developer maintains their own audit
237+
- Consolidated audit provides project overview
238+
- Use audit for retrospectives and reviews
239+
240+
### 5. Branch Hygiene
241+
- Work only in your unit branch
242+
- Don't modify other units' code
243+
- Keep branches up to date with main
244+
245+
## Troubleshooting
246+
247+
### Unit Already Claimed
248+
```
249+
❌ Unit already claimed by bob
250+
Available units: profile-service, admin-service
251+
```
252+
**Solution**: Choose a different unit or coordinate with team member.
253+
254+
### Dependency Not Met
255+
```
256+
❌ Cannot merge: dependency not satisfied
257+
admin-service depends on: auth-service (status: In Progress)
258+
```
259+
**Solution**: Wait for dependency to complete or help complete it.
260+
261+
### Not in Unit Branch
262+
```
263+
❌ Not in unit branch
264+
Current branch: main
265+
Expected: unit/profile-service-charlie
266+
```
267+
**Solution**: `git checkout unit/profile-service-charlie`
268+
269+
### Merge Conflicts
270+
```
271+
❌ Merge conflict in aidlc-docs/construction/consolidated-index.md
272+
```
273+
**Solution**: Resolve conflicts manually, then continue consolidation.
274+
275+
## Example Session
276+
277+
### Lead Developer (Alice)
278+
279+
```bash
280+
# Start project
281+
kiro-cli chat "Create e-commerce system"
282+
283+
# Complete inception
284+
# Choose Option B: Enable team collaboration
285+
286+
# Claim first unit
287+
kiro-cli chat "claim unit product-catalog"
288+
289+
# Work on unit...
290+
# Complete unit
291+
kiro-cli chat "complete unit product-catalog"
292+
```
293+
294+
### Team Member (Bob)
295+
296+
```bash
297+
# Join project
298+
git pull origin main
299+
300+
# View units
301+
kiro-cli chat "list units"
302+
303+
# Claim unit
304+
kiro-cli chat "claim unit shopping-cart"
305+
306+
# Work on unit...
307+
# Complete unit
308+
kiro-cli chat "complete unit shopping-cart"
309+
```
310+
311+
### Integrator (Alice or Lead)
312+
313+
```bash
314+
# Check status
315+
kiro-cli chat "list units"
316+
317+
# All units complete, consolidate
318+
kiro-cli chat "consolidate units"
319+
320+
# Build and test
321+
# Follow AI guidance for integration testing
322+
```
323+
324+
## Migration from Single-User
325+
326+
Existing projects can adopt multi-user workflow:
327+
328+
1. Complete any in-progress work
329+
2. Commit to main
330+
3. Pull latest AI-DLC rules
331+
4. Start new feature with multi-user workflow
332+
5. Team members can now claim units
333+
334+
## Support
335+
336+
For issues or questions:
337+
- Check audit trails: `kiro-cli chat "show all audits"`
338+
- Review unit status: `kiro-cli chat "unit status <name>"`
339+
- Consult consolidated index: `aidlc-docs/construction/consolidated-index.md`

0 commit comments

Comments
 (0)