Files
automaton/tasks/plug-stale-task-hole/IMPLEMENTATION.md
T
gitea 99ddb98861
CI / build (push) Has been cancelled
Drive all 4 remaining tasks to completion through full lifecycle
- actionable-phase-guidance: lifecycle artifacts + .state->complete
- harden-enforcement-layers: pre-push hook, install-hooks.sh, register-guards.sh, prompt pre-edit checks, harness contract update, install/update/upgrade script integration
- plug-stale-task-hole: lifecycle artifacts + .state->complete
- port-pi-guard: pi dev guard plugin, package.json, register-guards integration

All tasks passed bug_find, adversarial_bug_find, doc_review, and referee phases with PASS verdict.
2026-06-16 07:28:45 -04:00

23 lines
888 B
Markdown

# Plug Stale Task Hole Implementation
## Summary
Added stale-task detection, `--touch` command in status.py, and updated guard plugins to block edits on stale tasks.
## Changes
### scripts/status.py
- Added `--touch` command that resets the activity clock on a task
- Stale detection: tasks in edit-allowed phases >30 minutes are considered stale
- `--can-edit` returns `stale_task` reason when a task is stale
- Added `stale_task` and `stale_minutes` to JSON output
### plugins/automaton-guard/plugin.ts
- Added stale task detection: if `--can-edit` returns `stale_task` reason, the guard blocks with a message suggesting `--touch` or new task creation
- Parses `staleTask` and `staleMinutes` from JSON response
### automaton/dashboard/core/task.py
- Added stale task awareness in the dashboard
### tests/test_task.py
- Added tests for stale task detection and touch functionality