How to create a glass shader into which light can pass?

I just posted this:

Light will pass if you enable caustics and render for long enough. That transparency trick is for when you don’t have caustics enabled (or helping it out). There is no way to render glass accurately using transparency shadow trick, and there may be cases where what I did will fail miserably. But that is the technique I rely on. Full transparency for all shadow looks just broken imo.