Troubleshooting
This guide covers common issues you may encounter with LumenFlow and how to resolve them.
Gate Failures
Section titled “Gate Failures”Format check fails
Section titled “Format check fails”Symptom:
Fix:
Lint check fails
Section titled “Lint check fails”Symptom:
Fix:
- Read the error message to understand the issue
- Fix the code (don’t disable the rule unless necessary)
- Retry:
pnpm wu:prep --id WU-XXX
Common lint fixes:
| Error | Fix |
|---|---|
no-explicit-any | Add proper TypeScript types |
no-unused-vars | Remove the variable or prefix with _ |
exhaustive-deps | Add missing useEffect dependencies |
no-restricted-imports | Use the correct import path |
Type check fails
Section titled “Type check fails”Symptom:
Fix:
- Fix the first error (later errors often cascade from earlier ones)
- Save and check again
- Repeat until clean
Tests fail
Section titled “Tests fail”Symptom:
Fix:
- Run the failing test in isolation:
pnpm test src/__tests__/auth.test.ts - Debug: check test setup, mocks, and assertions
- Fix and retry
Common causes:
- Mocks not reset between tests (use
beforeEach) - Async tests not awaited
- Environment differences (CI vs local)
Pre-existing gate failures
Section titled “Pre-existing gate failures”If gates fail on code you didn’t change:
-
Verify the failure existed before your changes
-
Use skip-gates with documentation
-
Create a follow-up WU to fix the issue
WU State Issues
Section titled “WU State Issues”WU stuck in in_progress
Section titled “WU stuck in in_progress”Symptom: WU shows in_progress but worktree is gone or work is done elsewhere.
Fix:
WU status mismatch
Section titled “WU status mismatch”Symptom: backlog.md says one status, WU YAML says another.
Fix:
Lane already has a WU in progress
Section titled “Lane already has a WU in progress”Symptom:
Fix:
- Check if WU-040 is truly in progress:
pnpm wu:status --id WU-040 - If blocked, mark it:
pnpm wu:block --id WU-040 --reason "Waiting for API" - If done, complete it:
pnpm wu:done --id WU-040 - If orphaned, recover:
pnpm wu:recover --id WU-040 --action reset
Worktree Issues
Section titled “Worktree Issues”Worktree not found
Section titled “Worktree not found”Symptom:
Fix:
Changes made in wrong directory
Section titled “Changes made in wrong directory”Symptom: You made changes in main instead of the worktree.
Fix:
Worktree has merge conflicts
Section titled “Worktree has merge conflicts”Symptom: Conflicts after rebasing the worktree branch.
Fix:
Git Issues
Section titled “Git Issues”wu:done fails with “not a fast-forward”
Section titled “wu:done fails with “not a fast-forward””Symptom:
Cause: Main has new commits since you started your WU.
Fix:
wu:done fails with “Worktree has uncommitted changes”
Section titled “wu:done fails with “Worktree has uncommitted changes””Symptom:
Cause: wu:done requires a clean, committed worktree before it can merge.
Fix:
If the changes were accidental, restore the files, then retry.
Hooks block my commit
Section titled “Hooks block my commit”Symptom:
Cause: You’re trying to commit WU work from the main directory.
Fix:
Commit message missing WU ID
Section titled “Commit message missing WU ID”Symptom:
Fix: Include the WU ID in the commit message, for example:
Branch drift warning
Section titled “Branch drift warning”Symptom:
Fix:
Parallel completions detected
Section titled “Parallel completions detected”Symptom:
Cause: Other WUs merged to main while your WU was in progress.
Fix: Rebase your worktree onto main, then retry:
CLI Issues
Section titled “CLI Issues”Command not found: wu-create
Section titled “Command not found: wu-create”Symptom:
Fix:
Config validation errors
Section titled “Config validation errors”Symptom:
Fix:
- Check the error message for the specific field
- Compare with the Configuration Reference
- Fix the YAML syntax or values
Validate without running:
Memory checkpoint fails
Section titled “Memory checkpoint fails”Symptom:
Fix:
wu:done warns about missing checkpoints
Section titled “wu:done warns about missing checkpoints”Symptom:
Fix: Create checkpoints during long sessions:
Still Stuck?
Section titled “Still Stuck?”If these solutions don’t help:
- Check logs:
cat .lumenflow/flow.log - Run with debug:
DEBUG=lumenflow:* pnpm wu:done --id WU-042 - Ask for help:
Include in your question:
- The exact error message
- Your
.lumenflow.config.yaml(redact secrets) - Output of
pnpm wu:status --id WU-XXX - Your Node.js version:
node --version