Give this state machine some slack

The viral Slack state diagram contains a terrible secret(s).

There’s a picture on the internet that I’ve seen many times over the years.

Slack notification decision tree

It usually comes with a few words of wisdom, e.g. "if you are a true programmer, you won’t be intimidated by this diagram" or "The engineering is hard!!1".

And why not? It’s a nice decision tree. Compact, relatively easy to follow, and even a little cute. What more could you ask for?

Well, here’s the same diagram, imported into Complexity by AI.

It looks awful. That's because Complexity isn't designed for diagrams like this. It's a process-mapping tool, and this isn't really a process map. It could be made much more readable by adjusting the outputs, grouping related nodes, and turning some nodes into IF conditions. But that's not the point.

The point is inside the Complexity editor, with the Issues button:

Notification issues

As you can see, this seemingly innocent diagram contains five states that aren't defined at all. The conditions are there, but what happens when those conditions are met is not specified.

It's worth noting that, every time I've seen this diagram over the years, I've never come across a single comment pointing out these missing behaviours. And I've never noticed anything wrong with it myself.

No wonder! We humans are not evolved to spot gaps and contradictions in complex mental models — and this diagram is a perfect example. However, when we try to build sufficiently complex systems with such a defective understanding, everything fails (in software with wasted man-hours, in politics and economics with wasted lives).

Complexity was born out of this realisation. Nobody — absolutely nobody — is smart enough to think through and build complex systems without making mistakes. Not initially, and often not even after several iterations. That's why Complexity actively helps its users spot the gaps, contradictions and missing pieces in their thinking.

We're only taking the first steps so far. There's much more to come.