Today we’ll work on WU-042: “Add email validation to user signup”.
# docs/operations/tasks/wu/WU-042.yamlid: WU-042title: Add email validation to user signuplane: 'Framework: Core'status: readyacceptance: - Email field validates format on blur - Invalid emails show error message - Valid emails allow form submission - Unit tests cover validation logic with 90% coveragecode_paths: - src/validation/email.ts - src/validation/__tests__/email.test.ts
# Agent claims with full contextpnpm wu:claim --id WU-042 --lane "Framework: Core"cd worktrees/framework-core-wu-042# Agent loads the canonical skills through its host's own mechanism# .lumenflow/skills/tdd-workflow/SKILL.md# .lumenflow/skills/code-quality/SKILL.md# Start agent session for memory trackingpnpm agent:session --wu WU-042 --tier 2
# Developer claims the WUpnpm wu:claim --id WU-042 --lane "Framework: Core"# IMMEDIATELY cd into the worktreecd worktrees/framework-core-wu-042# Verify you're in the right placepwd# /home/user/project/worktrees/framework-core-wu-042
# Stage changesgit add src/validation/# Commit with WU referencegit commit -m "wu(wu-042): add email validation with tests- Add validateEmail function with format validation- Return error messages for invalid inputs- 100% test coverage on validation logic"
# Agent signals completionpnpm mem:signal "Implementation complete, gates passing" --wu WU-042# Return to main and completecd /home/user/projectpnpm wu:done --id WU-042# Output:# [wu:done] Merging to main (fast-forward)...# [wu:done] Creating stamp...# [wu:done] Cleaning up worktree...# [wu:done] WU-042 completed successfully
# Return to main checkoutcd /home/user/project# Complete the WUpnpm wu:done --id WU-042# This:# 1. Requires a successful wu:prep# 2. Fast-forward merges to main# 3. Creates .lumenflow/stamps/WU-042.done# 4. Updates backlog.md and status.md# 5. Removes the worktree
# Check where changes aregit status# If in main, move changes into the worktree and commit theregit diff > /tmp/main-changes.patchgit diff --name-only > /tmp/main-changed-paths.txtcd worktrees/framework-core-wu-042git apply /tmp/main-changes.patchgit add .git commit -m "wu(wu-042): implement feature"# Restore only the paths you just moved on main — never the whole treecd /path/to/maingit restore $(cat /tmp/main-changed-paths.txt)