Sub topic 10
When a Stack Fails: Diagnosing and Adjusting
This chapter assumes you can already write a habit stack in the form "After I [anchor], I will [behavior]". It also assumes you know the cue, routine and reward loop and have picked an anchor and shrunk a new behavior at least once. Here you learn what to do when the stack stops working. A missed stack is information about the design, not a verdict on your willpower.
Treat a failure as a design problem
A habit stack is a small system with parts: an anchor (the existing routine that acts as the cue), a behavior (the new routine), a place and time, and a reward. When the stack fails, one of those parts is usually wrong. Fixing the part works better than trying harder.
The concept graph for this topic shows why failure analysis sits at the end. Three earlier skills feed into it: anchor selection, chaining, and tracking. Tracking tells you that something failed. Anchor selection and chaining tell you where to look first.
Step one: collect evidence before changing anything
Changing three things at once tells you nothing. First record what happened for about a week. For each day, note whether the anchor occurred, whether the behavior followed, and a short reason if it did not.
A plain log is enough. The sketch below counts, for each failure reason, how often it appears, so the most common cause stands out.
from collections import Counter
# One entry per day: (anchor_happened, behavior_done, reason_if_missed)
log = [
(True, True, ""),
(False, False, "worked from a hotel, no coffee routine"),
(True, False, "forgot"),
(True, False, "forgot"),
(True, False, "task felt too big"),
(True, True, ""),
(False, False, "slept late, skipped breakfast"),
]
misses = [reason for _, done, reason in log if not done]
anchor_misses = sum(1 for happened, done, _ in log if not happened)
cue_misses = sum(1 for happened, done, _ in log if happened and not done)
print("Total misses:", len(misses))
print("Anchor did not happen:", anchor_misses)
print("Anchor happened, behavior skipped:", cue_misses)
for reason, count in Counter(misses).most_common():
print(f"{count}x {reason}")The split between "anchor did not happen" and "anchor happened but the behavior was skipped" is the most useful number. It separates two different problems:
- If the anchor often does not happen, the cue is unreliable. The behavior never gets a chance.
- If the anchor happens but the behavior is skipped, the cue fired and something else blocked the response.
Failure mode 1: the anchor is not reliable
An anchor you do five days out of seven will trigger the stack five days out of seven at best. Travel, weekends, illness and shift changes break many anchors that seemed solid.
Signs:
- Misses cluster on weekends, trips or late mornings.
- You say "I didn't do my coffee that day".
- The anchor depends on another person, such as "after my partner leaves".
Fixes:
- Pick an anchor that happens in every version of your week, such as brushing your teeth, sitting down at your desk, or getting into bed.
- Use two anchors for the same behavior, one for weekdays and one for weekends, and write both down.
- Avoid anchors controlled by other people or by variable events like email or phone calls.
Failure mode 2: the anchor is vague or invisible
Some anchors happen daily but you do not notice them. "After I finish breakfast" is fuzzy. Is it when you put down the fork, when you stand up, or when you rinse the plate? A cue you cannot pinpoint does not interrupt your autopilot.
Signs:
- You remember the habit an hour later.
- You cannot say exactly when the anchor ends.
- The anchor is a long, blended activity.
Fixes:
- Choose a precise moment, such as "After I put my coffee cup in the sink".
- Pick a short, discrete event with a clear end, not a stretch of time.
- Add a physical prompt at the anchor, such as leaving a book on the pillow.
| Vague anchor | Specific anchor |
|---|---|
| After I wake up | After my feet touch the floor |
| After dinner | After I put my last plate in the dishwasher |
| After I get home | After I hang my keys on the hook |
| After work | After I close my laptop |
Failure mode 3: the behavior is too big
A habit that takes twenty minutes will be skipped on a bad day. Your motivation varies, and a stack must survive the low days. The usual rule is that the starting version should take under a minute.
Signs:
- You do the habit on good days and skip it on tired days.
- You negotiate with yourself at the anchor.
- You often think "I'll do it later".
Fixes:
- Cut the behavior to a version you could do even when sick. "Run for 30 minutes" becomes "put on my running shoes".
- Keep the entry step tiny and allow yourself to do more once you have started.
- Do not count the large version as the only success. The tiny version counts as a completed stack.
Here is a small helper that applies this idea. It halves a duration until it fits under a minute.
def shrink_to_tiny(minutes: float, limit: float = 1.0) -> float:
"""Halve a duration until it is under the limit (in minutes)."""
steps = 0
while minutes >= limit:
minutes /= 2
steps += 1
print(f"Halved {steps} times")
return minutes
print(shrink_to_tiny(20))For a 20-minute habit this halves five times and gives 0.625 minutes, about 37 seconds. The number matters less than the habit of asking "what is the smallest version that still counts?"
Failure mode 4: the context does not fit
Even a good anchor and a small behavior can fail when the place, time or mood is wrong. "After I sit at my desk, I will stretch" may fail in an open office where stretching feels awkward. "After I brush my teeth at night, I will do ten push-ups" may fail when you are exhausted.
Signs:
- The anchor happens and you remember the behavior, but you do not want to do it there.
- Failures cluster at one time of day or in one location.
- The behavior needs equipment that is not at the anchor.
Fixes:
- Move the behavior to a different anchor in a better place or time.
- Put needed items where the anchor happens. Keep the yoga mat beside the bed.
- Match energy to the task. Attach calm habits to calm moments and active habits to alert ones.
Failure mode 5: there is no immediate reward
The cue, routine and reward loop needs the reward to feel good soon after the behavior. A habit whose benefit arrives in months, such as better fitness, gives your brain nothing to repeat today. If the stack feels like a chore with no payoff, it fades.
Signs:
- The habit feels like paperwork.
- You complete it and feel nothing.
- Motivation drops after the first two weeks.
Fixes:
- Add a small celebration right after the behavior, such as saying "good job" or a fist pump.
- Use a visible mark, such as an X on a calendar, as a satisfying finish.
- Pair the habit with something you enjoy, such as a favorite playlist.
The reward has to follow the behavior closely. A treat at the end of the week does not close the loop for a daily habit.
Failure mode 6: the chain is overloaded
Chaining lets one anchor trigger several habits in sequence. It also creates a weak point. If one link breaks, every later link loses its cue.
Consider the chain from earlier in this tutorial: coffee, then writing a task, then drinking water, then putting on running shoes. If you skip writing the task, nothing triggers the water, and the shoes never come out.
Signs:
- One missed habit leads to several missed habits in a row.
- The chain takes longer than you expect, so you skip it when rushed.
- You forget which link comes next.
Fixes:
- Shorten the chain to two or three links.
- Give the later links their own anchors when they are independent, such as a separate anchor for the shoes.
- Keep every link tiny so the whole chain runs in a few minutes.
- Add habits one at a time. Wait until the previous link is solid before adding the next.
The code below checks a chain for the problem. It prints how many links are lost if each link fails.
chain = [
"pour my morning coffee",
"write down one task for today",
"drink a glass of water",
"put on my running shoes",
]
for i, step in enumerate(chain[1:], start=1):
lost = len(chain) - 1 - i
print(f"If '{step}' is skipped, {lost} later link(s) lose their cue.")Link position matters. A failure near the start of a long chain costs more than one near the end, so put your most important habit early or give it its own anchor.
Failure mode 7: the stack is too ambitious in number
Starting five stacks in the same week is a common reason for a collapse. Each new stack asks for attention, and the system fails all at once instead of one habit at a time.
Fixes:
- Start with one stack. Add the next only after the first has held for several weeks.
- Treat a collapse as a signal to reduce the number, not to restart all of them.
Choose the smallest adjustment
When you have a diagnosis, change one thing and watch for another week. This table maps symptoms to the first change to try.
| Symptom | Likely cause | First adjustment |
|---|---|---|
| Anchor skipped on some days | Unreliable anchor | Choose a daily anchor or add a second one |
| Forget the habit entirely | Vague or unnoticed cue | Pick a precise moment or add a visual prompt |
| Remember but skip | Behavior too big | Shrink to under a minute |
| Fails in one place or time | Context mismatch | Move the stack or change the anchor |
| Done but fades after weeks | No reward | Add an immediate celebration |
| Several habits fail together | Overloaded chain | Shorten the chain or split anchors |
Change the order of these checks only with good reason. The anchor comes first because nothing else matters if the cue does not fire.
Distinguish a bad design from a normal dip
Not every miss needs a redesign. One missed day does not mean the stack is broken. Habit formation takes weeks to months, and the process is uneven, so occasional misses are expected.
A practical rule is to redesign when you see a pattern, not an event:
- Redesign after three or more misses in a week, or after the same reason repeating.
- Do not redesign after a single miss caused by a rare event, such as an illness.
- After a miss, aim to do the stack the next time the anchor occurs. Do not try to make up for the missed day.
Worked example
Maya wrote: "After I pour my coffee, I will do 20 minutes of yoga." After two weeks she had done it four times out of fourteen.
Her log showed the anchor happened every day, so the cue was reliable. The reasons for misses were "no time" and "too tired". That pointed to size, not the anchor.
She made three changes over three weeks, one at a time:
- She shrank the behavior to "unroll my yoga mat". The log improved to eleven of fourteen days.
- She noticed that the misses fell on days when she rushed out. She moved the mat next to the coffee machine so the prompt was visible.
- She added a small reward: she said "done" and marked a calendar. After four weeks the stack held on thirteen of fourteen days, and she began doing five minutes of yoga after unrolling the mat.
She changed only one variable at a time, so she knew which change worked.
Common mistakes when diagnosing
- Blaming motivation when the evidence points to the anchor or size.
- Changing several parts at once, which hides the cause.
- Judging after two or three days. Give each change about a week.
- Keeping a failing anchor because it seems logical. An anchor that does not fire has no value, however sensible it looks.
- Raising the difficulty before the tiny version is automatic.
Exercise
Your stack is "After I finish lunch, I will do a 15-minute walk." Your log shows you eat lunch every day, but you walk on only two days out of seven. The reasons logged are "not sure when lunch is over" and "too much to do". Name two failure modes at work and give one adjustment for each.
Show answer
The first reason points to a vague anchor, so choose a precise moment such as "After I put my plate in the sink". The second points to a behavior that is too big, so shrink it to "put on my walking shoes" or a one-minute walk. Change one at a time, starting with the anchor, and review after a week.
Exercise
A chain has four links: brush teeth, floss, take vitamins, write one line in a journal. You miss flossing on Tuesday and also skip the vitamins and the journal. What happened, and how do you fix it?
Show answer
Flossing was the trigger for the vitamins, and the vitamins were the trigger for the journal, so one broken link removed the cues for the later two. Shorten the chain or give the vitamins and the journal their own anchors, such as "After I pour my breakfast coffee, I will take my vitamins". Keep each link tiny.