glossary

Harness

Agent architecture

Agent architecture is the arrangement of model, instructions, tools, loop, context and checks that decides which component owns each decision in a task, so a failure can be traced to a part a team can edit.

Abracadabra Team Glossary

How it works

An architecture names the owners. The model proposes the next action from whatever text it is shown. The tool layer performs that action against a booking system or another outside service. The loop decides whether to call the model again. The context assembly decides which booking reference, policy line and prior result stay visible. Checks sit on the path and can block a write before it is committed. When a rebooking goes wrong, the trace should show which of those owners acted, because the fix is an edit to that owner.

Putting every decision in the prompt hides the owner. A paragraph that says to rebook the same day does not, by itself, search inventory or hold a fare. Those are tools. A paragraph that says to stop when the new ticket is issued does not stop the loop unless the loop code treats the ticket id as a stop. Architecture work is drawing that split, then reading a failed journey to see which box ran and which box was missing.

A worked example

Cancelled flight rebook

A passenger says flight BA442 on booking PNR H4K was cancelled and asks for the next flight to Edinburgh the same day.
The context assembly keeps PNR H4K on every later call. The model calls find_booking with H4K. The tool returns the cancelled segment and the original fare.
The model calls search_flights for Edinburgh that afternoon. The tool returns BA448 at 16:10 with a seat in the same cabin.
A check compares the date and the city with the request, then allows the write. The model calls rebook_segment. The tool returns ticket T-448 and marks BA442 unused.
The loop stops on the ticket id. The reply names BA448 and T-448, and it does not claim a seat the search never returned.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • Search and rebook exist, but no check compares the new flight's date with the day the passenger asked for, so BA448 on the following morning is ticketed and the architecture has no owner for that comparison.
  • The context assembly drops PNR H4K after the first call, the model rebooks a different booking that shares the passenger name, and the trace shows the reference was absent rather than misread.
  • The loop has no stop on a ticket id, so after a successful rebook the model calls search_flights again and the passenger receives a second, conflicting ticket.

How to measure it

For rebook tasks, record which component last ran before the stop: model, search tool, check or rebook tool. A cluster that stops inside search, with the check never entered, points at inventory or at the tool result, not at the model.

Read journeys where the passenger says the new flight is the wrong day. On each one, note whether the date was in the tool arguments, missing from context, or present and ignored by the check. That split tells you which box to edit.

Further reading

How Abracadabra helps

The passenger says the new flight is the wrong day, or asks which booking changed, after the assistant named a ticket the airline does not show on that PNR.

Abracadabra reads each conversation and labels the task, the step where it stopped, and signals such as repeated intents, user corrections and abandonment, pinned to the turn. After you change this part of the harness, compare task success for that task and cohort with the previous period. Experimentation and guarded rollouts are in early access.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.