Epic 5, Story 1, Task 63: RW Task Argument Requirement
Task ID: E5:S01:T63 Status: COMPLETE Priority: HIGH Estimated Effort: Medium Created: 2026-03-17 Completed: 2026-03-25 Last updated: 2026-03-25 (v0.5.1.63+1 — FR-060 strict RW task token + validate_rw_task_complete + docs) Version: v0.5.1.63+1 Code: E5S01T63
Repository Pattern: FR-060 = E5:S01:T63 (abstract space: v0.5.1.63+0)
Scope
Enhance Release Workflow (RW) to require an explicit task identifier in the same user message as the RW trigger (Option A — strict). No inference from Story checklist or repository state for whether to proceed. This complements Step 1.5 / validate_rw_task_intent.py, which catches typos and wrong-story ids once a token is present.
Problem Statement:
- RW previously allowed proceeding without a parseable task token (
validate_rw_task_intentwith no--requestedexits 0). - That leaves room for wrong attribution before version bump.
- Explicit tokens plus intent guard closes the loop.
Solution:
- Agent must parse
E<Epic>:S<Story>:T<Task>orE<Epic>S<Story>T<Task>from the user message forRW,RW -d, andRW -k. - If absent → RW ABORTED with examples (
RW E7:S01:T10,RW E7S01T10). - Run
validate_rw_task_complete.py(task doc exists; COMPLETE or perpetual) then existingvalidate_rw_task_intent.py --requested(--mode rw-kforRW -k).
Input
- FR-060:
FR-060-rw-task-argument-requirement.md - Versioning Policy:
docs/architecture/standards-and-adrs/dev-kit-versioning-policy.md - RW execution: .cursorrules (source), release-workflow-agent-execution.md (source)
- Validators:
validate_rw_task_intent.py,validate_rw_task_complete.py
Deliverable
- Mandatory task token in
.cursorrulesand packaged RW trigger section (strict abort if missing). validate_rw_task_complete.py— resolves task doc underkanban_root; infullmode requires COMPLETE (or perpetual maintenance);rw-kskips COMPLETE check.- Documentation — agent execution guide, RW reference, README examples using
RW <task_id>. - Tests for the new validator.
Acceptance Criteria
- Criterion 1: RW accepts explicit task arguments (e.g.,
RW E7:S01:T10,RW E7S01T10,RW -d E7S01T10,RW -k E6S6T56). - Criterion 2: If no parseable task token in the user message → RW ABORTED (no Step 2); message includes usage examples.
- Criterion 3: After token present,
validate_rw_task_complete.pypasses forfullRW /RW -d(orrw-kmode as defined). - Criterion 4: Step 1.5 intent guard runs with
--requested(and--mode rw-kforRW -k). - Criterion 5: Version bump / Step 2 still follows project schema; agent uses the declared task as the release attribution target (existing Story read rules apply).
- Criterion 6: Clear errors for invalid or missing task arguments.
- Criterion 7: Documentation updated (agent execution, reference, README).
- Criterion 8: Perpetual maintenance tasks pass COMPLETE check via perpetual markers (not raw
Status: COMPLETE).
Approach
- Add
validate_rw_task_complete.pyand tests. - Update
.cursorrulesandcursorrules-rw-trigger-section.md(mandatory token + validator order). - Update
release-workflow-agent-execution.md,release-workflow-reference.md, framework README. - Renumber kanban (this doc as T63); FR-060 assigned task; board + story checklist.
Related Work
- FR-060: RW Task Argument Requirement (this task)
- BR-056 / E6:S06:T56: RW Task Intent Guard (
validate_rw_task_intent.py) - E5:S01:T48: ICW task identifier (prior art for argparse / validation)
Version Anchor
Forensic Marker Format: ✅ COMPLETE (vRC.E.S.T+B) (e.g., ✅ COMPLETE (v0.5.1.63+1))
This Task is part of Epic 5: Documentation Management and Maintenance, Story 1: FR Repo (PERPETUAL). See Story-001-fr-repo.md for story-level context.