Sizing WUs
Right-sizing WUs is critical for flow. Too big = stuck. Too small = overhead.
Complexity Assessment
Section titled “Complexity Assessment”Estimate WU “weight” using these heuristics. Agents operate in context windows and tool calls, not clock time.
| Complexity | Files | Tool Calls | Context Budget | Strategy |
|---|---|---|---|---|
| Simple | <20 | <50 | <30% | Single Session |
| Medium | 20-50 | 50-100 | 30-50% | Checkpoint-Resume |
| Complex | 50+ | 100+ | >50% | Orchestrator or Split |
| Oversized | 100+ | 200+ | — | Must Split |
Sizing Heuristics
Section titled “Sizing Heuristics”Good Size Indicators
Section titled “Good Size Indicators”- Single clear outcome
- Touches 1-5 files
- One test file added/modified
- Can describe in one sentence
- No “and then…” in the description
- Estimated <50 tool calls
Too Big Indicators
Section titled “Too Big Indicators”- Multiple outcomes
- Touches 10+ files
- Requires multiple test suites
- Description has multiple paragraphs
- Contains “and”, “also”, “plus”
- Estimated 100+ tool calls
Too Small Indicators
Section titled “Too Small Indicators”- Just a config change
- Single line fix
- No tests needed
- Overhead exceeds value
Splitting Strategies
Section titled “Splitting Strategies”By Layer
Section titled “By Layer”Too big: “Add user preferences feature”
Split:
- WU-100: Add preferences API endpoint (Core)
- WU-101: Add preferences database schema (Infra)
- WU-102: Add preferences UI panel (UI)
By Behavior
Section titled “By Behavior”Too big: “Add form validation”
Split:
- WU-110: Add email format validation
- WU-111: Add password strength check
- WU-112: Add form error display
By User Action
Section titled “By User Action”Too big: “Add checkout flow”
Split:
- WU-120: Add cart summary view
- WU-121: Add payment method selection
- WU-122: Add order confirmation
Splitting Patterns
Section titled “Splitting Patterns”Pattern A: Tracer Bullet (Risk Reduction)
Section titled “Pattern A: Tracer Bullet (Risk Reduction)”Best for: New integrations, unproven libraries.
| WU | Title | Tool Calls |
|---|---|---|
| WU-A | Port + mock adapter + E2E skeleton | ~30 |
| WU-B | Real adapter + error handling | ~40 |
Pattern B: Layer Split (Architectural)
Section titled “Pattern B: Layer Split (Architectural)”Best for: Large backend features, hexagonal architecture.
| WU | Title | Tool Calls |
|---|---|---|
| WU-A | Ports + application + unit tests | ~40 |
| WU-B | Infrastructure adapters + int tests | ~40 |
Pattern C: UI/Logic Split (Lane Separation)
Section titled “Pattern C: UI/Logic Split (Lane Separation)”Best for: Full-stack features.
| WU | Title | Lane |
|---|---|---|
| WU-A | API + DB + backend | Core |
| WU-B | Components + UI state | UI |
Pattern D: Feature Flag (Phased Rollout)
Section titled “Pattern D: Feature Flag (Phased Rollout)”Best for: High-risk refactoring, breaking changes.
| WU | Title | Tool Calls |
|---|---|---|
| WU-A | New logic behind ENABLE_NEW=true flag | ~50 |
| WU-B | Remove flag + delete old code | ~30 |
When to Combine
Section titled “When to Combine”Sometimes tiny WUs can be combined:
Too granular:
- WU-A: Add firstName field
- WU-B: Add lastName field
- WU-C: Add email field
Better:
- WU-X: Add user profile fields (firstName, lastName, email)
Dependencies
Section titled “Dependencies”If WUs depend on each other, note it:
id: WU-201title: Add theme toggle componentdependencies: - WU-200 # Needs theme context firstExecute in order, or work on independent WUs in parallel lanes.
Context Safety Triggers
Section titled “Context Safety Triggers”If you hit ANY of these during a session, checkpoint and handoff:
- Token Limit: Context usage hits 50% (warning) or 80% (critical)
- Tool Volume: 50+ tool calls in current session
- File Volume: 20+ files modified in
git status - Performance Degradation: Redundant queries, forgotten context
Discovery WUs
Section titled “Discovery WUs”When uncertain, create a discovery WU first:
id: WU-299title: Spike - evaluate auth librariestype: discoveryacceptance: - Document pros/cons of 3 auth libraries - Recommend one with rationale - No code changes (research only)Discovery WUs produce decisions, not code. They unblock future implementation WUs.
Next Steps
Section titled “Next Steps”- Work Units – WU structure and lifecycle
- Team Workflow – Collaborative sizing