ADR 0024: Planned Dates Are Absolute, and Hiding Is a Setting of the View
- Status: Accepted
- Date: 2026-10-20
- Supersedes: parts of ADR 0019 (
postponed_untilas "hidden until the next occurrence") - Related:
spec/FORMAT.md(Dates and times, Recurring tasks), issue #154, ADR 0015
Context
A task carried three dates: due_date, planned_date and postponed_until.
planned_dateheld a day or a relative keyword (today,thisWeek,sometime, ...). A keyword means something different on every day, so the same file says different things to two devices on different days, and a task could sit in "this week" for months without ever showing that it had slipped.postponed_untilhid a task until a day. Planned and postponed were two fields for nearly one idea ("not before then"), and the recurrence roll reusedpostponed_untilas a way to get the task off the board. That mixed two jobs, and the planning views, which are about the future, lost exactly the recurring tasks they should show (issue #154).
Most tasks need a planned date. A deadline is the rarer, sharper thing.
Decision
- A planned date is absolute: a day (
YYYY-MM-DD), an ISO week (YYYY-Www, "some day that week") or a month (YYYY-MM). The week and the month keep what the keywords were used for ("some day this week") without being relative. A passed value is slipped, and nothing changes it by itself. postponed_untilis gone. Hiding is a setting of the view, the horizon: a view shows planned tasks up to today, tomorrow, the end of the week, the end of the month or without limit. A week or a month counts from its first day. Hiding is not part of the file, so it needs no rules in the spec.- Recurrence plans the task for its next occurrence. The roll sets
planned_datetonext(a planned day keeps its distance to the due date; a week or a month becomes the day), so a recurring task reappears when the horizon reaches it, and the planning views can show it because it has a date. - Legacy values are converted once, by a script. Version 5 resolved them against today when a file was read and read such a file again once a day until it was saved. That machinery is gone in version 6:
scripts/migrate_planned.pyrewrites the files of a vault that still hold a planning keyword or apostponed_until(a keyword becomes the day, week or month it stands for today;thisYear,nextYear,somedayandsometimehave no date; apostponed_untilthat is still ahead becomes the planned date when it is later), and the readers know only absolute values. - The search follows:
planned:takes a day, a week, a month or a word for one (today,thisWeek), and finds the tasks planned inside it;planned:nonefinds the unplanned ones. The Python index keeps aplanned_startcolumn for it.
Consequences
- One field fewer in the format, in both readers, both apps and every menu; the hide switch of the board becomes a horizon.
- A task that is planned for a day in the future is hidden by the default horizon (today). Someone who wants "planned, but in sight" picks a longer horizon for the view.
- A week or a month is coarse on purpose. It cannot say "Wednesday or Thursday". Use a day for that.
- A vault read by an older version loses the new values: the old readers drop a
planned_datethey do not know, and drop it for good when they save the task. Update the desktop and the phone together. - Done tasks planned for a day to come are not removed by the retention cleanup.
- Version 6 does not read the old values. A vault that was not converted shows its keyword tasks as not planned and its postponed tasks as visible; the reader logs a line that points to the script.
- A bare date in a title plans the task;
!oruntil(bis) in front of it makes it a deadline.
Alternatives Considered
- Keep the keywords and add a horizon. The least change, but it keeps the relative meaning and the silent drift.
- Keep
postponed_untilnext to the planned date. Two fields for one idea, and the recurrence side effect stays. - Only days, no weeks and months. Simpler, but it takes away planning for "some day this week", which is how many tasks are planned.
