# Recurring tasks that survive the missed day

ZenHero now repeats tasks as rules — daily, weekdays, every 2 weeks on Monday, monthly on the 15th. Completing the same task rolls it forward without duplicates, and a missed day never turns your list red. The full mechanics.

Canonical: https://zenhero.io/blog/recurring-tasks/
Last updated: 2026-11-30


Every task manager sprouts a recurring-tasks checkbox eventually, and almost every
implementation quietly makes one of two mistakes: it spawns a fresh duplicate every
completion (your history fills with clones that share a title and share nothing else),
or it makes a missed day a sin (red rows, broken streaks, a list that shames you on
Monday morning).

ZenHero does neither. Recurring tasks repeat as **rules attached to one
task** — the same ID, same delegation history, same comments thread — and the
mechanics are built around a simple claim: *not finishing isn't failing.*

## One task, not forty clones

Complete a recurring task and three things happen:

1. The task is stamped with its completion time (`lastCompletedAt`).
2. The next occurrence is computed from the **later of** (completion time,
   previous due date) — finishing early preserves the cadence; finishing late
   rolls the next date forward instead of teleporting you backward.
3. The task resets to `todo` with the new due date and stays exactly where its
   history lives.

Sunsama's help page describes this well: an unedited recurring task moves to its
next scheduled date without creating a duplicate. We agree, and we kept the ID.
Anything referencing the task — comments, delegations, agent briefs, commit
trailers like `Refs ZEN-42` — keeps working across rollovers.

| Completed | Rule | Next occurrence |
|---|---|---|
| Monday, 9:04am | every 2 weeks on mon | Monday two weeks out, 9:00am |
| Wednesday, late | every fri | the coming Friday |
| Jan 31 | every month (on the 31st) | Feb 28 — clamped, not skipped |
| Feb 29, 2026 | every year | Feb 28, 2027 — leap day clamps, it doesn't vanish |

Time of day survives every jump. A 9am standup recurs at 9am, not 9:04-and-the-
time-your-thumbs-got-tired.

## Rules you can type

The stored rule is canonical — `every 1 week on mon,thu` — but you never type
canonical. You type the way the thought arrives:

```text
Backlog review every fri
Standup every weekday
Send invoices on the 1st of every month
Close the books on the last day of every month
Rotate the on-call every 2 weeks on mon
```

One deliberate constraint: `every 2 weeks on mon,thu` is ambiguous (whose
Monday anchors the fortnight?), so N>1 weekly intervals accept exactly one
weekday. The parser tells you plainly — *"try 'every 2 weeks on mon'"* — instead
of guessing and rescheduling your calendar at random.

## The sweep: a missed day costs nothing

A due date in the past on an undone recurring task gets advanced by a worker
sweep (every five minutes) to the next upcoming occurrence, skipping the missed
ones with interval math — not a six-hop crawl. The task is simply where it
should be next. Combined with same-task rollover, the common failure modes are
gone:

| Failure mode | What ZenHero does |
|---|---|
| Forgot Friday's review | Due silently lands on the next Friday |
| Completed early | Cadence stays anchored to the due date |
| Completed very late | Next date rolls forward from completion |
| Rule edited mid-flight | Activity log records the change, history intact |

## It feeds the rest of the machine

Recurring rituals are where velocity metrics come from — refinement, release
checklists, weekly reviews. They recur on a beat, and a beat is exactly what a
forecast needs. Every rollover emits a `task.recurred` event that connected
agents can subscribe to through the MCP trigger system, and the activity log
keeps the completion history agents use to write catch-up briefs.

Try it in the app's quick-add bar — type the recurrence inline, watch the
preview chip, press Enter. If it guesses wrong, the Repeats field edits without
ceremony.

*Related: [type it the way you'd say it](/blog/natural-language-quick-add/),*
*[when a checkbox turns into real work](/blog/split-out-as-task/).*

