ICW-E2S01T12-Test-Design: BR-061 Explicit RW Task-ID Version Alignment
Task: E2:S01:T12
Related BR: BR-061
Host Task: T12-rw-explicit-task-id-version-alignment-br061.md
Created: 2026-04-09
Test Strategy
Validate that explicit RW E:S:T flows proceed without manual version.py pre-alignment on valid branch context, while maintaining strict blocking behavior for wrong-branch and intent/typo risk scenarios.
Coverage Matrix
-
Explicit-task no-pre-alignment path (AC-1)
- Input: explicit
E:S:T, valid branch, staleversion.pyepic. - Expectation: workflow proceeds through early guards without manual file edit prerequisite.
- Replay example:
RW E2:S01:T12 --artwhileversion.pyis anchored to another epic.
- Input: explicit
-
Branch mismatch blocking (AC-2)
- Input: explicit
E:S:T, invalid branch context. - Expectation: Step 1 remains blocking with actionable error.
- Input: explicit
-
Intent ambiguity blocking (AC-2)
- Input: explicit
E:S:Tconflicting with intent guard conditions. - Expectation: Step 1d fails unless explicitly permitted by defined adoption semantics (
--artor confirmed override flow).
- Input: explicit
-
Typo-risk rejection (AC-2)
- Input: malformed or incorrect task token near valid ID shape.
- Expectation: validator blocks with clear mismatch diagnostics.
-
Documentation consistency checks (AC-3)
- Input: updated RW docs/rules content.
- Expectation: behavior and guardrail sequencing documented without contradiction.
-
BR-061 regression replay (AC-4)
- Input: known repro profile from BR-061 (epic switch + explicit task).
- Expectation: no false Step 1 friction in valid branch context.
Scenario Set (Required)
-
Positive path - stale version epic + explicit task
Expected: passes Step 1/1.3/1.4/1.5 and proceeds to Step 2 without manualversion.pyedits. -
Negative path - wrong branch
Expected: blocked at Step 1 with branch mismatch diagnostics. -
Negative path - task intent typo/mismatch
Expected: blocked at Step 1.5 unless explicitly adopted or confirmed override is provided per policy. -
Regression replay fixtures
- Fixture A: stale epic mismatch from BR-061 repro.
- Fixture B: same-story newer completed task progression check.
- Fixture C: malformed token near-valid shape (
E2:S0l:T12,E2S1T1Z, etc.).
Failure Modes
- Step 1 still hard-fails on stale
version.pydespite explicit valid task intent. - Branch-safety checks are softened unintentionally for wrong-branch scenarios.
- Intent guard behavior drifts and permits ambiguous requests.
- Error diagnostics become less actionable after reconciliation changes.
- Documentation promises behavior that validators do not implement.
Red/Green Verification Sequence
- Create failing tests for BR-061 repro scenario and guardrail cases.
- Implement explicit-task alignment behavior until AC-1 scenario turns green.
- Re-run branch mismatch and intent-ambiguity tests to confirm blocking behavior remains.
- Add typo/malformed ID negative tests and verify deterministic rejection.
- Validate documentation/rule text consistency against implemented flow.
- Execute full regression pass for E2:S01 RW validator suite.
- Record replay fixture outcomes in task evidence notes for release handoff.
Regression Guard Checklist
- Explicit-task replay no-manual-edit guard is green.
- Wrong-branch hard-block guard is green.
- Intent guard mismatch rejection remains green.
- Typo-risk negative guard is green.
- Documentation and execution flow remain synchronized.
Evidence for Handoff
- Test list mapped to T12 AC-1..AC-4.
- BR-061 repro fixture and expected outcomes documented.
- Pass/fail matrix for explicit-task flow and guardrail-preservation paths.