← Latest papers
💻 computer science

GraphFlow: An Architecture for Formally Verifiable Visual Workflows Enabling Reliable Agentic AI Automation

GraphFlow is a visual workflow architecture that enhances the reliability of agentic AI automation by treating diagrams as executable specifications with formal contracts for proof-checked compilation and runtime enforcement, as demonstrated by a pilot achieving a 97.08% completion rate across clinical sites.

Original authors: Drewry H. Morris V (MedFlow, Inc.), Luis Valles (MedFlow, Inc.), Reza Hosseini Ghomi (MedFlow, Inc.)

Published 2026-05-15
📖 6 min read🧠 Deep dive

Original authors: Drewry H. Morris V (MedFlow, Inc.), Luis Valles (MedFlow, Inc.), Reza Hosseini Ghomi (MedFlow, Inc.)

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "House of Cards" AI

Imagine you are building a complex house of cards. If you have 10 steps to build it, and each step is 90% likely to go right (a very good success rate), the whole house only has a 35% chance of standing up at the end. Why? Because one tiny mistake in step 3 knocks over step 4, which knocks over step 5, and so on.

This is the problem with current "Agentic AI" (AI that tries to do tasks on its own). When an AI tries to do a long, complicated job (like managing patient care or processing a refund), it makes small errors at every step. These errors pile up, and the whole process fails.

Current tools can remember what happened (so you can see where it broke), but they can't guarantee the plan was good before it started. It's like letting a student write a math exam without checking their work first.

The Solution: GraphFlow

GraphFlow is a new system designed to stop these errors from piling up. Instead of letting the AI "wing it" and make up a plan on the fly, GraphFlow forces the AI to work from a pre-approved blueprint.

Think of it like the difference between a freestyle jazz musician and a conductor of an orchestra.

  • Old Way (Freestyle): The AI hears a request ("Fix this patient's billing") and tries to improvise a solution. It might pick the wrong instrument or play the wrong note.
  • GraphFlow Way (Conductor): The AI looks at a sheet of music (a visual diagram) that has already been checked by experts. The AI's job is just to pick the right sheet music, hand it to the orchestra, and tell them to play. The AI doesn't invent the music; it just executes the plan.

How It Works: The Three Pillars

1. The Blueprint (Visual Diagrams)

In GraphFlow, the "plan" is a visual diagram. It's a flowchart that shows every step, who does it, and what happens if things go wrong.

  • The Analogy: Imagine a recipe card. In the old days, a chef might guess the ingredients. In GraphFlow, the recipe is written down, checked by a nutritionist, and locked in a vault. The AI is just the sous-chef following the card.
  • The Magic: Because the plan is a single, fixed diagram, the AI can't accidentally change the steps or get confused.

2. The "Swimlanes" (Who is Responsible?)

The diagrams are drawn with "swimlanes" (like lanes in a swimming pool). Each lane represents a different type of worker:

  • The Computer Lane: Things the machine does perfectly and quickly.
  • The Human Lane: Things that need a doctor or a manager to look at and say "Yes."
  • The Outside World Lane: Things the computer has to ask a different system (like a hospital database) to do.

Why this matters: The system knows exactly where the "trust" ends. If the computer makes a mistake, it's a bug. If the outside world (like a hospital database) fails, the system knows it's not the AI's fault, but it records it so humans can fix it. It stops the AI from blaming itself for things it can't control.

3. The "Proof" (Checking the Math)

Before a diagram is allowed to be used, it goes through a "proof check."

  • The Analogy: Imagine a bridge. Before cars drive on it, engineers run a simulation to prove the math holds up. GraphFlow does this for AI workflows.
  • The Result: If the diagram has a logical hole (like a loop that never ends, or a step that requires data it doesn't have), the system rejects it before it ever runs. This is called the "Verified Core."

The Two Modes of Operation

The paper describes two ways GraphFlow runs:

  1. The "Verified Core" (The Strict Mode):

    • This is for simple, straight-line plans (no loops).
    • It gets a "seal of approval" from a computer proof-checker.
    • Analogy: Like a certified flight path. The plane must follow this exact route because the math proves it's safe.
  2. The "Durable Runtime" (The Real-World Mode):

    • This is for complex, messy, real-life jobs that might need to wait, retry, or loop back.
    • It doesn't have a mathematical proof, but it has a black box recorder (like an airplane's flight recorder).
    • Analogy: If a flight hits turbulence, the recorder saves every second of data. If the plane crashes, you can replay the tape to see exactly what happened. GraphFlow does this for AI: if a step fails, it records it, tries again, or stops safely so humans can fix it.

What Happened in the Real World? (The Pilot)

The authors tested an early version of this system in three clinics over a year.

  • The Stats: They ran 8,728 patient workflows.
  • The Result: 97% of them finished successfully.
  • The Lesson: The few times it failed, it wasn't because the AI got confused or the plan was bad. It failed because of external problems (like a doctor lacking permission to access a specific file, or a database being down).
  • The Takeaway: GraphFlow successfully isolated these failures. It didn't let the errors spread; it stopped the process, logged the error, and let humans fix the specific boundary issue.

What GraphFlow Does Not Do

It is important to know what this paper doesn't claim:

  • It does not claim the AI is perfect at making medical decisions.
  • It does not claim the system is bug-free yet (the "proof-checking" part is still being built).
  • It does not claim that the pilot version had the full "proof" system active. The pilot proved the idea works (diagrams as plans, recording failures), but the "math proof" part is the next step.

Summary

GraphFlow is a safety harness for AI. It stops AI from making up plans on the fly. Instead, it forces AI to use pre-checked, visual blueprints. It clearly separates what the computer does, what humans do, and what outside systems do. If something goes wrong, it doesn't crash the whole system; it stops, records the error, and lets a human step in.

It turns AI automation from a "wild guess" into a "reliable, auditable engineering process."

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →