@@ -58,6 +58,27 @@ Each capability produces default output artifacts:
5858| tester | Test results | ` <session>/artifacts/test-report.md ` |
5959| planner | Execution plan | ` <session>/artifacts/execution-plan.md ` |
6060
61+ ### Step 2.5: Key File Inference
62+
63+ For each task, infer relevant files based on capability type and task keywords:
64+
65+ | Capability | File Inference Strategy |
66+ | ------------| ------------------------|
67+ | researcher | Extract domain keywords → map to likely directories (e.g., "auth" → ` src/auth/** ` , ` middleware/auth.ts ` ) |
68+ | developer | Extract feature/module keywords → map to source files (e.g., "payment" → ` src/payments/** ` , ` types/payment.ts ` ) |
69+ | designer | Look for architecture/config keywords → map to config/schema files |
70+ | analyst | Extract target keywords → map to files under analysis |
71+ | tester | Extract test target keywords → map to source + test files |
72+ | writer | Extract documentation target → map to relevant source files for context |
73+ | planner | No specific files (planning is abstract) |
74+
75+ ** Inference rules:**
76+ - Extract nouns and verbs from task description
77+ - Match against common directory patterns (src/, lib/, components/, services/, utils/)
78+ - Include related type definition files (types/, * .d.ts)
79+ - For "fix bug" tasks, include error-prone areas (error handlers, validation)
80+ - For "implement feature" tasks, include similar existing features as reference
81+
6182### Step 3: Dependency Graph Construction
6283
6384Build a DAG of work streams using natural ordering tiers:
@@ -123,7 +144,22 @@ Write `<session-folder>/task-analysis.json`:
123144 "prefix" : " RESEARCH" ,
124145 "responsibility_type" : " orchestration" ,
125146 "tasks" : [
126- { "id" : " RESEARCH-001" , "description" : " ..." }
147+ {
148+ "id" : " RESEARCH-001" ,
149+ "goal" : " What this task achieves and why" ,
150+ "steps" : [
151+ " step 1: specific action with clear verb" ,
152+ " step 2: specific action with clear verb" ,
153+ " step 3: specific action with clear verb"
154+ ],
155+ "key_files" : [
156+ " src/path/to/relevant.ts" ,
157+ " src/path/to/other.ts"
158+ ],
159+ "upstream_artifacts" : [],
160+ "success_criteria" : " Measurable completion condition" ,
161+ "constraints" : " Scope limits, focus areas"
162+ }
127163 ],
128164 "artifacts" : [" research-findings.md" ]
129165 }
0 commit comments