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
1.6 KiB
1.6 KiB
Implementation: Pre-existing Fixes
Changes Made
1. _infer_state_from_artifacts heuristic fix (scripts/status.py lines 304-309)
Before: SPEC.md exists AND BUG_REPORT.md doesn't exist → bug_find (wrong — most tasks only have SPEC.md)
After: Simplified logic:
BUG_REPORT.mdalone →adversarial_bug_find(bug_find done)IMPLEMENTATION.mdalone →bug_find(implement done)SPEC.mdalone →research(correct mapping)- Removed the buggy SPEC+no-BUG_REPORT case entirely
2. cmd_validate_folder corrupted state fix (scripts/status.py lines 563-568)
Before: If .state exists but _read_state() returns None, silently falls back to _infer_state_from_artifacts
After: Error out with clear message: "corrupted .state file — re-bootstrap with --upgrade"
3. upgrade.sh fixes (scripts/upgrade.sh)
- Removed
|| true:python3 status.py --upgradenow fails loudly with error message - Added python3 check: Script exits early with clear error if python3 not in PATH
- Git hooks directory: Use
git rev-parse --git-dirinstead of assuming.git/hooks/(supports worktrees and bare repos) - mkdir -p hooks: Ensure hooks directory exists before symlinking
4. Tests added (tests/test_status.py)
TestInferStateFromArtifacts: 4 tests verifying heuristic correctness (spec→research, impl→bug_find, bug_report→adversarial_bug_find, spec+decomp→decomposition)TestValidateFolderCorruptedState: 2 tests verifying empty/whitespace .state files produce errors
Test Results
All 206 tests pass (6 new tests, 200 existing).