No, I’m suggesting it can write a test that avoids the bug because it’s seen the bug.
Oh right, yeah in my experience it doesn't do that.
It’s a goal orientated system where the goal is making the tests go green.
Yeah the old generation models were but the latest generation (Astra and later) don't do that. Their goal is to make as much progress as possible without bothering the user, as far as I can tell. But they will let you know about genuine problems.
Why should I trust Claude?
Great question. From my point of view the reason is the same reason you trust anyone - you keep a close eye on them for a while and they don't betray your trust.