You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: agents/plan-sync.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,7 @@ Look for references to:
81
81
- Names/APIs from completed task spec (now stale)
82
82
- Assumptions about data structures
83
83
- Integration points that changed
84
+
- File paths in `## Investigation targets` sections — if the completed task renamed or moved files that are listed as Required/Optional targets in downstream tasks, those paths are now stale
84
85
85
86
Flag tasks that need updates.
86
87
@@ -130,6 +131,7 @@ Changes should:
130
131
- Update variable/function names to match actual
131
132
- Correct API signatures
132
133
- Fix data structure assumptions
134
+
- Update stale file paths in `## Investigation targets` (e.g., if `src/old.ts` was moved to `src/new.ts`)
133
135
- Add note: `<!-- Updated by plan-sync: fn-X.Y used <actual> not <planned> -->`
**Why it works**: Exact paths with line ranges. Clear Required vs Optional. Brief purpose descriptions. Worker reads these before coding, grounding implementation in real patterns.
350
+
351
+
### ❌ BAD: Vague or overloaded targets
352
+
353
+
```markdown
354
+
## Investigation targets
355
+
-`src/` — look at the source code
356
+
-`tests/` — check the tests
357
+
-`lib/utils.ts` — might be useful
358
+
-`src/auth/oauth.ts`
359
+
-`src/auth/session.ts`
360
+
-`src/auth/middleware.ts`
361
+
-`src/auth/types.ts`
362
+
-`src/auth/index.ts`
363
+
-`src/auth/helpers.ts`
364
+
-`src/auth/validators.ts`
365
+
-`src/auth/errors.ts`
366
+
```
367
+
368
+
**Why it's bad**: No Required/Optional labels. Vague descriptions ("might be useful"). Directory-level paths waste context. Too many targets (11) — worker reads everything and remembers nothing. Max 5-7 targets per task.
[Only for recent API changes, surprising patterns, or non-obvious gotchas]
287
295
[If stack config exists, include relevant framework conventions here]
@@ -291,6 +299,13 @@ Default to standard unless complexity demands more or less.
291
299
- [ ] Criterion 2
292
300
```
293
301
302
+
**Investigation targets rules:**
303
+
- Max 5-7 targets per task — enough to ground the worker, not so many it wastes context
304
+
- Use exact file paths with optional line ranges (e.g., `src/auth.ts:23-45`)
305
+
- **Required** = must read before implementing. **Optional** = helpful reference
306
+
- Auto-populated from repo-scout/context-scout findings in Step 1 research
307
+
- If no relevant files found by scouts, leave the section empty (worker skips Phase 1.5)
308
+
294
309
**Layer field**: If stack config is set, tag each task with its primary layer. This helps the worker select the right guard commands (e.g., `pytest` for backend, `pnpm test` for frontend). Full-stack tasks run all guards.
295
310
296
311
7. Add task dependencies (if not already set via `--deps`):
0 commit comments