Skip to content

Add Multi-User Parallel Development Support to AI-DLC#25

Draft
jschwellach wants to merge 1 commit intoawslabs:mainfrom
jschwellach:feature/multi-user
Draft

Add Multi-User Parallel Development Support to AI-DLC#25
jschwellach wants to merge 1 commit intoawslabs:mainfrom
jschwellach:feature/multi-user

Conversation

@jschwellach
Copy link

Overview

This PR introduces comprehensive multi-user parallel development capabilities to AI-DLC, enabling teams to collaborate efficiently on software projects with automatic workflow management and conflict prevention.

Key Features

🔀 Automatic Branch Management

  • Each developer works in isolated branches ()
  • Automatic branch creation and switching
  • Clean separation of work streams

📝 User-Scoped Audit Files

  • Prevents audit file conflicts between team members
  • Each user maintains their own audit trail
  • Consolidated project-wide visibility

🎯 Unit Assignment Tracking

  • Clear visibility of who's working on what
  • Prevents duplicate work assignments
  • Real-time status tracking

🔄 Dependency-Aware Consolidation

  • Automatic merging in correct dependency order
  • Intelligent conflict resolution
  • Maintains project integrity

📊 Consolidated Project Views

  • Project-wide visibility with automatic indexing
  • Cross-unit dependency tracking
  • Unified progress monitoring

Workflow Integration

The multi-user capabilities seamlessly integrate with existing AI-DLC phases:

  1. Inception Phase: Lead developer completes requirements and creates units
  2. Team Collaboration: Multiple developers claim and work on units in parallel
  3. Construction Phase: Each developer implements their assigned units
  4. Consolidation: Automatic merging with dependency resolution

Usage Examples

# Lead completes inception and enables team collaboration
kiro-cli chat "Using AI-DLC, create microservices architecture"
# → Choose "Enable team collaboration"

# Team members claim units
kiro-cli chat "claim unit user-service"
kiro-cli chat "claim unit payment-service"

# Each developer works in their isolated branch
# unit/user-service-alice, unit/payment-service-bob

# Integrator consolidates when ready
kiro-cli chat "consolidate units"

Technical Implementation

New Files Added

  • multi-user-parallel.md: Core multi-user workflow logic
  • units-generation.md: Enhanced unit creation with team support
  • AGENTS.md.example: Configuration template for team setups

Updated Components

  • Enhanced AI-DLC rules with multi-user decision points
  • Automatic branch management workflows
  • User-scoped file generation and audit trails
  • Dependency-aware consolidation logic

Configuration

Teams can customize behavior via AGENTS.md:

  • Generated code folder structure per unit
  • Audit file locations and naming
  • Branch naming conventions
  • Custom paths for project organization

Benefits

  • Parallel Development: Multiple developers work simultaneously without conflicts
  • Reduced Bottlenecks: No waiting for sequential completion
  • Quality Assurance: Isolated work streams with proper integration
  • Scalability: Supports teams of any size
  • Flexibility: Configurable to match team workflows

Compatibility

  • Fully backward compatible with single-developer workflows
  • Works with existing AI-DLC projects
  • No breaking changes to current functionality
  • Optional team features activated only when needed

Testing

Tested with:

  • Single developer workflows (existing functionality)
  • Multi-developer parallel development
  • Complex dependency scenarios
  • Branch conflict resolution
  • Audit file isolation

Migration Notes

  • Existing projects continue to work unchanged
  • New projects can opt into multi-user features
  • Configuration is optional and project-specific
  • No impact on current AI-DLC installations

This enhancement transforms AI-DLC from a single-developer tool into a comprehensive team collaboration platform while maintaining its intelligent, adaptive workflow characteristics.

@raj-jain-aws raj-jain-aws self-assigned this Dec 16, 2025
Copy link
Contributor

@raj-jain-aws raj-jain-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this PR and am not seeing the multi-user steps kick in. One reason could be that this PR does not seem to be baselined from the latest commits. Also, it will be great if the PR can be baselined based on latest commits and only include the files that'll be actually merged.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AGENTS.md will surely give us tool independence, but can we think about moving the entire AI-DLC steering as part of AGENTS.md as a separate feature? I think we also discussed there are other issues around AGENTS.md that if the user already has an AGENTS.md then how this will be merged into their existing file,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will raise an issue that we will use as a guiding principle for this work.
We need to adhere to the current rule mechanism and not introduce new concepts (AUDIT etc) as a part of this.
Also for this feature PR lets just work out of a branch and not use the fork mechanism.
The code needs to be rebased before raising a PR.
Please have a look at file specific comments @raj-jain-aws

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just an example configuration file, that is not necessary, as you see it has .example as ending. However if you want to control the folder structure of the multi-user feature, it is necessary to configure them somewhere. I don't want the users to mess about with the core rules so the ideal file for this is AGENTS.md as it's read automatically by the ai-assistant and such can contain global variables.

### 1. Complete Inception Phase (Lead Developer)

```bash
q chat "Create a user management system with authentication"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command is q chat specific. Can we make this such that it works with any chat interface - Q IDE, Kiro CLI, Kiro IDE.


### 1. Complete Inception Phase (Lead Developer)

```bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the user have to enter this command manually and remember when to enter it? Can the workflow prompt the user to enter this command when the right time comes?

