Skip to main content

E5:S01:T42 — Planning: Spec, Tests, Implementation Plan (IPW)

Host Task: T42-implementation-planning-workflow-ipw.md (E5:S01:T42)
Planning for: FR-042 — Implementation Planning Workflow (IPW)
Status: Planning artifact (implementation tracked in host task deliverables)


1. Specification

1.1 Goal

Deliver FR-042: a single canonical Implementation Planning Workflow (IPW) with file-backed artifacts and mandatory bidirectional wiring (task doc ↔ plan doc), and merge ICW’s planning responsibilities into IPW per FR-042 §7. RW and Implementation Cycle (TDD) remain unchanged as separate concerns.

1.2 Functional requirements

IDRequirementFR-042
S1Publish IPW SoP or workflow doc (steps + checklist)R01, AC1
S2Publish PLAN_DOC_TEMPLATE.md with Spec / Test Design / Impl Plan + Host TaskR02, AC2, AC8
S3Task template guidance: when a plan exists, link from Input + ReferencesAC3, AC3a
S4Implementation Cycle SoP references IPW before Step 3R06, AC4
S5.cursorrules: IPW canonical; ICW = deprecated alias onlyR08–R10, AC6, AC9–AC10
S6workflow-registry.yaml + implementation-cycle-workflow/README.md: ICW→IPW consolidationR11, AC11
S7FR-040, FR-048, T40, T48: planning language points at IPWR12, AC12
S8Optional R13: legacy notice / thin wrap for icw_handler — no second user-facing workflowR13

1.3 Non-functional requirements

IDRequirement
NF01Traceability: plan doc discoverable from task and vice versa
NF02Consistency with bidirectional wiring policy
NF03Repeatable IPW steps
NF04Single planning mental model (IPW only)

1.4 Out of scope

  • Full rewrite of ICW into a new CLI product.
  • Changes to RW / UKW / CMW / PVW triggers (beyond cross-references if needed).

1.5 Constraints

  • Ship via RW on epic/5-documentation-management.
  • Changelog: no false “Fixed” for behavior not user-verified.

2. Test design

IDLayerWhat to verifyApproach
T1Doc wiringPlan ↔ T42 links resolveManual; repo-relative paths
T2RulesIPW section exists; ICW explicitly alias/deprecatedManual + optional grep during review; small pytest deferred (low ROI for single .cursorrules)
T3TemplatePLAN_DOC_TEMPLATE.md has required headingsManual first RW; optional validate_plan_template.py in follow-up
T4Unwired plansNo orphans without Host Task / back-linkFuture (FR-042 R07 / AC7)
T5ReleaseBranch + task intent validators pass on T42 RWvalidate_branch_context.py --strict, validate_rw_task_intent.py

Phase 1 decision: T1–T2 manual; T3 manual checklist after template lands; T4 deferred; T5 on each RW.


3. Implementation plan

PhaseActionsOutputs
1Add PLAN_DOC_TEMPLATE.md; add IPW agent execution doc in vwmp KBTemplate + implementation-planning-workflow-agent-execution.md
2.cursorrules: IPW trigger; ICW → deprecated alias (same phases as IPW)Updated rules
3implementation-cycle-sop.md: IPW before Step 3; TASK_TEMPLATE.md: plan link hintUpdated SoP + template
4FR-040, FR-048, T40, T48: IPW successor / planning wordingKanban + FR markdown
5R13: implementation-cycle-workflow/README.md + icw_handler.py legacy bannerPackage README + code comment
CloseCheck off T42 deliverables; RWVersion + changelog
flowchart LR
P1[Phase1_Template_IPW_doc]
P2[Phase2_CursorRules]
P3[Phase3_SoP_TaskTpl]
P4[Phase4_CrossRefs]
P5[Phase5_LegacyPkg]
P1 --> P2 --> P3 --> P4 --> P5

4. Success criteria (FR-042 AC mapping)

ACCriterionVerified by
AC1IPW workflow documentedPhase 1 doc
AC2Plan template sections + Host TaskPhase 1 template
AC3 / AC3aTask template + bidirectional wiring in SoP/templatePhase 3
AC4Implementation Cycle SoP references IPWPhase 3
AC5Retroactive unwired plansOut of band (separate grooming)
AC6 / AC9Cursor rules reference IPWPhase 2
AC7Validator for unwired plansDeferred (T4)
AC8PLAN_DOC_TEMPLATE.md pathPhase 1
AC10ICW deprecated/alias in .cursorrulesPhase 2
AC11Registry + ICW README consolidationPhase 5 + registry note
AC12FR-040 notes IPW planning successorPhase 4

References

  • packages/frameworks/workflow mgt/KB/Documentation/Developer_Docs/vwmp/implementation-planning-workflow-agent-execution.md
  • packages/frameworks/workflow mgt/KB/Documentation/Developer_Docs/vwmp/implementation-cycle-sop.md
  • packages/frameworks/kanban/templates/PLAN_DOC_TEMPLATE.md

5. AC5/AC7 closure addendum

AC5 target list (retro wiring)

  • docs/project-management/kanban/epics/Epic-4/Story-014-kanban-framework-maintenance/T01-planning-spec-tests-impl.md
    • Add Host Task header link to T01-update-packaged-rw-ukw-perpetual-tasks.md.
    • Ensure host task has plan link in both ## Input and ## References.
  • docs/project-management/kanban/epics/Epic-4/Story-011-kanban-granularity-discrete-task-docs/T07-planning-spec-tests-impl.md
    • Verify existing bidirectional wiring remains valid.

AC7 validator specification

  • Script path: packages/frameworks/workflow mgt/scripts/validation/validate_plan_wiring.py
  • Inputs:
    • Scan planning artifacts in docs/project-management/kanban/epics/** matching *planning*.md and IPW-*.md.
  • Checks:
    1. Plan doc has Host Task markdown link.
    2. Host task file exists.
    3. Host task ## Input section contains link to the plan doc.
    4. Host task ## References section contains link to the plan doc.
  • Output:
    • PASS/FAIL summary with concrete file paths and missing requirement(s).

Definition of done (AC5/AC7)

  • AC5: All identified historical plan docs are bidirectionally wired.
  • AC7: Validator script exists, runs, and reports PASS on current repository state.

Validator result (AC7)

  • python "packages/frameworks/workflow mgt/scripts/validation/validate_plan_wiring.py"
  • Result: PASS: all planning docs are bidirectionally wired