CI / build (push) Has been cancelled
- 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
816 B
816 B
Implementation: fix-can-edit-path-prefix
Changes
- scripts/status.py
cmd_can_edit()(5 locations): Replacedstr(file_path).startswith(proj_str)withstr(file_path).startswith(proj_str + os.sep) or str(file_path) == proj_strto prevent sibling-directory bypass. Same fix applied toauto_str(framework directory) checks.- Line ~986:
--can-edit --project --filescope check - Line ~1039:
--can-edit --task --fileframework case - Line ~1045:
--can-edit --task --fileregular project case - Line ~1082:
--scope-checkproject check - Line ~1087:
--scope-checkframework check
- Line ~986:
Test
tests/test_status.py::TestCanEditPathPrefix— 3 tests: sibling directory rejected by scope-check, subdirectory accepted by scope-check, sibling directory rejected by can-edit --task --file.