|
131 | 131 | - ❌ **Smart Trace Validation**: Enhanced `/analyze` claims trace detection but implementation not found |
132 | 132 | - ❌ **Task-to-Issues Command**: Template exists but actual implementation script missing |
133 | 133 |
|
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) |
135 | 176 |
|
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 | +--- |
143 | 178 |
|
144 | 179 | #### **Strategic Tooling Improvements** *(60% Complete)* - **MEDIUM PRIORITY** |
145 | 180 |
|
|
150 | 185 | - ✅ **Config Consolidation**: Successfully implemented as single unified configuration file to reduce complexity and improve maintainability |
151 | 186 | - ❌ **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. |
152 | 187 | - ❌ **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. |
153 | 189 |
|
154 | 190 | **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. |
155 | 191 |
|
|
397 | 433 | |**Levelup Build Mode**|0%|🔄 Current Phase| |
398 | 434 | |**Persistent Issue ID**|0%|🔄 Current Phase| |
399 | 435 | |**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)| |
401 | 437 | |**Context Intelligence & Optimization**|0%|🔄 Current Phase| |
402 | 438 | |**Multi-Tracker Task-to-Issues**|0%|🔄 Current Phase| |
403 | 439 | |**Spec Management**|0%|🔄 Current Phase| |
|
438 | 474 | 3. **HIGH**: Levelup command build mode compatibility (0% → 100%) - AI session context management blocker (depends on #2) |
439 | 475 | 4. **HIGH**: Persistent issue ID storage enhancement (0% → 100%) - Issue-tracker-first workflow improvement |
440 | 476 | 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 |
442 | 481 | 7. **MEDIUM**: Context Intelligence & Optimization (0% → 100%) - Directives scanner + compliance validation |
443 | 482 | 8. **MEDIUM**: Multi-tracker task-to-issues extension (0% → 100%) - Enhanced traceability across platforms |
444 | 483 | 9. **MEDIUM**: Spec management & cleanup (0% → 100%) - Workflow maintenance |
|
0 commit comments