读见

把智能体工作流用在生产:GitHub、Marks & Spencer 与 Provation 的软件工厂实践

原题The factory mindset: Agentic workflows in production

约 17 分钟原文英文已翻译

视频由 YouTube 提供

看前速览

4 个要点

GitHub、Marks & Spencer 和 Provation 用人工审批、统一部署与成本追踪,把零散的代码智能体试验变成可管控的软件交付流程。

  1. GitHub 用智能体把代码准备到可人工评审

    多个评审智能体检查测试、可维护性和文档,再由收尾智能体处理反馈,开发者决定继续修改还是合并。

  2. Marks & Spencer 集中管理部署和凭证

    控制平台提供获批的工作流目录、版本追踪、限定到仓库的凭证与遥测。构建失败仍以既有 CI 的结果为准。

  3. Provation 在交付全程保留决策和证据

    这家医疗软件团队沿用已经过审批的工具和规则,跟随工单积累证据,在编码前和最终评审时保留人工批准。

  4. 按工作流观察成本,再决定哪些值得运行

    按用量计费让 Provation 难以说明成本与回报,团队曾暂停流水线。遥测帮助他们调整模型、上下文大小和运行频率。

完整摘要

在 GitHub Universe 上,Peli de Halleux 展示了多个专项评审智能体如何检查拉取请求,再由收尾智能体处理反馈,最后交给开发者决定。Tim Mason 介绍 Marks & Spencer 的控制平台,里面有获批工作流目录、部署时自动生成的拉取请求、版本追踪和限定到仓库的凭证。CI 诊断智能体读取现有 CI 日志。Provation CTO Paul Snider 则说明,团队怎样沿用已获批的工具和控制规则,把自动化贯穿需求、设计、编码和 QA,同时保留证据和人工审批。他报告说,遥测帮助团队把 AI 流水线成本降低了 90%。

章节

文字稿

查看原文

简要描述Brief Description

Peli de Halleux、Tim Mason 和 Paul Snider 介绍 GitHub、Marks & Spencer 和 Provation 如何在软件交付中使用智能体工作流。本场分享涵盖拉取请求审查、集中式部署与权限管理,以及在生产环境中运行这些工作流的成本和治理。Peli de Halleux, Tim Mason and Paul Snider describe how GitHub, Marks & Spencer and Provation use agentic workflows in software delivery. The session covers pull-request review, central deployment and permissions, and the cost and governance of running these workflows in production.

目录Table of Contents

  • 智能体工作流简介
    Introduction to Agentic Workflows
  • 软件工厂的演进
    The evolution of software factories
  • 在 Marks & Spencer 扩展工作流规模
    Scaling Workflows at Marks & Spencer
  • 控制平面现场演示
    Control plane live demonstration
  • 受监管医疗保健领域中的智能体式开发
    Agentic development in regulated healthcare
  • 优化流水线成本和遥测数据
    Optimizing pipeline costs and telemetry
  • 要点总结与最后的思考
    Key takeaways and final thoughts

智能体工作流简介Introduction to Agentic Workflows

主持人:请欢迎 Peli de Halleux。Emcee: Please welcome Peli de Halleux.

Peli de Halleux:让我讲讲一台坏掉的笔记本电脑如何迫使我改变编程方式,成为一名智能体工程师。2025 年夏天,我在旅行途中笔记本电脑坏了,只剩下手机可用。幸运的是,GitHub 刚刚推出了一项功能,可以把一个 issue 分配给 Copilot。Copilot 会在云端运行所有操作,并创建一个拉取请求。这对我来说是个转折点。我能用这种方式走多远?我真的能只用手机编写代码吗?于是我开始尝试。我创建了第一个 issue,并把它分配给 Copilot。那时是 2025 年,功能还很新。不过,它要花 5 分钟,甚至 10 分钟。于是我开始做第二项任务。何乐而不为?接着是第三项,第四项。这时候,第一项任务已经完成并返回了。现在轮到我了。Copilot 给我一些代码,我可以审查、引导、回复,或者合并。也可以说:“你跑偏了,我要关闭这个任务。”第三项任务我就可以这么处理,第四项也一样。还可以安排一项新任务。我产出代码的速度比以往任何时候都快。Peli de Halleux: Let me tell you a story about how a broken laptop forced me to change the way I program and become an agentic engineer. In the summer of 2025, I was traveling when my laptop died, and I was left with my phone. Fortunately, GitHub had just released a feature where you could assign an issue to Copilot. And Copilot would create a pull request running everything in the cloud. This was a turning point for me. How far could I go with this? Am I really able to create code with just a phone? So, I got started. I created the first issue and I assigned it to Copilot. And this is 2025, so we're early. But it takes 5 minutes. It takes 10 minutes. So, I start task number two. Why not? And task number three. And task number four. And by that time, task number one is back. Now it's my turn. Copilot gives me some code. I can review it, steer it, respond, or merge. Or I can say, "You derailed. I'm going to close this." And I can do that with task three. And task four. And maybe schedule one more. I'm producing more code faster than ever.

软件工厂的演变The evolution of software factories

