Skip to content

Commit 5ececac

Browse files
committed
docs: update AD Mode roadmap with codebase cross-reference analysis
- Changed AD Mode status from 0% to 40% Complete - Added detailed codebase status: 90% infrastructure exists but critical blocker prevents user adoption (missing mode detection utility) - Marked 7 items as ✅ COMPLETE (verified in codebase) - Marked 2 items as ⚠️ PARTIAL (hardcoded, no mode detection) - Marked 2 items as ❌ TODO (schema generation, drift detection) Added 3-Phase Implementation Plan: - Phase 1 (2-3 days): Enable AD mode with mode detection + templates - Phase 2 (3-4 days): Schema generation for executable specifications - Phase 3 (4-5 days): Drift detection for spec-code sync Detailed Phase 1 tasks with effort estimates (~10-13 hours total) Documented Phase 2 & 3 design decisions needed before implementation Updated priority ranking to reflect critical path to usability Incorporates ThoughtWorks SDD methodology insights (Executable Specifications and Drift Detection) previously added to roadmap.
1 parent e9ba72d commit 5ececac

File tree

1 file changed

+49
-10
lines changed

1 file changed

+49
-10
lines changed

roadmap.md

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,50 @@
131131
-**Smart Trace Validation**: Enhanced `/analyze` claims trace detection but implementation not found
132132
-**Task-to-Issues Command**: Template exists but actual implementation script missing
133133

134-
### **Architecture Description (AD) Mode** *(0% Complete)* - **HIGH PRIORITY** - Enterprise Architecture Support
134+
### **Architecture Description (AD) Mode** *(40% Complete)* - **HIGH PRIORITY** - Enterprise Architecture Support
135+
136+
**Codebase Status**: Infrastructure 90% complete; critical blocker preventing user adoption. See implementation plan below.
137+
138+
-**CLI Config Update**: AD mode in `src/specify_cli/__init__.py:433-438` with all options enabled by default.
139+
-**Architecture Templates**: `templates/architecture-template.md` complete with 7 Rozanski & Woods viewpoints + 2 perspectives (Security, Performance & Scalability).
140+
-**Architect Command**: `templates/commands/architect.md` fully implemented with init/map/update/review actions + handoffs.
141+
-**Setup Scripts (Bash)**: `scripts/bash/setup-architecture.sh` (449 lines) with tech detection, directory mapping, API scanning - production-ready.
142+
-**Setup Scripts (PS1)**: `scripts/powershell/setup-architecture.ps1` - PowerShell equivalent complete.
143+
-**Mode Documentation**: `templates/commands/mode.md:128-138` - AD mode workflow fully documented with use cases and artifacts.
144+
-**Codebase Mapper (/map)**: `/architect map` action fully implemented with language, framework, database, and infrastructure detection for brownfield projects.
145+
- ⚠️ **Plan Script Updates**: `scripts/bash/setup-plan.sh:46` hardcoded to `plan-template.md` - **MISSING MODE DETECTION** (critical blocker).
146+
- ⚠️ **plan-template-ad.md**: **DOES NOT EXIST** - template file missing (blocks schema generation guidance).
147+
-**Mode Detection Utility**: No `get_current_mode()` function in `scripts/bash/common.sh` - needed by setup-plan.sh.
148+
-**Schema Generation** *(ThoughtWorks SDD - Executable Specifications)*: Enhance `plan` templates in AD mode to explicitly output standard schema formats (OpenAPI, JSON Schema, AsyncAPI) into the `contracts/` folder, making the spec "executable." Templates exist but no generation logic or `/contracts/` scaffolding. **Phase 2 feature (design + decision required)**.
149+
-**Spec-Code Drift Detector** *(ThoughtWorks SDD - Drift Detection)*: No drift detection in `/analyze` command. **Phase 3 feature (design + decision required)**.
150+
151+
**🎯 AD Mode Implementation Plan** *(3-Phase Critical Path - See Below)*
152+
153+
| Phase | Duration | Blocker | Result |
154+
|-------|----------|---------|--------|
155+
| **Phase 1: Enable AD Mode** | 2-3 days | Mode detection + templates | Users can use `/mode ad``/plan` → get AD-specific template |
156+
| **Phase 2: Schema Generation** | 3-4 days | Format decisions (OpenAPI? + JSON Schema?) | `/contracts/openapi.yaml` + schema generation working |
157+
| **Phase 3: Drift Detection** | 4-5 days | Scope decisions (API only?) | `/analyze` reports spec-code misalignment |
158+
159+
**Phase 1 Tasks (CRITICAL - Must Complete First)**:
160+
1. Add `get_current_mode()` function to `scripts/bash/common.sh` (2-3 hours)
161+
2. Update `scripts/bash/setup-plan.sh` with mode detection logic (1-2 hours)
162+
3. Create `templates/plan-template-ad.md` with schema guidance (3-4 hours)
163+
4. Add `Get-CurrentMode` to `scripts/powershell/common.ps1` (2-3 hours)
164+
5. Update `scripts/powershell/setup-plan.ps1` with mode detection (1-2 hours)
165+
6. Update `src/specify_cli/__init__.py` help text to mention AD mode (1 hour)
166+
167+
**Phase 2 Decisions (Before Implementation)**:
168+
- Which schema formats? (Recommendation: OpenAPI 3.1 + JSON Schema)
169+
- When to generate? (Recommendation: On-demand + optional auto during /plan)
170+
- How to generate? (Recommendation: AI generation from plan.md description)
171+
172+
**Phase 3 Decisions (Before Implementation)**:
173+
- Drift scope? (Recommendation: API endpoints focus, expand to database later)
174+
- Detection strategy? (Recommendation: Language-specific pattern matching)
175+
- Integration? (Recommendation: Both auto in /analyze + on-demand command)
135176