When done:

```bash
q chat "complete unit profile-service"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above about q chat and for rest of the references to q chat.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file seems to be the the "plan" AI generated for introducing the new multi-user rules language. Will this file become part of the core rules check-in?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these set of user instructions exist separately or be rolled into the README.md or be referenced from README.md? If not accessible from README.md, the user may not see this file.

style End fill:#CE93D8,stroke:#6A1B9A,stroke-width:3px,color:#000

linkStyle default stroke:#333,stroke-width:2px
style WD fill:#90EE90,stroke:#2d5016,stroke-width:3px
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for changing the styling of the mermaid diagram? The previous colors were fine tuned for better contrast in light and dark backgrounds.

- Conditional SKIP: `fill:#BDBDBD,stroke:#424242,stroke-width:2px,stroke-dasharray: 5 5,color:#000` (Material Gray with black text)
- Start/End: `fill:#CE93D8,stroke:#6A1B9A,stroke-width:3px,color:#000` (Material Purple with black text)
- Phase containers: Use lighter Material colors (INCEPTION: #BBDEFB, CONSTRUCTION: #C8E6C9, OPERATIONS: #FFF59D)
- Completed/Always execute: `fill:#90EE90,stroke:#2d5016,stroke-width:3px`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest we propose only one logical change per PR. Mermaid styling change can be proposed as part of another PR.

q_rules.png Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is presented in this PR due to baselining issue from the local workspace where this PR was create from. Pls. pull the latest. This file q_rules.png has been moved to a different location and has a different name now.

- Update the "Current Status" section
- Prepare for transition to CONSTRUCTION PHASE

## Step 20: Setup Multi-User Parallel Development
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this PR and did not see this step kick in. I've ensured that I've the files from this this PR. I see the following where the workflow is entering Unit 1 and is not offering me multi-unit questions.

Perfect! The INCEPTION PHASE is now complete. We've successfully:

✅ Workspace Detection - Identified greenfield project ✅ Requirements Analysis - Defined 32 functional requirements and 8 NFR categories
✅ Workflow Planning - Created execution plan with 10 stages ✅ Application Design - Designed 20 components across 5 architectural layers ✅ Units Generation - Decomposed into 5 units with clear dependencies

🟢 CONSTRUCTION PHASE Begins
We're now entering the CONSTRUCTION PHASE where we'll design and implement each unit. The workflow will proceed through each unit in dependency order:

Development Sequence:

Unit 1: Shared Components (foundation - starting now)
Unit 2: User Management (authentication)
Units 3 & 4: Document Processing + Requirements Generation (parallel)
Unit 5: Frontend Portal (integration)
Build and Test (final validation)
For each unit, we'll execute:

Functional Design (detailed business logic)
NFR Requirements (performance, security, scalability)
NFR Design (patterns and implementations)
Infrastructure Design (deployment architecture)
Code Generation (implementation)
Starting with Unit 1: Shared Components - the foundation that all other units depend on. This unit provides file storage, logging, error handling, and validation components.

Ready to proceed with Functional Design for Unit 1?

@SiddhJog SiddhJog marked this pull request as draft December 17, 2025 11:28
@SiddhJog
Copy link
Contributor

  • I will raise an issue that we will use as a guiding principle for this work.
  • We need to adhere to the current rule mechanism and not introduce new concepts (AUDIT etc) as a part of this.
  • Also for this feature PR lets just work out of a branch and not use the fork mechanism.
  • The code needs to be rebased before raising a PR.
  • Please have a look at file specific comments @raj-jain-aws

Copy link
Contributor

@SiddhJog SiddhJog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will raise an issue that we will use as a guiding principle for this work.
We need to adhere to the current rule mechanism and not introduce new concepts (AUDIT etc) as a part of this.
Also for this feature PR lets just work out of a branch and not use the fork mechanism.
The code needs to be rebased before raising a PR.
Please have a look at file specific comments @raj-jain-aws

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will raise an issue that we will use as a guiding principle for this work.
We need to adhere to the current rule mechanism and not introduce new concepts (AUDIT etc) as a part of this.
Also for this feature PR lets just work out of a branch and not use the fork mechanism.
The code needs to be rebased before raising a PR.
Please have a look at file specific comments @raj-jain-aws

@jschwellach
Copy link
Author

jschwellach commented Dec 19, 2025 via email

@jschwellach jschwellach force-pushed the feature/multi-user branch 3 times, most recently from f5a0d24 to 94481f0 Compare January 10, 2026 14:11
This commit introduces comprehensive multi-user collaboration capabilities
integrated into the core AI-DLC workflow:

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
- 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
- units-generation.md: Added Step 20 for multi-user setup workflow
- Rule files enhanced with multi-user workflow integration
- All documentation uses current 'kiro-cli chat' command syntax

Multi-user functionality is built into the core workflow and automatically
available. After inception, users can choose solo work or enable team
collaboration with automatic unit assignment and consolidation.
Copy link
Author

@jschwellach jschwellach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cleaned up the feature and squashed the commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants