Working State.
Field notesEngineering / December 2026

Event-driven agents

What wakes AVA up?

Say the school emails at 2:07. Pickup has moved to 2:45. The next hourly check is at 3. By then, the agent can give you a perfectly accurate account of the pickup you missed.

I built AVA to wake up when something changes in a household. A lot of the engineering behind that decision comes down to those 38 minutes. A parent might have time to step out of a meeting, call a neighbor, or ask the other parent to go. At 3, all three options are worth considerably less. What AVA does for families

Matt Palmer made the case for event-driven work in Grok Bot this week. He described moving from mostly time-based runs, including hourly checks for another bot’s message, to letting a Slack or Teams message, an email, or a ticket wake the bot. He called out the tokens saved on empty checks. I like that change. What got me to build this for AVA was how quickly a family’s options disappear while an agent waits for its next run. Matt Palmer’s post

What a five-minute cron gets you

You can get much closer to the school email by checking every five minutes. That’s 288 checks per mailbox per day, including on a quiet Sunday. Checking a cursor is cheap. Loading a family’s context and asking a model “anything I should know?” 288 times is a different proposition. There’s no reason to pay for the second just to find out whether you need the first.

A change notification gives the software a reason to go look. Gmail, for example, tells you which mailbox changed and gives you a history ID. Your application still has to fetch the changes. A worker can poll a queue to pick up that work while the household agent stays asleep until there’s something for it to read. How Gmail change notifications work

Should this wake the parent?

In AVA’s email flow, a first pass decides whether a message deserves more work. A priority flag sends it on for a closer read. At that point the agent can look at events and open tasks associated with the email thread and reconsider the urgency. That second look is important. The same school can send a pickup change, a newsletter mentioning pickup, and a correction to yesterday’s pickup instructions. They all look like new mail.

Take the 2:07 example a little further. At 2:09 the other parent replies, “I can get her.” If that answer is visible to the assistant and clearly settles who’s going, a push at 2:10 asking “Who can cover pickup?” makes work for both parents. The earlier dismissal still belongs in their plans. The question about who’s driving can be closed quietly. If the reply was only “saw this,” pickup is still open.

This is why I care about connecting an answer back to the task that was waiting for it. In AVA, a person can answer an outstanding question in another conversation and the linked to-do can resume with that answer. Making a parent find the right chat and tell the assistant a second time would defeat much of the point.

The email you get twice, and the one you miss

Imagine the school corrects the time to 3:15, then an older notification arrives late. I’d want the worker to reread the current thread before proposing 2:45 again. Deliver the same change twice and there should still be one pickup to manage. There’s another easy mistake here. The agent updates a to-do, the update wakes an agent, and that agent updates the to-do again. In AVA we can save a change during background processing while suppressing the follow-on trigger. The to-do is there when the parent opens it, and the worker can stop.

I still want clocks in this system. A morning brief has a time because the family asked for one. “Tell me by 2:15 if nobody has claimed pickup” needs a timer because silence won’t send a webhook. And providers can miss a delivery. Google explicitly recommends periodically checking mailbox history to catch up. Those are good jobs for a schedule. Gmail delivery limits

The test I’d put on a phone

I’d replay the same afternoon twice. In one version a parent claims pickup before the alert goes out. In the other nobody answers. Send the original email notification twice in both runs. Then look at the phone and the shared plan. Did anyone get asked to do something already handled? In the unanswered version, how many minutes did the family have left when the alert reached them?

For a 2:45 pickup with a 20-minute drive, somebody needs to leave by 2:25. An alert at 2:20 gives the parent five minutes to make a plan. Those five minutes of useful notice are what I’d put next to token cost.