I applied for a code exception, or as they say an "equivalence". I demonstrated that sharing a trap was "equivalent" in safety and effectiveness to using two traps. There's a 1925 cast iron riser, and doing it to code would have involved a janky cut in to that cast iron. Doing the single trap is a cleaner result. And if it ends up being a permanent feature, it will be just as durable if not more compared to the two trap solution.
This went above the inspector's head, to the building official.
Frankly it's a bit janky for fire, in that a plastic pipe will melt and give fire access to the inside of the wall. But I guess that's not a super strange situation.