refactor: rename depth setting to granularity (closes #879)

The "depth" setting with values quick/standard/comprehensive implied
investigation thoroughness, but it only controls phase count. Renamed to
"granularity" with values coarse/standard/fine to accurately reflect what
it controls: how finely scope is sliced into phases.

Includes backward-compatible migration in loadConfig and config-ensure
that auto-renames depth→granularity with value mapping in both
.planning/config.json and ~/.gsd/defaults.json.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson
2026-03-03 10:53:34 -06:00
parent e2b6179ba7
commit c298a1a4dc
10 changed files with 58 additions and 43 deletions

View File

@@ -371,15 +371,15 @@ Plans should complete within ~50% context (not 80%). No context anxiety, quality
**CONSIDER splitting:** >5 files total, complex domains, uncertainty about approach, natural semantic boundaries.
## Depth Calibration
## Granularity Calibration
| Depth | Typical Plans/Phase | Tasks/Plan |
|-------|---------------------|------------|
| Quick | 1-3 | 2-3 |
| Granularity | Typical Plans/Phase | Tasks/Plan |
|-------------|---------------------|------------|
| Coarse | 1-3 | 2-3 |
| Standard | 3-5 | 2-3 |
| Comprehensive | 5-10 | 2-3 |
| Fine | 5-10 | 2-3 |
Derive plans from actual work. Depth determines compression tolerance, not a target. Don't pad small work to hit a number. Don't compress complex work to look efficient.
Derive plans from actual work. Granularity determines compression tolerance, not a target. Don't pad small work to hit a number. Don't compress complex work to look efficient.
## Context Per Task Estimates
@@ -1135,7 +1135,7 @@ Apply goal-backward methodology (see goal_backward section):
</step>
<step name="estimate_scope">
Verify each plan fits context budget: 2-3 tasks, ~50% target. Split if necessary. Check depth setting.
Verify each plan fits context budget: 2-3 tasks, ~50% target. Split if necessary. Check granularity setting.
</step>
<step name="confirm_breakdown">

View File

@@ -200,17 +200,17 @@ Track coverage as you go.
- New milestone: Start at 1
- Continuing milestone: Check existing phases, start at last + 1
## Depth Calibration
## Granularity Calibration
Read depth from config.json. Depth controls compression tolerance.
Read granularity from config.json. Granularity controls compression tolerance.
| Depth | Typical Phases | What It Means |
|-------|----------------|---------------|
| Quick | 3-5 | Combine aggressively, critical path only |
| Granularity | Typical Phases | What It Means |
|-------------|----------------|---------------|
| Coarse | 3-5 | Combine aggressively, critical path only |
| Standard | 5-8 | Balanced grouping |
| Comprehensive | 8-12 | Let natural boundaries stand |
| Fine | 8-12 | Let natural boundaries stand |
**Key:** Derive phases from work, then apply depth as compression guidance. Don't pad small projects or compress complex ones.
**Key:** Derive phases from work, then apply granularity as compression guidance. Don't pad small projects or compress complex ones.
## Good Phase Patterns
@@ -357,7 +357,7 @@ When presenting to user for approval:
## ROADMAP DRAFT
**Phases:** [N]
**Depth:** [from config]
**Granularity:** [from config]
**Coverage:** [X]/[Y] requirements mapped
### Phase Structure
@@ -401,7 +401,7 @@ Orchestrator provides:
- PROJECT.md content (core value, constraints)
- REQUIREMENTS.md content (v1 requirements with REQ-IDs)
- research/SUMMARY.md content (if exists - phase suggestions)
- config.json (depth setting)
- config.json (granularity setting)
Parse and confirm understanding before proceeding.
@@ -437,7 +437,7 @@ Apply phase identification methodology:
1. Group requirements by natural delivery boundaries
2. Identify dependencies between groups
3. Create phases that complete coherent capabilities
4. Check depth setting for compression guidance
4. Check granularity setting for compression guidance
## Step 5: Derive Success Criteria
@@ -502,7 +502,7 @@ When files are written and returning to orchestrator:
### Summary
**Phases:** {N}
**Depth:** {from config}
**Granularity:** {from config}
**Coverage:** {X}/{X} requirements mapped ✓
| Phase | Goal | Requirements |
@@ -628,7 +628,7 @@ Roadmap is complete when:
- [ ] All v1 requirements extracted with IDs
- [ ] Research context loaded (if exists)
- [ ] Phases derived from requirements (not imposed)
- [ ] Depth calibration applied
- [ ] Granularity calibration applied
- [ ] Dependencies between phases identified
- [ ] Success criteria derived for each phase (2-5 observable behaviors)
- [ ] Success criteria cross-checked against requirements (gaps resolved)