How-to / A guided look at how we build

Why: a memory that is only updated when someone remembers to update it goes stale, and stale memory gives wrong answers with confidence.

Scheduled triggers — why they're needed

Side post for "How to use analyst-server" (part 4). Kind: why it's needed.

The problem it answers

Rob's words: "scheduled triggers to run processes that keep the system current."

Everything analyst-server knows about you is memory: your intents, your initiatives, the apparatus that serves them, and the briefings that report on them. A briefing is only useful if it describes today. Mail arrives, prices move, a backup succeeds or quietly fails, a site goes down. None of that waits for you to open a chat.

If the only way to refresh memory is to ask for it, two things happen. You forget, and the briefing you trust is a week old. Or you remember all the time, and the system has turned into a chore.

What a trigger is

A trigger is a small job with a clock attached. "Fetch new mail every two hours in the daytime." "Dump the database every night." "Re-check the security posture each morning." Each one runs, writes what it found, and exits. Nothing has to stay awake for it.

When you state an intent in the builder box, one of the questions is how often should the briefing update? That answer becomes a trigger. The schedule is part of the intent, not an afterthought.

Why not one big nightly job

  • Different things change at different speeds. Mail is hourly; a tax document is yearly. One schedule for everything is either wasteful or late.
  • A failure stays small. If one trigger breaks, its own briefing goes stale and says so. The others keep running.
  • Every run leaves a trace. Each run records when it ran and what it saw. A missed run is itself a fact the system can notice and report, instead of a silence.

Triggers and the other pieces

Triggers keep the memory current. The grinder builds new pieces; triggers keep the built ones alive. The choreography engine uses the same clock idea for conversations over weeks. And recoverability depends on them: a backup that only runs when someone remembers is not a backup.

What it is not

A trigger does not decide anything new. It repeats something the owner already agreed to, on a schedule the owner set. Changing what it does goes back through the builder box like any other change.