我口袋里有一座工厂。现在,快进一年半。我们如今站在这里的舞台上。Agentic Workflows 仓库就是一座软件工厂。它是一座能够自我构建、自我维护的软件工厂。仓库里超过一半的拉取请求,都是由运行在 Actions 中的 Agentic Workflows 智能体发起的。这是一座以高节奏、短生命周期、小步快跑的拉取请求运转的工厂。这正是我们喜欢的方式。最有意思的是,我们的用户向我们提交了 700 个 issue。用户告诉了我们,他们需要什么,才能建造自己的工厂。那么,我们是如何从一个夏夜打电话聊起,走到如今每月能处理数千个 PR 的仓库的?这一切始于思维方式的转变,始于改变我们对自己在软件生命周期中所扮演角色的看法。I have a factory in my pocket. Now, fast forward a year and a half. Here we are on stage. The Agentic Workflows repository is a software factory. It's a software factory that builds itself and maintains itself. More than half of the pull requests in the repository are started by Agentic Workflows running agents in actions. It's a factory that runs on high-paced, short-lived, bite-sized pull requests. That's the way we like to do it. Most interestingly, it's a factory where 700 issues were given to us by our users. Our users told us what they needed to build their own factory. Now, how did we go from a summer night on the phone to a repository that churns thousands of PRs per month? It started with a change of mindset. It started with changing the way we were thinking about our role in the software life cycle.

我们有代理可以将意图转化为代码。我们的职责是设计流程,让我们能够安全、放心地让代理构建我们想要的功能。这彻底改变了我们决定如何构建软件的方式。我们的角色已经变了。这就是你开启构建工厂之旅的方式。你今天在 Agentic Workflows 中看到的一切,都是这段旅程的成果:我们从零开始构建工厂,并在过程中逐步发现所需的一切。Agentic workflow 是一个用于构建人机代理流程的框架,也就是人类与代理协作创建软件的方式。它是一种语言,以 Markdown 为载体,让你既可以声明意图,也可以定义护栏和安全措施。我们有一个编译器,可以将这种 Markdown 转换为 GitHub Actions,让它们能够在 GitHub 云端大规模运行,也可以在企业内部自行托管运行。We had agents to turn intent into code. Our role was to engineer the processes that would give us the safety and trust to have agents build the features we wanted. It was a complete shift in how we decided to build software. Our role had changed. This is how you start your journey to build factories. What you're seeing today in Agentic Workflows is the result of that journey where we started at zero and started building a factory and discovering what we needed with it. Agentic workflow is a framework to build human agent processes. The interaction of human and agents to create your software. It is a language, it is markdown, where you can declare your intent, but also your guardrails and your security measures. We have a compiler that turns this markdown into GitHub actions, so that they can run at scale in the GitHub cloud or self-hosted in your enterprise.

在这些操作中,我们设有一个沙箱,用来控制智能体可以读取哪些内容、可以将数据发送到哪里,同时不会暴露任何机密。写入操作由门禁和审核流程管控,因此智能体无法随意写入。我们提供你所需的安全保障,让你能够进行创新,因为创新会带来转型。 我们来看看一个著名的流程:拉取请求。在我们的代码仓库中,拉取请求目前是这样运作的。我们从一种非常传统的智能体式拉取请求流程开始:分配一个智能体,进入循环,迭代几轮。当我们判定它已准备好接受审核时,就会启动多个智能体工作流审核器。它们会检查测试、维护、文档,以及我们关心的其他方面。审核器完成后,会由一位收尾者——Sous Chef(副主厨)——查看所有反馈、落实这些反馈,并将其转化为代码。Inside of these actions, we have a sandbox that controls what the agent can read and where it can send data, with no secrets exposed. Gates and reviews govern writes so the agent cannot write freely. We provide the safety that you need to create innovation, because innovation leads to transformation. Let's take a look at a famous process, the pull request. In our repo, the pull request works like this today. We start with a very traditional agentic pull request flow. We assign an agent, we go through loop, iterate a few times. When we decide that it is ready for review, we have a number of agentic workflow reviewers that kick in. They will look at testing, maintenance, documentation, various aspects we care about. Once these reviewers are done, we have a finisher, sous chef, who looks at all the feedback and applies it and turns that into code.

副主厨完成后,就轮到我这个开发者登场,决定是继续这个循环、合并,还是放弃。这是一个借助智能体(自动化智能体)加速的人类流程的例子。工厂思维认为,如果团队里的每个拉取请求、产品里的每个拉取请求,都需要人类进行一次彻底调查式的介入——放下手头所有事情,花上几个小时处理——那就说明你不信任自己的流程。工厂思维告诉你,应该审视并改进这个流程,让你的工厂运转得更快。技术债务是另一个例子。每个代码库里都会有技术债务。如今我们称之为 slop。我们应对技术债务的方式,是建立一个新流程,我们称之为“每日改进者”。When sous chef is done, it is my turn the developer to come in and make the decision to continue the loop, to merge, or to give up. This is an example of a human process that we accelerated with the use of agents, automated agents. The factory mindset is to think that if every pull request in your team, in your products, requires a forensic human intervention where you drop everything and work for a few hours on it, it really means you don't trust your process. The factory mindset tells you that you have to go and review this process and improve them to accelerate your factory. Another example is technical debt. It comes in every code base. We call it slop today. The way we tackle technical debt is to create a new process, which we call daily improvers.

每天,智能体醒来后会寻找某种特定的代码“垃圾”,比如重复代码。智能体可以修复或删除重复代码、添加测试,并提交一个小型拉取请求,供开发者审查和合并。这是一种由智能体赋能的新型流程——一种人机协作流程,让我们能够以不同的方式开发软件。这是一座能够自我维护、自我优化、自我调试的工厂。 在构建这座工厂和智能体工作流的过程中,我们发现了数十种模式,并将它们提炼成一项技能。你今天就可以使用这项技能,从一个提示词开始打造自己的工厂。 当我们从团队规模向更大规模扩展时,企业客户告诉我们,他们面临着巨大难题:数千乃至数万个代码仓库。我们现在正在构建集中式智能体运维体系。Every day, agents wake up and look for a particular piece of slop, let's say duplicate code. The agent can fix or remove the duplicate, add tests, and open a small pull request for a developer to review and merge. This is a new type of process, a human agent process that is enabled by agents, that lets us do software differently. This is a factory that maintains itself, that optimizes itself, that debugs itself. Along the way of building our factory and building agentic workflows, we discovered dozens of patterns. And we distilled all these patterns into a skill that you can use today to start your own factory from a prompt. Now, scaling up from teams, we heard from enterprise that they had big problems. Thousands, tens of thousands of repositories. We are now building central agentic ops.

另外,缩写是 CAO,简称 cow。我们的目标是在数千个代码仓库中运行集中式活动,以减少维护工作带来的繁琐事务。我们希望通过优化流程、消除繁琐事务,把创意时间和功能开发时间还给开发者。GitHub Agentic Workflows 是一个用于构建人类代理流程的框架。这些流程是你们工厂的骨干。工厂思维就是从流程的角度看待一切。你需要为团队构建合适的流程,因为每家公司开发软件的方式都不一样。Also, acronym CAO and for short, cow. The goal is to run centralized campaigns across thousands of repositories to reduce maintenance toil. We want to give back the creative, the feature creation time to developers by optimizing getting rid of the toil. GitHub Agentic Workflows is a framework to build human agent processes. These processes are the backbone of your factories. The factory mindset is to look at everything through the lens of a process. You want to build the processes that work for your team because no company does software the same way.

在玛莎百货扩展工作流程Scaling Workflows at Marks & Spencer

为此,请允许我向大家介绍 Tim Mason,他是 Marks & Spencer 的首席工程师,利用智能体工作流搭建了一个软件工厂。Tim。To that end, let me introduce you to Tim Mason, principal engineer at Marks & Spencer, who built a software factory using agentic workflows. Tim.

蒂姆·梅森:谢谢,佩利。Tim Mason: Thanks, Peli.

如何在大型组织中扩展智能体工作流?这是我今年三月思考的挑战。让我解释一下原因。我开始关注软件工程师每天花在繁琐事务上的时间。他们要更新漏洞信息、更新文档,还要响应政策变更和新的技术标准。繁琐事务有两个问题。首先,尽管这些工作很重要,也必须完成,但未必能创造任何业务价值。其次,工程师不喜欢做这些琐事。我当然也不喜欢。那么,我们能否用 AI 来解决这个问题?大约就在那段时间,我开始了解到智能体工作流。于是,我们构建了一些工作流来处理这些繁琐事务。当你开始创建智能体工作流时,很快就会意识到它们非常强大,还能做更多事情。How do you scale agentic workflows across a large organization? That was the challenge I was thinking about back in March this year. Let me explain why. I started looking at the amount of toil our software engineers were spending each day. They're updating vulnerabilities. They're updating documentation. They're responding to policy changes and new technical standards. Now, there's two problems with toil. One is, although it's important work that has to be done, it's not necessarily delivering any business value. The second problem is engineers don't like toil. I certainly don't. So, can we use AI to solve this problem? It was around that time that I became aware of Agentic Workflows. So, we built some workflows to address the toil. When you start creating Agentic Workflows, you quickly realize they're very powerful and could do far more.

因此,我们创建了更多工作流:一个 Bug Hunter、一个安全审计工作流、一个单元测试工程师工作流,以及一个 BDD 测试工程师工作流。随后,作为概念验证,我们将这些工作流部署到了一个较大的代码库中。结果发现,一天之内就找出了 123 个问题,其中 77 个当天就得到了解决,测试覆盖率也提升到了 90% 以上。这简直不可思议,太棒了。不过,这毕竟只是一个代码库。我还需要把这套做法推广到另外 5,000 个代码库。规模化才是难点。在软件工程中,规模化始终是个问题。采用 AI 也不例外。我需要保持一致性。Agentic Workflows 在这方面很有帮助,因为这并不是在构建提示词库,也不是把一些技能交给工程师,让他们能够影响最终结果。每次运行工作流时,使用的都是同一个提示词,无需依赖某个人手动驱动。So, we created some more workflows. We created a bug hunter, a security audit, a unit test engineer, and a BDD test engineer. And then, as a proof of concept, we deployed these workflows into one of our larger code bases. What we found was in one day, 123 issues were discovered. 77 of them were solved the same day. And our test coverage rose to over 90%. Now, this is incredible. This is amazing. But, this is also one repository. I now need to go and do this in another 5,000. Scaling is the hard part. In all software engineering, you always have the problem of scale. Adopting AI is no different. I need consistency. Agentic Workflows help here because it's not like I'm building a prompt library or giving skills to engineers where they can influence the outcome. The workflow runs with the same prompt each time, without relying on someone to drive it manually.

我也在考虑成本和投资回报,因为 AI 已经不再是免费的了。而财务部门完全有理由会问:“这要花多少钱?我的投资回报是什么?”智能体工作流以行动为基础来产生结果,因此投资回报非常容易计算。我也在考虑治理和偏移问题。我们不希望组织里有成千上万个相同的工作流副本,最终都变得过时。我们需要一个唯一可信的数据源。我们还必须考虑安全性、审计和信息安全。我相信我们都花了很多时间与安全和信息安全团队沟通,试图解释为什么要引入新的工作方式或新技术。我认为,智能体工作流是在组织内运行 AI 最安全的方式之一。I was thinking about the cost and the return on investment as well, because AI isn't free anymore. And finance, quite rightly, will ask, "How much is this going to cost and what's my return on investment?" Agentic workflows, because they're action-based outcomes, it's really easy to calculate the return on investment. I was thinking about governance and drift. We don't want thousands of the same copy of the workflow across our organization, that go out of date. We want a single source of truth. We have to think about safety, audits, and security. I'm sure we've all spent a lot of time speaking to security and infosec trying to explain why we want to bring in a new way of working or new technologies. I'd argue that agentic workflows are one of the safest ways to run AI within an organization.

最后一点,也可能是最重要的一点,是采用过程中的阻力。无论你构建什么,也无论它有多出色,都不重要。如果它难以采用,就不会有人使用。因此,我们有了一个愿景。我决定以工程师的身份开发一个应用来解决这些问题。于是,我们构建了智能体控制平面。它是一个经过筛选的已批准工作流目录,任何软件工程师都可以连接自己的 GitHub 仓库,选择工作流,然后点击一个按钮进行部署。系统会生成一个拉取请求,解决我刚才提到的所有挑战。这个点击背后涉及很多工作。我们还会跟踪版本更新,并将智能体工作流发出的 OpenTelemetry 数据路由回控制平面。这样一来,我们就能掌握整个组织的情况。The final point, and maybe the most important, is adoption friction. It doesn't matter what you build. It doesn't matter how great it is. If it's difficult to adopt, nobody is going to use it. So, this led to a vision. I decided, as an engineer, I was going to build an application to solve these problems. So, we built the agentic control plane. It's a curated catalog of approved workflows where any software engineer can connect their GitHub repository, choose their workflows, and click deploy one button. A pull request is generated which covers all of those challenges I was just discussing. There's a lot going on behind that click. We also track the version updates. We also route the OpenTelemetry that's emitted by agentic workflows back through the control plane. This allows us to have visibility across the organization.

因此,如果我们的某些工作流开始出现故障,我们就能发现并启动其他智能体去调查。这将催生能够改进其他智能体、并实现自我修复的智能体。我们还构建了针对每个代码仓库的配置,因为我们的代码仓库和技术栈种类繁多,不可能所有仓库都采用相同的配置。因此,我们的智能体工作流支持配置,你可以根据自己的代码仓库调整其行为。我们也消除了管理个人访问令牌所带来的繁琐工作。我不希望工程师在使用智能体工作流时还得创建个人访问令牌。因此,我们在控制平面中构建了一个令牌交换端点。工作流运行时,可以请求一个令牌;返回的令牌仅限于其代码仓库,并会按需授予它们所需的权限。So, if some of our workflows should start to fail, we can see that and we can launch other agents to go and investigate. And that will lead to agents that improve other agents and are self-healing. We also built per repo configuration because we've got so many repositories and so many different tech stacks. It's not going to be the same for everyone. So, our Agentic Workflows are configurable and you can change their behavior for your repository. We've taken away the toil of personal access tokens as well. So, I don't want engineers to have to create personal access tokens when they're using Agentic Workflows. What we've done is we've built a token exchange endpoint within the control plane. So, as the workflow is running, it can request a token which is returned scoped to their repository, giving them just the permissions they need on demand.

我们也有一个 PR 审查循环。我们听 Peli 讲过他的 PR 审查循环。这是我们的版本,有一些不同之处。我们的审查者会在拉取请求退出草稿状态、准备好接受审查时开始工作。审查者会从不同角度审查代码,检查测试、代码质量和安全性,并生成评论。PR Sous Chef 会收集这些评论,并协调 finisher。finisher 会提交代码、回复这些评论,然后循环重新开始。今天你已经不止一次听到 Sous Chef 这个名字了。这是因为我们的许多工作流都受到了 Peli 和 GitHub 团队工作的启发。说是“启发”,我的意思其实是“照搬”。所以,当你开始构建自己的工厂时,不妨去看看 Agented Workflow 仓库。We also have a PR review loop. We heard Peli talking about his PR review loop. This is ours. There's a few differences. So, our reviewers start when a pull request leaves draft and is ready for review. The reviewers will go and review the code with different lenses. They're looking at the tests, the code quality, the security, and they will generate comments. The PR Sous Chef will pick up those comments and it will orchestrate the finisher. The finisher will commit code, respond to those comments, and the loop starts again. It's not the first time you've heard Sous Chef today. And that's because many of the workflows we've got are inspired by the work that Peli and the GitHub team have done. And when I say inspired, what I mean is copied. So, when you start building out your factory, go and take a look at the Agented Workflow repository.

