Attachment. Wow that's quite the word. I struggle with it too still. I grew up seeing that it wasn't possible to trust the adults in my life. As a child when I turned outward to find trust and acceptance, attachment, I had no idea how to do it.
I made a lot of mistakes trying to figure it out, got into a lot of trouble chasing acceptance and I realized it was better to be hard, angry, aggressive and good at things and exacting of myself because at least that way people had to notice me and 'contend' with me. It meant I existed at least and that I could make an impact, albeit negative. Well, it wasn't always negative because I developed some strengths and skills that others didn't have and teachers, adults sometimes saw that and I got reinforcement for what I did well.
The worst of it was that despite my 'I don't give a shit about anything' attitude, I desperately sought someone that gave a shit about me and I certainly never told anyone that back then - never told anyone that I was seeking attachment and acceptance. As a result I attached way too quickly at the least sign of kindness and gentleness expressed to me. But I would have rather died than let anyone know at the time they mattered to me. But people did matter to me and when their kindness left, I would be crushed, not understanding - but simply accepting their withdrawal and I would move on. No drama, I simply acted like none of it mattered.
I still have those 'ghosts in the machine' - the old desire to just be able to attach when someone is unpredictably kind to me with no strings. When I get that feeling I look to what I have in my life that I am attached to - and I ask if those attachments are 'good enough'. And mostly they are now. But that doesn't stop the old things from coming up from time to time. I believe that's part of the developmental trauma stuff.