# Implementation Plan: Context Composition Slice Visualization

## Phase 1: Slice Data Model Extension [checkpoint: 4a20489]
Focus: Extend custom_slices to support tags and comments

- [x] Task 1.1: Extend custom_slices schema to include tag and comment fields [976879d]
- [x] Task 1.2: Update FileItem.to_dict() and from_dict() for new fields [976879d]
- [x] Task 1.3: Write tests for custom_slices with annotations [976879d]

## Phase 2: Slice Inspector Enhancement [checkpoint: 31ecbe5]
Focus: Visual AST highlighting with file content

- [x] Task 2.1: Modify _render_ast_inspector_modal() to show file content with highlighted slices [976b241]
- [x] Task 2.2: Add color coding for Sig vs Def elements in file content view [976b241]
- [x] Task 2.3: Implement toggle buttons for each AST element in the content view [976b241]
- [x] Task 2.4: Write tests for slice inspector rendering [976b241]

## Phase 3: Slice Editor Visual Enhancement [checkpoint: 4f0f436]
Focus: Visual slice editor with colored overlays

- [x] Task 3.1: Enhance slice editor to show file content (not just line list) [3614e11]
- [x] Task 3.2: Add colored overlays for custom slices on the content [3614e11]
- [x] Task 3.3: Implement click-drag line range selection [3614e11]
- [x] Task 3.4: Add tag/comment input for custom slices [3614e11]
- [x] Task 3.5: Write tests for slice editor [3614e11]

## Phase 4: View Presets [checkpoint: 8073938]
Focus: Named view configurations

- [x] Task 4.1: Create FileViewPreset model [cb0fa89]
- [x] Task 4.2: Add preset selection dropdown to context composition [cb0fa89]
- [x] Task 4.3: Implement preset save/load to project config [cb0fa89]
- [x] Task 4.4: Write tests for view presets [cb0fa89]

## Phase 5: AST Slice Pre-population [checkpoint: 2ebe0c6]
Focus: Show auto-resolved slices before user customizes

- [x] Task 5.1: On file add to context, compute AST slices automatically [a669f92]
- [x] Task 5.2: Store pre-computed slices in FileItem for display [a669f92]
- [x] Task 5.3: User can modify/remove auto-slices [a669f92]
- [x] Task 5.4: Write tests for auto-slices [a669f92]

## Phase 6: Integration
Focus: Connect all pieces together

- [x] Task 6.1: Verify slice data flows correctly through context composition [1303fc1]
- [x] Task 6.2: Test with C++ files from gencpp [1303fc1]
- [x] Task 6.3: Conductor - User Manual Verification [1303fc1]
