Sub topic 10
When a Stack Fails: Diagnosing and Adjusting
This chapter assumes you have read the earlier chapters. You should know the cue, routine and reward loop, how to pick an anchor, how to shrink a behavior, and how to write a stack as "After I [anchor], I will [behavior]". Here you will learn how to find out why a stack stopped working and what to change.
Treat a failed stack as data
A stack that fails is not proof that you lack discipline. It usually means one part of the design does not fit your real day. A stack has only a few parts: the anchor, the behavior, the place and time, and the reward. Because the parts are few, you can test them one at a time.
The most useful rule is to change one thing at a time. If you change the anchor, the size and the time all at once, you will not know which change helped.
Four common failure modes
1. The anchor is unreliable
The anchor does not happen every day, or it happens at different times. "After I get home from work" fails on days you stop at the shop or work late. If the cue does not fire, the behavior has nothing to trigger it.
Fix: pick an anchor that happens daily and is easy to notice, such as pouring coffee, brushing your teeth or sitting down at your desk.
2. The anchor is vague
"After I finish breakfast" is blurry. Does it mean the last bite, clearing the plate or washing up? A vague cue is easy to miss or to argue with.
Fix: name one concrete, observable moment, for example "After I put my coffee mug in the sink."
3. The behavior is too big
"Write for 30 minutes" needs time, energy and a clear head. On a tired day you will skip it, and one skip makes the next one easier.
Fix: shrink it until it takes under a minute, such as "write one sentence." You can always do more once you have started.
4. The context does not fit
The anchor and behavior may clash in place, time or mood. "After I sit down at my desk, I will do ten push-ups" is awkward in an office. "After I brush my teeth at night, I will do a hard study session" asks for energy you do not have then.
Fix: move the behavior to an anchor in a place and state of mind that suit it.
A fifth cause appears in chains. If one anchor triggers three or four habits, a single missed step breaks everything after it. Shorten the chain or give the later habits their own anchors.
A diagnostic flow
Ask these questions in order. Stop at the first "no" and fix that part.
Use your tracking data
The weekly review from the previous chapter gives you the evidence. Look for patterns in the days you missed.
| Pattern in your log | Likely cause | First adjustment |
|---|---|---|
| Misses on random days | Unreliable anchor | Choose a daily anchor |
| Misses on weekends only | Anchor changes on days off | Pick an anchor that survives weekends |
| Start often, stop midway | Behavior too big | Shrink the behavior |
| Skipped when tired or rushed | Context or effort mismatch | Move to a calmer anchor |
| Late links in a chain missed | Chain too long | Shorten or split the chain |
| Done but never sticks | Weak reward | Add an immediate small reward |
Encode the stack and a fix
The sketch below keeps a stack as data, records a failure reason, and applies one change. It reuses the idea of an anchor paired with a behavior.
from dataclasses import dataclass
@dataclass
class HabitStack:
anchor: str
behavior: str
def sentence(self) -> str:
return f"After I {self.anchor}, I will {self.behavior}."
def adjust(stack: HabitStack, reason: str) -> HabitStack:
"""Change exactly one part of the stack, based on the diagnosis."""
if reason == "anchor_unreliable":
return HabitStack("pour my morning coffee", stack.behavior)
if reason == "behavior_too_big":
return HabitStack(stack.anchor, "write one sentence")
return stack
before = HabitStack("get home from work", "write for 30 minutes")
print(before.sentence())
step1 = adjust(before, "anchor_unreliable")
step2 = adjust(step1, "behavior_too_big")
print(step2.sentence())Each call to adjust changes only one field. Running the two steps in sequence also shows the order of repair: fix the cue first, then the size.
When to drop a stack
If you have adjusted the anchor, size and context and the stack still fails, ask whether the habit matters to you right now. Pausing a stack on purpose is a valid decision. Restart later with a fresh anchor when your routine has changed.
Exercise
Your stack is "After I get home from work, I will meditate for 20 minutes." Your log shows you did it on 2 of 7 days, and the misses were days you went to the gym or shop first. Which failure mode is most likely, and what is one change you would make first?
Show answer
The anchor is unreliable, because "get home from work" does not happen at a consistent moment on those days. Change only the anchor to something that happens every day, such as "After I pour my morning coffee." Keep the behavior the same for now. If it still fails, shrink the meditation to one minute as a second step.
Exercise
Your chain is: coffee, write one task, drink water, put on running shoes, stretch, journal. You usually complete the first two links and then stop. Name the likely cause and one fix.
Show answer
The chain is overloaded, so one missed link breaks everything after it. Shorten it to two or three links, or give the later habits their own separate anchors, such as stretching after you brush your teeth.