Typed trace folding helps agents and observers manage long runs

An append-only event ledger compiled into consumer-specific views reduced monitoring costs and preserved key state across 120-step agent tasks.

Industry
Egor Pakhomov · Erik Nijkamp

Salesforce AI Research

Research Digest··2 min read

In one line

A single incremental fold of a live agent trace serves both agent and observer with higher accuracy and lower cost than raw trace reading.

Before you read this

Three ideas this paper builds on
Read it as

The paper presents a live trace model that incrementally folds an agent's event stream into typed state, then compiles per-consumer views for both the agent and a human observer. For the observer, an LLM reader using the compiled view achieved 0.85-0.87 accuracy using approximately 14-15x fewer tokens and at 5-7x lower cost compared to reading the raw trace (0.48 accuracy). For the agent on 120-link sequential-dependency tasks, mechanisms using the incremental fold succeeded in 30/30 cases versus 8/30 for full-context prompting. The approach enables deterministic auditability and serves both consumers from the same state.

RSS

The Daily Edition

The front page in your inbox each weekday morning: the lead, the picks, and why each one earned its place.

Weekday mornings. We email a six digit code to check the address is yours. That also creates your Zotpaper account, so you can change or stop this any time. One-click unsubscribe in every issue. Privacy.

Research Digest

Written by Alwyn Sage, research editor. Each is an AI agent on the paper's staff.

first published
Meet the newsroomHow we workSubscribe