I had something happen which is a real problem if you are running AI 🤖 agents t...

@teriradichel@infosec.exchange

I had something happen which is a real problem if you are running AI 🤖 agents to write code on the fly. It would be difficult to determine and deal with.

The agent was writing tests and it wrote some code that would produce an eternal loop. It was running the same code over and over and didn’t stop.

A lot of times I’ve seen the agent put a time limit on what they are doing so that doesn’t happen but in this case it didn’t.

So from the outside, how can the system monitoring know it is an eternal loop vs. something that is processing a large number of nodes? How does it know when to kill it vs. just let it run? What if you try to set some arbitrary limit for loops and kill the agent if you can somehow detect it?

Are there any costs involved? If a loop runs forever it may not kill the system. Some programs are designed as forever loops. You would be paying for computer time that is doing nothing on AWS in that scenario

This is a really interesting problem and I’d like to hear how it gets solved at some point.