去 agentics 仓库看看,看看你能接手些什么。这个循环会持续进行,直到审查者一致认为这个拉取请求的质量足够高,可以合并到生产环境。届时会添加一个特殊标签,等待人工审核。这改变了我们的工作方式,因为我们现在觉得,可以把拉取请求交给工作流和智能体处理,然后离开去做别的事。我们可以继续处理其他任务,直到添加那个标签。这里要特别提一下我们的 CI 医生。这是另一个工作流,每当我们的某条 CI 流水线失败时就会触发。我们之所以这么做,同样是因为我们的规模以及所用技术的多样性。刚开始时,我尝试在工作流中构建并运行测试,以验证它们的工作成果,但这太困难了。Go and take a look at the agentics repository and see what you can take. This loop continues until the reviewers agree this pull request is of a high enough quality that it can be merged to production. When that occurs, a special label is added ready for human review. This has changed the way we work because we feel now we're handing over our pull requests to the workflows, to the agents, and we can walk away. We can go and work on other tasks until that label is applied. There's a special mention here for our CI doctor. This is another workflow which is triggered whenever one of our CI pipelines fails. The reason we did this, again, is due to our scale and the different technologies. When I started off, I was trying to build and run tests within our workflows to verify their work. This was too difficult.

我们有测试容器,也有私有 Maven 仓库。因此,我决定不在工作流中构建代码,也不运行测试。相反,我依靠仓库中现有的 CI 流水线在出现问题时失败。CI 医生会启动,拉取日志,调查问题,并像审查者那样再次以评论的形式给出诊断结果。完成者运行时,会优先处理医生的诊断,而不是其他工作,帮助我们恢复到绿色状态。这是我们实现规模化的关键决策,也解决了许多问题。现在,有谁想看一下控制平面的演示?We have test containers. We have private Maven repositories. So, I decided not to build code and not to run tests in my workflows. Instead, I rely on the existing CI pipelines in the repositories to fail when there's a problem. The CI doctor is launched. It pulls the logs. It investigates the problem and it leaves a diagnosis again as a comment similar to the reviewers. And the finisher, when that runs, will prioritize the doctor's diagnosis over any other work and get us back to green. This is a key decision for how we scaled and it solved many of our problems. Now, who would like to see a demo of the control plane?

控制平面实时演示Control plane live demonstration

现在是现场演示时间。这就是控制平面。刚才我提到的愿景是,任何人都能在不到 30 秒内完成这件事。所以,大家可以在这里监督我。我将连接到我们的演示仓库。系统已经运行了一些预检查,确保 Agentic Workflows 可以在这里运行。如果不行,系统会告诉我该如何修复。我可以浏览已批准工作流的目录,选择一个工作流。你们可能会选择多个。然后,点击这个一键部署按钮即可。现在正在创建一个拉取请求。工作流、支持文件、共享文件、配置、OpenTelemetry 注入、令牌代理注入点,所有这些都由系统替我处理好了。It's time for a live demo. This is the control plane. Now, earlier the vision I was telling you about was that anyone can do this in less than 30 seconds. So, you get to hold me to account here. I'm going to connect to our demo repository. Some pre-flight checks have run to make sure Agentic Workflows can run here. If that wasn't the case, it would give me guidance on how to fix that. I can scroll the catalog of our approved workflows. I can choose a workflow. You'd probably choose multiple. And then here's the one button deploy. What's happening now is a pull request is created. The workflow, the supporting files, the shared files, the configuration, the OpenTelemetry injection, the token broker injection points, all that is taken care of for me.

这是大约十天前的推广情况。我们已通过 Agentic Workflows 接入了 200 多个代码仓库。控制平面已完成 1,000 多次部署。我们提交了近 4,000 个 issue,其中 2,000 多个已得到处理。Agentic Workflows 自身还创建了 2,000 多个拉取请求。在这一轮审查中,我们添加了 1,087 条评论,其中 700 多条是高优先级和严重级别的阻塞性评论;这些问题随后都得到了修复和处理。 那么,我对未来有什么看法?我们知道自己现在在哪里,但接下来要走向何方?我一直在谈论的是代码领域。现在你们看到的是软件开发生命周期:从产品、架构、交付、编码,到运维和 DevOps。我正在考虑如何在整个生命周期中采用 Agentic Workflows。Here is where the rollout stood about ten days ago. We've onboarded over 200 repositories with Agentic Workflows. Over 1,000 deployments by the control plane. We've raised nearly 4,000 issues and over 2,000 have been addressed. We also have pull requests opened over 2,000 from the Agentic Workflows themselves. And in that review loop, 1,087 comments with over 700 high and critical ones, which were blocking comments, were added and then fixed and addressed. Now, what do I see in the future? So, we know where we are now, but where will we be going? What I've been talking about is in the code space. And what you can see now is the uh the software development life cycle. It starts with product, architect, delivery, code, then onto your operations and devops. I'm looking at in choosing Agentic Workflows in all of this life cycle.

