Thanks all for the replies. I'm going to explain and show you that this IS a Sonar issue.
First, as I said, I record directly to lanes, and these clip residues appear in both the parent track and the lanes (see the screenshots).

This screenshot is from another project that shows the same issue, and I'm going to drag the left edges of the two residues.

Look! The top of the three lanes with takes now reveals two previous clips (because I dragged the edge twice), and the middle lane also shows a previous take (I have no idea what that black lines at the bottom of the clips are). And, yes, the "Record 34" clip is audible ("Record 41" and "Record 53" don't show waveforms even when I drag further for some unknown reason and are thus not audible).
There are a few things I should mention (should have mentioned in the OP...sorry):
1. I rarely edit clips while I record (never split, sometimes drag the clip edges to make room for next takes to record), so it's not likely an operational error.
2. The issue isn't easily reproducible. You need to be either a perfectionist or a poor singer/performer (or both) to make this happen (I hope I'm not the latter

). As soon as I make a mistake or feel uncomfortable about what I just played, I hit the spacebar or R to stop recording--whether it's in the middle of the punch region or after the punch end point--and then immediately hit R (again) to re-record the take. I do this quite a lot and real fast. Also, sometimes I mistakenly hit Ctrl+Z to undo although I'm recording in overwrite mode and it's not necessary at all to undo. I don't know when exactly during this operation it happens (because I'm too focused on recording), but at one point these projections appear at the right edge of the clip.
3. When I was using Sonar 2, I was on a different system (different PC, different OS, different audio interface, etc.), but the issue is EXACTLY the same.
What do you think? No one else has ever seen this? I'm really surprised.
I hope I'll manage to reproduce it and report to CW.
Thanks