Today we’ll work on <wu-id>: “Add email validation to user signup”.
# docs/operations/tasks/wu/<wu-id>.yamlid: <wu-id>title: 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-id> --lane "Framework: Core"cd worktrees/framework-core-<wu-id># Agent loads the canonical skills through its host's own mechanism# tdd-workflow and code-quality# Start agent session for memory trackingpnpm agent:session --wu <wu-id> --tier 2
# Developer claims the WUpnpm wu:claim --id <wu-id> --lane "Framework: Core"# IMMEDIATELY cd into the worktreecd worktrees/framework-core-<wu-id># Verify you're in the right placepwd# /path/to/project/worktrees/framework-core-<wu-id>
# Stage changesgit add src/validation/# Commit with WU referencegit commit -m "wu(<wu-id>): 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-id># Return to main and completecd /path/to/projectpnpm wu:done --id <wu-id># Output:# [wu:done] Merging to main (fast-forward)...# [wu:done] Creating stamp...# [wu:done] Cleaning up worktree...# [wu:done] <wu-id> completed successfully
# Return to main checkoutcd /path/to/project# Complete the WUpnpm wu:done --id <wu-id># This:# 1. Requires a successful wu:prep# 2. Fast-forward merges to main# 3. Creates .lumenflow/stamps/<wu-id>.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-id>git apply /tmp/main-changes.patchgit add .git commit -m "wu(<wu-id>): 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)