This is a bad photo, because at first I thought I'd found a termite mud tunnel and sorta freaked out and jabbed into it with a screwdriver before taking a photo. I immediately realized that the oblong cocoon-like structure was actually made of tiny wood shavings, and there doesn't appear to be any tunnel entrance near or in it. There was a bunch of unidentifiable bug bits/frass inside. Whatever it was seems to have chewed out a shallow depression in the beam, used the shavings to create a domed mdf-looking structure, and then... Did its thing. (Pupated? Laid eggs?) Can anyone tell what I'm looking at?