Sub topic 13
Troubleshooting and revising a cue
This chapter assumes you have read the earlier chapters. You should know the three cue types (time, place, preceding action) and the stability criteria (reliability, frequency, distinctiveness). You should also be able to write a cue as an if-then plan and keep a simple log of whether the cue occurred and whether the habit followed. Here you will use that log to find out why a cue is failing and decide what to change.
Two failures that look the same
When a habit slips, it feels like one problem: "I didn't do it." The log shows two different problems.
- The cue did not occur. The 7:30 a.m. slot was swallowed by a school run, you were travelling, or the anchor action never happened. The plan had no chance to fire.
- The cue occurred and the habit did not follow. You were at the kitchen table at 7:30 and still did not write. The prompt was present but did not work.
The fixes differ. A cue that rarely occurs needs a different cue. A cue that occurs but is ignored usually needs a better link between cue and behavior, a smaller behavior, or a more distinctive cue. If you treat both as a motivation problem, you will probably try harder at the wrong thing.
The 80 percent threshold is a working rule of thumb, not a research finding. Pick a number you can defend for your routine and apply it consistently.
When the cue does not occur
Check the cue against the stability criteria and see which one failed. Each cue type tends to fail in its own way.
| Cue type | Typical reason it does not occur | Typical revision |
|---|---|---|
| Time | Schedule drifts on weekends, travel, or shift changes; you do not notice the clock | Tie the time to a fixed event, or add an alarm as a backup |
| Place | You are not in the place on some days (work from home, trips); the place is used for many things | Choose a place you visit daily, or define a specific spot within it |
| Preceding action | The anchor action is skipped or happens at varying times (coffee on some days, tea on others) | Pick an anchor you do on at least 90 percent of days, or move the anchor to a more frequent action |
The log shows a pattern when you look for it. If misses cluster on Saturday and Sunday, the cue depends on the work week. If they cluster on days you left the house, it depends on a place. If they are scattered with no pattern, the anchor action is probably too irregular.
Weekend gaps and the "same cue for every day" assumption
Many people need a different cue on different kinds of days. You can write two plans for one habit: "If it is a weekday and I finish breakfast, then I will stretch for two minutes in the living room" and "If it is a weekend and I come back from my morning walk, then I will stretch for two minutes in the living room." Two stable cues are better than one that fires five days out of seven. Keep the behavior and the location the same so that only the trigger changes.
When the cue occurs but the habit does not follow
Here the cue is stable, so look at the plan and the behavior.
- The cue goes unnoticed. A time cue with no alarm can pass without registering. Preceding actions that you do automatically, such as pouring coffee while reading your phone, may not bring the next step to mind. A more distinctive cue helps. Example: put the vitamin bottle next to the coffee maker so the anchor and the reminder are the same object.
- The plan is vague. "If I get home, then I will exercise" does not say which exercise, where, or for how long. A specific plan makes the decision in advance. Rewrite it with a concrete behavior and location.
- The behavior is too big for the moment. A 45-minute workout after a hard day loses to the sofa. Shrink the behavior until it is nearly always doable, such as putting on your workout shoes and doing five minutes. You can grow it later once the cue reliably produces the behavior.
- The cue and behavior are mismatched. An anchor that ends a task in a hurry, such as the moment you hurry out of the door, leaves no room for a new behavior. Pick an anchor followed by a natural pause.
- Another habit uses the same cue. If "sit down at my desk" already triggers checking email, a new plan for the same cue competes with it. Choose a different cue or put the new behavior first in a written sequence.
Measuring it with a script
The log from the tracking chapter can be extended to apply the decision path from the diagram. This version checks both rates and reports habit completions that happened without the cue, which tells you the behavior is happening but the cue is not what drives it.
days = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] * 2
cue = [1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0]
done = [1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0]
log = [
{"day": d, "cue_occurred": bool(c), "habit_done": bool(h)}
for d, c, h in zip(days, cue, done)
]
def diagnose(log, threshold=0.8):
total = len(log)
occurred = [d for d in log if d["cue_occurred"]]
cue_rate = len(occurred) / total
print(f"Cue occurred on {len(occurred)} of {total} days ({cue_rate:.0%})")
if not occurred:
print("Diagnosis: the cue never occurred. Replace it.")
return
follow = sum(d["habit_done"] for d in occurred) / len(occurred)
off_cue = sum(d["habit_done"] and not d["cue_occurred"] for d in log)
print(f"Habit followed the cue {follow:.0%} of the time")
print(f"Habit done on days without the cue: {off_cue}")
if cue_rate < threshold:
missed = [d["day"] for d in log if not d["cue_occurred"]]
print("Diagnosis: the cue is unreliable. Days without it:", ", ".join(missed))
elif follow < threshold:
print("Diagnosis: the cue occurs but is not working. Fix the link.")
else:
print("Diagnosis: the cue works. Keep it.")
diagnose(log)Running it prints:
Cue occurred on 10 of 14 days (71%)
Habit followed the cue 90% of the time
Habit done on days without the cue: 0
Diagnosis: the cue is unreliable. Days without it: Sat, Sun, Sat, SunThe habit is fine when the cue is there (90 percent). The problem is that the cue is absent every weekend. The fix is a weekend cue, not more willpower on weekdays.
Revising a cue
Once you know the failure mode, change as little as possible.
- Change one variable. Replace the cue, or sharpen the plan, or shrink the behavior, but not all three. If you change everything and the habit improves, you will not know which change worked.
- Write the new plan in full. Use the if-then template again, with a specific behavior and place.
- Run it for two weeks. A shorter trial is noisy, because a single bad day can swing the percentages. Keep logging both numbers.
- Compare, then decide. If both rates are above your threshold, keep the plan. If the cue rate rose but follow-through fell, you have moved the problem, and the next change should target the link.
Keep a short note of each revision and its result. After two or three revisions you will have a record of which cue types fit your routine.
Common errors
- Blaming the habit when the cue is the problem. A 71 percent cue rate caps the habit at 71 percent no matter how motivated you are.
- Changing the cue after one bad day. One miss is not a pattern. Wait for the two-week window unless the cue clearly cannot occur, for example when your schedule has permanently changed.
- Choosing a cue because it sounds good. An anchor such as "after I wash my face" is only useful if you do it every day. Check the anchor's own frequency in the log.
- Stacking too many behaviors on one anchor. A chain of five new steps after one cue means one failure breaks the whole chain.
- Counting the habit done without the cue as success. It is useful, but it means the cue is not doing the work. If this happens often, your real cue is something else, and you should find out what it is and write that down.
Putting it together
A worked example. You wrote: "If it is 7:30 a.m. on a weekday, then I will write one page at the kitchen table." Two weeks of log show the cue occurred on 10 of 14 days and writing followed on 9 of those 10. The cue rate is the issue, with all misses on weekends. Revision: add "If it is Saturday or Sunday and I finish my first coffee, then I will write one page at the kitchen table." Everything else stays the same. Log two more weeks and rerun the script.
Now suppose the log instead showed the cue on 13 of 14 days but writing on only 6 of those 13. The cue is stable, so leave it. Shrink the behavior to "write three sentences," and move the notebook onto the kitchen table the night before so the cue is visible.
Exercise
Your log for two weeks shows the cue occurred on 14 of 14 days, and the habit followed on 7 of those 14 days. Which failure mode is this, and name two revisions you could try (changing only one at a time)?
Show answer
The cue is reliable (100 percent) but follow-through is 50 percent, so this is a link problem, not a cue-occurrence problem. Two options: shrink the behavior to something nearly always doable, or make the cue more distinctive, for example by placing the needed object where you will see it at the cue. You could also rewrite the if-then plan to be more specific. Change only one for the next two weeks.
Exercise
Modify the diagnose function so that it also reports the longest run of consecutive days on which the cue did not occur. Why might that number help you choose between a backup cue and a new cue?
Show answer
Track a running count while looping over the log: increase it when cue_occurred is False, reset to 0 when True, and keep the maximum. A long run, such as a five-day trip, points to a context change, which a backup cue for those days can cover. Scattered single-day gaps suggest the anchor itself is irregular, which points to replacing the cue with a more frequent one.