feat: Implement cross-type cycle prevention in dependencies

- Remove type filter from cycle detection to check ALL dependency types
- Extract maxDependencyDepth=100 constant shared across AddDependency and DetectCycles
- Move cycle check before INSERT to avoid unnecessary write on failure
- Add comprehensive tests: self-dependency, related cycles, cross-type cycles
- Verify idx_dependencies_issue index exists for performance

Fixes bd-312. Prevents cross-type cycles (e.g., A blocks B, B parent-child A)
that previously hid work from ready list. Addresses oracle feedback for
proper implementation.
This commit is contained in:
Steve Yegge
2025-10-16 10:59:25 -07:00
parent 8541203178
commit b7f9e74574
3 changed files with 597 additions and 360 deletions

File diff suppressed because one or more lines are too long