The giant Salmonflies of the Western mountains are legendary for their proclivity to elicit consistent dry-fly action and ferocious strikes.
I collected this pupa and several like it from the same stream and on the same day as this larva. I suspect they're the same species. Every pupa I collected was in a brown casing like the one shown in one of the pictures below. I cut this pupa out of its case after a picture so you can see more details. It is close to but not fully developed.