[
  {
    "startMs": 12640,
    "text": "Hi, everyone. My name is Evan Kormos. I've been delivering, designing, building software for twenty years, the last, uh, fifteen in enterprise financial services. I am a player coach at Coinbase, and we're here today to talk about trusting agents and policy-driven workflows."
  },
  {
    "startMs": 38920,
    "text": "So let's start with the policy, and it's pretty boring. Um,  I'm gonna go over here for my notes. So our starting point center around-- centers around the policy, and this sets the rules for how work gets done within the organization and including especially risk and compliance."
  },
  {
    "startMs": 60760,
    "text": "Think of policy as the original institutional intent or the original system prompt. So ideally, we have this written down. Um, it's a little bit boring, so stick with me."
  },
  {
    "startMs": 73840,
    "text": "Um, using language like must, may, and should. And the-- again, these help define the rules and decisions about how the system operates in the organization. Separate from policy, we have the actual running system."
  },
  {
    "startMs": 92300,
    "text": "So the first thing we're gonna do is separate these two, uh, these two, both the build state and the run state at two different moments in time. So typically, we're either defining or chaining-- changing our policy, but the s- the system is constantly running, and it's constantly moving and changing."
  },
  {
    "startMs": 113740,
    "text": "So we could then sort of imagine a compilation event that... Oops, sorry, I'm skipping ahead. It's constantly changing. So"
  },
  {
    "startMs": 126240,
    "text": "i-it's evolving quickly with these product-driven changes. So everything is expected to still be roughly bound by the policy, but ultimately, um, we separate this from the run state and the build state."
  },
  {
    "startMs": 140280,
    "text": "So inside the system, what does it look like? We have a familiar model, if we have any enterprise, uh, folks in the, in the room here. Um, people, process, and technology. But where really do agents fit into this mold?"
  },
  {
    "startMs": 157880,
    "text": "So I see them as an operational model cutting across all three. They work with people, execute parts of the process themselves, and they use and are made up of technology."
  },
  {
    "startMs": 173020,
    "text": "So for our talk today, we're gonna be focusing here where agents meet process."
  },
  {
    "startMs": 179920,
    "text": "What work we give them, what boundaries we set, and how we build trust in their outputs."
  },
  {
    "startMs": 192040,
    "text": "So let's dive into your workflow. And it's high level and seems basic, but if you haven't, there are good reasons to map this out. So maybe a change has to be approved before it goes live, or a customer goes through-- has to go through verification before their account is opened. We expect work to flow in a specific and gated direction."
  },
  {
    "startMs": 220020,
    "text": "So I believe it makes-- it-- agents make it worth revisiting what we can do in parallel."
  },
  {
    "startMs": 229020,
    "text": "So previously, some work used to cost too much or be too complex to coordinate in this way. But now we can run independent reviews alongside each other, bring the results together, but keep the required checks in place."
  },
  {
    "startMs": 245760,
    "text": "So this is a directed acyclic graph or a DAG. It is a way to represent this workflow or process, the steps, the dependencies for a flow that moves forward without looping back on itself."
  },
  {
    "startMs": 260579,
    "text": "Apache Airflow, if you're familiar, is an example of open source software that represents workflows, their dependencies as DAGs in Python code."
  },
  {
    "startMs": 280120,
    "text": "So this Python code, this-- these DAGs can be used to define and manage a number of policy-driven processes, like for example, commercial lending."
  },
  {
    "startMs": 293600,
    "text": "We could also use a DAG to represent the workflow to list a token on the exchange in a specific region, if you're into that."
  },
  {
    "startMs": 303760,
    "text": "Or we could use a DAG to represent a regulated flow of delivering software, which is a hot topic. And one we'll spend a little bit of time on, I think that we've seen a lot of adoption within agents, within software delivery, and ultimately, we're looking to leverage that same efficiency and scale in other areas of the business and close that-- the, the, uh, adoption gap."
  },
  {
    "startMs": 331240,
    "text": "So let's stick with the software delivery example for a little bit."
  },
  {
    "startMs": 337140,
    "text": "What happens inside one of these nodes of the process? And I'll give you a hint. It's a loop."
  },
  {
    "startMs": 351920,
    "text": "Um, oversimplified, but we have a basic version of what's happening within the... Let's, let's say this is the code review process, right? So we're gonna essentially do a number of steps, and essentially once we realize the work-- we recognize that the work is good enough, we're gonna allow it to pass on to the next step, and that's essentially the function of the code review node."
  },
  {
    "startMs": 379972,
    "text": "The work doesn't always, uh, end up okay, so sometimes we have to take the feedback from the code review and iterate on it, um, until the work is good enough to pass."
  },
  {
    "startMs": 396472,
    "text": "So this is a representation of a directed cyclic graph, or DCG."
  },
  {
    "startMs": 402812,
    "text": "So as far as open source software, uh, something like LangChain, LangGraph would be s- what I would, um, say is helpful to manage the state of DCGs."
  },
  {
    "startMs": 416172,
    "text": "Um, and this is an oversimplif-- an oversimplification. These graphs can be very complex."
  },
  {
    "startMs": 424532,
    "text": "So zooming back out, the inner flow, um, of the node, we have people and agents working together. On the outer flow, we have a policy boundary."
  },
  {
    "startMs": 436832,
    "text": "But not everything goes to plan, um, so we have to handle exception flows. We don't want the work to get stuff-- stuck, and we don't wanna design for every edge case either. Um, the exception flows will monitor and see kind of what happens if you're shipping code that gets canceled or doesn't meet security standards. That's something you should want to know about."
  },
  {
    "startMs": 463032,
    "text": "Volume shifts across the flow once we start to add agents into the mix, and we've seen this with software delivery, and we'll see it in other processes as we bring agents into those processes as well, where now all of a sudden if you're reviewing code faster, you need to design it quicker, or you need to do the security scan that's q- uh, faster. So we see the volume shift across the flow."
  },
  {
    "startMs": 488792,
    "text": "And this is where it's really important that we have visibility into the process overall from a, a metric standpoint. Because as we start to supercharge and, and parallelize and add more efficiency to the process, we start to develop more and more bottlenecks. And so the operational visibility of the process is extremely important, much more important than the authoring and the building of your workflow tool. Um, so we wanna visualize the process."
  },
  {
    "startMs": 518712,
    "text": "So we wanna add parallel capacity by still keeping the controls, and so this is where we'll add more additional capacity."
  },
  {
    "startMs": 531692,
    "text": "Okay. So we're doing some work, we're checking it, and we're using the feedback again to refine it until the work is good enough to move on. But why is that hard? Uh, that seems like a pretty easy thing to do. Um, but as I mentioned before, these graphs get actually pretty complex, um, and we'll dive a little bit more into why this is difficult."
  },
  {
    "startMs": 554572,
    "text": "And if you're familiar, one challenge with AI engineering is the variability of inputs and outputs. And I believe that higher quality inputs"
  },
  {
    "startMs": 566132,
    "text": "will result in better outputs at a lower compute cost. But what are quality inputs?"
  },
  {
    "startMs": 581472,
    "text": "So we'll, we'll generally speak to it as context, um, model maybe. Uh, we can nitpick that, but, um, this isn't our area of focus today. Um, we're gonna focus more on outputs. But we can't really talk about quality of outputs without the quality of-- without talking about the quality of inputs."
  },
  {
    "startMs": 601352,
    "text": "So ideally, we've established a trusted context for our agent, um, and there's some references on that. But one thing we can do in this model is inject the DAG state into our agent and let it know kind of where it fits into the bigger picture."
  },
  {
    "startMs": 621032,
    "text": "Okay, so now we've added even long-time-horizon goals, and that's-- emphasizes the need to optimize the cost and efficiency of this loop."
  },
  {
    "startMs": 639012,
    "text": "So the check is where we decide whether the work is good enough to move forward. We need to define what good looks like. That's the hard part."
  },
  {
    "startMs": 648052,
    "text": "And we need to have a reliable way to evaluate it. Otherwise, more passes don't necessarily, uh, mean better results. The loop is really only as trustworthy as the check. So if we wanna talk about quality, let's talk about the check and let's talk about quality."
  },
  {
    "startMs": 666672,
    "text": "Okay. Um, I think building with AI is an opportunity to improve product quality overall, uh, like some of the conversation about durable software. Um, so I, I'm a believer in quality. Uh,  and in traditional software, um, we, we've built confidence mechanisms in place, uh, to give us confidence that the software is of high quality, and that's done with a variety of, of mechanisms, but primarily"
  },
  {
    "startMs": 696432,
    "text": "systematically with test cases, unit tests, um, checking these as a part of our delivery flow to ensure that when we make code changes, mistakes aren't made that break other things, right? So this is a confidence mechanism that we've put in place with traditional software."
  },
  {
    "startMs": 715192,
    "text": "The agents are probabilistic, and so the same request can produce different answers. More than one answer may be acceptable."
  },
  {
    "startMs": 726728,
    "text": "And we still need evidence, but exact output, uh, comparisons alone really aren't good enough. We need to build, uh, representative data sets and evaluate them, um, and define what good looks like. We need to run, uh, eval-- these evaluations in repeated, uh, series, and this is a statistical analysis, right? Um, where we actually look at the outputs, uh, at-- in volume and not just as a direct comparison."
  },
  {
    "startMs": 758948,
    "text": "So in combining with evals as sort of your runtime logs of what happened-- or sorry, traces, uh, which are sort of your runtime logs of what happens, um, we've built this confidence mechanism to complement, um, traditional software."
  },
  {
    "startMs": 777508,
    "text": "And ultimately, this is what we're gonna be talking about a little bit more in, in terms of driving confidence in the output, not only putting this mechanism in place, but how do we begin to turn it on?"
  },
  {
    "startMs": 792688,
    "text": "So where does the agent belong? Um, back to the lending example, like we can do KYC financials in parallel and sequence like credit memo, risk review, documentation, decision, all these things in our, our DAG. Um, looking at each node, we want to ask some certain questions like how valuable would it be to have an agent drive this node versus a human drive this node? Um, and, and we can sort of look at some of these basic questions like, can we check it against the"
  },
  {
    "startMs": 822308,
    "text": "policy easily? Can it run in a bounded loop? Can we trace it? Can we fall back to a human? Um, if we can answer yes to these type of questions, um, we, we can kind of have a good idea going in that this particular node may be better suited for automation. Um, but throughout the DAG, we should look to drive agent assistance. So what we're really talking about is not whether or not AI is involved, but whether or not AI we expect to take over at some point."
  },
  {
    "startMs": 854828,
    "text": "On the decision, you, you would probably agree that we probably need that to be human-driven. This is essentially the check against the policy. Um, so this is l- gonna be a little bit more difficult, I think, to hill climb."
  },
  {
    "startMs": 869508,
    "text": "But what do we mean by hill climb? All right. How do we turn this on? So"
  },
  {
    "startMs": 877168,
    "text": "day one, um, we start supervised, and as we have agents and humans working together as a part of the process, we can, um, manually, um, verify the output to ensure that it is of high quality. Um, this is where we refine our data sets and ensure that we have the right confidence mechanisms in place. We've defined what good looks like with the domain subject matter experts, and that they're beginning to verify it."
  },
  {
    "startMs": 907628,
    "text": "When measured confidence reaches a policy threshold, we can move towards sampling, and what that means is humans are looking at a slice of the output and not necessarily all of it. Um, we begin systematic, more systematic evaluation through traces, um, in order to ensure that what we're-- what the humans aren't seeing is still meeting the quality bar."
  },
  {
    "startMs": 931488,
    "text": "And then finally, once we clear the confidence threshold, humans handle more of the exceptions of the process, but still act as participants in refining the data sets and ensuring the quality outputs."
  },
  {
    "startMs": 949028,
    "text": "Okay, so a few takeaways from this. Um, DAG and DCG,  basic graph theory, but y- ultimately, how do we build these processes that exist today, um, where people are working them and bring agents into the mix? And the recipe really is to keep it deterministic on the outside and make it adaptive on the inside."
  },
  {
    "startMs": 977948,
    "text": "The next is quality through evaluation, and this is really establishing a complementary confidence mechanism. So it's not a feeling about a model. We can actually provide research and statistics about, uh, the quality of our agents."
  },
  {
    "startMs": 999548,
    "text": "So this builds confidence and inherently trusts output."
  },
  {
    "startMs": 1006428,
    "text": "Quality is a team sport. AI engineers own the pipeline to taking product signals from all directions and deliver applications that are well-built and utilize ML operations behind the scenes."
  },
  {
    "startMs": 1026948,
    "text": "Finally, agents accelerate across the operating model."
  },
  {
    "startMs": 1035568,
    "text": "I've included some references on the final slide of things that I've spoken about today. Um, this concludes my presentation. Thank you very much."
  }
]
