r/ClaudeCode • • 1h ago

Help/Question Fable 5.2 found a bug that was triggered in production just 20 minutes later

Something rather unsettling happened to me, and I can't find a rational explanation for it other than an incredibly unlikely coincidence.

For about three weeks, our automated tests had been randomly failing due to timeouts. I decided to investigate the issue with Fable, which discovered that a single REST API endpoint, when hit with a specific sequence of rapid requests and a particular payload, could cause a database table lock, resulting in cascading failures across other tests.

The bug was real. Fable wrote a test that confirmed it and made it consistently reproducible.

The bug had also been present in production for at least two weeks, but had never manifested because it required a specific set of conditions that our client application couldn't generate. A malicious user, however, could exploit it at any time.

It's 12:54 PM. I usually take my lunch break at 1 PM, so I decide to review Fable's proposed fix when I get back and then deploy the patch.

Nothing has been committed, nothing has been pushed. Everything is still on my local machine, and the Fable session is idle after presenting its findings.

When I get back from lunch, I find several alerts: production is completely down.

I start investigating and realize that the database connection pool is completely exhausted. No connections are being released. I restart the backend to restore the service and start going through the logs to figure out what happened.

And this is where things get weird.

The outage started at 1:15 PM, exactly 21 minutes after Fable had identified the bug.

A single user had made the exact sequence of requests needed to reproduce it. That user had registered the day before, with a rather unusual and seemingly fake account.

The first thing I do is go back through the Fable session, thinking it might somehow have tried to reproduce the bug directly in production. I review every single command it executed.

Nothing. And even if it had tried, it wouldn't have had access to that user's credentials.

A bug that had been sitting dormant in production for at least two weeks was discovered by an AI, and just 21 minutes later, someone actually triggered it.

I don't want to jump to conspiracy theories. It could simply be an incredibly bizarre coincidence, but I have to admit, it's left me quite unsettled.

Has anyone else experienced anything even remotely similar?

16 Upvotes

20 comments sorted by

•

u/AutoModerator 1h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

13

u/No_Vermicelliii 1h ago

Ever heard of a GUID collision?

You could generate a billion UUIDv4 GUIDs every second for 86 years and still only have a 50% chance of encountering a collision.

And yet, I encountered one within my first week of working professionally as a software developer, about 12 years ago, and have never encountered another since.

Improbability is not impossibility. Probability describes the distribution of possible outcomes, not the order in which they must occur.

2

u/gcaussade 1h ago

That's wild!

1

u/Good_Skirt2459 40m ago

If all 4 million software developers each created 1bn GUIDs it would still be a 1 in 700k chance of there being 1 collision. If it wasn’t down to some bug in the guid library or something I’d say there’s a decent chance you’re the only one this has happened to. At least one of a small few.

1

u/SirNobby 14m ago

Chance is not zero.

6

u/__Blackrobe__ 1h ago

Hmm  ඞ

Perhaps Claude is among us all along

3

u/myeleventhreddit 1h ago

What conspiracy would this even be about? The first thing I’d be checking is the network activity log for whatever production system you’re talking about here. 

3

u/benjaminbaker8 39m ago

reviewing request logs may help..

3

u/imgonnamakeyoushake 37m ago

What do the activity logs of the fake user say?

2

u/Ancient_Expert6088 9m ago

“The bug was real”
For fucks sake, can we get a non-LLM post on this sub? You can use AI to code without offloading your literal voice to it, goddamn

1

u/InexplicableBadger 1h ago

Once is coincidence

Twice is misfortune

Three times is enemy action 

3

u/ereth_akbe 59m ago

Four times is divine judgement

1

u/abateslop 46m ago

The important question; who wrote the code?

1

u/cajmorgans 46m ago

To me its not really a mystery.

Same model has been trained on same data right? They have similar biases. I tend to see this a lot during PR review. Let's say me and some other dev review the same PR using Opus, a lot of the findings are intersecting, even though we might use different review prompts. Also this bug may not be as vague as you think it is for one of these AI models; stuff that seems super ambiguous for us might be very obvious for them.

1

u/aznar 38m ago

Model 5 is checking what fable does, and wanted to try it by himself.

1

u/DiamondGeeezer 7m ago

It could be a fairly common vulnerability in one of your dependencies, and hackers used AI to identify it independently

0

u/lolman1312 1h ago

It's hard to say anything if you don't give any context so as to what your "production" even is. Is it a service? How is it hosted? How many users do you have?

But if you're saying it's an extremely abstract bug, it doesn't particularly matter because you need to understand other malicious users and hackers DO HAVE AI access. Builders aren't the only one using AI. It's hard to say whether it's a user or Fable itself without more context on your development stack and security.

1

u/Several-Specialist42 1h ago

You're right, I don't want to provide too many details; I'm more interested in hearing about other similar experiences.

0

u/abluecolor 1h ago

Not particularly unlikely at all.