Files
cleveragents-core/features
HAL9000 985bad7b9e fix(agents): add pre-flight file existence check to bug-hunt-pool-supervisor task assignment
Add task_validation module that validates files before task assignment:
- Checks file existence before dispatching tasks
- Filters out files from non-source directories (.git/, .opencode/, etc.)
- Logs invalid files with descriptive error messages
- Provides filter_files_for_task_assignment() for bulk validation

Add comprehensive BDD tests covering:
- Valid source file validation
- Non-existent file rejection
- Skip directory filtering (.git/, .opencode/, etc.)
- Directory path rejection
- Empty path handling
- Absolute path validation
- Bulk file filtering

This fixes the bug where bug-hunt-pool-supervisor assigned tasks for
non-existent files like /app/.git/apply_labels_cleanup.py.

ISSUES CLOSED: #9365
2026-04-14 18:03:45 +00:00
..