Taxi:大规模(真实场景)下的智能体分析
摘要
Taxi 技术报告介绍了一个可扩展的系统,用于在生产规模下调试、聚类和监控 AI 智能体轨迹。该系统结合了基于聚类的分类体系、完整的 SQL 访问能力,以及由编程智能体引导的混合查询流水线,并采用实验性的 Jev 风格决策模型,以实现低成本的语义路由。
查看缓存全文
缓存时间: 2026/11/26 09:26
# Analyzing Agents at (Real) ScaleTechnical Report
Source: [https://arxiv.org/html/2611.31457](https://arxiv.org/html/2611.31457)
## Taxi: Analyzing Agents at \(Real\) Scale Technical Report
###### Abstract
In this technical report, we present*Taxi*– a system for debugging, clustering, and monitoring agents at scale\. Taxi scales easily to millions of steps efficiently, without spurious expenses\. This is made possible by a combination of scalable analysis methods\. Taxi relies primarily on clustering to generate a taxonomy over steps for a structured overview of the data, and provides full SQL access for engineers and automated agents to ask complex questions\. Clustering and querying are best used together in a hybrid pipeline guided by a coding agent\. Taxi also includes an experimental integration of Jev\-style decision models: models that map state and bounded questions directly to typed, probabilistic decisions\. They add low\-cost semantic routing and evaluation where embeddings or literal queries alone are insufficient\. In addition, Taxi provides an extensible ecosystem, including built\-in evaluators and daily reports\. To accommodate growth, Taxi is designed to be modular, hackable, and easy to plug\-and\-play for individuals and teams\.
## 1Introduction
Agents now run for hours or days\([Kwa et al\., 2026](https://arxiv.org/html/2611.31457#bib.bib32)\), chaining together planning, tool use, and error recovery across long trajectories\. Every run leaves a rich record of what the agent did that goes beyond just success and failure\. Agent runs contain a costly yet elusive class of problems\. To name a few examples: behavioral bugs that never raise an error, agents that quietly exceed the scope of what they were asked to do, the same unnecessary step repeated across thousands of independent runs, unexpected tool results, and other undesired phenomena\. These phenomena are not necessarily easy to predict in advance\. Some failure modes lead the agent astray, resulting in wrong conclusions\([Zhu et al\., 2025](https://arxiv.org/html/2611.31457#bib.bib13)\)\. Others may be local and recoverable, but they still come at the cost of extended work\([Hu et al\., 2026](https://arxiv.org/html/2611.31457#bib.bib15)\)\. At production scale, a single undetected recurring “soft failure” pattern is a burden, whether it is an actual mistake or just wasted tokens\([Cuadron et al\., 2025](https://arxiv.org/html/2611.31457#bib.bib14);[Bai et al\., 2026](https://arxiv.org/html/2611.31457#bib.bib16)\)\. The solution to both lies in observability\.
Trajectory logging is common practice today\. But for real observability, we contend there are, at minimum, two more things we need: \(a\)structured overviewof agent behavior across the corpus, and \(b\) letting usersquerythat behavior and ask arbitrarily complex questions\. Modern products are emerging that fulfill these criteria to a certain degree\([Laminar AI Team, 2026](https://arxiv.org/html/2611.31457#bib.bib20);[Meng et al\., 2025](https://arxiv.org/html/2611.31457#bib.bib21);[Tannyhill, 2026](https://arxiv.org/html/2611.31457#bib.bib17)\)\. Unfortunately, they all rely heavily on language models touching every trajectory \(or a limited sample, for affordability\), which is prohibitive at production volumes, due to costs, rate limits, latency, and limited coverage\. Research pipelines that induce taxonomies with LLMs similarly have a model read each trajectory or a sample of them\([Tamkin et al\., 2024](https://arxiv.org/html/2611.31457#bib.bib26);[Cemri et al\., 2026a](https://arxiv.org/html/2611.31457#bib.bib7);[Gupta et al\., 2025](https://arxiv.org/html/2611.31457#bib.bib8)\)\.
Taxi is built with scalability as a first\-class citizen\. Even with a production\-grade workload and relatively limited resources, Taxi won’t falter\. In fact, the methods we use encourage granular visibility into agent trajectories, giving rise to a better perspective on the agents’ work\. Its two established analysis paths are cheap clustering and direct text querying\. Taxi now adds an experimental third path based on Jev\-style decision models \(Section[2\.2](https://arxiv.org/html/2611.31457#S2.SS2)\)\. These models accept a state and bounded questions and return typed decisions with probabilities rather than generated text\([Almeida, 2026](https://arxiv.org/html/2611.31457#bib.bib19)\)\. In this report,*Jev\-style*refers to this broader interface, not only TypeSafe AI’s original Jev model\. Its substantially lower per\-decision cost makes semantic judgment applicable at a different scale than general\-purpose generation\. For structured overview, Taxi builds ataxonomy, a tree of hierarchical clusters, over the steps in the data\. Then, each step is assigned to one of the clusters\. Building on that, a user or agent can track information about the trajectories and get a better view of the data before analyzing it\. In the following, we present the main aspects of Taxi’s design\. For the interested reader, we provide full details in the Appendix\. Appendix[H](https://arxiv.org/html/2611.31457#A8)walks through Taxi on one public agent benchmark, layer by layer\. Taxi is designed for individuals and teams, with out\-of\-the\-box support for a range of sophisticated features, detailed below\. Upon community interest, we will open source it\.
Figure 1:Taxi architecture: clients share one primitive surface \(MCP tools\) over one database backbone, with skills as the methodology layer that steers agents over those tools\.
## 2The Taxi System
### 2\.1Data Layer
Data sources\.Adata sourceholds a team’s corpus of*trajectories*\(complete agent runs\)\. Each trajectory is an ordered sequence of*steps*– messages, tool calls, and observations\. A text embedding is computed and assigned to each step\. The corpus is loaded from an external origin through a*loader*\(LangSmith, Hugging Face, JSON export, and similar\)\. All loaders write the same schema, so supporting a new origin just means adding a loader\. Loader\-specific extra information is captured under the metadata field\. Data sources are shared across the team – everyone reads the same trajectories and embeddings, and nobody re\-ingests the same logs for their own copy\. Origins that keep producing new runs \(LangSmith is one\) are*syncable*: each sync bumps a monotonic data version, and every trajectory records which version first contained it\.
Projects\.Aprojectis a personal view over one data source\. It belongs to a single user and can apply its own filters \(e\.g\., a project filtered by a specific run name\)\. That split lets the team pay the cost of ingestion once, while each person keeps a separate workspace\. The main artifact in a project is ataxonomy: a hierarchical tree of step clusters \(Section[2\.3](https://arxiv.org/html/2611.31457#S2.SS3)\)\. Each cluster has a short label and description, and each step is assigned to one cluster, or left unassigned when no rule matches\. Taxonomies are versioned and immutable once published – editing the tree means publishing a new taxonomy version\. After a data\-source sync, a project can pull the new trajectories and assign their steps under its current taxonomy version; the cluster definitions and assignment rules stay as they were, and only membership of new steps is filled in\. Decoupling data evolution \(via data versions\) and taxonomy evolution is desired to keep the two orthogonal – the steps of an old trajectory can be discretized into new clusters, and a new trajectory can be discretized with an old taxonomy\.
### 2\.2Design
Architecture\.Taxi is organized in three layers \(Figure[1](https://arxiv.org/html/2611.31457#S1.F1)\)\. At the bottom there’s a shared database of trajectories broken into steps, with embeddings and \(when present\) a taxonomy of step clusters\. All the other layers use the database\. The middle layer is a set of a few dozentoolsexposed over MCP\([Anthropic, 2024](https://arxiv.org/html/2611.31457#bib.bib22)\)\. These tools support querying a project, building or editing a taxonomy draft, publishing evaluators and insight definitions\. On top sitskills\([Anthropic, 2025](https://arxiv.org/html/2611.31457#bib.bib23)\)– short instruction documents that tell a coding agent or chat model which tools to use, and how, for a particular job \(explore the data, build a taxonomy, write an eval, produce a daily report\)\.
All clients, web UI, scheduled jobs, and others, use the same pool of tools\. The point of the split is that analysis methods change faster than the data model – a new way to taxonomize or a new kind of report is usually a new skill or a tool, not a rewrite of storage or every client\.
#### Scaling\.
Taxi combines two established methods with a Jev\-style path:
- •Embedding and Clustering– vector clustering over embeddings is cheap and scales easily enough to run over every step in the corpus\([Arya and Mount, 1993](https://arxiv.org/html/2611.31457#bib.bib38);[Douze et al\., 2024](https://arxiv.org/html/2611.31457#bib.bib24)\), giving us a structured overview with no LLM calls \(Section[2\.3](https://arxiv.org/html/2611.31457#S2.SS3)\)\.
- •Querying and Textual Regularity– much of agent behavior is searchable as plain text: tool names, error strings, argument shapes\. SQL and pattern matching over steps answer a surprisingly wide range of questions with no need for AI \(Section[2\.4](https://arxiv.org/html/2611.31457#S2.SS4)\)\.
- •Jev\-style Decision Models– when a category is semantic rather than geometric or lexical, a decision model can answer a bounded choice or yes/no question directly, returning probabilities without generating an explanation\. Taxi uses this interface both to route steps through taxonomy levels and to evaluate trajectories\. Its cost profile permits semantic decisions to be applied far more broadly than generative\-model calls, giving it the potential to become the main approach for semantic analysis\.
The first two methods remain Taxi’s established core\. When a remaining task requires a generative\-model judgment, Taxi can use clusters and queries to narrow the relevant set before sampling it; this is a cost\-control tactic rather than a separate analysis approach\. Table[1](https://arxiv.org/html/2611.31457#S2.T1)compares the three routing methods, with a generative LLM for reference; all scale linearly in the number of steps\.
Table 1:Routing steps into a taxonomy\.
### 2\.3Taxonomy Construction
Taxi’s design supports switching and composing assignment methods\. We present a flat clustering pipeline and an agentic construction pipeline; the latter can mix three routing mechanisms within one tree\.
#### Simple Flat Clustering\.
That’s the simplest form of taxonomy construction\. We run a clustering algorithm, e\.g\. k\-means\([Lloyd, 1982](https://arxiv.org/html/2611.31457#bib.bib4)\), on the embeddings\. The resulting clusters then form the taxonomy\. Naming the clusters takes place by calling an LLM on a small sample of steps from each cluster\. Upon sync, new steps are simply assigned to the cluster which they are closest to\. Despite its simplicity, these clusters tend to be useful for understanding and debugging agents\.
#### Agentic Taxonomy Construction\.
This method can be used by any agentic harness\. It builds and refines the cluster tree, rather than running a single clustering pass\. The procedure is anagent skill: a short instruction document that steers the model over relevant MCP tools\. The full details of the pipeline are provided in Appendix[C](https://arxiv.org/html/2611.31457#A3)\. The main pieces are:
- •Corpus exploration– SQL over the scoped views, plus TF\-IDF term lists that surface recurring vocabulary in the steps \(and, when useful, inside clusters\)\.
- •Embedding\-based clustering– k\-means over step embeddings to propose a partition at the root or under an existing cluster\.
- •Regex\-based clustering– clusters defined by patterns over step text, when a behavior has a stable surface form; We defer more details to Appendix[C](https://arxiv.org/html/2611.31457#A3)\.
- •Jev\-based routing– clusters defined by natural\-language labels and descriptions\. A decision model chooses among the sibling definitions, with an explicit “none of these” option and a confidence threshold\. This is useful when membership is semantic but the categories are already known\.
- •Jev\-based construction\(experimental\) – discovers Jev categories from the corpus instead of taking them as given: the decision model makes every decision and an LLM only writes the categories it decides to change \(Appendix[D](https://arxiv.org/html/2611.31457#A4)\)\.
- •Scoped refinement– the above tools can be restricted to one cluster’s members \(TF\-IDF inside a cluster, split by another k\-means call, merge near\-duplicates, and so on\), so the agent can iterate until clusters are interpretable and distinct\.
Discretization\.Apart from being a goal unto itself, taxonomization plays a few more roles\. First, it provides a starting point for an agent or human analyzing the dataset, giving them context for understanding the domain and behaviors worth looking into during query\-based work \(Section[2\.4](https://arxiv.org/html/2611.31457#S2.SS4)\)\. Second, itdiscretizesthe steps – breaks them into a finite set of discrete clusters\. This opens up a new world of possibilities – now trajectories can be interpreted as coming from astate machine, and the transition map can be analyzed, and tools for analyzing discrete trajectories can be used, including tools from process mining\([Van Der Aalst et al\., 2011](https://arxiv.org/html/2611.31457#bib.bib37);[Van der Aalst and Weijters, 2004](https://arxiv.org/html/2611.31457#bib.bib25)\), motif analysis\([Bailey et al\., 1994](https://arxiv.org/html/2611.31457#bib.bib36)\), and anomaly detection\([Chandola et al\., 2009](https://arxiv.org/html/2611.31457#bib.bib28)\)\.
Figure 2:Taxonomy construction as the taxonomizer skill runs it\. The clustering call proposes, the examination step decides\. The dashed shortcut is theflatpipeline, which skips examination\.
### 2\.4Querying the Corpus and Textual Regularity
A taxonomy gives a birdseye view\. It does not replace asking arbitrary questions about what agents did\. Our trust in the power of text\-based exploration is not speculative\. Modern coding agents rely on exact text and regex\-based tools to explore code all the time\([Yang et al\., 2024](https://arxiv.org/html/2611.31457#bib.bib5)\), and recent work has shown thatgrepis often stronger than embeddings\([Sen et al\., 2026](https://arxiv.org/html/2611.31457#bib.bib35)\)\. In a way, this indicates that text is more structured than one might assume, and the same phrases are used for similar things\. In Taxi, we nickname that the “regularity of text”\. Taxi keeps the full text of every step, so a human or a tool\-using LLM can search and filter the corpus directly – e\.g\., how often a tool error appears, which runs hit a given cluster, whether a phrase shows up in final answers, or how behavior differs across models or time\.
SQL queries don’t usually need access to the raw tables in the database\. Before executing any query, ascopeis defined \(also called aview\): either a project \(a data source with that project’s filters and latest taxonomy\) or one or more data sources \(raw corpus, no taxonomy\)\. Queries then run as read\-only SQL inside this scope, given easy access to the scope’s trajectories, steps, and, under a project, also clusters and step\-to\-cluster assignments\. This all happens automatically when an engineer or AI agent uses the`execute\_sql`tool \(scope must be set first by using`set\_project`/`set\_data\_sources`\)\. Agents, evaluators, and insight reports all use the same path\.
### 2\.5Ecosystem
Until now, we have discussed the core of Taxi, which is based on a unified trajectory\-step\-embedding database and clustering procedures\. On top of that common ground, many extensions can be designed\. Below we describe two such built\-in extensions that we designed\. Due to the ease of developing such extensions with little concern to the underlying core, we view them as Taxi’secosystem\.
Evaluators\(Appendix[E](https://arxiv.org/html/2611.31457#A5)\) are regression checks over trajectories\. Once a behavioral bug is understood – an agent that skips a required tool, leaks a secret into a user\-facing report, or repeats a pattern that was already fixed – the team writes a check that fails when that pattern shows up again\. This way, past bug fixes can be turned into checks\. A coding agent can even create the evaluation check on its own\. If given access to recent code changes, it can identify bug fixes in the code and design an evaluator automatically\. Evaluator criteria may be SQL or regex queries, or a Jev\-style yes/no question applied per trajectory or per step\. SQL remains useful for cheap narrowing before semantic judgment\.
Insight reports\(Appendix[F](https://arxiv.org/html/2611.31457#A6)\) answer a different question\. It focuses on periodically keeping an eye on recently generated trajectories\. It finds surprising or otherwise relevant agent behavior in trajectories created after the last report\. This complements other approaches that focus on the aggregate behavior\. Insights can run as a scheduled routine\. Findings focus around how the agents acted, but in some cases can highlight interesting outcomes of the inspected agents themselves\.
## 3Limitations and Outlook
Taxi relies on the correctness of its clusters\. Clustering long text is hard – steps may contain long code blocks that do not contribute to the axes we care about, and hyperparameters are hard to set well\. The agentic approach improves precision substantially but can still miss nuances\. Trajectory behavior may also drift over time\([Gama et al\., 2014](https://arxiv.org/html/2611.31457#bib.bib6)\); an old taxonomy can force a stale lens on new data\. Jev\-style routing and evaluator criteria have only recently been integrated into Taxi and have not yet been tested end to end across the full system; for now we therefore mark these paths experimental\. Finally, Taxi does not yet handle multi\-agent systems out\-of\-the\-box\. These are limitations of Taxi’scurrent behavior, not its architecture\. Its modularity can accommodate multi\-agent support, better taxonomization instructions, and other extensions without redesign\. Taxi is fully operational and under active development with feedback from our internal agents team\. We believe it is ready to integrate into both academic and commercial pipelines, while also open to further improvement in parallel\.
## 4Conclusion
We presented Taxi, a system for interpreting agent trajectories at scale, built on a queryable relational backbone that serves as the integration point for every part of the system\. Its main contribution is scalability – integrated into every design decision, while not excluding potential use of heavier methods when required\. Alongside embedding\-based clustering and literal querying, the system now supports Jev\-style typed decisions for semantic taxonomy routing and evaluation\. This extends the same scale\-first design to semantic judgments and may become the primary path for them\. We discussed several key points in our design, further elaborated in the appendices\. We additionally discussed how we maintain modular structure to make the method suitable for extension and flexible\. We hope our system is useful to others building an interpretive science of agent behavior at production scale, as well as to more modest scales\.
## Ethics Statement
The trajectories analyzed in this work come from the authors’ own agentic systems and public data, and do not involve human\-subjects data\.
## References
- \[1\]D\. Almeida\(2026\)Introducing system one models & Jev\.Note:[https://typesafe\.ai/blog/introducing\-system\-one\-models\-and\-jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev)TypeSafe AI\. Accessed 2026\-11\-01Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p2.1),[§1](https://arxiv.org/html/2611.31457#S1.p3.1)\.
- \[2\]Anthropic\(2024\)Introducing the model context protocol\.Note:[https://www\.anthropic\.com/news/model\-context\-protocol](https://www.anthropic.com/news/model-context-protocol)Cited by:[§2\.2](https://arxiv.org/html/2611.31457#S2.SS2.p1.1)\.
- \[3\]Anthropic\(2025\)Introducing agent skills\.Note:[https://claude\.com/blog/skills](https://claude.com/blog/skills)Cited by:[§2\.2](https://arxiv.org/html/2611.31457#S2.SS2.p1.1)\.
- \[4\]S\. Arya and D\. M\. Mount\(1993\)Approximate nearest neighbor queries in fixed dimensions\.InProceedings of the Fourth Annual ACM\-SIAM Symposium on Discrete Algorithms,SODA ’93,USA,pp\. 271–280\.External Links:ISBN 0898713137Cited by:[1st item](https://arxiv.org/html/2611.31457#S2.I1.i1.p1.1)\.
- \[5\]S\. Ashury\-Tahan, Y\. Mai, E\. Bandel, M\. Shmueli\-Scheuer, and L\. Choshen\(2026\)ErrorMap and erroratlas: charting the failure landscape of large language models\.arXiv preprint arXiv:2601\.15812\.Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p4.1)\.
- \[6\]L\. Bai, Z\. Huang, X\. Wang, J\. Sun, R\. Mihalcea, E\. Brynjolfsson, A\. Pentland, and J\. Pei\(2026\)How do ai agents spend your money? analyzing and predicting token consumption in agentic coding tasks\.arXiv preprint arXiv:2604\.22750\.Cited by:[§1](https://arxiv.org/html/2611.31457#S1.p1.1)\.
- \[7\]T\. L\. Bailey C\. Elkanet al\.\(1994\)Fitting a mixture model by expectation maximization to discover motifs in bipolymers\.Cited by:[§2\.3](https://arxiv.org/html/2611.31457#S2.SS3.SSS0.Px2.p3.1)\.
- \[8\]M\. Cemri, A\. Cojocaru, M\. Pan, S\. Liu, S\. Agarwal, A\. Krentsel, J\. Tang, K\. Ramchandran, J\. E\. Gonzalez, M\. Zaharia,et al\.\(2026\)Fantastic adaptive taxonomies and how to use them\.arXiv preprint arXiv:2607\.16387\.Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p4.1),[§1](https://arxiv.org/html/2611.31457#S1.p2.1)\.
- \[9\]M\. Cemri, M\. Z\. Pan, S\. Yang, L\. A\. Agrawal, B\. Chopra, R\. Tiwari, K\. Keutzer, A\. Parameswaran, D\. Klein, K\. Ramchandran,et al\.\(2026\)Why do multi\-agent llm systems fail?\.Advances in Neural Information Processing Systems38\.Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p4.1)\.
- \[10\]V\. Chandola, A\. Banerjee, and V\. Kumar\(2009\)Anomaly detection: a survey\.ACM computing surveys \(CSUR\)41\(3\),pp\. 1–58\.Cited by:[§2\.3](https://arxiv.org/html/2611.31457#S2.SS3.SSS0.Px2.p3.1)\.
- \[11\]A\. Cuadron, D\. Li, W\. Ma, X\. Wang, Y\. Wang, S\. Zhuang, S\. Liu, L\. G\. Schroeder, T\. Xia, H\. Mao,et al\.\(2025\)The danger of overthinking: examining the reasoning\-action dilemma in agentic tasks\.arXiv preprint arXiv:2502\.08235\.Cited by:[§1](https://arxiv.org/html/2611.31457#S1.p1.1)\.
- \[12\]M\. Douze, A\. Guzhva, C\. Deng, J\. Johnson, G\. Szilvasy, P\. Mazaré, M\. Lomeli, L\. Hosseini, and H\. Jégou\(2024\)The faiss library\.External Links:2401\.08281Cited by:[1st item](https://arxiv.org/html/2611.31457#S2.I1.i1.p1.1)\.
- \[13\]J\. Feiglin and G\. Dar\(2026\)SastBench: a benchmark for testing agentic sast triage\.arXiv preprint arXiv:2601\.02941\.Cited by:[Appendix H](https://arxiv.org/html/2611.31457#A8.SS0.SSS0.Px1.p1.1)\.
- \[14\]J\. Gama, I\. Žliobaitė, A\. Bifet, M\. Pechenizkiy, and A\. Bouchachia\(2014\)A survey on concept drift adaptation\.ACM Comput\. Surv\.46\(4\)\.External Links:ISSN 0360\-0300,[Link](https://doi.org/10.1145/2523813),[Document](https://dx.doi.org/10.1145/2523813)Cited by:[§3](https://arxiv.org/html/2611.31457#S3.p1.1)\.
- \[15\]J\. Gao, K\. Sun, J\. Huang, K\. Van Koevering, S\. Ji, H\. Huang, W\. Shi, Z\. Lu, Z\. Xiao, D\. Khashabi,et al\.\(2026\)How to interpret agent behavior\.arXiv preprint arXiv:2605\.13625\.Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p4.1)\.
- \[16\]A\. Gupta, Y\. U\. Ciftci, and S\. Bansal\(2025\)Unsupervised discovery of failure taxonomies from deployment logs\.arXiv preprint arXiv:2506\.06570\.Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p4.1),[§1](https://arxiv.org/html/2611.31457#S1.p2.1)\.
- \[17\]Y\. Hu, N\. Jiang, S\. Liang, A\. Dey, Y\. Wu, and L\. Tan\(2026\)Analyzing and mitigating cost\-inefficient behaviors in coding agents\.arXiv preprint arXiv:2609\.30725\.Cited by:[§1](https://arxiv.org/html/2611.31457#S1.p1.1)\.
- \[18\]T\. Kwa, B\. West, J\. Becker, A\. Deng, K\. Garcia, M\. Hasin, S\. Jawhar, M\. Kinniment, N\. Rush, S\. Von Arx,et al\.\(2026\)Measuring ai ability to complete long software tasks\.Advances in Neural Information Processing Systems38,pp\. 92213–92266\.Cited by:[§1](https://arxiv.org/html/2611.31457#S1.p1.1)\.
- \[19\]M\. S\. Lam, J\. Teoh, J\. A\. Landay, J\. Heer, and M\. S\. Bernstein\(2024\)Concept induction: analyzing unstructured text with high\-level concepts using lloom\.InProceedings of the 2024 CHI Conference on Human Factors in Computing Systems,pp\. 1–28\.Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p1.1)\.
- \[20\]Laminar AI Team\(2026\)Laminar: open\-source observability for ai agents\.Note:[https://laminar\.sh/](https://laminar.sh/)Accessed: 2026\-09\-03Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p3.1),[§1](https://arxiv.org/html/2611.31457#S1.p2.1)\.
- \[21\]S\. Lloyd\(1982\)Least squares quantization in pcm\.IEEE Transactions on Information Theory28\(2\),pp\. 129–137\.External Links:[Document](https://dx.doi.org/10.1109/TIT.1982.1056489)Cited by:[§2\.3](https://arxiv.org/html/2611.31457#S2.SS3.SSS0.Px1.p1.1)\.
- \[22\]K\. Meng, V\. Huang, J\. Steinhardt, and S\. Schwettmann\(2025\)Introducing docent\.Note:[https://transluce\.org/docent/blog/introducing\-docent](https://transluce.org/docent/blog/introducing-docent)Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p3.1),[§1](https://arxiv.org/html/2611.31457#S1.p2.1)\.
- \[23\]C\. M\. Pham, A\. Hoyle, S\. Sun, P\. Resnik, and M\. Iyyer\(2024\)TopicGPT: a prompt\-based topic modeling framework\.InProceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies \(Volume 1: Long Papers\),K\. Duh, H\. Gomez, and S\. Bethard \(Eds\.\),Mexico City, Mexico,pp\. 2956–2984\.External Links:[Link](https://aclanthology.org/2024.naacl-long.164/),[Document](https://dx.doi.org/10.18653/v1/2024.naacl-long.164)Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p1.1)\.
- \[24\]S\. Sen, A\. Kasturi, E\. Lumer, A\. Gulati, and V\. K\. Subbiah\(2026\)Is grep all you need? how agent harnesses reshape agentic search\.arXiv preprint arXiv:2605\.15184\.Cited by:[§2\.4](https://arxiv.org/html/2611.31457#S2.SS4.p1.1)\.
- \[25\]C\. Shah, R\. White, R\. Andersen, G\. Buscher, S\. Counts, S\. Das, A\. Montazer, S\. Manivannan, J\. Neville, N\. Rangan, T\. Safavi, S\. Suri, M\. Wan, L\. Wang, and L\. Yang\(2025\)Using large language models to generate, validate, and apply user intent taxonomies\.ACM Trans\. Web19\(3\)\.External Links:ISSN 1559\-1131,[Link](https://doi.org/10.1145/3732294),[Document](https://dx.doi.org/10.1145/3732294)Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p1.1)\.
- \[26\]A\. Tamkin, M\. McCain, K\. Handa, E\. Durmus, L\. Lovitt, A\. Rathi, S\. Huang, A\. Mountfield, J\. Hong, S\. Ritchie,et al\.\(2024\)Clio: privacy\-preserving insights into real\-world ai use\.arXiv preprint arXiv:2412\.13678\.Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p1.1),[§1](https://arxiv.org/html/2611.31457#S1.p2.1)\.
- \[27\]B\. Tannyhill\(2026\)Introducing langsmith engine\(Website\)LangChain\.Note:[https://www\.langchain\.com/blog/introducing\-langsmith\-engine](https://www.langchain.com/blog/introducing-langsmith-engine)External Links:[Link](https://www.langchain.com/blog/introducing-langsmith-engine)Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p3.1),[§1](https://arxiv.org/html/2611.31457#S1.p2.1)\.
- \[28\]R\. Tyagi, D\. Ivanova, A\. Conmy, and N\. Nanda\(2026\)Global CoT analysis: initial attempts to uncover patterns across many chains of thought\.Note:AI Alignment ForumExternal Links:[Link](https://www.alignmentforum.org/posts/q9g9zuudd3Pvw2cbj/global-cot-analysis-initial-attempts-to-uncover-patterns-1)Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p1.1)\.
- \[29\]W\. Van Der Aalst, A\. Adriansyah, A\. K\. A\. De Medeiros, F\. Arcieri, T\. Baier, T\. Blickle, J\. C\. Bose, P\. Van Den Brand, R\. Brandtjen, J\. Buijs,et al\.\(2011\)Process mining manifesto\.InInternational conference on business process management,pp\. 169–194\.Cited by:[§2\.3](https://arxiv.org/html/2611.31457#S2.SS3.SSS0.Px2.p3.1)\.
- \[30\]W\. M\. Van der Aalst and A\. J\. Weijters\(2004\)Process mining: a research agenda\.Computers in industry53\(3\),pp\. 231–244\.Cited by:[§2\.3](https://arxiv.org/html/2611.31457#S2.SS3.SSS0.Px2.p3.1)\.
- \[31\]M\. Wan, T\. Safavi, S\. K\. Jauhar, Y\. Kim, S\. Counts, J\. Neville, S\. Suri, C\. Shah, R\. W\. White, L\. Yang,et al\.\(2024\)Tnt\-llm: text mining at scale with large language models\.InProceedings of the 30th ACM SIGKDD conference on knowledge discovery and data mining,pp\. 5836–5847\.Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p1.1)\.
- \[32\]Z\. Wang, J\. Shang, and R\. Zhong\(2023\)Goal\-driven explainable clustering via language descriptions\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing,H\. Bouamor, J\. Pino, and K\. Bali \(Eds\.\),Singapore,pp\. 10626–10649\.External Links:[Link](https://aclanthology.org/2023.emnlp-main.657/),[Document](https://dx.doi.org/10.18653/v1/2023.emnlp-main.657)Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p1.1)\.
- \[33\]J\. Yang, C\. Jimenez, A\. Wettig, K\. Lieret, S\. Yao, K\. Narasimhan, and O\. Press\(2024\)Swe\-agent: agent\-computer interfaces enable automated software engineering\.Advances in Neural Information Processing Systems37,pp\. 50528–50652\.Cited by:[§2\.4](https://arxiv.org/html/2611.31457#S2.SS4.p1.1)\.
- \[34\]Q\. Zeng, Y\. Bai, Z\. Tan, S\. Feng, Z\. Liang, Z\. Zhang, and M\. Jiang\(2024\)Chain\-of\-layer: iteratively prompting large language models for taxonomy induction from limited examples\.InProceedings of the 33rd ACM international conference on information and knowledge management,pp\. 3093–3102\.Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p1.1)\.
- \[35\]R\. Zhong, C\. Snell, D\. Klein, and J\. Steinhardt\(2022\)Describing differences between text distributions with natural language\.InProceedings of the 39th International Conference on Machine Learning,K\. Chaudhuri, S\. Jegelka, L\. Song, C\. Szepesvari, G\. Niu, and S\. Sabato \(Eds\.\),Proceedings of Machine Learning Research, Vol\.162,pp\. 27099–27116\.External Links:[Link](https://proceedings.mlr.press/v162/zhong22a.html)Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p1.1)\.
- \[36\]R\. Zhong, H\. Wang, D\. Klein, and J\. Steinhardt\(2024\)Explaining datasets in words: statistical models with natural language parameters\.Advances in Neural Information Processing Systems37,pp\. 79350–79380\.Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p1.1)\.
- \[37\]R\. Zhong, P\. Zhang, S\. Li, J\. Ahn, D\. Klein, and J\. Steinhardt\(2023\)Goal driven discovery of distributional differences via language descriptions\.Advances in Neural Information Processing Systems36,pp\. 40204–40237\.Cited by:[Appendix I](https://arxiv.org/html/2611.31457#A9.p1.1)\.
- \[38\]K\. Zhu, Z\. Liu, B\. Li, M\. Tian, Y\. Yang, J\. Zhang, P\. Han, Q\. Xie, F\. Cui, W\. Zhang,et al\.\(2025\)Where llm agents fail and how they can learn from failures\.arXiv preprint arXiv:2509\.25370\.Cited by:[§1](https://arxiv.org/html/2611.31457#S1.p1.1)\.
## Appendix Contents
## Appendix AThe Web UI
The web application is a client of the server described above, not a layer of its own: it is a single\-page React app that reads and writes through the same HTTP API that backs the MCP tool surface, and only provides an easy interface to Taxi for visualization purposes\. Below is a description of its components\.
#### Projects sidebar and home screen\.
A collapsible sidebar lists the user’s own projects and those shared with them, each with its step count, alongside actions to create a project \(name, data source, and for LangSmith sources, an optional run\-name filter\) and to open the data source manager\.
Figure 3:Home screen and projects sidebar\.
#### Data sources\.
Each data source appears as a card with its counts, its current data version, and controls to sync, embed, or pause and resume a running job\. Creating one selects a loader and fills in that loader’s form: a drop zone for a trajectories JSON export; dataset, split, messages column, row range, and role filter for Hugging Face; workspace, project, metadata\-key filters, and a limit for LangSmith\.
Figure 4:Data\-source manager and loader forms\.
#### Project workspace\.
A project opens on three tabs over the same corpus\.*Taxonomy*shows the published tree at its current version – clusters with their sizes and shares, expandable into children – and, upon selecting a cluster, its description, a per\-day distribution of its steps \(togglable between absolute counts and share of all steps that day, and draggable to filter to a date range\), and the trajectories it draws from\. A sync control sits next to the data\-source version and the version the project has ingested through, so the gap between them is visible before anyone acts on the tree\.
Figure 5:Taxonomy tab: published tree and cluster detail\.
#### Trajectories\.
The second tab is a paginated list of trajectories with their step counts and the data version they arrived in; selecting one renders its steps in order, each with its role, action, and observation, and links back to the run in LangSmith where the source provides one\. This is the view that makes the taxonomy checkable: a cluster is only as good as the steps it turns out to contain\.
Figure 6:Trajectory inspector\.
#### Job progress\.
Long\-running work is not hidden behind a spinner\. Wherever a pipeline is running – ingest, embedding, clustering, labeling, publishing – the UI renders its stages in order, marks which one is live, and shows that stage’s progress with a count and an estimate, driven by the job event stream over server\-sent events; an event log can be expanded for the raw sequence\. The UI holds no progress state of its own: every element here is a rendering of rows and events in the database, which is why a reload mid\-pipeline loses nothing\.
Figure 7:Job progress, rendered from the job event stream\.
## Appendix BMCP Tools and Skills
Taxi is designed on top of reusable MCP services and skill documents\. Then clients, like the web UI \(Appendix[A](https://arxiv.org/html/2611.31457#A1)\), can be built on top of them, with loose coupling\.
Anything a user can do with the web UI – querying the corpus, refining a taxonomy, publishing an evaluator, running an insight – is similarly reachable by a coding agent or any other external caller\. That shared surface has two layers:
- •*MCP tools*– the primitives: scoped SQL, vocabulary extraction, draft\-taxonomy operators, and publish/run hooks for evaluators and insights\.
- •*Skills*– methodology documents that tell an agent*how*to use those primitives for a particular job\.
Capability lives in the documents, not in separate subsystems; adding a new interpretive procedure means writing a skill over the existing tools rather than growing a privileged code path the UI alone can see\.
#### Discovery\.
A session begins withtaxi\_init, which lists every skill under\.claude/skills/\*/SKILL\.mdas\{name, description, whenToUse, resource\}\. The agent readswhenToUseto decide relevance, then fetches only the matchingtaxi://skills/\{name\}resource for the full body\. Skills are never duplicated into the server: editing aSKILL\.mdupdates both the catalog and the body on the next call\. The point of this indirection is budget – an agent loads methodology only when the task warrants it, rather than carrying every procedure in every turn\.
#### Session scope\.
Almost every tool requires an active scope, set before the agent can use them\. Scopes are either projects or data sources:
- •set\_project– scopes to a project’s filters and its latest taxonomy, so the pre\-filtered views of Appendix[J](https://arxiv.org/html/2611.31457#A10)\(project\_trajectories,project\_steps,project\_clusters,project\_step\_assignments\) apply automatically\.
- •set\_data\_sources– the lighter path for raw corpora: the same trajectory and step views resolve, but the cluster views are empty because there is no taxonomy without a project\.
list\_projects,list\_data\_sources, andcreate\_projectdiscover or open the target before either is called\.
#### Primitive surface\.
The tools fall into five groups over that scope\.
Scope
- •taxi\_init– list available skills as\{name, description, whenToUse, resource\}\. Call this before non\-trivial work; fetch the resource URI only for a skill whosewhenToUsematches the task\.
- •list\_projects– return the caller’s projects \(id, name\)\. Use beforeset\_projectwhen the target is not already known\.
- •set\_project– activate one project: its filters and latest taxonomy apply to every subsequent query\.
- •list\_data\_sources– return every data source \(id, name, counts, version\)\.
- •set\_data\_sources– activate one or more data sources \(or"\*"for all\) without a project; cluster views stay empty\.
- •create\_project– create a project on a named data source and set it as the active scope in one step\.
Corpus access
- •execute\_sql– run a read\-onlySELECTagainst the database\. It is provided access to the scopedproject\_\*views \(SET TRANSACTION READ ONLY, capped at 200 rows\)\. This is one of the main workhorses of Taxi, sitting at the base of every textual search into the data\.
- •get\_taxonomy\_context– return the published cluster tree for the active project: each cluster’s label, member count, and description\. Call at the start of any session where taxonomy structure matters\.
- •get\_tfidf\_terms– top TF\-IDF terms from step action text in the active scope\. The default asks for hundreds of terms because the vocabulary that distinguishes behaviors lives in the long tail\.
- •sample\_steps– draw a random sample of raw step texts, optionally restricted to members of a specific cluster\.
Draft taxonomy\.Construction is session\-local until publish: operators mutate an in\-memory draft, and nothing is visible to other clients untilpublish\_taxonomycommits it\.
- •cluster\_by\_embedding– run k\-means over step embeddings and add the resulting clusters to the draft\. Withparent\_id, only steps that already route to that draft cluster are clustered \(a scoped split\); without it, clustering is at the root\. Returns representative samples plus cohesion and nearest\-neighbor stats for triage\. Large scopes are subsampled by default for the k\-means input; at publish, every step is still routed by nearest centroid\.
- •cluster\_by\_regex– add regex clusters at root or under a parent\. Each cluster is a pattern matched case\-insensitively against step action text; at each tree level, the first matching sibling wins\.
- •cluster\_by\_jev– add semantic categories defined by a label and description at root or under a parent\. The configured Jev\-style decision model receives the step action as state and one Choice question over the sibling definitions, plus “None of these\.” A low\-confidence or none\-of\-these answer leaves the step at its parent\. The tool previews the resulting assignments on a trajectory sample before publish\.
- •construct\_by\_jev– \(experimental\) discover a Jev level, or optionally a tree, at root or under a parent, as a background job \(Appendix[D](https://arxiv.org/html/2611.31457#A4)\)\.
- •apply\_jev\_construction– report that job’s progress and, once it completes, write the constructed categories into the draft\.
- •get\_draft\_taxonomy– show the current draft tree \(labels, patterns, parent links\) before further edits or publish\.
- •clear\_draft– discard the draft entirely\.
- •draft\_from\_taxonomy– copy a published taxonomy version into the draft for redesign\.
- •add\_draft\_cluster– insert one cluster without replacing its siblings\. A pattern creates a regex cluster; without one, it follows the sibling level’s routing kind\.
- •remove\_draft\_cluster– delete a cluster and all of its descendants\.
- •update\_draft\_cluster– set or change a cluster’s label and description \(the description defines what the steps do, not how the cluster was produced\)\.
- •split\_draft\_cluster– replace one cluster with regex children when the split is cleanly describable by patterns, or Jev children when it is cleanly describable by semantic definitions; for an embedding split, callcluster\_by\_embeddingwith that cluster asparent\_idinstead\.
- •merge\_draft\_clusters– merge sibling clusters into one \(embedding centroids combine by size\-weighted mean, regex patterns are OR\-combined, and Jev descriptions are combined into a new semantic definition\)\. Use afterfind\_similar\_clustersflags near\-duplicates\.
- •find\_similar\_clusters– report pairs of embedding clusters whose centroids are very close \(default cosine≥0\.9\\geq 0\.9\), including across different branches – the signal that one theme has fragmented\.
- •sample\_cluster\_representatives– sample members of a draft cluster in one of three modes:centroid\(closest to the centroid\),edge\(farthest from the centroid\), ordiverse\.
- •cluster\_terms– distinctive TF\-IDF terms for one draft cluster versus the whole corpus; an aid for naming and for spotting when two clusters are the same theme\.
- •publish\_taxonomy– commit the draft atomically as a new taxonomy version, assign all project steps by tree\-walk routing, clear the draft, and return a job id whose assignment runs in the background\.
The construction loop these tools support – propose, examine, revise, name as a set, publish – is the taxonomizer skill’s subject \(Appendix[C](https://arxiv.org/html/2611.31457#A3)\)\.
Evaluators\(Appendix[E](https://arxiv.org/html/2611.31457#A5)\)
- •publish\_eval– validate a complete evaluator YAML document and upsert it into Postgres byname\(re\-publishing the same name replaces it in place\)\. No project scope required; the YAML itself declares project or data\-source scope\.
- •run\_eval– run every published evaluator, or one by name, optionally narrowed to a recency window \(7d,24h, or a date\)\. Returns one structured record per evaluator \(status, filtered/success/failure counts, discrimination\-check detail\)\.
Insights\(Appendix[F](https://arxiv.org/html/2611.31457#A6)\)
- •publish\_insight– validate and upsert an insight definition YAML by name \(data sources to cover, optional Slack channel, free\-form focus instructions\)\.
- •list\_insights– list enabled published insight definitions\.
- •get\_insight\_context– afterset\_data\_sourceson exactly one source, return and activate that source’s analysis window: a bootstrap week on a first run, everything since the last saved report otherwise, or an up\-to\-date verdict that means skip\. Scoped views then return only that window\.
- •save\_insight\_report– persist one \(insight, data source, version\) Markdown report plus a short summary a digest can quote\. Idempotent: the first save for that triple wins\.
- •post\_insight\_reports– take every report id saved in the current run and post exactly one consolidated Slack digest; full per\-source reports stay in Taxi\.
#### Skills\.
Five skill documents currently sit on that surface\. Each is a system prompt for one job: what to call, in what order, what not to invent, and how to present the result\. The same MCP tools serve all of them\.
- •taxi\-agent– interactive exploration and debugging in the web chat \(and similar harnesses\)\. Usesexecute\_sqlandget\_taxonomy\_contextonly; answers must be grounded in query results\.
- •taxonomizer– agentic taxonomy construction \(Section[2\.3](https://arxiv.org/html/2611.31457#S2.SS3)\)\. Drives the full draft surface: orient on the corpus \(counts, TF\-IDF, raw samples\), propose partitions, examine against evidence, revise \(split / merge / deepen\), name as a set, then publish\. Detailed in Appendix[C](https://arxiv.org/html/2611.31457#A3)\.
- •taxi\-eval– author, validate, publish, and run YAML evaluators\. Encodes how to turn a bug fix’s diff into an observable signature, choose between SQL and a Jev\-style semantic criterion, and decide when to prefer data\-source scope over project scope\. Detailed in Appendix[E](https://arxiv.org/html/2611.31457#A5)\.
- •taxi\-insights– scheduled insight runner in two modes: investigate exactly one data source andsave\_insight\_report, or compose a digest from that run’s saved summaries andpost\_insight\_reports\. Refuses local file or schema repair; stops on a required MCP failure\. Detailed in Appendix[F](https://arxiv.org/html/2611.31457#A6)\.
- •slack\-agent– system prompt for the Slack bot that answers @mentions\. Each message is a fresh invocation, so it mustset\_projectevery turn; uses the same SQL/taxonomy tools astaxi\-agent; must end with afinal\_answer; formats in Slack mrkdwn \(no UI link syntax\)\.
## Appendix CTaxonomy Construction in Detail
A taxonomy is a named tree of step clusters – one lens on a trajectory corpus, not a replacement for SQL over the same steps \(Section[2\.1](https://arxiv.org/html/2611.31457#S2.SS1)\)\. It serves two jobs at once: a birdseye overview of what agents actually do, and a stepping stone that gives a human or an agent enough grasp of the dataset’s shape to write targeted queries afterward\. Both construction paths below produce the same artifact shape \(a versioned tree in Postgres\); they differ in*where*summarization of “what behaviors exist” happens, and in how much human or agent judgment sits between a clustering call and a published label\.
#### Shared Taxonomy Tree\.
Embedding\-based, regex\-based, and Jev\-based clusters can sit in the same tree, including as siblings of different parents, but at any one level all siblings share a single routing method\.
- •*Embedding clusters\.*k\-means over step embeddings proposes a partition; the geometry itself is the summarization of the corpus\. Coverage at an embedding level is exhaustive among steps that have embeddings: every such step is assigned to the nearest centroid\. Large scopes may subsample to compute centroids \(reported explicitly in the tool response\); at publish, every embedded step is still routed by nearest centroid regardless\.
- •*Regex clusters\.*Each cluster is a case\-insensitive pattern over step action text\. Summarization is a separate, upstream step – currently TF\-IDF over the corpus \(get\_tfidf\_terms\), with room for other vocabulary methods – after which an agent \(or a human\) designs the patterns\. Coverage need not be exhaustive: a step matching no sibling pattern is simply left unclustered at that level, and that is fine\.
- •*Jev clusters\.*Each sibling is defined by a short label and a natural\-language description\. The configured Jev\-style decision model receives the step’s action text and a Choice question whose options are those sibling definitions plus “None of these\.” The chosen sibling wins only when the returned confidence clears a configurable threshold\. Thus these levels express semantic categories directly, without requiring a centroid or a lexical pattern\.
The asymmetry matters for method choice\. Much of what an agent emits is templated – tool names, argument shapes, stereotyped observations, recurring error strings – and for that material a literal pattern names a behavior exactly where a semantic neighborhood only approximates it\. Embedding proximity is useful when the categories must first be discovered from the corpus\. Once categories can be stated as definitions, Jev routing can assign variable wording directly against those definitions\. The taxonomizer is free to use any operator per region of the tree rather than once for the whole corpus\. In particular, a regex parent can cheaply pre\-filter a Jev child level, so only steps that reach that branch require a model decision\.
#### Routing\.
After publish, every step is assigned by walking the tree from the root:
- •Regex siblings: first matching pattern wins \(order among siblings is significant\)\.
- •Embedding siblings: nearest centroid wins\.
- •Jev siblings: the model chooses among labels and descriptions; “None of these” or a low\-confidence answer produces no match at that level\.
- •A step that matches a parent but no child stays at the parent\.
- •A step matching nothing at the root is unassigned\.
The same tree\-walk is what later sync uses: new steps are routed through the published version without rebuilding it \(Section[2\.1](https://arxiv.org/html/2611.31457#S2.SS1)\)\.
#### Simple flat clustering\.
The default non\-agentic pipeline is one k\-means pass over the project’s embedded steps, followed by an LLM label for each cluster from a small sample near its centroid, then an atomic publish\. There is no examination loop between proposal and name – the clustering call*is*the partition, and each label is written in isolation, blind to sibling clusters\. Despite that myopia it is often useful in practice; most of the production cases in Appendix[G](https://arxiv.org/html/2611.31457#A7)came from flat k\-means taxonomies\. It remains available as a first pass and as a baseline the agentic path is meant to improve on\.
#### Agentic construction\.
The taxonomizer skill \(Appendix[B](https://arxiv.org/html/2611.31457#A2)\) treats every clustering call as a*proposal to examine*, not a result to accept\. There is no scoring rubric to optimize: the tools return evidence \(samples, distinctive terms, cohesion and nearest\-cluster statistics\), and the agent decides what is a coherent cluster, what is a grab\-bag, and what is one theme split in two\. The loop, summarized in Figure[2](https://arxiv.org/html/2611.31457#S2.F2), is:
1. 1\.Orient\.Corpus size via SQL; hundreds of TF\-IDF terms \(distinguishing vocabulary lives well down the ranking\); raw step samples\. Get a feel for the behaviors present before imposing structure\. On a redesign, load the published tree first \(get\_taxonomy\_context/draft\_from\_taxonomy\)\.
2. 2\.Propose\.Cluster at a granularity that matches the thematic richness just seen – enough clusters to separate real behaviors, not a deliberately smallkkto patch later\. A rough root range is often 8–30 depending on corpus size and diversity;kkis adjusted up \(split\) and down \(merge\) as evidence arrives\. Embedding, regex, and Jev operators all accept aparent\_id, so a propose step can be scoped to one cluster’s members\. Jev categories are most natural once exploration or embedding clusters have revealed definitions worth routing against\.
3. 3\.Examine\.For each cluster, read centroid samples \(the core\), edge samples \(farthest from the centroid – where a grab\-bag shows itself\), diverse samples, distinctivecluster\_terms, and the triage numberscohesionandnearest\_sim\. A handful of centroid samples plus top terms is not enough evidence to name or accept from\.
4. 4\.Revise\.Confirm against the text before acting: - •Low cohesion, or edge samples that read like a different activity than the core→\\rightarrowgrab\-bag; split withcluster\_by\_embedding\(parent\_id=…\)or, if the split is cleanly describable,split\_draft\_clusterwith regex patterns or Jev descriptions\. - •Highnearest\_sim, orfind\_similar\_clusterspairing two clusters whose terms and samples overlap→\\rightarrowone theme fragmented;merge\_draft\_clusters\. - •A dominant cluster holding a large share of the corpus→\\rightarrowusually several behaviors collapsed; go deeper\. - •An empty cluster, or a child that covers almost all of its parent→\\rightarrowremove it / do not nest there\. Sub\-cluster only where distinct sub\-behaviors earn a deeper level, not to hit a depth\.
5. 5\.Name as a set\.Settle membership before naming\. Name from centroid samples and distinctive terms, never from a handful of stray examples\. Then read all names together: consistent abstraction level, parallel form, clear contrast\. Prefer behavioral names \(“Searching AWS for Lambda functions”\) over structural ones \(“step contains serverless JSON”\)\. Thedescriptionstored on a cluster is a 1–3 sentence definition of what those steps are or do – never a process log \(“split from cluster X”\)\. For a Jev cluster, this text is also the routing criterion and must be sufficient to decide membership\.
6. 6\.Publish\.publish\_taxonomycommits the draft atomically as a new taxonomy version, assigns all project steps by the tree\-walk above, and clears the draft\. Before calling it, present the proposed tree – name, size, routing rule per cluster – and say explicitly what was left broad, dropped, or unembedded\. Prefer clean coverage over forced coverage: a smaller set of strong, distinct clusters beats padding the tree to cover every last step\.
#### Draft vs\. published\.
While the loop runs, the tree is session\-local draft state \(Appendix[B](https://arxiv.org/html/2611.31457#A2)\)\. Other clients and the project’s published taxonomy are untouched\. Publish is the only transition that makes the tree durable, and it is all\-or\-nothing: version row, cluster rows, and step assignments land in one Postgres transaction, or none do \(Appendix[J](https://arxiv.org/html/2611.31457#A10)\)\. Prior versions remain readable; sync of newly ingested steps always targets the version the project currently uses\.
#### Relation to the flat pipeline\.
The agentic path reuses the same operators and the same publish/routing machinery as the flat pipeline\. What it adds is everything between propose and name: scoped re\-clustering, examination against evidence, merge and split, and naming with visibility into sibling clusters\. The flat pipeline is the propose\-and\-name fragment of Figure[2](https://arxiv.org/html/2611.31457#S2.F2)with the middle boxes removed; the taxonomizer skill is the full loop, written as methodology over the MCP surface rather than as a second clustering subsystem\.
## Appendix DExperimental: Jev\-Based Taxonomy Construction
Jev routing \(Appendix[C](https://arxiv.org/html/2611.31457#A3)\) assigns steps to categories that are already defined\.construct\_by\_jevdiscovers those categories from the corpus, the waycluster\_by\_embeddingdiscovers embedding clusters\. The division of labor is strict: the decision model makes every decision – which category a step belongs to, and whether the level should change – and an LLM is called only to write a category once a change has been decided\. Figure[8](https://arxiv.org/html/2611.31457#A4.F8)summarizes the procedure\.
Figure 8:Jev\-based construction of one taxonomy level\. Each batch is assigned, judged, and edited; once the level settles, every step is re\-assigned to the finished categories\.#### Online construction\.
The scope’s steps stream in a fixed random order, a batch at a time\. Each new step is assigned once, with the same question routing uses, to one of the current categories or to “new behavior\.” After each batch, the decision model answers yes/no questions over all the steps seen so far:
- •*Fits?*Does a category’s description fit its member steps?
- •*Mixed?*Does a category hold more than one behavior?
- •*Overlap?*Do the members of two categories fit both equally well? Candidate pairs come from asking which other category is closest to each category, and from how often two categories competed for the same steps\.
- •*Uncovered?*Do the uncategorized steps share a behavior no category covers?
The answers’ probabilities rank the candidates, and only the top few edits per batch are made\. An LLM then writes each one: a rewritten description, the parts of a split, a merged category, or a new category\. The LLM sees the other categories, so it does not recreate one that exists\. A split is kept only if the decision model can tell its parts apart, and only the steps an edit touched are assigned again\.
#### No target count\.
The number of categories is not fixed in advance\. Two share bounds, relative to the steps seen, frame the level: a category above the upper bound is split ahead of others, and no merge may create one; a category below the lower bound is dropped\. Within those bounds, the count is whatever the decisions above produce\. An optional ceiling is available\.
#### Stopping and the final pass\.
The level is*settled*once its size has held for a few batches and the last batch created no category, so construction usually reads only part of the sample\. Every step read is then assigned once more to the finished categories, so the sizes and examples reported are what publishing will produce; a category left empty is dropped\.
#### Optional hierarchy\.
With a depth above one, every category with enough member steps gets children, constructed the same way over its own members, with share bounds relative to its own steps\. A node that keeps fewer than two children stays a leaf, so depth and width come from the data\. The result is written into the draft as ordinary Jev clusters, routed and published like any other level\. Construction runs as a background job and checkpoints after every batch, so an interrupted job resumes where it stopped\.
## Appendix EEvaluators
An evaluator \(Section[2\.5](https://arxiv.org/html/2611.31457#S2.SS5)\) is a single YAML document\. Once published it is stored verbatim in theevaluatorstable \(Appendix[J](https://arxiv.org/html/2611.31457#A10)\) and can be run from any client without a local checkout\. The full field set:
name:required\-tool\-called
project:my\-project
tickets:TAXI\-123
description:\>
Thetoolrequired\_tool\(\)mustbeusedineverytrajectoryofthecloudagent\.
failure\_examples:
\-past\-bad\-run\-1
\-past\-bad\-run\-2
filter\_sql:\|
SELECTidFROMproject\_trajectories
WHEREmeta\-\>\>’run\_name’=’cloud\-agent’
success\_sql:\|
SELECTDISTINCTs\.trajectory\_idASid
FROMproject\_stepss
WHEREs\.tool\_calls::text~\*’required\_tool’
Exactly one ofprojectordata\_source/data\_sourcesis required, and the choice decides what the evaluator can see\. A project scope reads the filtered views of Section[2\.1](https://arxiv.org/html/2611.31457#S2.SS1), so the project’s own filters and its latest taxonomy apply andproject\_clustersandproject\_step\_assignmentsare meaningful; a data\-source scope queries the underlying trajectory and step tables, where those two cluster views are empty\.
Evaluation then proceeds in three stages, each narrowing the previous: scope, then filter, then criterion\. Iffilter\_sqlis set, the scope is intersected with the ids it returns, and an empty filtered set yields skip rather than pass, since nothing was actually tested\. The filtered set is intersected with the criterion, of which exactly one form may be given\. SQL criteria retain the existing behavior: withsuccess\_sqlthe evaluator passes iff every filtered trajectory is a hit, and withfailure\_sqlit passes iff none is\. Asuccessorfailuremapping may instead contain ajevyes/no question\. By default the decision model sees all actions in a trajectory in order; withper: step, it sees one action at a time and the trajectory is a hit when any step reaches the probability threshold\. An optionalstatequery can select other text or structured state while preserving the same trajectory identifiers\. SQL filters and state queries therefore continue to perform cheap exact narrowing before any model call\. Results are reported asn\_success/n\_filteredtogether with a failure count\. There are four possible outcomes: success, fail, skip, and error\. Skip means the filtered set was empty, and error is reserved for problems with the definition rather than the corpus — an unresolvable or ambiguous scope name, SQL that does not execute, or a failed discrimination check\. Error is deliberately distinct from fail because the two demand different responses: a fail is a finding about the agents, an error is a bug in the check\.
Ids listed underfailure\_examplesare verified*before*the live corpus result\. Each must exist in scope, match the filter SQL, and be classified as a failure by the criterion\. If any does not hold, the evaluator reports an error even when the current corpus would otherwise pass\.
The evaluator is authored as a YAML document, and a durable copy lives in Postgres\. Publishing takes either the complete YAML text through thepublish\_evaltool, validates it, and upserts byname, so re\-publishing the same name replaces that evaluator in place\.run\_evalexecutes every published evaluator, or one by name, optionally within a recency window, and returns one structured record per evaluator carrying its status, its filtered, success and failure counts, and any error or discrimination\-check detail\. These reports are created as scheduled reports that keep a per\-data\-source watermark – the ingest version last evaluated – so it considers only trajectories that arrived past it, and advances it once the run finishes\.
Beyond hand\-written invariants, the same format supports turning engineering history into checks, and that methodology is documented in the evaluator skill document\. Candidates come from reading a commit log or closed tickets broadly\. Then the agent is tasked with translating that into an*observable signature*, i\.e\., something we can query over trajectories\.
## Appendix FInsight Reports
An insight is a recurring investigation of one or more data sources, defined in YAML, published to Postgres, and run by an agent on a schedule\. A definition names the insight, the data sources it covers \(a list, or"\*"for every source\), and the channel its digest is posted to; anything else in the document is carried through to the investigating agent as context\. As with evaluators, publishing upserts by name\.
There are three modes covering three cases: if no report already exists for this data source, a bootstrap run runs over last week’s trajectories; any other case gets everything from the data version its last report covered, unless there was no new data ingested, which immediately receives an up\-to\-date verdict and stops\. Each investigation saves one Markdown report plus a short summary that a Slack digest can quote\.
Findings are ordered by how much they would surprise a competent reviewer, and a corpus’s own outcome tallies are background rather than the headline unless the rate itself is the surprise\. Agent*behavior*is the subject — strategy, tool choice and sequencing, instruction following, wasted or repeated action, recovery, stopping behavior — rather than a catalog of the tasks or artifacts the agents happened to touch\. When a batch is small enough to read end to end it is read end to end rather than sampled, and every number must come from a query run in that same investigation\.
## Appendix GReal\-World Case Studies
Below is a short anecdotal description of real\-world cases our users found during organic use of our system\.
Table 2:Five production cases in which taxonomy clustering, rather than an outcome label, surfaced a behavioral failure that would otherwise have gone unnoticed\.Broken tool regex\.A cluster of steps whose observations all resembled a failed search turned out, upon inspection, to share a specific and surprising cause: a downstream tool’s pattern matching silently treated regex patterns as a non\-match, so the agent was truthfully told “no matches found” for searches that should have succeeded\. No individual run looked like a bug from the outside – the agent adapted, tried alternatives, and often still completed its task – so nothing about task outcome flagged the issue\. The cluster made the*frequency and uniformity*of this specific failure shape visible in a way no single trace could\.
Scope violation\.A cluster grouped steps whose content fell outside a task’s explicitly stated boundary \(investigating only a designated, user\-controlled input\) instead of a generalized exploration the agent was never authorized to perform\. Individually, each such run still “worked” by task\-completion standards; the cluster is what made the systematic boundary violation legible across many otherwise\-unrelated runs\.
Redundant lookup\.A cluster captured many independent runs each re\-deriving the same essentially static piece of infrastructure information from scratch, rather than treating it as known\. None of these runs failed, and none was individually expensive – the cost was in the aggregate, thousands of repeated, avoidable steps, visible only once grouped\.
Missing dependency\.A cluster of steps shared a distinctive failure\-then\-abandon shape: the agent assumed a tool was available in its execution environment, attempted to use it repeatedly, failed each time, and eventually gave up on that line of work\. The cluster’s consistency across runs pointed directly at an environment configuration gap rather than a per\-task modeling failure\.
Expired credential\.A cluster of near\-identical authentication failures, all citing the same external service, made a revoked API credential visible as a single incident affecting many runs simultaneously, rather than as scattered, seemingly unrelated failures that might otherwise have been investigated \(and worked around\) independently, run by run\.
## Appendix HTaxi on SastBench
This appendix walks through one corpus with Taxi, layer by layer: querying, vocabulary, taxonomies, state machines, decision\-model questions, and analyses built on top of the discretized runs\. Each part shows what a capability surfaced, and every claim was checked against its obvious confounds before being kept\.
#### Setup\.
Four agents — Claude Sonnet 4\.5, Gemini 3 Pro, Gemini 2\.5 Pro and DeepSeek R1 — triage the same 2,737 static\-analysis findings of SastBench\[[13](https://arxiv.org/html/2611.31457#bib.bib18)\]with the same ReAct harness \(read, grep, symbol lookup, a vulnerability\-pattern tool, at most 20 steps\), deciding whether each finding is a true or a false positive\. That gives 10,515 runs and 87,140 steps, loaded as one corpus with a view per agent\. 89% of the findings are false positives\. Step text is each step’s reasoning and tool call; the tool’s output is kept as the step’s observation\.
### H\.1Querying the corpus
Errors are shared, not idiosyncratic\.Grouping runs by finding in SQL, 574 findings are judged wrong by all four agents, against about 120 if each agent erred independently at its own rate\.
One repository behind half of the shared errors\.A text search over the file paths the agents read places 265 of those 574 findings \(46%\) in a single PHP repository, which contributes 803 of the 2,737 findings across 42 commits\. Its findings are labeled true positive 5% of the time, yet the agents call 58% of them vulnerable, and the code their verdicts cite reads as genuinely exploitable \(request parameters concatenated into SQL, class names instantiated from request input\)\. Either labels in that repository deserve another look, or the benchmark labels issues that predate a commit as false positives\. Excluding it, errors remain shared: 309 findings wrong for all four agents against about 65 expected \(4\.8×\\times\)\.
Tool\-failure profiles\.Pattern matching over observations separates the agents: Claude’s failures are mostly empty searches \(51%\), the Gemini models mostly hit file\-size limits \(38–39%\) and missing paths \(28–35%\), and Gemini 3 Pro and DeepSeek R1 produce malformed tool calls \(303 and 245 steps\)\. After a failure, Claude and Gemini 2\.5 Pro usually adjust the same call \(55% and 62%\), DeepSeek R1 usually switches tools \(60%\), and almost none retry the identical call\.
### H\.2Vocabulary
TF\-IDF over each agent’s steps, against the other three, gives each agent a recognizable style:
Table 3:Distinctive terms per agent \(TF\-IDF, each agent’s steps against the other three\)\.
### H\.3Two taxonomies, two lenses
Behavior, from textual regularity\.A regex taxonomy built from the regularity of the text splits steps by tool, then by what the agent says it is doing \(looking for protections, tracing data flow, reading the flagged code, recovering from an error\), what the arguments target \(test files, templates, configuration, third\-party code; input sources, sinks, definitions\), and how the verdict is justified \(input not attacker\-controlled, framework protects, missing sanitization, and so on\): 29 leaves, with no embeddings\.
Subject, from embeddings\.A mixed tree keeps the regex roots by tool and puts k\-means clusters under each, named by an agent from samples and distinctive terms \(36 leaves\)\. Its clusters split by what the code is about \(CSRF forms, SQL queries, redirects, container configuration, vendored front\-end libraries\) rather than by what the agent does: the same steps, a different lens\.
Some subjects fail for every agent\.Grouping runs by the subject cluster of their verdict step \(Table[4](https://arxiv.org/html/2611.31457#A8.T4)\), front\-end XSS and integrity findings and network/TLS findings are judged correctly about a quarter of the time by all four agents, while code identified as third\-party or non\-production is judged correctly almost always\. The gap is not a few commits \(each subject spans 134–209 commits; dropping its three largest moves accuracy by at most 0\.02\) and not the base rate \(5–18% true positives in every subject\)\. Front\-end verdicts say “vulnerable” 88% of the time\.
Table 4:Accuracy by the subject of the verdict step \(mixed taxonomy\), all agents, excluding the repository of Appendix[H\.1](https://arxiv.org/html/2611.31457#A8.SS1)\.
### H\.4State machines
Discretized runs read as state machines\. Figure[9](https://arxiv.org/html/2611.31457#A8.F9)shows each agent over eight behaviors, with the transitions distinctive to that agent highlighted: Gemini 3 Pro loops between locating code and reading code other than the flagged location; Gemini 2\.5 Pro chains error recovery into more error recovery and often concludes right after reading the flagged code; Claude and DeepSeek consult the vulnerability\-pattern tool just before concluding, which the Gemini models rarely do\. Figures[10](https://arxiv.org/html/2611.31457#A8.F10)–[13](https://arxiv.org/html/2611.31457#A8.F13)show the same at 29 behaviors, with every behavior and transition colored by the accuracy of the runs that pass through it\. Drawing only transitions between consecutive behaviors loses little at this granularity: on held\-out runs, knowing the current behavior cuts the uncertainty about the next one from about 4\.2 to 3\.3 bits per step, and knowing the one before adds at most 0\.02\.
Figure 9:State machines of the four agents over eight behaviors\. Each box gives the share of the agent’s steps in that behavior \(also its shade\) and, where above 0\.15, the probability that the next step stays in it\. Edges are transitions with probability at least 0\.15, width by probability; orange ones are at least 0\.12 more likely for that agent than for the other three\.Figure 10:Claude Sonnet 4\.5 over 29 behaviors\. Each circle holds a behavior \(with its tool: read, search or verdict\), the runs that pass through it and their accuracy, which also sets its color \(red to green\)\. Edges are transitions seen at least 80 times plus each behavior’s strongest way in and out, colored by the accuracy of the runs that make them, width by count\.Figure 11:Gemini 3 Pro over 29 behaviors, as in Figure[10](https://arxiv.org/html/2611.31457#A8.F10)\.Figure 12:Gemini 2\.5 Pro over 29 behaviors, as in Figure[10](https://arxiv.org/html/2611.31457#A8.F10)\.Figure 13:DeepSeek R1 over 29 behaviors, as in Figure[10](https://arxiv.org/html/2611.31457#A8.F10)\.
### H\.5Decision\-model questions
Some questions are semantic and polar, which keyword rules cannot capture: a pattern for “input is sanitized” also matches “htmlspecialcharsonly prevents XSS, not…”\. A Jev\-style decision model answers them directly\.
Verdicts without an attacker path are half as precise\.Asked of 1,546 sampled “vulnerable” verdicts — does the agent show how attacker\-controlled input reaches the flagged code, or only that a risky pattern is present? — verdicts that show a path are right 18% of the time \(95% interval 15–22%, resampling commits\), and those that do not, 9% \(7–12%\)\. Claude and Gemini 2\.5 Pro show a path in half their “vulnerable” verdicts, DeepSeek R1 and Gemini 3 Pro less often \(38% and 43%\)\. Even with a path, “vulnerable” calls are mostly wrong here\.
Most investigations are silent until the verdict\.Asked at two points of 1,200 sampled runs \(after the first observation, and 60% of the way through\) whether the reasoning leans toward a vulnerability, toward a false positive, or neither yet \(Table[5](https://arxiv.org/html/2611.31457#A8.T5)\): Claude states a position mid\-run in half its runs, Gemini 3 Pro in one in six, its “vulnerable” verdicts appearing only at the end\. A position, once stated, is the final verdict 90% of the time\.
Table 5:What the agent’s reasoning leans toward 60% of the way through a run \(decision model, 300 runs per agent\)\.Both studies together took about 6,300 decision\-model calls, a few minutes each at the provider’s rate limit\.
### H\.6Beyond the taxonomy
The task shapes the investigation more than the model\.Comparing the behavior profiles of runs \(cosine similarity of their behavior histograms\), two different models on the same finding are twice as similar \(0\.58\) as one model on two different findings \(0\.29\); unrelated runs score 0\.23\.
Models that disagree investigated the same way\.Within each finding, pairs of models that reach opposite verdicts are less similar in behavior than pairs that agree by only 0\.022 \(95% interval 0\.009–0\.034\), a fraction of the gap between task and model\. On one container finding, Claude and DeepSeek read the same three compose files in the same order and query the same pattern; from the same evidence one calls an unrestricted database volume a vulnerability, the other a false positive\. With errors shared across models \(Appendix[H\.1](https://arxiv.org/html/2611.31457#A8.SS1)\), disagreement and error live in the judgment, not in the investigation\.
### H\.7Anomalies as a spotlight
Outliers in the discretized runs are not failures in themselves, but they point at subsets worth reading, and some of those are fixable\.
- •Unusual runs go to unusual places\.The runs least likely under each agent’s own transition model read test files, templates and configuration; most end in a correct “non\-production code” dismissal\.
- •Failed lookups are evidence, but not for every agent\.Rare transitions into a verdict lead to verdicts issued right after a failed read or search \(4–14% of verdicts\)\. Claude, DeepSeek and Gemini 2\.5 Pro then call “vulnerable” less \(38% against 47–50%\), and only on false\-positive findings \(47% to 36%; unchanged on true positives\), using the empty result as evidence\. Gemini 3 Pro does not adjust, even after its own malformed calls\.
- •Runs that hit the step limit are symbol hunts\.They over\-represent symbol\-definition searches 2\.1–2\.9×\\timesand repeat a behavior longer; for Gemini 2\.5 Pro a fifth of their steps are error recovery\. The fix suggested is in the symbol\-lookup tool, not the model\.
### H\.8Building a new taxonomy with a decision model
The construction of Appendix[D](https://arxiv.org/html/2611.31457#A4)builds taxonomies Taxi was not given\. Here it builds one of the agents’ local mistakes\. A decision model scored 11,760 sampled steps for a local mistake, seeing each step with the earlier calls and their outputs, the tool’s output and the agent’s next reasoning \(paths, file names and languages masked\); construction then built categories over the 594 highest\-scoring steps, with guidance never to use the vulnerability class, repository or language\. Its 28 categories group into four families \(Table[6](https://arxiv.org/html/2611.31457#A8.T6)\), for example a failed search followed by “I have completed the analysis and confirmed the vulnerability”, or “no security patterns found” read as “this confirms the absence of integrity verification”\. Scoring took 11,760 decision\-model calls \(under 5 minutes\) and construction about 8 minutes\.
Table 6:Local mistakes per 1,000 steps, from the decision\-model\-built taxonomy\. Lower bounds: only the highest\-scoring 5% of steps was categorized\.
## Appendix IRelated Work
Agent trajectory clustering and its taxonomization have been studied extensively\. For example,\[[31](https://arxiv.org/html/2611.31457#bib.bib27),[19](https://arxiv.org/html/2611.31457#bib.bib34),[26](https://arxiv.org/html/2611.31457#bib.bib26)\], and others cluster conversations and create hierarchical taxonomies with natural language descriptions\. Their focus was on taxonomizing trajectories as a whole, while our work operates at the granularity of steps, closer to\[[28](https://arxiv.org/html/2611.31457#bib.bib33)\], though they worked on a single input prompt at a time\. That work belongs to the field of interpretability: it targeted chains\-of\-thought of simple problem solving tasks in order to understand the various methods a model takes in solving the problem\. More broadly, LLMs have been used to induce topics and goal\-driven clusters described in natural language\[[23](https://arxiv.org/html/2611.31457#bib.bib11),[32](https://arxiv.org/html/2611.31457#bib.bib12)\], to generate and validate taxonomies with humans in the loop\[[25](https://arxiv.org/html/2611.31457#bib.bib9)\], and to organize a given set of entities into a taxonomy\[[34](https://arxiv.org/html/2611.31457#bib.bib10)\]\. A related line of work uses LLMs to describe in natural language how two text corpora differ\[[35](https://arxiv.org/html/2611.31457#bib.bib1),[37](https://arxiv.org/html/2611.31457#bib.bib2)\], and to fit statistical models, including clustering, whose parameters are natural\-language predicates rather than embedding centroids\[[36](https://arxiv.org/html/2611.31457#bib.bib3)\]\.
TypeSafe AI introduced Jev as a “System One” model for decisions inside software\[[1](https://arxiv.org/html/2611.31457#bib.bib19)\]\. Rather than produce free\-form text, it accepts application state and typed questions and returns choices, scores, or yes/no probabilities\. The interface is intended for classification, routing, filtering, and gating at substantially lower cost than generative\-model calls\. Taxi adopts the interface rather than depending on the original model: throughout this report, Jev\-style includes any compatible decision model capable of answering these bounded questions\.
Over the years, many agent debugging tools have emerged\. Laminar\[[20](https://arxiv.org/html/2611.31457#bib.bib20)\]and Docent\[[22](https://arxiv.org/html/2611.31457#bib.bib21)\]are open source frameworks that use LLMs to identify problems in agentic traces\. Recently, LangSmith announced its own LangSmith Engine\[[27](https://arxiv.org/html/2611.31457#bib.bib17)\], similarly addressing this problem\. All of them now include querying abilities to varying degrees of expressivity\. None of them uses clustering as a central step; they use it post hoc, to aggregateresults onlyfor better human digestibility\.
Another related line of work focuses on agent taxonomies\[[9](https://arxiv.org/html/2611.31457#bib.bib29),[15](https://arxiv.org/html/2611.31457#bib.bib31),[5](https://arxiv.org/html/2611.31457#bib.bib30)\]\. Most of them are constructed manually or at least semi\-manually\. They are designed to capture behavior on a global level, not tailored to the specific dataset explored\. Cemri et al\[[9](https://arxiv.org/html/2611.31457#bib.bib29)\]focus on multi\-agent failures\. Gao et al\[[15](https://arxiv.org/html/2611.31457#bib.bib31)\]focus on agent actions in general, closer in spirit to us, rather than just failures\. Ashury\-Tahan et al\[[5](https://arxiv.org/html/2611.31457#bib.bib30)\]focus on failures, and they propose ErrorAtlas, a closed taxonomy, and ErrorMap, a taxonomy construction pipeline based on LLMs\. Closer to Taxi in that the taxonomy is tailored to the data, AdaMAST\[[8](https://arxiv.org/html/2611.31457#bib.bib7)\]uses LLMs to induce a failure taxonomy from an agent system’s own execution traces, and Gupta et al\[[16](https://arxiv.org/html/2611.31457#bib.bib8)\]discover failure taxonomies from robot deployment logs by having a vision\-language model explain each failed trajectory and clustering the explanations\. Both target failures rather than behavior in general, and both rely on a model reading the trajectories, whereas Taxi’s embedding and regex paths assign steps to clusters without any model call\.
It will be interesting in the future to absorb such a taxonomy into Taxi, as a set ofpre\-defined constructs, that Taxi will then modify or refine for the specific use case\.
## Appendix JAdvanced: Database Schema
Every table below lives in the single database described in Section[2\.1](https://arxiv.org/html/2611.31457#S2.SS1);pk/fkmark primary/foreign keys, andjsonb/vectormark JSON and vector columns respectively\. Foreign keys not marked otherwise cascade on delete\.
#### Corpus \(data\-source scope\)\.
data\_sourcesid\(uuid, pk\),name,source\_type,source\_spec\(jsonb\),n\_trajectories,n\_steps,data\_version,eval\_data\_version,embed\_model,embed\_state\(jsonb\),created\_at,updated\_at\. One row per ingested corpus;data\_version/eval\_data\_versionare the watermarks every incremental consumer \(embedding, evaluators\) reads against\.
trajectoriesid\(text, pk\),data\_source\_id\(fk→\\todata\_sources\),n\_steps,meta\(jsonb\),source\_key,created\_at\. One row per agent run;metacarries source\-specific fields \(e\.g\. an external run id, the ingest data version it arrived under\);source\_keyis the stable external identifier incremental re\-sync deduplicates against\.
stepsid\(bigint, pk\),trajectory\_id\(fk→\\totrajectories\),step\_index,role,action,observation,tool\_calls\(jsonb\),system\_prompt,message\_extras\(jsonb\),summary\_text,embedding\(vector\)\. One row per message/tool\-call/observation within a trajectory;embeddingis what embedding\-based clustering and semantic search consume\.
#### Taxonomy \(project scope\)\.
projectsid\(uuid, pk\),name,owner,data\_source\_id\(fk→\\todata\_sources, restrict\),created\_at,taxonomy\_settings\(jsonb\),pinned\_hints\(jsonb\),filters\(jsonb\),synced\_data\_version, plus a cached\-mean\-length validity pair\. One row per analysis project;filtersdefines the project’s view\-level scope \(Section[2\.1](https://arxiv.org/html/2611.31457#S2.SS1)\);synced\_data\_versionis the data version that was last synced to the project\.
project\_collaboratorsproject\_id\(pk, fk→\\toprojects\),email\(pk\),created\_at\. Per\-project access list\.
taxonomy\_versionsid\(int, pk\),project\_id\(fk→\\toprojects\),version,created\_at,k,pipeline\_id,settings\(jsonb\)\. One immutable row per published taxonomy snapshot\.
clustersid\(int, pk\),taxonomy\_version\_id\(fk→\\totaxonomy\_versions\),cluster\_id,label,description,kind\(regex, embedding, or jev\),n\_members,mean\_chars,centroid\(vector\),pattern\(text, nullable regex\),parent\_cluster\_id\(fk→\\toclusters, nullable\),lft,rgt\. One row per cluster in a taxonomy version’s tree;lft/rgtare a nested\-set encoding, so “member of clusterCC” is a single range check rather than a recursive query\.
step\_assignmentstaxonomy\_version\_id\(pk, fk\),trajectory\_id\(pk, fk\),step\_index\(pk\),cluster\_id\. Composite\-keyed step→\\tocluster mapping for one taxonomy version\.
taxonomy\_pipeline\_stateproject\_id\(fk\),pipeline\_id,labels\(int array\),cluster\_labels\(jsonb\),silhouette\_state\(jsonb\),centroids\(jsonb\),step\_refs\(jsonb\),created\_at\. Transient, resumable staging state for an in\-flight construction pipeline – thekk\-selection search checkpoint and incremental per\-cluster labeling progress\.
#### Chat\.
conversationsid\(uuid, pk\),project\_id\(fk→\\toprojects\),title,created\_at,updated\_at\.
messagesid\(uuid, pk\),conversation\_id\(fk→\\toconversations\),role,content,created\_at,metadata\(jsonb\)\.
Chat history backing the interactive corpus\-debugging surfaces\.
#### Job engine\.
jobsid\(uuid, pk\),data\_source\_id\(fk, nullable\),project\_id\(fk, nullable\),kind,status,phase,meta\(jsonb\),paused,pipeline\_id,pipeline\_superseded,retry\_count,started\_at,updated\_at,finished\_at\. One row per long\-running operation\.
job\_eventsid\(bigint, pk\),job\_id\(fk→\\tojobs\),seq,kind,message,payload\(jsonb\),ts\. The append\-only, ordered event log per job \(phase/progress/thinking/tool/error events\) backing streaming progress and after\-the\-fact inspection\.
#### Evaluators and insights\.
evaluatorsid\(text, pk\),yaml,enabled,created\_at,updated\_at\. One row per published evaluator;idis the evaluator name andyamlis the complete definition described in Section[2\.5](https://arxiv.org/html/2611.31457#S2.SS5)\.
insight\_definitionsid\(text, pk\),yaml,enabled,created\_at,updated\_at\. Same shape asevaluators, for insight definitions\.
insight\_reportsid\(uuid, pk\),insight\_id\(fk→\\toinsight\_definitions\),data\_source\_id\(fk\),data\_version,trajectory\_count,report\_markdown,summary\_markdown,slack\_message\_ts,slack\_thread\_posted,created\_at\.
insight\_reports\_dry\_runa schema\-identical shadow ofinsight\_reportsthat dry\-run report generation writes to instead, for tests that don’t touch production reports or their watermark\.
#### Shared, scoped read views\.
Rather than querying the tables above directly, every consumer is encouraged to read through four views, re\-created at startup and parameterized per request by session\-local settings \(which project or data source\(s\) are in scope, the project’s own filters, and, for an insight run, its analysis\-window bounds\):project\_trajectories\(id, n\_steps, meta, created\_at, data\_source\_id\),project\_steps\(id, trajectory\_id, step\_index, role, action, observation, tool\_calls, system\_prompt, summary\_text, data\_source\_id\),project\_clusters\(cluster\_id, label, description, kind, pattern, n\_members, mean\_chars, lft, rgt, parent\_cluster\_id\), andproject\_step\_assignments\(trajectory\_id, step\_index, cluster\_id\)\. This is an instance of the shared\-backbone design in Section[2\.1](https://arxiv.org/html/2611.31457#S2.SS1): scoping logic is written once, rather than once per consumer\.相似文章
通过行为轨迹解读编码智能体
该论文分析了来自 125 种智能体配置和 117 个模型的 143,209 条执行轨迹,结果表明,解题率相近的智能体在代码探索、编辑和验证方式上存在显著差异;并且无需借助结果特征,仅凭行为画像就能识别智能体所使用的技术栈。论文同时发布了一个确定性解析器、完整的分析流水线以及一个带标注的轨迹子集。
使用Grounded Theory进行大规模智能体行为分析
AutoTraceGT自动化了在智能体轨迹上进行的扎根理论分析,以构建行为分类体系,有效恢复人类失败模式注释并改进下游预测任务。
监控和审计自主AI代理运行时行为的最佳工具:生产环境中哪些真正有效?
一位从业者分享了在生产环境中监控自主AI代理的挑战和工具,涵盖了运行时提示注入检测、带推理轨迹的工具调用审计、行为漂移检测以及多代理授权,同时测试了Arize Phoenix、Protect AI Guardian、Metoro、Alice、Asqav和Microsoft Agent Governance Toolkit等工具。
TMAS:通过多智能体协同扩展测试时计算
TMAS 引入了一种多智能体框架,通过结构化协作与分层记忆系统扩展测试时计算,从而增强大语言模型的推理能力。该方法采用专用智能体、跨轨迹信息流以及混合奖励强化学习,有效提升了模型在复杂推理基准上的迭代扩展性能与稳定性。
Lines and Ladders:一种面向大规模零售价格分类法的上下文感知多智能体框架
这篇来自沃尔玛全球技术的arXiv论文提出了一种上下文感知的多智能体框架,可自动构建大规模零售目录的“Lines and Ladders”定价分类法,在生产环境中取得了优异的F1值和精确率。