Notes

A chat keeps what was said, not what the tools carried

juudd's assistant keeps the words, the names of the tools it used and a time. Never a tool's input or result. Thirty days after the last message, it is gone.

When you talk to the assistant juudd runs for you, we keep four things about each message: who said it, the words, the names of the tools it called, and the time. We never keep what a tool was given or what a tool returned. Thirty days after the last message in a conversation, the whole conversation is deleted.

That is the decision. The rest of this post is why those four things and no others, why thirty days, and what happens when the history is lost.

Four fields, and no place for a fifth

A customer who has no assistant of their own connected can use the chat page instead. It talks to juudd through the same tools as any other client, with the customer's own sign-in. So a conversation is a thread of messages, and each one is stored as exactly this:

  • the role, either the customer or the assistant
  • the text the customer typed, or the text the customer was shown
  • the names of the tools called, in order, and nothing about what they did
  • the time

The type that holds a message has no field for anything else. That is the real guarantee. A promise not to store tool results is only as good as the next person who edits the code, so the shape of the record is what refuses.

Why the tools' side of the conversation is left out

There are two things a tool carries, and each one is somewhere already.

Tool inputs are site files. When the assistant deploys a page, the page is the input. Every version of a site is kept permanently, so a second copy inside a chat log is a copy nobody needs, and one more place for the same words to go stale.

Tool results can hold your visitors' details. A query tool returns rows, and a hand-over tool returns a one-time link. For the data your site collects, you are the controller and we are the processor. Keeping tool results in a chat log would widen what a processor holds, for no purpose you asked for.

The model's own thinking is not kept either.

The files are the memory

The obvious objection is that a conversation resumed from text alone is a conversation that has forgotten what it did. It has, and it does not matter, because the thing it did is on the site.

We tested this by editing a site in a fresh conversation that held nothing but the site. It read the files back, made the change and finished in six turns. A conversation resumed from text does the same: it reads the site first. If the history in memory is lost, for instance because the process restarted, the fallback is the stored text, and the cost is one read of the site, not a lost thread.

Thirty days, and nothing to run

A conversation is deleted thirty days after its last message. The deletion is done by the next write to the table, so there is no scheduled job whose failure would leave old chats behind unnoticed. Deleting a conversation deletes its messages with it.

Thirty days because a customer who comes back next month to change a price should find what they said. The model provider keeps its inputs for about as long, so a longer window here would not protect anything.

You can also delete a conversation yourself, at any time, from the chat page. A chat that is still working on a request refuses the delete until it finishes, so a half-made change is not orphaned.

What this does not claim

Deleting a conversation does not delete a site. The site is a version like any other, and versions are never wiped. It is the other half of the same rule: the work is kept, and the talk about the work is not kept for longer than it is useful.

The rule, once

A chat history holds what was said, never what a tool carried, because what a tool carried is either your site, which is already kept, or your visitors' details, which have no business in a log. The record has no place for them, and thirty days after the last message it is gone. What each tool does is listed in the docs.