Posts

Closing the loop

Oncall-agent, part 5. Part 4 ended on a warning to myself: a good answer in the wrong place, in the wrong tone, at the wrong moment, is not an answer. This one is about the last mile, where the system stops being a pipeline and has to behave like a guest. The first real answer it ever gave, it gave only to me. A live incident fired in the alerts channel. Somewhere off to the side a flow picked it up, handed it to the agent, and the agent did everything the last three posts describe: stripped the noise, found the neighbours, narrowed them, ranked the fixes. It came back 200. A few seconds later a message appeared in my own private chat, the one Teams keeps for notes to yourself, and nobody else on the planet saw it. In the very first post I described this moment differently. I said the answer would show up threaded under the alert, a few seconds behind it, like a colleague leaning over. That was the picture in my head when I started. This post is about the distance between that picture...

Have we seen this before?

Image
Oncall-agent, part 4. Part 3   left me with a memory that can tell me what's near a new alert in about forty milliseconds. This one is about the evening I found out that near is not the same as useful, and that the actual thinking starts after the clever part is over. I had it working. That is the sentence I want to keep, before I ruin it. Tuesday, late, everyone asleep on both sides of the planet. I pasted in a live alert, hit enter, and ten past incidents came back ranked by distance, faster than I could take my hand off the key. I remember sitting back. There is a very specific smugness available to a person who has just made a vector search return something, and I had all of it. Then I read what came back. First hit: good, genuinely the same problem. Second: also good. Third: a different product flavour entirely, close only because ops people write the same six sentences forever. Fourth: a false alarm somebody had closed with "no action needed." Then five more that we...

Giving it a memory

Oncall-agent, part 3. Part 2 was about teaching the thing what to ignore. This one is about the opposite: teaching it to notice that two problems nobody worded the same way are, underneath, the same problem. This is the part where I start to feel like I'm getting away with something. In the very first post, I let one sentence slip that I've been chewing on ever since. I said that you take a sentence about a broken DNS pod, it becomes fifteen hundred numbers, and the geometry of those numbers somehow knows this incident is a cousin of one from four months ago; and that even though I know how it works, it still feels like something I shouldn't be allowed to do on a laptop.  I want to pull on that thread, because it's the whole trick of this post, and because the feeling turns out to be pointing at something real. The problem signatures couldn't solve Part 2 had gotten me further than I expected, for free. Eighteen hundred noisy alerts had collapsed into a couple hund...

The boring magic

On-call agent, part 2. The first one was the story; this one goes under the hood, starting with the least glamorous piece, which is also the one that mattered most. Here's a thing nobody tells you about building something with "AI" in it: the part that does the most work often has no AI in it at all.  I spent a while, before any model, before any database, on a function so dumb I hesitated to commit it. It takes an alert and throws most of it away. And it turned out to be the load-bearing wall of the whole project. The problem: a hundred alerts, one problem Our alerts are machine-generated, which means they are precise, and precision is the enemy here. The same underlying failure shows up worded almost identically across every cluster it happens in, differing only in the parts that don't matter. Here's one real alert as it fires in three different environments: ddi-prd-nva1 ipsec Pod not ready alert - ddi-prd-nva1: ipsec Pods are not ready for more than allowed ...

Still Warm

I'm writing this at the tail end of a rotation, which is probably the only honest time to write about one. There's a particular kind of tired that comes from being paged at odd hours: not the clean exhaustion of a long day, but something stranger, because the hours are never quite yours. Our on-call is twelve hours at a stretch, 8 to 8, seven days in a row when it's your turn. And the team lives on opposite sides of the planet, one half in PST, the other in IST. So the pager is really a baton, and by the time it reaches you it's always some odd hour, and it's always still warm from someone else's hands. That handoff is where things go to die. Someone in IST spends an hour chasing an alert: checks a dashboard, tries a restart, rules a thing out, finds the real cause just as their day ends. Then PST wakes up to the same alert firing again, and almost none of that hour survives the crossing. Maybe a one-line note. Maybe nothing. So PST starts over: same dashboard, ...