From c9a1c95ea74941b09d9accc3b2fc504dbf6d42ec Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 29 Jun 2026 16:17:53 -0400 Subject: chore: archive resolved tasks older than a week make task-sorted now ages the Resolved section. Tasks closed more than a week ago, and any with no CLOSED date, move out to archive/task-archive.org, keeping only the last week of closed tasks in todo.org. The target then runs org-lint on todo.org to catch structural problems from the move. This pass moved 207 tasks to the archive and pulled 4 newly-closed tasks into Resolved, dropping todo.org from 9,600 to 5,600 lines. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3ee6ec12a..a2f491a97 100644 --- a/Makefile +++ b/Makefile @@ -459,11 +459,15 @@ profile: fi # Move completed tasks (DONE/CANCELLED level-2 subtrees) out of "Open Work" -# and into the "Resolved" section of todo.org. Wraps todo-cleanup.el's -# --archive-done; a no-op when nothing is in a closed state. +# and into the "Resolved" section of todo.org, then age that section: tasks +# closed more than a week ago move out to archive/task-archive.org, keeping +# only the last week of closed tasks in todo.org. Wraps todo-cleanup.el's +# --archive-done; a no-op when nothing is closed and nothing has aged out. task-sorted: @echo "Archiving resolved tasks in todo.org..." @$(EMACS) --batch -q -l .ai/scripts/todo-cleanup.el --archive-done todo.org + @echo "Linting todo.org..." + @$(EMACS) --batch -q -l .ai/scripts/lint-org.el todo.org clean: clean-tests clean-compiled @echo "✓ Clean complete" -- cgit v1.2.3