Files
automaton/tasks/complete/fix-can-edit-path-prefix/BUG_REPORT.md
T
Lap Tran 4a2301b077
CI / build (push) Has been cancelled
Archive completed tasks, add cleanup commands, self-documenting dashboard UI
- Archive 79 completed framework-dev tasks from tasks/ -> tasks/complete/
- status.py: add --cleanup-done and --install-cleanup-schedule commands
- Add scripts/automaton-cleanup.sh for periodic task archiving
- Dashboard: rename 'Background' tab -> 'Agent', 'Cleanup' agent -> 'Completed Task Archiver', remove redundant group headers and pill badges, dim inactive agent placeholders
- .rules.md: add Self-Documenting UI Names rule
- New tests: test_cleanup_done.py, expanded test_app.py and test_task.py
2026-06-24 22:43:33 -04:00

17 lines
565 B
Markdown

# Bug Report: fix-can-edit-path-prefix
## Summary
The fix correctly prevents sibling-directory bypass at all 5 locations in status.py.
## Bugs Found
No bugs found.
## Verification
- `str(file_path).startswith(proj_str + os.sep) or str(file_path) == proj_str` correctly handles both files inside the directory and the directory itself.
- All 5 locations use the same consistent pattern.
- `Path.resolve()` is called on `file_path`, so symlinks are resolved before comparison.
- 3 tests pass: sibling-rejection, subdirectory-acceptance, can-edit-task.
## Score
0