136-
-**CLI Config Update**: Add `ad` to `mode_defaults` in `src/specify_cli/__init__.py` with all options enabled by default.
137-
-**Architecture Templates**: Create `templates/architecture-template.md` (Global V&P Context) and `templates/plan-template-ad.md` (Feature V&P Zoom-in).
138-
-**Architect Command**: Create `templates/commands/architect.md` for generating the global `memory/architecture.md`.
139-
-**Setup Scripts**: Create `scripts/bash/setup-architecture.sh` and `scripts/powershell/setup-architecture.ps1`.
140-
-**Plan Script Updates**: Update `scripts/bash/setup-plan.sh` and `scripts/powershell/setup-plan.ps1` to detect `ad` mode and use the new templates.
141-
-**Mode Documentation**: Update `templates/commands/mode.md` to include AD mode description.
142-
-**Codebase Mapper**: Implement `/map` command to scan existing code and auto-populate `memory/architecture.md` (Context View) and `memory/tech-stack.md`. Essential for Brownfield projects (legacy code analysis and documentation).
177+
---
143178

144179
#### **Strategic Tooling Improvements** *(60% Complete)* - **MEDIUM PRIORITY**
145180

@@ -150,6 +185,7 @@
150185
-**Config Consolidation**: Successfully implemented as single unified configuration file to reduce complexity and improve maintainability
151186
-**Atomic Commits Config**: Add `atomic_commits` boolean option to `config.json` (default: `false`). Externalize as global configuration available to all workflow modes (build/spec/ad) with per-mode override capability.
152187
-**Execution Logic**: Update `scripts/bash/tasks-meta-utils.sh` and `scripts/powershell/common.ps1` to read `atomic_commits` config and inject constraint into `generate_delegation_prompt()` when enabled.
188+
-**Spec-Code Drift Detector** *(ThoughtWorks SDD - Drift Detection)*: Implement a validation utility (part of `/analyze`) that compares the implementation (Code/API) against the `plan.md` definitions (Contracts/Schemas) to flag divergences. This enables proactive identification of spec-code misalignment and ensures executable specifications remain in sync with actual implementation.
153189

154190
**NOTE**: User settings like `config.json` should remain user-specific and not tracked in git. However, team governance files like `.specify/constitution.md` should be version-controlled. Consider relocating constitution.md to a more appropriate location that clearly distinguishes it from user-specific configuration.
155191

@@ -397,7 +433,7 @@
397433
|**Levelup Build Mode**|0%|🔄 Current Phase|
398434
|**Persistent Issue ID**|0%|🔄 Current Phase|
399435
|**Build Mode "GSD" Upgrade**|0%|🔄 Current Phase|
400-
|**Architecture Description (AD) Mode**|0%|🔄 Current Phase|
436+
|**Architecture Description (AD) Mode**|40%|⚠️ Partially Complete (blocker: mode detection)|
401437
|**Context Intelligence & Optimization**|0%|🔄 Current Phase|
402438
|**Multi-Tracker Task-to-Issues**|0%|🔄 Current Phase|
403439
|**Spec Management**|0%|🔄 Current Phase|
@@ -438,7 +474,10 @@
438474
3. **HIGH**: Levelup command build mode compatibility (0% → 100%) - AI session context management blocker (depends on #2)
439475
4. **HIGH**: Persistent issue ID storage enhancement (0% → 100%) - Issue-tracker-first workflow improvement
440476
5. **HIGH**: Build Mode "GSD" Upgrade (0% → 100%) - High-velocity execution mode (depends on #2)
441-
6. **HIGH**: Architecture Description (AD) Mode (0% → 100%) - Enterprise Architecture Support
477+
6. **HIGH**: Architecture Description (AD) Mode - Phase 1 (40% → 100%) - **CRITICAL BLOCKER: Mode detection + plan-template-ad.md** (2-3 days work unlocks enterprise architecture support)
478+
- Phase 1 (2-3 days): Mode detection utility + plan-template-ad.md → AD mode becomes USABLE
479+
- Phase 2 (3-4 days): Schema generation design + implementation → EXECUTABLE SPECIFICATIONS
480+
- Phase 3 (4-5 days): Drift detection design + implementation → SPEC-CODE SYNC
442481
7. **MEDIUM**: Context Intelligence & Optimization (0% → 100%) - Directives scanner + compliance validation
443482
8. **MEDIUM**: Multi-tracker task-to-issues extension (0% → 100%) - Enhanced traceability across platforms
444483
9. **MEDIUM**: Spec management & cleanup (0% → 100%) - Workflow maintenance

0 commit comments

Comments
 (0)