Troubleshooting
Common issues and how to fix them.
Quick Reference
| Error | Fix |
|---|---|
| “not claimable (status: backlog)” | hzl task set-status <id> ready |
| “Cannot complete: status is X” | Claim first: hzl task claim <id> |
| “Task not found” | Check ID with hzl task list |
| “Already claimed” | Task owned by another agent |
| “Circular dependency” | Run hzl validate to find the cycle |
Common Issues
Task Won’t Claim
Error: “Task is not claimable (status: backlog)”
Cause: Task is in backlog status, not ready.
Fix:
hzl task set-status <id> ready
hzl task claim <id> --assignee <name>
Task Won’t Complete
Error: “Cannot complete task: status is ready”
Cause: Task must be claimed (in_progress) before completing.
Fix:
hzl task claim <id> --assignee <name>
hzl task complete <id>
Task Not Showing in Available
Cause: Task has unmet dependencies or is already claimed.
Check:
hzl task show <id>
# Look at "Depends on" and "Status"
Fix:
- Complete blocking dependencies first
- Or remove dependency: task has no
remove-depcommand, create a new task instead
Already Claimed Error
Error: “Task already claimed by
Cause: Another agent owns this task.
Options:
- Wait for them to complete
- If stuck, check lease:
hzl task stuck - If expired, steal:
hzl task steal <id> --if-expired --assignee <name>
Circular Dependency
Error: “Circular dependency detected”
Cause: Task A depends on B, B depends on A (directly or transitively).
Find:
hzl validate
Fix: Remove one of the dependencies by recreating tasks without the cycle.
Diagnostic Commands
Check HZL Status
hzl status
Shows:
- Database location
- Sync configuration
- Basic health info
Run Health Checks
hzl doctor
Comprehensive health check including:
- Database integrity
- Sync status
- Configuration issues
Validate Task Graph
hzl validate
Checks for:
- Circular dependencies
- Invalid references
- Other graph issues
Database Issues
Reset Configuration
hzl init --reset-config
Resets config to defaults without touching data.
Reinitialize (Destructive)
hzl init --force
Warning: This deletes all data. Use only if you need a fresh start.
Database Location
Default: ~/.local/share/hzl/
Contains:
events.db- Event log (source of truth)cache.db- Derived state (can be rebuilt)
Sync Issues
Sync Not Working
# Check configuration
hzl status
# Force sync
hzl sync
# Look for error messages
Stale Data
hzl sync
hzl task list
Authentication Failed
- Verify auth token is correct
- Token may have expired - generate new one
- Check sync URL format:
libsql://<db>.turso.io
Getting Help
Command Help
hzl --help
hzl task --help
hzl task add --help
Workflow Guide
hzl guide
Full workflow documentation in the terminal.
Report Issues
File bugs at github.com/tmchow/hzl/issues
Include:
- HZL version (
hzl --version) - Error message
- Steps to reproduce
- Output of
hzl doctor