使用 MCP、使用 MCP 脚本,我能否用智能体工作流实现端到端自动化?我想留给大家一句话:别再修复代码仓库了,建一座工厂,改造组织。组织的英文要拼作 organisation,用 s。接下来请 Paul Snider 上台。他是 Provation 的首席技术官,将分享他如何在受监管的环境中打造自己的工厂。谢谢。With MCP with MCP scripts, can I use Agentic Workflows to automate the work end-to-end? I want to leave you with one message. And that is stop fixing repositories, build a factory and fix the organization. Spell organisation with an S. I'm going to hand over to Paul Snider. He's the chief technology officer of Provation. He's going to be talking about how he built his factory in a regulated regulated environment. Thank you.

受监管医疗保健领域的智能体式开发Agentic development in regulated healthcare

Paul Snider:早在二月,自主式 AI 就开始向我们展示各种可能性。我们看到工作流从提示词和回答,发展到铺天盖地的新闻都在报道 AI 一夜之间完成这些工作。我们的团队开始思考,如何抓住这个机会?如果你还记得年初的情况,当时企业级应用所需的标准还缺失。我们需要安全、可信且受治理的方案。GitHub Workflows 让我们有机会基于我们早已信任、熟悉的工具、身份体系和控制措施进行构建。我在医疗健康 IT 领域工作了近二十年。但首先,我是个父亲,其次才是工程师。事实上,我的三个孩子都是在由我和团队搭建的系统中出生的。没有什么事能比抱着自己的孩子,或坐在儿童医院孩子的病床边,看到他们周围都是我所负责的技术,更快地让人意识到事情有多么严肃。Paul Snider: Back in February, autonomous AI started showing us the art of the possible. We were seeing workflows go from prompt and answer to all this news about AI doing this work overnight. And our team started to ask, how can we take advantage of this opportunity? If you remember back to the beginning part of the year, the enterprise bar was missing. We need something secure, trusted, and governed. GitHub Workflows gave us the opportunity to build on tools, identity, and controls that we already trusted and we are already familiar with. I've been in healthcare IT nearly two decades. The thing is, I'm a dad first, engineer second. In fact, all three of my kids were born in systems built by me and my teams. And nothing becomes more serious, more quickly than you're holding your child, or sitting at the bedside with your kiddo in a children's hospital, and they're surrounded by technology I'm responsible with.

我们在医疗保健领域所做的工作至关重要,受到严格监管,而归根结底,一切都取决于信任和质量。我们谈了很多速度和效率,但如果没有信任和质量,这些都毫无意义。它决定了我们能交付什么。Web 为我们带来了大规模分发能力,同时也造成了可扩展性瓶颈。移动设备让我们能够触达更多人,也让我们把各种能力都装进口袋,但平台数量过多,给管理带来了瓶颈。AI 加快了代码编写速度,但与此同时,我们也面临着各种挑战:拉取请求方面的挑战、QA 部门下游环节的挑战,以及市场推广职能方面的挑战。What we do in healthcare is extremely important, highly regulated, and ultimately, everything comes down to trust and quality. We've talked a lot about speed and efficiency, but none of that matters if we don't have trust and quality. It determines what we can ship. The web gave us mass distribution and created scalability bottlenecks. We've seen mobile give us reach and all these capabilities in our pocket, but created bottlenecks with the amount of platforms that we have to manage. AI is making code authoring faster, but we're talking about all these challenges we have with pull requests, or challenges downstream in our QA organizations, or go-to-market functions.

如果 AI 只是让编码变得更快,那我们不过是在再次转移瓶颈。If AI is only making coding faster, we're just moving the constraint again.

这正是我们在 Provation 常说的一句话:人人都喜欢做饭,没人喜欢洗碗。让 AI 来洗碗吧。让我们把工程师身边繁琐的工作自动化,同时把判断力、创造力和协作留给我们的团队。 谈到繁琐工作、流程和职责时,我们必须全面审视整个解决方案交付生命周期,包括上游的需求环节,以及下游的 QA 和支持团队。我们必须逐项任务、逐个职能地弄清楚,在工作流转的过程中需要哪些管控措施、证据和文档。如果对此不够了解,我们就会重蹈覆辙,再次造成过去那些瓶颈。 对于 Provation 这样的公司来说,这一点尤为重要:我们服务于 3,300 个医院系统、50,000 名医疗专业人员,以及美国 75% 的胃肠病医院。This is where we like to have a saying in Provation that everyone likes to cook, no one likes doing the dishes. Let AI do the dishes. Let's automate the toil around the engineers and keep judgment, creativity, collaboration with our people. As we think about toil, we think about process, and responsibilities, we have to think holistically of our entire solution delivery life cycle, both upstream in our requirements and downstream in our QA and support organizations. We have to understand task by task, function by function, what are the controls, evidence, documentation that's required as we move work through the process. If we don't understand this, we're going to create the same bottlenecks that we've created in the past. And this becomes extremely important for a company like Provation, where we support 3,300 hospital systems, 50,000 healthcare professionals, and 75% of GI hospitals in the United States.

