Phone layouts fail in small ways. A control is a few pixels off, a row is taller than it should be, a tap target looks fine until a thumb finds it.
A bug that three screens each patch locally is not three bugs. It is one bug in the layer they share, and that is where the fix belongs.
The bug
Our shared dashboard shell asks for 44px touch targets and 16px text in form controls on phones. The rule was written for text fields. It also matched checkboxes and radio buttons, so those small controls were stretched to 44px tall.
One product had noticed and hidden the problem locally. Three of its screens carried a per-page reset that removed the height from checkbox inputs.
The fix
The shared rule now skips checkboxes and radios. The row around them keeps the 44px target, so the tap area stays the size we want while the control keeps its natural size. A regression test checks that no bare input rule sets a 44px height. The three local resets were deleted in the same change.
That last step is the one we care about. A shared fix that leaves the workarounds in place leaves two sources of truth. Removing them is what makes the shared layer the owner of the rule.
What we checked
We re-ran the shell's test file, which passes. We also built a small isolated page with the shell's CSS before and after the change and measured it in a 390px browser window. Before: checkbox and radio inputs measured 44px tall. After: 20px, inside rows that measure 44px. Text fields stayed at about 44px.
This is a constructed fixture, not a screenshot of a product page. It shows the rule behaves as intended. It does not show that every page in every product looks right.
What this does and does not show
The change landed in shared code that many of our apps import. That is the reason to fix it there. We have not audited each product page, and we have not measured fewer layout bugs or faster fixes. Merging is also not the same as running in production.
The lesson is narrow. When a bug repeats across products, fix the rule in the shared layer, add a test that would have caught it, and delete the local workarounds.
Further reading
Anthropic's context engineering essay is a good model for stating when a technique applies and when it doesn't. It says nothing about our code.