TRANSMISSION // 2611.28469v1

Apsis checks AI workflows for design flaws before launch

Source published

Apsis translates agent workflows into a shared graph and checks for wiring and behavior bugs. Its benchmark results are promising, but the analysis targets only statically detectable flaws in supported frameworks.

AI-generated conceptual illustration for Apsis checks AI workflows for design flaws before launch
AI-generated conceptual illustration; not documentary evidence.

An AI agent can fail because its workflow is wired incorrectly, even when its model and tools behave as expected. Apsis is a static analyzer designed to catch some such design flaws before a workflow runs. In the authors’ tests, it found bugs in a curated benchmark and surfaced additional issues in open-source projects; it is not a general guarantee of safety.

Agentic AI systems do more than answer questions. They may call tools, pass information between steps, and change data through connected services. That makes the workflow—the plan specifying which steps run, what information they receive, and how they hand off control—an important source of risk. A loop without an exit could keep consuming resources; parallel steps could overwrite shared data; or an action could run without the intended approval.

A paper by Yanju Chen and colleagues introduces Apsis, a tool designed to find this kind of workflow bug before deployment. The researchers distinguish these design flaws from prompt injection or malformed API calls: the problem lies in how developers have connected or configured the workflow. Their aim is to check workflow logic across different agent frameworks, rather than examining only an individual model’s behavior.

Turning different workflows into a shared map

Agent frameworks represent workflows in different ways, from code-based builders to visual editors. Apsis uses a framework-specific front end to translate each workflow into a common intermediate representation: a graph of steps, connections, and shared data. The graph also records behavioral details, such as whether an input is required, how concurrent updates to shared state are combined, and what role or capabilities a step has.

The analyzer matches patterns describing known bug types against that representation. Its catalog covers six broad categories: stalled or runaway workflows, broken data handoffs, misrouted steps, corrupted shared state, incorrectly connected subworkflows, and violations involving roles or human approvals. A report identifies the step or connection associated with a detected issue.

Some defects are invisible in a basic diagram. Two steps might write to the same shared channel, for example, but whether that causes a lost update depends on how the framework handles concurrent writes. In the authors’ classification of the collected reports, roughly three-quarters of the workflow bugs were behavioral rather than structural—meaning their detection depended on step-level or state-handling semantics, not topology alone.

Testing against reported bugs

The researchers examined 861 issue reports from 13 open-source workflow frameworks. Under their criteria, 783 were classified as workflow bugs; reports attributed to configuration, the environment, or model quality were excluded. They then selected reproducible cases with minimal workflow examples and maintainer-accepted fixes to build a benchmark: 135 buggy workflows paired with their fixed versions, across the six frameworks supported by Apsis. The full set of reports did not all become benchmark cases.

On this benchmark, Apsis achieved 91% precision and 84% recall. Precision measures how often its warnings corresponded to a benchmark bug; recall measures how many benchmark bugs it detected. The paper reports that Apsis exceeded the strongest baseline by 0.18 in F1, a combined measure of precision and recall. Its behavioral checks detected 46 bugs missed by a version limited to structural patterns, raising recall from 50% to 84%. Median analysis time was 0.7 seconds per workflow.

The team also ran Apsis on workflows from more than 40 actively maintained open-source projects. It surfaced 36 previously unknown bugs across 21 repositories. According to the paper, maintainers fixed 33 and confirmed three. These results show that the tool identified issues beyond the benchmark, but do not establish how frequently such flaws occur across all deployed AI systems.

What the results do—and do not—show

Apsis targets workflow logic that can be represented in its graph and rule catalog. Its reported evaluation does not assess general model correctness or establish that a workflow will behave safely in every situation. The analysis also depends on translating each framework’s behavior correctly into the shared representation. The authors note that frameworks evolve and new frameworks require their own front ends; when some connections cannot be resolved at build time, Apsis conservatively treats them as unsafe.

The benchmark consists of reported bugs that met selection criteria, including reproducibility and an accepted fix. That provides a testable basis for evaluation, but it is not a random sample of all workflows or failures. The precision and recall figures therefore describe performance on this curated suite, not a universal success rate in production.

The authors identify the extended version as accepted at ICSE 2027. They also report that the analyzer and benchmark are available. For developers, Apsis offers a way to check a defined set of structural and behavioral design flaws before launch; it does not replace other forms of testing or operational safeguards.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • How AI workflow inputs can become attack paths

    Shared method: Both papers use static workflow analysis to identify relevant execution paths or structural conditions: Apsis lifts workflows into a semantic IR and matches bug patterns, while JAW uses path-sensitive analysis to find feasible agent-invocation paths. This is a bounded methodological overlap, not evidence that they detect the same defects: Apsis targets design-logic bugs, whereas JAW investigates attacker-driven hijacking and also uses dynamic prompt-provenance and capability analyses. Their reported evaluations are not directly comparable.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.28469v1 — Original paper

      Excerpt reference: static/papers/2611.28469v1.md:122-196
      Basis: Paper text
      Source SHA-256: 46c8f23988117acb171dab3ee8da0604d4ed2610e9d0ebae2a0aae4b5d9a1b4a

    • 2605.11229v2 — Original paper

      Excerpt reference: static/papers/2605.11229v2.md:179-248
      Basis: Paper text
      Source SHA-256: fb77c9d791ef51ede913ecc6f809df31a961fc80203188a682fbd84155a23096

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.