diff --git a/templates/base/research/RESEARCH_TEMPLATE.md b/templates/base/research/RESEARCH_TEMPLATE.md index ddd64d2..50e16d5 100644 --- a/templates/base/research/RESEARCH_TEMPLATE.md +++ b/templates/base/research/RESEARCH_TEMPLATE.md @@ -1,11 +1,11 @@ # Research: [Feature/Bug Name] **Date:** YYYY-MM-DD -**Researcher:** Claude Code +**Researcher:** RPI-Research Agent **Status:** IN_PROGRESS | COMPLETE | BLOCKED **Context Budget Used:** X% of 200k -**Total Chunks:** N -**Parallel Agents Used:** N (3 minimum, up to 5 for complex features) +**Total Chunks:** 5 (Standard Parallel Set) +**Parallel Agents Used:** 5 (API, Logic, DB, External, QA) --- @@ -15,28 +15,30 @@ --- -## Chunk Manifest +## Research Manifest -> **INTER-PHASE CONTRACT:** This manifest is designed for RPI-Plan consumption. -> RPI-Plan will process each chunk sequentially, creating a CHUNK-Pn todolist per CHUNK-Rn. +> **GENERATED BY:** Phase 1 - Parallel Search Agents +> **PURPOSE:** Drivers for Phase 2 - Sequential Deep Dive. +> **INTER-PHASE CONTRACT:** RPI-Plan reads this to understand the system structure. -| Chunk ID | Domain | Status | Files | Ready for Planning | -|----------|--------|--------|-------|-------------------| -| CHUNK-R1 | API/Routes | COMPLETE | 3 | ✅ | -| CHUNK-R2 | Business Logic | COMPLETE | 4 | ✅ | -| CHUNK-R3 | Database/Storage | COMPLETE | 2 | ✅ | -| CHUNK-R4 | External Integrations | COMPLETE | 1 | ✅ | -| CHUNK-R5 | Test Coverage | COMPLETE | 3 | ✅ | +| Chunk ID | Domain | Assigned Agent | Status | Files Found | Ready for Deep Dive | +|----------|--------|----------------|--------|-------------|---------------------| +| CHUNK-R1 | API/Routes | Agent 1 (API) | PENDING | [Count] | ⏳ | +| CHUNK-R2 | Business Logic | Agent 2 (Logic) | PENDING | [Count] | ⏳ | +| CHUNK-R3 | Database/Storage | Agent 3 (DB) | PENDING | [Count] | ⏳ | +| CHUNK-R4 | Integrations | Agent 4 (Ext) | PENDING | [Count] | ⏳ | +| CHUNK-R5 | Test Coverage | Agent 5 (QA) | PENDING | [Count] | ⏳ | --- -## CHUNK-R1: API/Routes +## CHUNK-R1: API/Routes (Deep Dive) -**Status:** FOUND | COMPLETE | PLANNED | IMPLEMENTED -**Parallel Agent:** Agent 1 +**Status:** SEARCHED | ANALYZED | COMPLETE +**Source:** Agent 1 (Parallel Search) **Ready for Planning:** Yes/No ### Files Explored +> Populated by Agent 1 during Deep Dive | File | Lines | Key Findings | |------|-------|--------------| @@ -44,7 +46,6 @@ | `path/to/handler.ext` | XXX-YYY | [Request handling logic] | ### Code Flow Analysis - ``` entry_function() [file.ext:XXX] ├─ validate_request() [file.ext:YYY] @@ -57,13 +58,14 @@ entry_function() [file.ext:XXX] --- -## CHUNK-R2: Business Logic +## CHUNK-R2: Business Logic (Deep Dive) -**Status:** FOUND | COMPLETE | PLANNED | IMPLEMENTED -**Parallel Agent:** Agent 2 +**Status:** SEARCHED | ANALYZED | COMPLETE +**Source:** Agent 2 (Parallel Search) **Ready for Planning:** Yes/No ### Files Explored +> Populated by Agent 2 during Deep Dive | File | Lines | Key Findings | |------|-------|--------------| @@ -71,7 +73,6 @@ entry_function() [file.ext:XXX] | `path/to/model.ext` | XXX-YYY | [Data models] | ### Code Flow Analysis - ``` process_request() [service.ext:XXX] ├─ validate_data() [service.ext:YYY] @@ -85,13 +86,14 @@ process_request() [service.ext:XXX] --- -## CHUNK-R3: Database/Storage +## CHUNK-R3: Database/Storage (Deep Dive) -**Status:** FOUND | COMPLETE | PLANNED | IMPLEMENTED -**Parallel Agent:** Agent 3 +**Status:** SEARCHED | ANALYZED | COMPLETE +**Source:** Agent 3 (Parallel Search) **Ready for Planning:** Yes/No ### Files Explored +> Populated by Agent 3 during Deep Dive | File | Lines | Key Findings | |------|-------|--------------| @@ -99,7 +101,6 @@ process_request() [service.ext:XXX] | `path/to/schema.ext` | XXX-YYY | [Schema definitions] | ### Database Schema Involved - | Table | Operations | Purpose | |-------|------------|---------| | `table_name` | READ/WRITE/UPDATE | [What data] | @@ -110,20 +111,20 @@ process_request() [service.ext:XXX] --- -## CHUNK-R4: External Integrations +## CHUNK-R4: External Integrations (Deep Dive) -**Status:** FOUND | COMPLETE | PLANNED | IMPLEMENTED -**Parallel Agent:** Agent 4 +**Status:** SEARCHED | ANALYZED | COMPLETE +**Source:** Agent 4 (Parallel Search) **Ready for Planning:** Yes/No ### Files Explored +> Populated by Agent 4 during Deep Dive | File | Lines | Key Findings | |------|-------|--------------| | `path/to/client.ext` | XXX-YYY | [External API client] | ### External Dependencies - | Dependency | Type | Purpose | |------------|------|---------| | [API Name] | HTTP API | [What it does] | @@ -131,14 +132,20 @@ process_request() [service.ext:XXX] --- -## CHUNK-R5: Test Coverage +## CHUNK-R5: Test Coverage (Deep Dive) -**Status:** FOUND | COMPLETE | PLANNED | IMPLEMENTED -**Parallel Agent:** Agent 5 +**Status:** SEARCHED | ANALYZED | COMPLETE +**Source:** Agent 5 (Parallel Search) **Ready for Planning:** Yes/No -### Existing Tests +### Files Explored +> Populated by Agent 5 during Deep Dive +| File | Lines | Key Findings | +|------|-------|--------------| +| `tests/test_feature.ext` | XXX-YYY | [Existing tests] | + +### Existing Tests | Test File | Coverage Area | |-----------|---------------| | `tests/test_feature.ext` | [What scenarios] | @@ -240,6 +247,6 @@ After research completes: **Context Usage Report:** - Files read: X - Tokens used: ~Xk (X% of 200k) -- Parallel agents spawned: 3-5 -- Chunks created: N +- Parallel agents spawned: 5 +- Chunks created: 5 - Compaction needed: Yes/No