我们在全球范围内竞争,但要在这样的规模上与全球一些最大的公司竞争,就需要团队充分发挥各自执业许可范围内的能力。我们必须扩大自身的影响力。对我们来说,这意味着要打造一个智能体工厂。但我们并非从零开始。我们已经有一套智能体运行框架,其中包含经过批准的技能、MCP、智能体和组织背景信息。挑战在于,这套框架与开发人员的工作流程并行存在。要完成工作,仍然必须经过开发人员的流程。GitHub agentic workflows 和 GitHub Actions 为我们提供了机会,让我们能够提升这套现有框架。框架不变、管控不变,但现在可以通过自动化来打造智能体工厂。这样,我们就能提升现有的有效做法,而不必另起一套并行的 AI 技术栈。We compete at a global scale, but in order to compete at that scale against some of the largest companies in the globe, we require our team to work at the top of their license. We have to multiply our impact. And for us, that meant building an agent factory. But we didn't start from scratch. We already had an agent harness that had our approved skills, MCPs, agents, organizational context. The challenge was it lived alongside our developers. To get work done, you still had to push that through a developer’s process. GitHub agentic workflows and GitHub actions gave us the opportunity to lift that same harness up. The same harness, same controls, but now using automation to create an agent factory. So, we're lifting what already works without creating another parallel AI stack.

整体来看就是这样。工单可以手动创建,也可以通过一些自主流程自动产生,比如你们刚才听 Peli 和 Tim 谈到的漏洞猎手工作流。我们可以识别测试优化和安全优化。我可以把会议记录整理后填入我们的系统。作为你的 SRE 代理,如果调查已经完成,它也可以提出优化建议。最终,这些都会进入我们的 SDLC 自动化循环,由多个代理协作完成分诊、需求、设计、计划和 QA。随后,这项工作会交给 Copilot 编写代码、发布拉取请求,最终进入我们第三次看到的自动化 PR 循环,在这里我们会进行代码、安全、测试和审查。这部分会讲得比较快,不过下面是一个 GitHub issue 的示例,以及我们的自主 SDLC 如何一步步运行。This is what it looks like in totality. A ticket can enter manually, or it can happen autonomously through some of the same things you heard Peli and Tim talk about, the bug hunter workflow. We can identify test optimization, security optimization. I can take meeting transcripts and fill that into our system. As your SRE agent, if we're done with an investigation, it can also produce optimizations. Ultimately, that will hit our SDLC automation loop, where we have agent collaboration over triage, requirements, design, plan, and QA. That work will then hand off to Copilot to do the code, publish the pull request, and then ultimately, this is the third time we're seeing an automated PR loop, where we'll do our code, security, test, and review. This is going to go kind of quick, but this is an example of a GitHub issue and our autonomous SDLC running step by step.

任何问题发生后,首先要做的就是分诊。我们必须进行调查。代理会接手并记录情况,然后把相关背景信息交给下一个代理,由它执行产品流程,最终记录我们的需求。接下来,你会看到设计代理负责架构。架构决策记录完毕后,我们就要进行规划和实施。最后,所有这些都会交接给测试流程,用来确定测试用例。最后一步是交由人工确认:“这个 SDLC 看起来不错,证据也很充分。我们把它推进到后续流程吧。”在编写任何代码之前,我们已经把这个经过优先级排序的工单走完了整个 SDLC。接下来,我要向你展示 GitHub 拉取请求的循环是怎样的。The first thing that happens with any issue is triage. We have to do the investigation. Agent's going to pick that up, document. It's going to hand that context off for the next agent to do the product process and ultimately document our requirements. Next, you're going to see the design agent take on architecture. Once the architecture decisions are documented, we'll have to do our planning and implementation. And ultimately, all of that will be handed off to our test process and identify the test cases. And then the last is the hand-off to the human to say, "This SDLC looks good. The evidence is good. Let's move this on to the process." We've taken that prioritized ticket and moved it through all of this SDLC before we've developed a single line of code. As we move forward, what I'm going to show you next what the GitHub pull-request loop looks like.

在这里,你会看到 GitHub 会接手这个 issue,然后创建 pull request。它首先会查看正在处理的工单中的所有上下文。这样,在这个审核和修复循环中,它就能利用这些上下文做出恰当的决策。这里,它正在进行审核,并针对 21 项不同的更改发表评论。最终,你会看到它进入这个修复循环,并持续运行,直到所有问题都解决为止。它会修复发现的任何问题,重新验证,然后继续循环,直到一切都处理妥当。最后,这项工作会交给 Tim 提到的那个 CI 医生,然后进入最终的人工审核关卡。And here, you're going to see GitHub's going to pick up the the issue, and then it's going to create the pull request. And the first thing it's going to do is go look at all of the context from the ticket that it's working on. That way, when it's in this review and fix loop, it can pick up that context and make appropriate decisions. Here, it's doing the review. It's making a comment across 21 different changes. And ultimately, you're going to see it runs in this fix loop. It's going to run this until it's completely clean. But anything that it found, it's then going to fix, do re-verification, and it's going to continue this loop again until everything's cleaned up. And then ultimately, this is going to pass off to that CI doctor that Tim talked about, and now we have the final human review gate.

