Key Takeaways LangChain earned ISO/IEC 42001 certification, the international standard for AI management systems, using LangSmith. The audit evidence came from each agent's permission and approval settings, plus the traces and evaluations our engineers already use to debug agents. We scaled our governance program with Security Agent, which we built on Deep Agents and run on LangSmith. Customers can follow the same process for their own agents in LangSmith. Companies now give agents access to customer data and even the systems their businesses run on. At the same time, recent security breaches have drawn attention to the importance of agent governance, but governing agents is hard because they're non-deterministic. Every run can take a different path, and the agent can change things in other systems along the way. A standard set of governance principles gives companies a common bar to meet and gives their customers a way to check it. LangChain is now certified to ISO/IEC 42001, the international standard for AI management systems. It sets out practices for how a company governs its AI systems and for the controls built into them. The certification functions as an independent check on how we govern AI, and we want to share how we earned it using LangSmith. The evidence the audit needed was the traces and evaluations our engineers already use to debug agents, along with each agent's permission settings. For every AI system in scope, the audit came down to four questions. What is the agent allowed to do? How do you prove the agent works? How do you prove what the agent did? How do you improve the agent? This blog walks through each question, and where the answer lived in LangSmith. Our goal is to inspire our customers to do the same with their own agents. Understanding ISO 42001 requirements Certification starts with an internal audit of your management system. An accredited external auditor then checks that the system operates as documented. For context, our certification covers the management system behind every GA LangSmith feature that runs inference on a model we manage. Surveillance audits repeat the check annually, so new AI features that we ship will be added to the scope each year. What is the agent allowed to do? The first part of ISO/IEC 42001 focuses on defining and documenting the boundaries of an AI agent’s authority. We had to answer questions around agent access and human oversight, such as: Which tools and systems can the agent reach, who can invoke it, and who approves a new capability? Are the agent's tool boundaries and approval requirements specified, and do the defaults start closed? Is human approval required before the agent takes a consequential action, and is the decision recorded? Are the prompts and configuration that direct the agent versioned and reviewed before release? We answered these questions by showing the auditor a full workflow with a live agent in LangSmith Fleet, which shows gives you three layers of control: Workspace permissions determine which integrations are available and who can add capabilities. Agent settings control whose credentials the agent uses and who can invoke it. Fleet agents use either shared credentials or the invoking user’s OAuth credentials, with that choice fixed at creation. Tool settings control whether each tool runs automatically (Auto) or pauses for human review (Ask). Demonstrating human approval We asked the agent to post to a Slack channel using a tool configured to require approval. The run paused, and we rejected the call with a reason. The agent then reported the rejection without retrying. This was easy to demonstrate because the LangSmith trace captured this run, which provided evidence of the approval requirement and its enforcement. Controlling prompt changes We used the same agent to show how we controlled changes to its prompts and instructions. We opened the system prompt in Fleet, which showed who could see it and who had permission to edit it. (For teams managing prompts outside a code repository, LangSmith’s Prompt and Context Hub provides versioned commits and movable tags for tracking releases and rolling back changes.) How do you prove the agent works? ISO 42001 asks whether an AI system has been verified and validated, and whether the data behind that work is accounted for. The auditor asked for two things: test results for a release and the origin of the test data. Reproducibility is hard in agent evaluation because the same input won't necessarily give you the same output. What you can reproduce is the dataset and evaluator, which we kept fixed so we could tell whether a change in scores reflected the agent’s behavior or a change in the test. Traceable test results Our evaluation data comes only from systems we run ourselves, never from customer workspaces. Each eval test in LangSmith records where its test examples came from and includes the code to score the agent’s responses. Changes go through a pull request, providing a dated record of each change and its reviewer. Together, the repository history and the LangSmith experiments documented how we produced the release’s test results. Agent performance and eval reliability Before evaluating each agent, we defined the behavior we expected and how we would measure it. For Engine, we tested whether it could tell problem traces from clean ones and whether it left existing board content untouched; Fleet had a separate evaluation module for each capability. We also tested the evals themselves, throwing out any tests that a blank answer could pass and removing duplicate traces. To check each grader, we gave it an answer we knew was correct. If that answer didn't get full marks, we investigated before trusting the grader's results. Testing for possible risks Agents with write access need checks for risks such as prompt injection and data leakage, and LangSmith ships prebuilt evaluators for many of them. Teams can also use code for deterministic checks and LLM-as-judge for assessments that require judgment, with annotation queues supporting human review. For the audit, LangSmith let us show the behavior behind the scores. Combined with our repository history, those experiments documented how we tested each release and how the tests had changed over time. How do you prove what the agent did? The standard asks for a record of activity across the system’s life and for the system to be monitored in production. We used LangSmith traces to show the auditor what happened during a run, and evaluation scores helped us assess the agent’s behavior. We selected a run to reconstruct, and the trace showed the agent’s inputs and outputs, including its tool calls and any errors. When a tool call required approval, the pause and resume appeared in the same record. This allowed the auditor to follow what happened without piecing together separate logs. Agent monitoring in production The same evaluations used before a release can run on production traces. LangSmith attaches each result to the run as a feedback score, so a reviewer can open a flagged response and see the actions that led to it. For example, a hallucination evaluator can flag an answer that its sources don't support. Then a reviewer's correction is saved with the trace and can feed into later evaluations. The auditor examined the same traces our engineers use to debug agents. Each trace provided an execution record to examine, with evaluation results and human feedback alongside it. How do you improve the agent? The standard asks that the system keep improving once it is running, and that what you learn in production feed back into it. We demonstrated this loop in LangSmith Engine, which groups recurring failures and investigates their root cause in the agent’s source code. It then opens a PR with a fix, and it can test that fix on a preview deployment before the PR goes through the team's normal code review. The auditor followed a change through review and into the codebase, examining the production behavior that prompted it and the evidence we used to judge the fix. The traces also become examples in an evaluation dataset, so the failure becomes a regression test for later releases. Scaling governance with a domain-specific agent The rest of the standard is about the organization around the agents, such as policies, roles, and risk and impact assessments, along with the documentation behind every system and clause. To cover it, we built Security Agent on Deep Agents and run it on LangSmith, so its own runs are traced and its tools carry the same approval settings as everything else we build. It let our two-person team scale our AI governance program and support efforts like this certification. Every policy, assessment, and audit response runs through Security Agent, so its knowledge of our environment, inventory, code, and historical decisions compounds every time it runs. We turned repetitive work into these skills: Policies and mapping. Keeps an index of what every policy and clause already covers, so a control gets documented once. Evidence. Writes the narrative for each control and, where one can be read from an API, monitors it continuously in our GRC platform, so we know it’s operating without waiting for an audit to ask. Risk and impact. Reads the code before it credits a control, scores the risk against our policy, and adds anything that scored above the threshold to the findings register. Inventory and feature review. Tracks every AI feature on the roadmap with an owner and a scope decision, reviewed monthly, and assesses new features before they ship. The gain from Security Agent is partly speed, but the larger gain is reach. We are supporting a rapidly growing company that must meet standards like SOC 2, ISO 27001, and ISO 42001 plus GDPR and HIPAA. We write every policy and make every risk call, and because all of it runs through the agent, a complicated question from another team gets a grounded answer in minutes. Security Agent runs under the same approval settings as everything else we build. We review what it produces, and our corrections feed back into it, so each loop makes the agent more reliable. Where to start Sign up for LangSmith at smith.langchain.com. The certificate is available on request at trust.langchain.com. Appendix: which requirement each capability supports Related content LangSmith Tool Gateway: Secure, governed tool use for agents Why agent governance starts with observability We rebuilt LangSmith around the agent See what your agent is really doing LangSmith, our agent engineering platform, helps developers debug every agent decision, eval changes, and deploy in one click.
AI NEWS JOURNAL
LangChainAI NEWS / JOURNAL
How We Achieved ISO 42001 with LangSmith
LangChain earned ISO/IEC 42001 certification, the international standard for AI management systems, using LangSmith. Learn how.
翻訳サービスが停止中のため原文を表示しています。