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:
Execute 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:
Discovery WUs produce decisions, not code. They unblock future implementation WUs.
Review-Audit WUs
Section titled “Review-Audit WUs”Read-heavy audit work is different from implementation work. A review/audit WU may read many files
while modifying none or only a small report. Use the review-audit sizing exception when the
outcome is an audit, triage, or recommendation rather than direct code change.
wu:create and wu:edit accept docs-only, shallow-multi-file, and review-audit as sizing
exception types. If the audit discovers implementation work, promote a follow-up WU rather than
stuffing the fix into the audit unless it remains the same coherent outcome.
Sizing for Initiatives
Section titled “Sizing for Initiatives”When working within an initiative, sizing changes because the orchestrator manages wave-based execution with checkpoints between waves.
Checkpoint-per-Wave
Section titled “Checkpoint-per-Wave”Each wave in an initiative is a batch of WUs that can execute in parallel. Between waves, the orchestrator checkpoints progress:
This means individual WUs within an initiative should still be Simple or Medium sized. The initiative handles the coordination — don’t try to make individual WUs larger because “the initiative will manage it.”
Initiative Sizing Rules
Section titled “Initiative Sizing Rules”- Each WU in an initiative follows standard sizing thresholds
- The orchestrator handles cross-WU coordination via memory signals
- If a wave has more than 4-5 parallel WUs, consider splitting into sub-waves
- Use
pnpm orchestrate:init-status --id INIT-XXXto monitor wave progress
Next Steps
Section titled “Next Steps”- Work Units — WU structure and lifecycle
- Team Workflow — Collaborative sizing
- Initiatives — Multi-phase project coordination