Road to rot and failure !
Rotted trim was wrapped with aluminum wrap. Sides are filled with lightweight backer foam that absorbs and traps water against the bare wood. Top of wrap doesn't have flashing. Water is trapped by the caulking at the foam sill.