Sub topic 10
Tracking repetitions as evidence
This chapter assumes you have read the earlier chapters on identity as evidence, writing an identity statement, and the minimum version of a habit. You should be able to read short Python, though the ideas do not depend on it. You need an identity statement that points to observable actions, and a minimum version small enough to do on a bad day.
Why track at all
An earlier chapter said that every repetition is a vote for who you are. A vote only counts if you can see it. Memory is a poor ledger. After a bad week you tend to remember the misses. After a good week you tend to round up. Both distortions change how you see yourself, and your self-image is the thing this approach is trying to shape.
Tracking turns a vague feeling ("I'm bad at this") into a count ("I wrote on 3 of the last 7 days"). A count can be wrong, but you can check it, and it is much harder to argue with than a mood.
Tracking has three jobs in an identity-based system:
- It records evidence, so your self-image rests on what happened and not on what you recall.
- It makes the next action easier to start, because a visible record adds a small cue and a small reward.
- It gives you data for the review step, where you decide whether the habit or the identity needs changing.
What counts as a vote
Decide before you start what gets recorded. A vote is one occurrence of an action that your identity statement names. Take the statement "I am a writer". The record should say that you wrote, not that you thought about writing or opened the document.
Use these rules to keep the record honest:
- Log the action, not the outcome. "Wrote for any length of time" is a vote. "Wrote 500 words" turns the log into an outcome target and brings back the problem the earlier chapters set aside.
- Count the minimum version. If your minimum version is "write one sentence", then one sentence is a full vote. A log that only accepts your best effort punishes the days when the small version is exactly what you needed.
- Count once per day. Two writing sessions on the same day are still one day of evidence. Counting days makes the number comparable from week to week.
- Log it right after you do it. Logging the next morning invites guessing.
A minimal habit log in code
A habit log is a list of dated entries. Counting the entries in a recent window gives the number of votes. The function below counts distinct days, so a duplicate entry on one day does not inflate the number.
from datetime import date, timedelta
log = [
(date(2026, 11, 20), "write"),
(date(2026, 11, 22), "write"),
(date(2026, 11, 22), "walk"),
(date(2026, 11, 25), "write"),
]
def votes(log, habit, days, today):
"""Count distinct days with a vote for `habit` in the last `days` days."""
start = today - timedelta(days=days)
return len({d for d, h in log if h == habit and start < d <= today})
today = date(2026, 11, 27)
print(votes(log, "write", 7, today)) # 2
print(votes(log, "write", 14, today)) # 3The first call prints 2, not 3. A 7-day window ending on 27 November covers 21 to 27 November, so the entry on 20 November falls outside it. This is a typical off-by-one question in any tracker: decide whether "the last 7 days" includes today and whether it includes the day exactly 7 days ago. This code includes today and excludes the day 7 days back. Pick one rule and keep it, or your weekly numbers will not be comparable.
Reading the numbers
A raw count is useful, but two other measures answer different questions. The share of days tells you how often you vote. The days since the last vote tells you whether a gap is opening.
from datetime import date, timedelta
log = [
(date(2026, 11, 20), "write"),
(date(2026, 11, 22), "write"),
(date(2026, 11, 22), "walk"),
(date(2026, 11, 25), "write"),
]
def votes(log, habit, days, today):
start = today - timedelta(days=days)
return len({d for d, h in log if h == habit and start < d <= today})
def days_since_last(log, habit, today):
done = [d for d, h in log if h == habit and d <= today]
return (today - max(done)).days if done else None
today = date(2026, 11, 27)
window = 14
n = votes(log, "write", window, today)
print(f"{n} of {window} days ({n / window:.0%})") # 3 of 14 days (21%)
print(days_since_last(log, "write", today), "days") # 2 daysHere the learner has cast 3 votes in 14 days and the last one was 2 days ago. Neither number says "failure". Three votes is three pieces of evidence that this person writes. The useful question is whether the share is rising, flat, or falling over several weeks.
The tracking loop
Tracking works as a short loop. You act, you record, and once a week you compare the record with your identity statement. The comparison feeds back into the next week's plan.
The branch at the diamond matters. When the count is low, the first response is to change the plan, not to judge yourself. A low count usually points to a cue that is unreliable, a minimum version that is still too big, or an environment that makes the action hard. The earlier chapters on small wins, if-then plans and environment design give you the levers.
Choosing a tracking method
The method matters less than whether you will use it. Compare the common options:
| Method | Effort to log | Best for | Main risk |
|---|---|---|---|
| Paper calendar with a mark per day | Very low | One or two habits, visible reminder | Easy to forget to look at it |
| Notes app or text file | Low | Adding a short comment per entry | Entries become inconsistent |
| Spreadsheet | Medium | Counting and charting over months | Time spent on the sheet instead of the habit |
| Script or app like the one above | Medium to high at setup | Many habits, custom windows | Building the tool becomes the habit |
Start with the lowest-effort method that you will see every day. A calendar on the wall near the place where you do the habit doubles as a cue. Move to something heavier only when the simple version stops answering your questions.
Edge cases and common errors
Tracking too many habits at once. Each habit adds a logging step. If logging takes longer than the habit, you will stop logging first. Track the one or two habits that serve your current identity statement.
Treating the streak as the goal. A streak is a count of consecutive days. It is a convenient display, but it has a weakness: a single miss resets it to zero, even if you did the habit 20 of the last 21 days. That reset sends a false message that the earlier evidence no longer counts. Prefer "days in the last 14" or "days this month". Those measures degrade gradually, so one miss costs one vote and not all of them. The next chapter builds on this idea.
Letting the number replace the identity. If you start doing the action only to raise the count, the count has become an outcome goal. A sign of this is logging a hollow entry, such as opening the document and closing it, just to keep the mark. If a vote would not convince you that you are the person in your identity statement, do not log it.
Logging only successes and ignoring context. A bare count hides why days were missed. One short note on missed days ("travel", "sick", "meeting ran late") makes patterns visible at review time. Three missed Mondays in a row point to a Monday problem, not a motivation problem.
Changing the rules after a bad week. If you redefine what counts as a vote so that the numbers look better, the record stops being evidence. Change the definition only at the review, apply it going forward, and note the date of the change.
Over-reading small samples. Three days is not a trend. With a habit that happens a few times a week, you need at least four weeks of data before the share of days says much. Judge direction over weeks, not single days.
Running the weekly review
Keep the review short, about five minutes. Do it at a fixed time, and use the if-then pattern from earlier chapters to attach it to a cue, for example "After I finish Sunday breakfast, then I open my log."
Ask four questions:
- How many days did I cast a vote this week, and how does that compare with the previous two weeks?
- On the days I did not, what was the cause?
- Does the record support the claim in my identity statement, even partly?
- What is one change to the cue, the size, or the environment for next week?
Write the answer to the last question down. If the answer to the third question is "partly", that is a good result. Evidence accumulates, and a partial record is the normal state of a habit in progress.
Connecting the template to the log
The plan template from earlier chapters has five lines. The log connects to each of them:
Identity: I am someone who looks after my health.
Minimum version: put on my running shoes and step outside.
If-then plan: After I pour my morning coffee, then I put on my running shoes.
Environment: Leave the shoes by the front door the night before.
Recovery rule: If I miss a day, I do the minimum version the next day.A vote for this identity is any day where the minimum version or more was done. The weekly review checks the if-then plan (did the cue fire?), the environment (were the shoes by the door?) and the recovery rule (did a miss get followed by a minimum version?). The log gives you the data to answer each of those questions with a day count.
Exercise
Your log shows these dates for the habit "stretch": 2, 3, 3, 6, 9 and 10 November, with two entries on the 3rd. Today is 10 November, and you use a window that includes today and excludes the day exactly 7 days back. How many votes did you cast in the last 7 days, and why does counting distinct days matter here?
Show answer
The window covers 4 to 10 November. The entries on 2 and 3 November fall outside it, leaving 6, 9 and 10 November, so there are 3 votes. Counting distinct days matters because the double entry on the 3rd would otherwise be counted twice, and the weekly count would depend on how many times you happened to log in a day instead of on how many days you acted.
Exercise
Your 21-day streak ends after one missed day, and you feel you "have to start over." Name a better measure to display and explain how it changes the message.
Show answer
Show the number of days with a vote in a rolling window, such as the last 14 or 30 days. After one miss, a 21-day run shows as 20 of the last 21 days, so the record still shows strong evidence for the identity. A streak counter resets to zero and implies the earlier votes no longer count, which is false.