Usage:
/dwp-refine [plan]
dwp-refine
Refine an existing Deep Work Plan.
/dwp-refine - Draft or plan
- Modify · preserve done tasks
- Revised plan
What it does
dwp-refine modifies an existing plan safely. It can add, remove, or reorder tasks while strictly preserving completed evidence, prohibiting unconfirmed criterion weakening, and recording atomic contract revisions.
Usage
/dwp-refine [plan]
/dwp-refine promote [plan]
Behavior
- Read plan: reads the target plan and inspects existing contract and journal history.
- Contract amendments: in v7 plans, contract modifications run through
ledger.py amend. The revision is persisted undercontracts/, anamendmentevent is appended tojournal.ndjson, and fresh approval is recorded. - Closed adaptation set: mid-run plan adaptations are restricted to five authorized operations:
split,reorder,insert,change_strategy, andretry. Proposals expanding scope, permissions, or budget are rejected. - Preserve evidence: completed task evidence is never altered or invalidated. Unconfirmed criterion weakening is strictly prohibited.
- Lite-to-Full promotion:
/dwp-refine promote {plan}expands inline anchored README task records into separate numbered task files without altering task IDs or invalidating existing evidence.
Explicit migration
Existing plans keep their recorded generation when the skill pack is upgraded. Migration is never automatic. A v5 plan moves to v6 only through explicit, previewed migration (shared/migrate_v6.py). A v6 plan keeps its generation and runs unchanged; new plans use the current v7 generation, and an existing plan is never migrated implicitly.
Aliases
dwp:refine