oops - definitely not B. foliosa (wrong pick from drop down menus). I suggest Bossiaea ensata, because of bracteoles (visible in bottom right of third photo), although cladode width and flowers suggest B. scolopendria.
@MichaelMulvaney I've uploaded a marked up pic of the head with the anatomy I think I'm seeing. The mark-up is messy but hopefully explains why I've suggested it's Octotoma, or at least a beetle. I should have taken the good camera with me!!