因此,我们已经完整地将一个工单从优先级排序一路推进到 SDLC、编码和评审,并在整个过程中收集了相关证据。So, we've taken a ticket from prioritization through our SDLC, through coding, and through review in totality. With evidence collected along the way.

优化流水线成本与遥测数据Optimizing pipeline costs and telemetry

这项工作迅速发展起来。最终,我们有了 71 个智能体、32 个触发工作流和 6 个入口点,全部汇聚到一个统一受治理的流程中。我们将开发者辅助体验与开发者工具框架结合起来,并把它转化为一种运营能力。这种运营能力让我们有机会构建内部软件。我们把会议记录转化为概念验证,兑现了我们关于一夜之间完成工作的承诺。不过,还有谁记得六月时的情况?我们所在的行业变了。我们从按席位授权转向按使用量计费。问题也从“我们能不能构建它?”变成了“成本是多少?价值又是什么?”我们没法简明扼要地回答这个问题。既然答不上来,我们就把它关掉了。好消息是,它没关多久。This grew very quickly. We ended up with 71 agents, 32 trigger workflows, and six entry points, all converging on one governed process. We took a developer assisted experience with a developer harness, and we're able to turn that into an operating capability. That operating capability gave us an opportunity to build internal software. We were taking meeting transcripts and turning it into POCs, fulfilling the promise we had overnight of overnight work happening. However, who can remember back to June? Our industry changed. We went from seat-based licensing to usage-based billing. And the question changed from can we build it to what's the cost and what's the value? We couldn't succinctly answer that question. Since we couldn't answer, we turned it off. The good news was it wasn't off for long.

GitHub Agentic Workflows 支持 OpenTelemetry。它让你有机会逐个工作流、逐个智能体、逐项任务地了解应该在哪里优化模型选择、上下文大小或运行频率。我应该使用确定性工作流吗?这样我们就能针对每个工作流做出继续或停止的决策。我们将 AI 流水线的成本降低了 90%。但更大的收获其实是了解了整个工厂。我们可以掌握成本、质量和架构方面的反馈,就像运营云环境一样。GitHub Agentic Workflows supports OpenTelemetry. It gives you the opportunity to understand where to optimize model selection, context size, or run frequency, workflow by workflow, agent by agent, and task by task. Should I use a deterministic workflow? That lets us make go or no-go decisions for each workflow. We reduced our AI pipeline cost by 90%. But the bigger win was really just understanding the factory. We can know cost, quality, architectural feedback, similar to how you operate cloud.

更大的成果,也是我们在此努力的意义,是为客户创造价值,而不只是增加拉取请求或代码的数量。我们将产品发布到新的地区和市场,推出了新的应用、体验和 AI 交互模式。按我们的衡量标准,我们为客户创造的价值是原来的 2.5 倍。我们的客户能够充分发挥其医疗执业资质的价值,我们的团队在工作中也能做到这一点。And the bigger win, and why we're here is the value delivered to customers, beyond counts of pull requests or code. We released to new regions and markets, with new applications, experiences, and AI modalities. By our measure, we delivered two and a half times as much customer value. Our customers can work at the top of their healthcare license, and our team can do the same in its work.

要点总结与最后的思考Key takeaways and final thoughts

在此,我想与大家分享我们团队在以工厂思维踏上这段旅程时总结出的四点经验。第一,从信任开始。以你已经在使用的供应商、工具和能力为基础。第二,自动化你的流程。了解当前的软件开发生命周期(SDLC):它是如何运作的?瓶颈在哪里?有哪些限制?哪些地方有机会消除繁琐的重复劳动?第三,升级你的工具链。把你现在使用的开发者工具自动化。最后,在扩大规模之前先做好监测。借助 OpenTelemetry 了解成本、质量和价值。这样,你就能把繁琐劳动变成流程,把流程变成代码,最终让代码创造业务价值。 最后还有一件事想留给大家。离开时,你会看到中间那边有很多人在做饭,记住,让 AI 来洗碗。I'm going to leave you with four takeaways from our team as we embarked on this journey in the factory mindset. First, start with trust. Build on the vendors, tools, and capabilities you already use. Second, automate your process. Understand your current SDLC. How does that work? What's the bottlenecks? What's the constraints? Where is there opportunity to eliminate toil? Third, lift your harness. Take the developer tools that you have today and automate them. Last, instrument before you scale. Understand costs, quality, and value using OpenTelemetry. This allows you to turn toil into process, process into code, and ultimately code into business value. There's still one more thing I'm going to leave you with. On the way out, you're going to see a lot of cooking going on in that center, and just remember let AI do the dishes.

非常感谢。派对后见。Thank you very much. See you at the after party.