Part of the Determesh series.

What

Determesh uses five AI roles. Each has its own conversation, built from the thread but containing only what that role is given. None of them reads another’s conversation.

RoleIts conversationSees
OrchestratorOne per threadThe user’s messages, the answers resources gave, its own decisions
Resource assistantOne per thread and resourceWhat the orchestrator asked, and its own resource’s methods and data
Reply writerOne per replyThe outcome, the facts to phrase, and a note on the user’s style
EvaluatorOne per scoreThe user’s recent messages and the reply
Meta extractorOne per runThe user’s recent messages, to update the style note

The thread in the database is the full record. The conversations are views of it, cut to purpose.

Why

Like departments in a company

The model for this is an office. A person comes to the front desk with a request. The assistant at the desk does not have access to every department’s files. They walk to HR, explain what is needed, and HR decides what to hand over and what it needs first. HR does not see the conversation at the front desk. The front desk does not see HR’s filing cabinet.

That is the orchestrator and the resource assistants. The orchestrator works on behalf of the user. Each resource assistant works on behalf of its resource. When a resource needs something, such as a date range or an email address, its assistant says so, and the orchestrator gets it from the conversation or asks the user.

Two models, two biases

When one model both asks for data and decides whether the data may be given, it argues with itself and usually agrees. Splitting the roles means the resource assistant has no stake in the user’s goal. It reads its resource’s rules and answers. It also knows the user’s current access, which code adds to every request it receives, so it refuses at once what the user cannot reach instead of trying and failing.

What the user sees should not include how it was made

The reply writer gets the outcome and the facts, never the internal work. It cannot repeat a method name, a resource’s internal answer or the orchestrator’s reasoning, because it never saw them. That is a stronger guarantee than telling one big model “do not mention internal details”.

Different jobs, different models

The orchestrator plans across resources and needs the stronger model. The other four roles do narrower work and use a cheaper, faster one. Splitting the roles is what makes that choice possible. Companies do not pick models per role, because the prompts and the evaluator’s bands are tuned to the models we chose.

How

Every resource gets its own assistant

Even a single PDF. It would be faster to let the orchestrator read the file directly, but then files and APIs would take different paths through the system, with different access checks and different ways of asking for more detail. Mixed paths are where things break. With one path, a PDF and a payroll API are asked the same way, checked the same way and recorded the same way.

A file’s assistant has search and read tools instead of method calls. A folder’s assistant can list its documents, search the readable ones and hand over the shareable ones. To the orchestrator, all of them are “ask this resource”.

The assistant knows its conversation is private

One subtle failure came from the resource assistant assuming the orchestrator saw everything it did. It would refer to a value from an earlier call as if the user had provided it.

The assistant is now told plainly: the orchestrator sees only your answers. A value you never put in an answer did not come from you, it came from the user. And a secret you sent, such as a one-time code, is never repeated.

The reply writer reads a style note, not rules

Each user has a short note on how they like to be answered: language, length, formality. Only the reply writer reads it, and only for style. The language of the current message always wins over the note.

That “only for style” was learned the hard way. The meta extractor once wrote content rules into a note, things like “without reciting amounts”, and the reply writer followed them, quietly dropping figures it had been given. The fix and the replay test are in a later post. The rule now is in both prompts: the note never decides what a reply contains.

The evaluator sees the exchange, not just the reply

Scoring a reply alone misses the pattern of a user pushing. The evaluator sees the last few user messages beside the reply. It does not see the internal work, the resources, or the facts, because its question is “is this a good exchange”, not “is this the right answer”. The right answer is the resources’ job.

For long work there is a second evaluator conversation, which sees the steps of every model working on the request, marked with who took each one. That one judges progress, not replies.

Caching falls out of the split

Each conversation is append-only on its own. The orchestrator’s and each resource assistant’s conversations grow with the thread, so every new call shares a long identical prefix with the last one and is served mostly from the provider’s prompt cache. The reply writer and evaluator start fresh each time, but their fixed system prompts still cache. Separate conversations turned out to be cheaper than one big one, not more expensive.


Previous: A Dumb Evaluator, on Purpose

Next: Need to Know: Denied by Default