Automated Safety Analysis for Agentic Workflows

Yanju Chen, Ying Li, Bosi Zhang, Hanzhi Liu, Hongbo Wen +3 more
11/21/2026
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

LLM applications are increasingly built as agentic workflows: programs that combine model calls, external tools, and control logic to act autonomously on a user's behalf. Because these workflows execute real-world actions, logical flaws in how a workflow is wired can cause severe harm in deployed systems.

Show full abstract

Unlike prompt injections or malformed API calls, these workflow bugs stem from defects in the workflow's design, yet no existing tool can statically validate workflow logic across frameworks prior to deployment. We present Apsis, a static safety analyzer that detects workflow bugs before deployment. To operate across frameworks, Apsis lifts framework-specific code into a common intermediate representation (IR). This IR models a workflow as a semantic graph of steps, data dependencies, and shared state, while annotating each component with behavioral properties such as whether an input is mandatory or how a shared channel merges concurrent writes. Building on this representation, we introduce a bug description language that formalizes recurring classes of agentic failures as declarative patterns over the IR. By matching these patterns against the IR, Apsis detects structural and behavioral flaws and pinpoints the exact step responsible for each bug. To evaluate Apsis, we construct, to our knowledge, the first corpus of workflow bugs, distilled from real-world reports across 13 widely used frameworks. On a reproducible benchmark suite drawn from this corpus, Apsis detects workflow bugs with 91% precision and 84% recall, and uncovers 36 previously unknown bugs in real-world workflows.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2026automated,
  title  = {Automated Safety Analysis for Agentic Workflows},
  author = {Yanju Chen and Ying Li and Bosi Zhang and Hanzhi Liu and Hongbo Wen and Yufei Ding and Yuan Tian and Yu Feng},
  year   = {2026},
  eprint = {2611.28469},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.28469v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.28469.svg)](https://codeofpaper.com/paper/2611.28469)

Discussion