Archive completed tasks, add cleanup commands, self-documenting dashboard UI
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
This commit is contained in:
Lap Tran
2026-06-24 22:43:33 -04:00
parent e13513faaa
commit 4a2301b077
572 changed files with 856 additions and 101 deletions
@@ -0,0 +1 @@
complete
@@ -0,0 +1 @@
# ADVERSARIAL_BUG_REPORT\n\nNo adversarial issues found.
@@ -0,0 +1 @@
# BUG_REPORT\n\nNo bugs found.
@@ -0,0 +1 @@
# DOC_REVIEW\n\nChanges are minimal and well-understood.
@@ -0,0 +1,10 @@
# IMPLEMENTATION.md — Fix Dead-End Phases
## Changes Made
- `scripts/status.py:91`: Changed `"decomposition:approved": []` to `"decomposition:approved": ["complete"]`
- `scripts/status.py:103`: Added `"human_intervention": ["referee", "complete"]` to LEGAL_TRANSITIONS
## How It Works
- Parent tasks at decomposition:approved can now transition to complete (after sub-tasks finish)
- Human intervention tasks can transition back to referee or to complete
- Verified both transitions are legal via status.py --transition
@@ -0,0 +1,4 @@
# Review
- **Status**: approved
- **Timestamp**: 2026-06-15T17:33:34.936632
- **Comment**:
@@ -0,0 +1,13 @@
# Fix Dead-End Phases
## Problem
- `decomposition:approved` has `[]` in LEGAL_TRANSITIONS (status.py:91). Parent tasks stuck forever.
- `human_intervention` not in LEGAL_TRANSITIONS at all. Referee can transition into it but never out.
## Fix
1. Add `decomposition:approved → [complete]` to LEGAL_TRANSITIONS (parent task completes when all subtasks done)
2. Add `human_intervention → [referee, complete]` to LEGAL_TRANSITIONS (user can send back to referee or mark complete)
## Verification
- `status.py --transition complete --task <t> --project .` on a decomposition:approved task should succeed
- `status.py --transition referee --task <t> --project .` on a human_intervention task should succeed
@@ -0,0 +1,3 @@
VERDICT: PASS
All fixes verified. 206 tests pass.