|
114 | 114 | #### **Configurable Framework Options** *(100% Complete)* - **MEDIUM PRIORITY** - Addresses over-opinionated critique |
115 | 115 |
|
116 | 116 | - ✅ **Opt-in Architecture Patterns**: TDD, contracts, data models, risk-based testing become user-configurable via `/mode` command |
117 | | -- ✅ **Consolidated Configuration**: Unified `mode.json` with `options` section (renamed from `opinions.json`) |
| 117 | +- ✅ **Consolidated Configuration**: Unified `config.json` with `options` section |
118 | 118 | - ✅ **Mode-Based Preferences**: Different defaults for build vs spec modes |
119 | 119 | - ✅ **Reduced Mandatory Options**: Core workflow preserved, options made optional |
120 | 120 | - ✅ **User-Driven Defaults**: Users can override mode defaults with custom settings |
| 121 | +- ✅ **Architecture Support**: Optional architecture documentation available in all modes via `/architect` commands |
121 | 122 |
|
122 | 123 | --- |
123 | 124 |
|
|
131 | 132 | - ❌ **Smart Trace Validation**: Enhanced `/analyze` claims trace detection but implementation not found |
132 | 133 | - ❌ **Task-to-Issues Command**: Template exists but actual implementation script missing |
133 | 134 |
|
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. **[DESIGN DECISION LOCKED - Option A]**: Detects technologies and **populates `architecture.md` Section C** (Tech Stack Summary) directly. Single source of truth: `architecture.md` Section C (no separate `tech-stack.md` file). Enables Constitution validation against architecture. |
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 | | -7. **[NEW] Modify `scripts/bash/setup-architecture.sh` action_map()** to populate `architecture.md` Section C (2-3 hours) |
167 | | - - Parse architecture.md and locate Section C: Tech Stack Summary |
168 | | - - Replace [PLACEHOLDER] values with detected technologies |
169 | | - - Update architecture.md directly (single source of truth) |
170 | | - - **REMOVE tech-stack.md generation** (no separate inventory file) |
171 | | - - Add PowerShell equivalent in `scripts/powershell/setup-architecture.ps1` |
172 | | - |
173 | | -**Total Phase 1: ~12-17 hours (~3 days)** (was 10-13 hours; design improvement adds proper integration) |
174 | | - |
175 | | -**Phase 2 Decisions (Before Implementation)**: |
176 | | -- Which schema formats? (Recommendation: OpenAPI 3.1 + JSON Schema) |
177 | | -- When to generate? (Recommendation: On-demand + optional auto during /plan) |
178 | | -- How to generate? (Recommendation: AI generation from plan.md description) |
179 | | - |
180 | | -**Phase 3 Decisions (Before Implementation)**: |
181 | | -- Drift scope? (Recommendation: API endpoints focus, expand to database later) |
182 | | -- Detection strategy? (Recommendation: Language-specific pattern matching) |
183 | | -- Integration? (Recommendation: Both auto in /analyze + on-demand command) |
184 | | - |
185 | | -**🎯 CRITICAL DESIGN DECISION - SINGLE SOURCE OF TRUTH FOR TECH STACK** *(User-Identified & Locked)*: |
186 | | - |
187 | | -**Issue Identified**: architecture.md already has Section C (Tech Stack Summary), but `/architect map` was creating separate `memory/tech-stack.md` → redundancy and broken Constitution validation. |
188 | | - |
189 | | -**Decision LOCKED - Option A** ✅: |
190 | | -- `/architect map` detects tech from codebase (existing ✅) |
191 | | -- **POPULATES `architecture.md` Section C directly** (NEW) |
192 | | -- **NO separate `tech-stack.md` file** (removed from design) |
193 | | -- **Single source of truth**: `architecture.md` Section C |
194 | | -- **Constitution can validate** against official architecture doc |
195 | | - |
196 | | -**Rationale**: |
197 | | -- ✅ One authoritative system design document (architecture.md) |
198 | | -- ✅ Constitution validation path clear (references architecture.md Section C) |
199 | | -- ✅ Complete architecture docs (no [PLACEHOLDER] format) |
200 | | -- ✅ Phases 2 & 3 can reference unified tech context |
201 | | -- ✅ Easier maintenance (no file sync needed) |
202 | | - |
203 | | -**Implementation Impact**: |
204 | | -- Phase 1 Task 7 (NEW): Modify setup-architecture.sh action_map() to populate architecture.md Section C |
205 | | -- Phase 1F adds 2-3 hours → total Phase 1 now 12-17 hours |
206 | | -- Both Bash and PowerShell scripts updated |
207 | | - |
208 | | -**Phase 2 Benefit**: Schema generation references architecture.md Section C for tech context |
209 | | -**Phase 3 Benefit**: /analyze validates code against architecture.md Section C AND constitution |
| 135 | +### **Optional Architecture Support** *(100% Complete)* - **COMPLETED** - Enterprise Architecture Features |
| 136 | + |
| 137 | +Architecture support is now available in all workflow modes as optional commands. The `/architect` and `/constitution` commands work silently in any mode, with no warnings if files are missing. |
| 138 | + |
| 139 | +- ✅ **Architecture Templates**: Complete Rozanski & Woods 7 viewpoints + 2 perspectives (Security, Performance & Scalability) |
| 140 | +- ✅ **Architect Command**: `/architect` with init/map/update/review actions fully implemented |
| 141 | +- ✅ **Setup Scripts**: Both bash and PowerShell implementations complete |
| 142 | +- ✅ **Brownfield Support**: `/architect map` detects technologies and populates `architecture.md` Section C directly |
| 143 | +- ✅ **Mode Integration**: Architecture commands available in both build and spec modes |
| 144 | +- ✅ **Silent Operation**: No errors or warnings when architecture.md missing |
| 145 | +- ✅ **Constitution Support**: Optional project principles via `/constitution` command |
| 146 | +- ✅ **Single Source of Truth**: `architecture.md` Section C contains tech stack (no separate files) |
| 147 | + |
| 148 | +**Future Enhancements** *(Deferred - Not Blocking)*: |
| 149 | +- **Schema Generation** *(ThoughtWorks SDD - Executable Specifications)*: Auto-generate OpenAPI/JSON Schema from plan.md into `contracts/` folder |
| 150 | +- **Spec-Code Drift Detector** *(ThoughtWorks SDD - Drift Detection)*: Automated detection of spec-code misalignment in `/analyze` command |
210 | 151 |
|
211 | 152 | --- |
212 | 153 |
|
|
402 | 343 | - ❌ **Mode Compatibility Validation**: Ensure feature modes are compatible with project infrastructure |
403 | 344 | - ❌ **Mode Migration Support**: Tools to change feature modes mid-development |
404 | 345 |
|
| 346 | +**Note**: Architecture support is now available in all modes, not tied to specific workflow modes. |
| 347 | + |
405 | 348 | #### **Issue Tracker Automation** *(0% Complete)* - **FUTURE ENHANCEMENT** - Separate from documentation updates |
406 | 349 |
|
407 | 350 | - ❌ **Automated Status Updates**: Sync documentation changes with issue status (GitHub/Jira/Linear) |
|
508 | 451 | 3. **HIGH**: Levelup command build mode compatibility (0% → 100%) - AI session context management blocker (depends on #2) |
509 | 452 | 4. **HIGH**: Persistent issue ID storage enhancement (0% → 100%) - Issue-tracker-first workflow improvement |
510 | 453 | 5. **HIGH**: Build Mode "GSD" Upgrade (0% → 100%) - High-velocity execution mode (depends on #2) |
511 | | -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) |
512 | | - - Phase 1 (2-3 days): Mode detection utility + plan-template-ad.md → AD mode becomes USABLE |
513 | | - - Phase 2 (3-4 days): Schema generation design + implementation → EXECUTABLE SPECIFICATIONS |
514 | | - - Phase 3 (4-5 days): Drift detection design + implementation → SPEC-CODE SYNC |
| 454 | +6. **COMPLETED**: Optional Architecture Support (100%) - Architecture commands now available in all modes |
| 455 | + - ✅ Mode detection utilities implemented (get_current_mode functions) |
| 456 | + - ✅ Architecture loading matches constitution pattern |
| 457 | + - ✅ Silent operation - no warnings when files missing |
| 458 | + - ⏭️ Schema generation (deferred - future enhancement) |
| 459 | + - ⏭️ Drift detection (deferred - future enhancement) |
515 | 460 | 7. **MEDIUM**: Context Intelligence & Optimization (0% → 100%) - Directives scanner + compliance validation |
516 | 461 | 8. **MEDIUM**: Multi-tracker task-to-issues extension (0% → 100%) - Enhanced traceability across platforms |
517 | 462 | 9. **MEDIUM**: Spec management & cleanup (0% → 100%) - Workflow maintenance |
|
0 commit comments