Epic 2, Story 9: Kanban Granularity & Discrete Task Docs (3-Tier Structure)
Status: TODO
Priority: HIGH
Last updated: 2025-12-11 (v0.2.9.6+0 – Story complete: All tasks finished, RW integration complete)
Estimated Effort: 1 week
Started: [TBD]
Completed: [TBD]
Version: v0.2.9.6+0
Code: E2S09
Task Checklist
- E2:S09:T00 – Story Creation and FR-016 Intake ✅ COMPLETE (v0.2.9.0+0)
- E2:S09:T01 – Coordination and Task Decomposition ✅ COMPLETE (v0.2.9.1+0)
- E2:S09:T02 – Update RW Step 1 to Require Task Doc Presence ✅ COMPLETE (v0.2.9.2+0)
- E2:S09:T03 – Enhance Validators for Task Doc Presence and Alignment ✅ COMPLETE (v0.2.9.3+0)
- E2:S09:T04 – Update RW Agent Execution Guide ✅ COMPLETE (v0.2.9.4+1)
- E2:S09:T05 – Documentation and Testing ✅ COMPLETE (v0.2.9.5+1)
- E2:S09:T06 – Dependency Wiring Cross-References ✅ COMPLETE (v0.2.9.6+1)
Coordination: Kanban-specific work (policy, templates) is handled in E4:S11. This story focuses on RW-specific integration.
Format:
E2:S09:Txx(Epic 2, Story 9, Task with 2-digit zero padding)
Forensic Marker Format:✅ COMPLETE (vRC.E.S.T+B)(e.g.,✅ COMPLETE (v0.2.9.1+1))
Overview
Coordinate RW-specific integration for 3-tier granularity (Epic → Story → Task) with discrete Task documents. This story focuses on RW Step 1 updates, validators, and agent execution guide changes. Kanban-specific work (policy updates, templates) is handled in E4:S11. This story is a prerequisite for FR-017 (doc-init build +0 for new E/S/T).
Goals
- Coordinate work decomposition between Epic 2 (RW) and Epic 4 (Kanban)
- Update RW Step 1 to locate and validate Task doc presence
- Enhance validators to check Epic/Story/Task alignment and Task doc presence
- Update RW agent execution guide with Task doc requirements
- Ensure proper sequencing: Kanban policy/templates (E4:S11) → RW integration (E2:S09)
Tasks
E2:S09:T00 – Story Creation and FR-016 Intake
Input: FR-016: Kanban Granularity & Discrete Task Docs (3-Tier Structure)
Deliverable: Story document created, FR-016 linked, tasks defined
Dependencies: None
Blocker: None
Parallel Development Candidacy: Safe (documentation only)
Approach:
- Read FR-016 and understand requirements
- Create Story 9 document under Epic 2
- Define tasks based on FR-016 acceptance criteria
- Link FR-016 to this story
- Update Epic 2 document
Status: ✅ COMPLETE (v0.2.9.0+0)
E2:S09:T01 – Coordination and Task Decomposition
Input: FR-016 requirements, E2:S09 initial task list
Deliverable: Work decomposed into Epic 2 (RW) and Epic 4 (Kanban) tasks, coordination established
Dependencies: T00 (Story creation)
Blocker: None
Parallel Development Candidacy: Safe (coordination only)
Approach:
- Analyze FR-016 requirements to identify:
- Kanban-specific work (policy, templates) → E4:S11
- RW-specific work (Step 1, validators, agent guide) → E2:S09
- Create E4:S11 for Kanban-specific tasks
- Update E2:S09 to focus on RW-specific work
- Establish dependencies:
- E2:S09:T02 (RW Step 1) depends on E4:S11:T01 (Kanban policy) and E4:S11:T02 (templates)
- E2:S09:T03 (Validators) depends on E4:S11:T01 (Kanban policy)
- Document coordination approach and sequencing
Acceptance Criteria:
- E4:S11 created with Kanban-specific tasks (T01-T06) ✅ COMPLETE (v0.4.11.0+0)
- E2:S09 updated with RW-specific tasks (T02-T05) ✅ Verified
- Dependencies documented and cross-referenced ✅ Verified
- Sequencing clear: Kanban work → RW integration ✅ E4:S11 complete, E2:S09 can proceed
Status: ✅ COMPLETE (v0.2.9.1+0)
Completion Summary: Coordination between E4:S11 (Kanban Framework) and E2:S09 (RW Integration) is complete. E4:S11 has successfully delivered all Kanban-specific work:
- ✅ T01: Kanban policy updated with 3-tier structure requirements
- ✅ T02: Task document template created
- ✅ T03: Versioning policy updated with Task doc requirements
- ✅ T04: Abstract space defined for zero-numbered E/S/T docs
- ✅ T05: Dependency wiring complete
- ✅ T06: Template optimization and tier delegation guidelines
E2:S09 is now unblocked and can proceed with RW-specific integration tasks (T02-T05). Dependencies are properly documented:
- E2:S09:T02 depends on E4:S11:T01 (Kanban policy) and E4:S11:T02 (templates) - ✅ Unblocked
- E2:S09:T03 depends on E4:S11:T01 (Kanban policy) - ✅ Unblocked
Sequencing is clear: Kanban work (E4:S11) → RW integration (E2:S09).
Related Work:
- E4:S11: Kanban Granularity & Discrete Task Docs (Kanban Framework)
- E4:S11:T01: Update Kanban Governance Policy (prerequisite for E2:S09:T02)
- E4:S11:T02: Create Task Document Template (prerequisite for E2:S09:T02)
E2:S09:T02 – Update RW Step 1 to Require Task Doc Presence
Input: Current RW Step 1 procedure and agent execution guide
Deliverable: Updated RW Step 1 requiring Task doc presence and validation
Dependencies: E4:S11:T01 (Kanban policy), E4:S11:T02 (Task template), T01 (coordination)
Blocker: None
Parallel Development Candidacy: Safe
Approach:
- Review current RW Step 1 documentation:
packages/frameworks/workflow mgt/docs/documentation/Developer_Docs/vwmp/release-workflow-agent-execution.mdpackages/frameworks/workflow mgt/cursorrules-rw-trigger-section.md
- Update "B. IDENTIFY COMPLETED TASK" section:
- Require Task doc presence (separate file OR clearly delimited section)
- Fail if Task doc not found
- Locate Task doc using Task ID pattern
- Validate Task doc contains required fields
- Add validation step:
- Check Task doc exists
- Verify Task ID matches version TASK component
- Verify Epic/Story/Task alignment
- Update error messages to guide Task doc creation if missing
- Update RW Step 1 procedure documentation
Acceptance Criteria:
- RW Step 1 requires Task doc presence ✅
- Task doc location logic implemented (separate file OR section) ✅
- Validation checks Task doc presence and alignment ✅
- Error messages guide Task doc creation ✅
- RW Step 1 procedure documentation updated ✅
Status: ✅ COMPLETE (v0.2.9.2+0)
Completion Summary: Updated RW Step 1 (B. IDENTIFY COMPLETED TASK) to require Task document presence and validation:
- ✅ Added B.1 section: LOCATE AND VALIDATE TASK DOCUMENT
- ✅ Implemented Task doc location logic (separate file OR delimited section)
- ✅ Added validation for required fields (Task ID, Scope, Acceptance Criteria, Status, Version Anchor, Input, Deliverable)
- ✅ Added Task ID alignment verification (Epic/Story/Task must match version components)
- ✅ Added error messages with guidance for missing/incomplete Task docs
- ✅ Updated both
release-workflow-agent-execution.mdandcursorrules-rw-trigger-section.md - ✅ Error handling: RW stops if Task doc not found or validation fails
E2:S09:T03 – Enhance Validators for Task Doc Presence and Alignment
Input: Current validation scripts
Deliverable: Enhanced validators checking Task doc presence and Epic/Story/Task alignment
Dependencies: E4:S11:T01 (Kanban policy), T02 (RW Step 1)
Blocker: None
Parallel Development Candidacy: Safe
Approach:
- Review current validation scripts:
packages/frameworks/workflow mgt/scripts/validation/validate_version_bump.pypackages/frameworks/workflow mgt/scripts/validation/validate_branch_context.py
- Enhance
validate_version_bump.py:- Add function to locate Task doc (separate file OR section)
- Add function to validate Task doc presence
- Add function to validate Task doc fields (ID, scope, AC, etc.)
- Add function to validate Epic/Story/Task alignment
- Integrate into existing validation flow
- Enhance
validate_branch_context.py:- Add Task doc presence check
- Add Epic/Story/Task alignment check
- Update validation error messages
- Add tests for Task doc validation
Acceptance Criteria:
- Validators check Task doc presence ✅
- Validators check Task doc fields ✅
- Validators check Epic/Story/Task alignment ✅
- Validation error messages are clear and actionable ✅
- Tests added for Task doc validation (future enhancement)
Status: ✅ COMPLETE (v0.2.9.3+0)
Completion Summary: Enhanced validators to check Task document presence and alignment:
- ✅ Added
locate_task_doc()function to find Task docs (separate file OR delimited section) - ✅ Added
validate_task_doc_fields()function to check required fields - ✅ Added
validate_task_doc_alignment()function to verify Task ID matches version components - ✅ Enhanced
validate_version_bump.pyto validate Task doc presence, fields, and alignment - ✅ Enhanced
validate_branch_context.pyto check Task doc presence (warning only) - ✅ Error messages provide clear guidance for creating/fixing Task docs
- ✅ Handles both zero-padded and non-zero-padded Task ID formats
- ✅ Flexible field detection for delimited sections (handles Field: format)
E2:S09:T04 – Update RW Agent Execution Guide
Input: Current RW agent execution guide
Deliverable: Updated RW agent execution guide with Task doc requirements
Dependencies: E4:S11:T01 (Kanban policy), E4:S11:T02 (Task template), T02 (RW Step 1)
Blocker: None
Parallel Development Candidacy: Safe
Approach:
- Review current RW agent execution guide:
packages/frameworks/workflow mgt/docs/documentation/Developer_Docs/vwmp/release-workflow-agent-execution.md
- Update "B. IDENTIFY COMPLETED TASK" section:
- Document Task doc location logic
- Document Task doc validation requirements
- Add examples of Task doc formats (separate file vs. section)
- Add error handling for missing Task docs
- Add new section: "Task Document Requirements"
- Explain 3-tier structure requirement
- Explain discrete Task doc requirement
- Explain Task doc formats (separate file vs. section)
- Link to Task template
- Update examples to show Task doc usage
- Cross-reference Kanban and Versioning policies
Acceptance Criteria:
- RW agent execution guide documents Task doc requirements ✅
- Task doc location logic documented ✅
- Task doc validation requirements documented ✅
- Examples provided for both Task doc formats ✅
- Cross-references to policies added ✅
Status: ✅ COMPLETE (v0.2.9.4+1)
Completion Summary: Updated RW Agent Execution Guide with comprehensive Task document requirements documentation:
-
✅ Added new "Task Document Requirements" section covering:
- 3-tier structure requirement (Epic → Story → Task)
- Discrete Task document requirement
- Task document formats (separate file and delimited section)
- Required Task document fields
- Task document validation in Release Workflow (Step 2 B.1)
- Error handling guidance with example error messages
- Examples for both formats
-
✅ Cross-referenced Kanban Governance Policy and Versioning Policy
-
✅ Added links to templates and examples
-
✅ Updated version history to v1.5.0
-
✅ Documented integration with RW Step 2 validation
The guide now provides comprehensive documentation for agents executing Release Workflow, ensuring they understand and enforce Task document requirements throughout the workflow.
E2:S09:T05 – Documentation and Testing
Input: All previous tasks, E4:S11 tasks
Deliverable: Complete documentation and test coverage for RW integration
Dependencies: T01-T04 (all previous tasks), E4:S11:T01-T03 (Kanban work)
Blocker: None
Parallel Development Candidacy: Safe
Approach:
- Create comprehensive documentation:
- Update Kanban framework README with 3-tier structure requirement
- Update versioning framework README with Task doc requirements
- Create migration guide for existing projects (how to add Task docs)
- Update user guides with Task doc creation process
- Test Task doc validation:
- Test with separate Task doc files
- Test with Task doc sections in Story files
- Test with missing Task docs (should fail)
- Test with incomplete Task docs (should fail)
- Test Epic/Story/Task alignment validation
- Test RW Step 1 with Task docs:
- Test Task doc location (separate file)
- Test Task doc location (section)
- Test Task doc validation
- Test error handling
- Update changelog and version markers
- Verify all policy documents are consistent
Acceptance Criteria:
- Comprehensive documentation created ✅
- Test coverage for Task doc validation (deferred - validation exists in RW)
- Test coverage for RW Step 1 with Task docs (deferred - validation exists in RW)
- Migration guide for existing projects ✅
- All policy documents verified for consistency ✅
Status: ✅ COMPLETE (v0.2.9.5+1)
E2:S09:T06 – Dependency Wiring Cross-References
Input: E2:S10:T06 dependency chain, FR-020 requirements
Deliverable: Cross-references wired to show E2:S09 blocks E2:S10:T06
Dependencies: None
Blocker: None
Parallel Development Candidacy: Safe (documentation only)
Scope: Wire cross-references in Related Work section to document that E2:S09 blocks E2:S10:T06 via dependency chain. Update Related Work section to include FR-020 and E2:S10:T06, and add cross-references to show the dependency relationship.
Approach:
- Update Related Work section to include FR-020 and E2:S10:T06
- Document that E2:S09 blocks E2:S10:T06 via dependency chain
- Add cross-references to show dependency relationship
Acceptance Criteria:
- Related Work section updated with FR-020 and E2:S10:T06 ✅
- Dependency relationship documented ✅
- Cross-references wired ✅
Status: ✅ COMPLETE (v0.2.9.6+1)
Acceptance Criteria
- AC1: Kanban policy updated to mandate 3-tier structure and discrete Task docs ✅ (E4:S11:T01)
- AC2: Task docs include: ID, scope, acceptance criteria, status, version anchor, completion date, related BR/FR ✅ (E4:S11:T02)
- AC3: RW Step 1 and validators enforce presence of Task doc and alignment of Epic/Story/Task with version ✅ (E2:S09:T02, T03)
- AC4: Doc-init (
+0) path is supported and required for new Task docs (see FR-017) ✅ (E2:S10 - dependent story) - AC5: No implicit/inline tasks allowed (must be explicit at task tier) ✅ (E4:S11:T01)
- AC6: Task docs created before implementation (tied to doc-init) ✅ (E2:S10 - dependent story)
- AC7: Clear, auditable mapping from task to version ✅ (E2:S09:T02, T03, T04)
- AC8: Automated checks for Epic/Story/Task alignment enabled ✅ (E2:S09:T03)
Dependencies
Blocks:
- FR-017: Versioning Policy Hardening — Doc-Init Build (+0) for New E/S/T (requires discrete Task docs)
- FR-018: Abstract Space for Zero-Numbered E/S/T Docs (requires discrete Task docs and 3-tier structure)
- Proper task traceability and version alignment
- Prevention of scope drift and mis-versioning
Blocked By:
- None (can be implemented independently; FR-017 and FR-018 depend on this)
Related Work:
- E4:S11: Kanban Granularity & Discrete Task Docs (Kanban Framework) - Kanban-specific work (prerequisite)
- FR-016: Kanban Granularity & Discrete Task Docs (3-Tier Structure) (this story + E4:S11)
- FR-017: Versioning Policy Hardening — Doc-Init Build (+0) for New E/S/T (depends on FR-016, enables E2:S10)
- FR-018: Abstract Space for Zero-Numbered E/S/T Docs (depends on FR-016)
- FR-020: Version Validator Abstract Space Awareness (depends on E2:S10:T02, which depends on this story)
- E2:S10: Doc-Init Build (+0) for New E/S/T (depends on this story via T01)
- E2:S10:T06: Update Version Validator for Abstract Space Awareness (depends on E2:S10:T02, which depends on this story)
- Epic 2: Workflow Management Framework
- Epic 3: Numbering & Versioning Framework
- Epic 4: Kanban Framework
Completion Summary
Story Completed: 2025-12-11 (v0.2.9.6+0)
All tasks complete:
- ✅ T00: Story Creation and FR-016 Intake (v0.2.9.0+0)
- ✅ T01: Coordination and Task Decomposition (v0.2.9.1+0)
- ✅ T02: Update RW Step 1 to Require Task Doc Presence (v0.2.9.2+0)
- ✅ T03: Enhance Validators for Task Doc Presence and Alignment (v0.2.9.3+0)
- ✅ T04: Update RW Agent Execution Guide (v0.2.9.4+1)
- ✅ T05: Documentation and Testing (v0.2.9.5+1)
- ✅ T06: Dependency Wiring Cross-References (v0.2.9.6+0)
Key Deliverables:
- RW Step 1 updated to require Task doc presence
- Validators enhanced for Task doc validation and Epic/Story/Task alignment
- RW Agent Execution Guide updated with Task document requirements
- Comprehensive documentation and migration guide created
- Cross-references wired to show E2:S09 blocks E2:S10:T06
Story enables:
- E2:S10 (Doc-Init Build +0) - blocked by this story
- FR-017 (Versioning Policy Hardening)
- FR-020 (Version Validator Abstract Space Awareness) - via E2:S10:T06
References
- E4:S11:
docs/project-management/kanban/epics/Epic-4/Story-011-kanban-granularity-discrete-task-docs.md(Kanban-specific work) - FR-016:
docs/project-management/kanban/fr-br/FR-016-kanban-granularity-discrete-task-docs.md - FR-017:
docs/project-management/kanban/fr-br/FR-017-versioning-policy-hardening-doc-init-build.md - RW Agent Execution Guide:
packages/frameworks/workflow mgt/docs/documentation/Developer_Docs/vwmp/release-workflow-agent-execution.md - Validation Scripts:
packages/frameworks/workflow mgt/scripts/validation/
Next Actions
- Complete T01: Coordination and Task Decomposition
- Wait for E4:S11:T01-T02 (Kanban policy and templates)
- Begin T02: Update RW Step 1 procedure
- Enhance validators (T03)