Sub topic 7
Track misses without turning them into guilt
This chapter assumes you know the never miss twice rule: after a missed day, the next day is a recovery day. It also assumes you have a minimum version of your habit and can read short Python. If you haven't built those yet, go back to the earlier chapters first.
Why tracking is risky
A log is the only way to apply the rule reliably. On a tired morning, memory is poor evidence. You may think you skipped once when you skipped three times, or you may think you have "ruined everything" when you missed one day.
A log can also backfire. A streak counter with a big number rewards you for not missing, and it makes the first miss feel like a loss. That is the setup for the all-or-nothing reaction described earlier. The goal is to record misses as information, not as a score.
What to record
Keep the log small. Each day needs one fact: did you do the habit, the minimum version, or nothing? Anything else adds friction, and friction makes people stop logging.
| Field | Keep it? | Reason |
|---|---|---|
| Date | Yes | Needed to find consecutive misses |
| Done, minimum, or missed | Yes | Lets you separate a full day from a recovery day |
| Planned rest day | Yes | Prevents a rest day from counting as a miss |
| One-line note on why | Optional | Feeds the review chapter later |
| Streak length | No | Turns every miss into a loss |
| Running count of total misses | No | Measures shame, not behavior |
Count the minimum version as a done day. If it doesn't count, you lose the reason to do it on a bad day.
Reading the log as a decision
The log should answer one question: is today a recovery day? You can compute this from the dates. The function below counts missed days in a row, ending yesterday.
from datetime import date, timedelta
def consecutive_misses(done_days: set[date], today: date) -> int:
"""Count missed days in a row, ending yesterday."""
count = 0
day = today - timedelta(days=1)
while day not in done_days and count < 365:
count += 1
day -= timedelta(days=1)
return count
def report(done_days: set[date], today: date) -> str:
"""Turn the log into a plain, neutral instruction."""
if today in done_days:
return "Done today. Nothing to recover."
misses = consecutive_misses(done_days, today)
if misses == 0:
return "On track. Yesterday was done."
if misses == 1:
return "One miss. Today is the recovery day: do the minimum version."
return (
f"{misses} misses in a row. Do the minimum version today, "
"then review the pattern."
)
log = {date(2026, 11, 24), date(2026, 11, 25)}
print(report(log, date(2026, 11, 26))) # On track. Yesterday was done.
print(report(log, date(2026, 11, 27))) # One miss. Today is the recovery day...
print(report(log, date(2026, 11, 30))) # 4 misses in a row...Look at the wording of the messages. None of them says "failed" or "broke". Each one states a fact and gives the next action. The tracker's output should read like a weather report: here is what happened, here is what to do.
The count < 365 limit stops the loop if the log is empty. Without it, while would run forever on a new habit with no entries.
The flow of a daily check
The check is the same every day, whatever the result. That sameness is what removes the drama.
Every branch ends with logging and moving on. There is no branch for "feel bad about it".
Habits that keep the log honest
- Log at a fixed time. Write the entry right after the habit, or at a set time each evening. Logging the next morning invites guessing.
- Log the miss too. Skipping the entry for a missed day hides the very data you need. Write "missed" and keep going.
- Use neutral words. "Missed" and "rest" are descriptions. "Failed", "lazy", and "bad day" are verdicts, and verdicts don't help you decide anything.
- Don't repair the past. Don't fill in a missed day later so the record looks clean. A false log makes the recovery check wrong.
- Look at the last seven days, not the whole history. A long record of old misses has no bearing on whether today is a recovery day.
Common errors
- Counting rest days as misses. If you planned the day off, the log should say so. Otherwise the tracker will tell you to recover from a day that needed no recovery.
- Treating the minimum version as half a miss. A recovery day done at minimum is a done day. Log it as done.
- Tracking too many things at once. One habit with one yes/no field is easier to keep than five habits with ratings.
- Resetting the log after a bad week. Deleting history removes the pattern you will need for review. Leave it in and keep logging.
What comes next
The log now tells you when misses happen and how often they come in a row. It doesn't tell you why. Two misses in a row, or several single misses in one month, are the signal to look for a cause, and that is the job of the review chapter.
Exercise
Using the report function with log = {date(2026, 11, 20)}, what does report(log, date(2026, 11, 27)) return, and what should you do that day?
Show answer
It returns "6 misses in a row. Do the minimum version today, then review the pattern." Days 21 to 26 are missing and the 20th is done, so the count is 6. Do the minimum version at the usual time, log it as done, and add a short note for the later review.
Exercise
You planned to rest every Sunday. Your log shows done on Saturday, nothing on Sunday, and nothing yet on Monday. Is Monday a recovery day? What should you change in the log?
Show answer
Not if Sunday is recorded as a planned rest day, because a planned rest day is not a miss and Monday is a normal full-habit day. If Sunday is blank, the tracker will read it as a miss and wrongly call Monday a recovery day. Mark Sunday as "rest" in the log (or treat rest days as non-misses in the check).